@font-face { font-family: Lora; src: url("/citas/lora.woff2") format("woff2"); font-weight: 400 650; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/citas/dmsans.woff2") format("woff2"); font-weight: 400 750; font-display: swap; }
:root {
  color-scheme: light;
  --ink: #283127;
  --muted: #525b4d;
  --forest: #414d3a;
  --paper: #f4f3ea;
  --sand: #f8f6ef;
  --soft: #e8ebe1;
  --sage: #dce2d2;
  --serif: Lora, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--sand); font: .95rem/1.58 var(--sans); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { width: min(calc(100% - 32px), 1130px); margin-inline: auto; }
.top { min-height: 78px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.brand strong { display: block; font: 1.65rem/.99 var(--serif); letter-spacing: -.045em; }
.brand small { display: block; margin-top: 4px; font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.quiet, .primary { display: inline-flex; width: fit-content; align-items: center; justify-content: center; min-height: 43px; text-align: center; border: 0; font-size: .85rem; font-weight: 700; line-height: 1.3; cursor: pointer; }
.quiet { padding: 5px 0; color: var(--forest); text-decoration: underline; text-underline-offset: .22em; background: transparent; }
.primary { padding: 10px 19px; border-radius: 99px; color: var(--paper); background: var(--forest); text-decoration: none; }
.primary:hover { background: #364130; }
.primary:disabled { opacity: .55; }
.intro { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: clamp(19px, 4vw, 51px); margin: 24px 0 13px; border-radius: 22px; color: var(--ink); background: #e5e9dd; }
.intro h1 { font: 400 clamp(2.49rem, 5.4vw, 4.85rem)/1 var(--serif); letter-spacing: -.045em; }
.intro p { margin-top: 11px; }
.intro-location > * { display: block; font-size: .83rem; }
.intro-location > span { opacity: .88; }
.booking-layout { display: grid; grid-template-columns: minmax(215px, .75fr) minmax(0, 2.12fr); gap: 12px; align-items: start; }
.panel { padding: clamp(15px, 2.8vw, 33px); border-radius: 22px; background: var(--paper); }
.panel h2 { font: 400 clamp(1.68rem, 3.5vw, 2.5rem)/1.06 var(--serif); letter-spacing: -.035em; }
.services { display: grid; gap: 7px; margin-top: 14px; }
.services button { min-height: 58px; width: 100%; padding: 9px 12px; text-align: left; border: 0; border-radius: 14px; color: var(--ink); background: var(--soft); line-height: 1.36; }
.services button[aria-pressed="true"] { background: var(--forest); color: var(--paper); }
.services span { display: block; margin-top: 3px; font-size: .78rem; }
.muted { color: var(--muted); font-size: .82rem; }
.booking-note { margin-top: 14px; }
.date-time { display: grid; grid-template-columns: minmax(245px, 1fr) minmax(0,.8fr); gap: 14px 19px; margin-top: 13px; }
.month, .week, .days { display: grid; align-items: center; text-align: center; }
.month { grid-template-columns: 45px 1fr 45px; font-weight: 700; }
#mes::first-letter { text-transform: uppercase; }
.month button, .days button, .times button { min-width: 0; min-height: 42px; padding: 4px 0; border: 0; color: var(--ink); background: var(--soft); border-radius: 10px; font-size: .81rem; font-weight: 700; }
.month button { background: transparent; }
.month button span { display: inline-block; width: .62rem; height: .62rem; border: solid currentColor; border-width: 0 2px 2px 0; }
.month .previous { transform: rotate(135deg); }
.month .next { transform: rotate(-45deg); }
.month button:disabled { opacity: .3; }
.week, .days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week { margin: 8px 0 5px; color: var(--muted); font-size: .74rem; }
.days button:disabled { background: transparent; color: #69685d; font-weight: 400; }
.days button:not(:disabled):hover, .times button:hover { background: #d2d8c7; }
.days button[aria-pressed="true"], .days button[aria-pressed="true"]:hover { color: var(--paper); background: var(--forest); }
.time { padding: 12px; background: var(--sage); border-radius: 16px; }
.time h3 { font-size: .92rem; }
.time p { margin-block: 5px 9px; color: var(--muted); font-size: .79rem; }
.times { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.times button { padding-inline: 3px; background: var(--paper); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 12px; }
.fields label { min-width: 0; font-size: .85rem; font-weight: 700; }
.fields input, .fields select, .admin-toolbar select { width: 100%; min-height: 44px; margin-top: 4px; padding: 7px 10px; border: 0; border-radius: 9px; color: var(--ink); background: var(--soft); }
.fields select { overflow: hidden; text-overflow: ellipsis; }
.slot-summary { margin-top: 7px; color: var(--muted); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 13px 0 9px; }
.error { margin-bottom: 9px; color: #95342e; font-weight: 700; }
.success > p { margin-block: 10px; }
.success-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 13px; }
.footer { padding-block: 11px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .77rem; }
.staff-footer { justify-content: flex-end; }
.todaps-credit { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: inherit; text-decoration: none; white-space: nowrap; }
.todaps-credit img { display: block; height: 17px; width: auto; }
.todaps-credit:hover { text-decoration: underline; text-underline-offset: .22em; }
.admin-panel { margin-bottom: 25px; }
.admin-panel p[role="status"]:empty { display: none; }
.admin-panel .primary { margin-top: 6px; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 15px; }
.admin-toolbar select { width: auto; margin: 0; }
.request { position: relative; padding: 15px; margin-top: 9px; border-radius: 14px; background: var(--soft); overflow-wrap: anywhere; }
.request h2 { font-size: 1.58rem; }
.request > p { margin: 4px 0; }
.request-status { font-size: .78rem; }
.request-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.empty { padding-block: 12px; color: var(--muted); }
@media (max-width: 830px) { .date-time { grid-template-columns: 1fr; } }
@media (max-width: 590px) {
  .wrap { width: calc(100% - 24px); }
  .top { min-height: 66px; }
  .top .quiet { font-size: .74rem; }
  .intro { border-radius: 21px; }
  .intro p { font-size: .86rem; }
  .intro-location { display: none; }
  .booking-layout { grid-template-columns: 1fr; gap: 8px; }
  .services { grid-template-columns: 1fr 1fr; }
  .services button { font-size: .83rem; }
  .booking-note { margin-top: 8px; }
  .fields { grid-template-columns: 1fr; }
}

.line-icon { display: inline-block; vertical-align: middle; flex: none; width: 1.12em; height: 1.12em; color: inherit; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.masthead { background: var(--forest); color: var(--sand); }
.masthead .brand img { filter: brightness(0) invert(1); }
.masthead .quiet { color: var(--sand); }
.intro h1, .panel h2, .time h3 { display: flex; align-items: center; gap: .25em; }
.intro h1 span { min-width: 0; }
.intro h1 .line-icon { width: .8em; height: .8em; color: #5d6c53; }
.intro-location { display: grid; grid-template-columns: 1.25em auto; gap: 0 .35em; align-items: center; }
.intro-location .line-icon { grid-row: 1 / 3; }
.intro-location span { grid-column: 2; }
.panel h2 .line-icon, .time h3 .line-icon { color: #5d6c53; }
.services button { display: flex; align-items: center; gap: 8px; }
.services strong { line-height: 1.14; }
.services .line-icon { width: 1.4em; height: 1.4em; }
@media (max-width: 590px) {
  .intro { margin-top: 13px; }
  .intro-location { display: none; }
  .services button { padding-inline: 7px; gap: 5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .intro { animation: agenda-in 460ms cubic-bezier(.22,1,.36,1) both; }
  .booking-layout { animation: agenda-in 565ms cubic-bezier(.22,1,.36,1) both; }
  .primary, .services button, .days button, .times button { transition: background-color 140ms ease, transform 140ms cubic-bezier(.22,1,.36,1); }
  .primary:active, .services button:active, .days button:not(:disabled):active, .times button:active { transform: scale(.975); }
}
@keyframes agenda-in {
  from { opacity: .72; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
