/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --navy-950: #0b1a33;
  --navy-900: #102243;
  --navy-800: #14284b;
  --navy-700: #1d3a6b;
  --navy-600: #2b5190;
  --sky-50: #f4f7fc;
  --sky-100: #e8eef8;
  --sky-200: #d3deef;
  --paper: #fbfaf7;
  --sand: #f3f0e9;
  --white: #ffffff;
  --ink: #17202e;
  --ink-2: #364153;
  --muted: #5f6b7d;
  --line: #e4e1da;
  --line-2: #d6d9e0;
  --red: #b3262e;
  --red-600: #9c1f27;
  --red-50: #fbeeee;
  --wa: #1d8a4b;
  --wa-700: #166b3a;
  --ok: #1d7a49;
  --ok-50: #e9f6ef;
  --warn-50: #fff6e5;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: Inter, 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;

  --r-sm: 9px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 67, .06), 0 1px 1px rgba(16, 34, 67, .04);
  --shadow: 0 10px 30px -12px rgba(16, 34, 67, .18), 0 2px 6px rgba(16, 34, 67, .05);
  --shadow-lg: 0 30px 60px -24px rgba(16, 34, 67, .28);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy-900); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--navy-600) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy-800); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; color: #fff; }

svg { width: 1.15em; height: 1.15em; flex: none; }

/* ───────────────────────── Botones ───────────────────────── */
.btn {
  --bg: var(--navy-800); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.15em; border-radius: 11px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--navy-800); box-shadow: 0 6px 16px -8px rgba(20, 40, 75, .7); }
.btn--primary:hover { --bg: var(--navy-700); }
.btn--ghost { --bg: var(--white); --fg: var(--navy-800); --bd: var(--line-2); }
.btn--ghost:hover { --bd: var(--navy-600); --fg: var(--navy-900); }
.btn--wa { --bg: var(--wa); box-shadow: 0 6px 16px -8px rgba(29, 138, 75, .8); }
.btn--wa:hover { --bg: var(--wa-700); }
.btn--lg { padding: .9em 1.35em; font-size: 16px; border-radius: 12px; }
.btn--sm { padding: .5em .85em; font-size: 14px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--line-2); background: var(--white); color: var(--navy-800); cursor: pointer;
}
.icon-btn:hover:not(:disabled) { border-color: var(--navy-600); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ───────────────────────── Header ───────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand__mark { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 18.5px; color: var(--navy-900); line-height: 1.15; white-space: nowrap; }
.brand__tag { font-size: 12.5px; color: var(--muted); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { background: var(--sky-100); color: var(--navy-900); }
.nav__cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--white); color: var(--navy-800); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 12px; font-size: 16px; }
  .nav__cta { margin: 8px 0 0; }
}
@media (max-width: 480px) {
  .brand__tag { display: none; }
  .brand__name { font-size: 16.5px; }
  .brand__mark { width: 38px; height: 38px; }
}

/* ───────────────────────── Hero ───────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); background:
  radial-gradient(1200px 500px at 85% -10%, var(--sky-100), transparent 60%),
  linear-gradient(180deg, var(--paper), var(--paper)); }
.hero__rings { position: absolute; right: -180px; top: -120px; width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--navy-700) 14%, transparent); pointer-events: none; }
.hero__rings::before, .hero__rings::after { content: ""; position: absolute; border-radius: 50%; }
.hero__rings::before { inset: 60px; border: 1px solid color-mix(in srgb, var(--navy-700) 10%, transparent); }
.hero__rings::after { inset: -1px; border: 2px solid transparent; border-bottom-color: color-mix(in srgb, var(--red) 40%, transparent); transform: rotate(-18deg); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy-700);
  background: var(--white); border: 1px solid var(--line); padding: 6px 12px 6px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.eyebrow svg { color: var(--red); }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); margin: 18px 0 18px; max-width: 14ch; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 54ch; }
.lead strong { color: var(--navy-900); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.badges svg { color: var(--navy-600); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

.next { padding: 22px; position: relative; }
.next__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.next__head h2 { font-size: 21px; }
.next__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.next__list li button {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, transform .15s;
}
.next__list li button:hover { border-color: var(--navy-600); background: var(--sky-50); transform: translateX(2px); }
.next__date { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 11px; background: var(--navy-800); color: #fff; line-height: 1; }
.next__date b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.next__date small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-top: 2px; }
.next__info strong { display: block; color: var(--navy-900); font-size: 15.5px; }
.next__info span { font-size: 13.5px; color: var(--muted); }
.next__time { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--navy-800); }
.next__skeleton { height: 76px; border-radius: 12px; background: linear-gradient(90deg, var(--sky-50), var(--sky-100), var(--sky-50)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.next__empty { padding: 16px; border-radius: 12px; background: var(--sky-50); color: var(--ink-2); font-size: 15px; }
.next__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 15px; text-decoration: none; }
.next__all:hover svg { transform: translateX(3px); }
.next__all svg { transition: transform .15s; }

.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; background: var(--sky-50); border: 1px solid var(--line); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: #a0a8b6; }
.live.is-on { color: var(--ok); background: var(--ok-50); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.live.is-on .live__dot { background: #22a35a; box-shadow: 0 0 0 0 rgba(34, 163, 90, .5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 163, 90, .45); } 70% { box-shadow: 0 0 0 8px rgba(34, 163, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 163, 90, 0); } }
.live--lg { font-size: 13.5px; padding: 6px 12px; }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero__rings { width: 420px; height: 420px; right: -220px; top: -160px; }
}

/* ───────────────────────── Banda “en el día” ───────────────────────── */
.urgent { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.urgent::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 10% 120%, rgba(179, 38, 46, .35), transparent 70%); pointer-events: none; }
.urgent__inner { position: relative; display: flex; align-items: center; gap: 22px; padding-block: 30px; flex-wrap: wrap; }
.urgent__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.urgent__icon svg { width: 28px; height: 28px; color: #fff; }
.urgent__text { flex: 1 1 320px; }
.urgent h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.urgent p { color: rgba(255, 255, 255, .82); margin-top: 4px; font-size: 16.5px; }

/* ───────────────────────── Secciones ───────────────────────── */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--sand); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.section h2 { font-size: clamp(30px, 3.8vw, 44px); }
.section__lead { margin-top: 12px; font-size: 17.5px; color: var(--ink-2); }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky-200); }
.service__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sky-100); color: var(--navy-700); margin-bottom: 16px; }
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 19.5px; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: 15.5px; }

.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mode { background: var(--white); border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.mode::after { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--navy-800); }
.mode:nth-child(3)::after { background: var(--red); }
.mode__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-800); color: #fff; margin-bottom: 18px; }
.mode__icon svg { width: 26px; height: 26px; }
.mode h3 { font-size: 24px; }
.mode__when { display: inline-flex; margin: 10px 0 12px; font-weight: 600; font-size: 14.5px; color: var(--navy-700); background: var(--sky-100); padding: 4px 10px; border-radius: 8px; }
.mode p:not(.mode__when) { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }

.coverage { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.coverage__card { border-radius: var(--r-lg); padding: clamp(24px, 3.2vw, 36px); background: var(--white); border: 1px solid var(--line); }
.coverage__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--sky-100); color: var(--navy-700); margin-bottom: 18px; }
.coverage__icon svg { width: 25px; height: 25px; }
.coverage__card h3 { font-size: clamp(22px, 2.4vw, 27px); margin-bottom: 12px; }
.coverage__card p { color: var(--ink-2); font-size: 16px; }
.coverage__card .coverage__note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
/* Tarjeta MCT (fondo oscuro): va después de las reglas generales para que el texto claro gane. */
.coverage__card--mct { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.coverage__card--mct h3, .coverage__card--mct strong { color: #fff; }
.coverage__card.coverage__card--mct p { color: rgba(255, 255, 255, .9); }
.coverage__card--mct .coverage__icon { background: rgba(255, 255, 255, .1); color: #fff; }
.coverage__card.coverage__card--mct .coverage__note { border-top-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .82); }
@media (max-width: 860px) { .coverage { grid-template-columns: 1fr; } }

/* ───────────────────────── Turnera ───────────────────────── */
.section--booking { background: linear-gradient(180deg, var(--sky-50), var(--paper)); border-block: 1px solid var(--line); }
.booking { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr; } }

.cal { padding: 20px; }
.modefilter { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.modefilter legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--sky-50); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 3px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 8px 4px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: .15s; }
.seg input:checked + span { background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--navy-600) 45%, transparent); }

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal__title { font-size: 21px; text-transform: capitalize; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal__dow span { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.day {
  position: relative; aspect-ratio: 1; border-radius: 11px; border: 1px solid transparent; background: transparent;
  display: grid; place-items: center; font-weight: 500; font-size: 15px; color: #b5bbc6; cursor: default; padding: 0;
}
.day--pad { visibility: hidden; }
.day--free { background: var(--white); border-color: var(--sky-200); color: var(--navy-900); font-weight: 600; cursor: pointer; transition: .15s; }
.day--free::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.day--free:hover { border-color: var(--navy-600); background: var(--sky-50); }
.day--full { color: #9aa1ad; background: var(--sand); text-decoration: line-through; text-decoration-color: rgba(179, 38, 46, .5); cursor: not-allowed; }
.day--today { box-shadow: inset 0 0 0 1.5px var(--navy-600); }
.day--sel, .day--sel:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.day--sel::after { background: #fff; }
.cal__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cal__legend li { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot--free { background: var(--white); border: 1.5px solid var(--ok); }
.dot--full { background: var(--sand); border: 1.5px solid #c5c9d1; }
.dot--sel { background: var(--navy-800); }

.booking__main { padding: clamp(20px, 3vw, 30px); min-height: 420px; }
.panel-empty { height: 100%; min-height: 360px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; color: var(--muted); }
.panel-empty svg { width: 44px; height: 44px; color: var(--sky-200); }
.panel-empty p { max-width: 34ch; }
.step-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 8px; }
.panel-title { font-size: 26px; text-transform: none; margin-bottom: 18px; }
.panel-title::first-letter { text-transform: uppercase; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.slot {
  display: grid; gap: 4px; padding: 12px 10px; border-radius: 12px; border: 1.5px solid var(--sky-200); background: var(--white);
  cursor: pointer; text-align: center; transition: .15s;
}
.slot:hover:not(:disabled) { border-color: var(--navy-600); background: var(--sky-50); transform: translateY(-1px); }
.slot b { font-family: var(--serif); font-size: 21px; color: var(--navy-900); font-weight: 600; }
.slot small { font-size: 12px; color: var(--muted); font-weight: 500; }
.slot:disabled { background: var(--sand); border-color: transparent; cursor: not-allowed; }
.slot:disabled b { color: #a3a9b3; text-decoration: line-through; }
.slot.is-sel { background: var(--navy-800); border-color: var(--navy-800); }
.slot.is-sel b, .slot.is-sel small { color: #fff; }
.slot.is-new { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(179, 38, 46, .5); } 100% { box-shadow: 0 0 0 10px rgba(179, 38, 46, 0); } }
.hint { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.notice { margin-bottom: 16px; padding: 12px 14px; border-radius: 11px; background: var(--warn-50); border: 1px solid #f1dcae; color: #6b4b0f; font-size: 15px; }

.form { display: grid; gap: 18px; }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--sky-50); border: 1px solid var(--sky-200); }
.chosen__day { display: block; font-weight: 600; color: var(--navy-900); }
.chosen__day::first-letter { text-transform: uppercase; }
.chosen__time { font-size: 14.5px; color: var(--ink-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field legend { margin-bottom: 8px; }
.field input:not([type="radio"]) {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--white);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input:not([type="radio"]):focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy-600) 15%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: 13.5px; min-height: 0; }
.err:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; flex: 1 1 200px; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice > span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--white); font-size: 15px; transition: .15s; height: 100%; }
.choice > span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b6bdc9; flex: none; transition: .15s; }
.choice input:checked + span { border-color: var(--navy-700); background: var(--sky-50); }
.choice input:checked + span::before { border: 5.5px solid var(--navy-700); }
.choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--navy-600) 45%, transparent); }
.choice svg { color: var(--navy-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { padding: 12px 14px; border-radius: 11px; background: var(--red-50); color: var(--red-600); border: 1px solid #efc9cb; font-size: 15px; }
.fine { font-size: 13px; color: var(--muted); text-align: center; }

.done { text-align: center; display: grid; justify-items: center; gap: 10px; padding-block: 10px; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; animation: pop .4s ease; }
.done__icon svg { width: 32px; height: 32px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.done h3 { font-size: 30px; }
.done__when { font-size: 18px; color: var(--navy-900); font-weight: 600; }
.done__when::first-letter { text-transform: uppercase; }
.done__note { color: var(--ink-2); max-width: 52ch; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0; }
.cancelbox { width: 100%; max-width: 520px; text-align: left; padding: 14px 16px; border-radius: 12px; background: var(--sand); font-size: 14.5px; color: var(--ink-2); margin-bottom: 6px; }
.cancelbox__row { display: flex; gap: 8px; margin-top: 8px; }
.cancelbox input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--white); font-size: 13.5px; color: var(--muted); }

/* ───────────────────────── FAQ ───────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative; font-weight: 600; font-size: 17px; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--navy-600); border-bottom: 2px solid var(--navy-600); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* ───────────────────────── Contacto ───────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.contact h2 { margin-bottom: 22px; }
.contact__list { font-style: normal; display: grid; gap: 14px; }
.contact__list p { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--ink-2); }
.contact__list svg { width: 22px; height: 22px; color: var(--navy-700); margin-top: 2px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact__map { min-height: 320px; }
.mapart { position: relative; height: 100%; min-height: 320px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(0deg, rgba(255,255,255,.6), rgba(255,255,255,.6)), repeating-linear-gradient(90deg, var(--sky-100) 0 1px, transparent 1px 46px), repeating-linear-gradient(0deg, var(--sky-100) 0 1px, transparent 1px 46px), var(--sky-50);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.mapart__street { position: absolute; background: var(--white); box-shadow: 0 0 0 1px var(--sky-200); }
.mapart__street--h1 { left: -10%; right: -10%; top: 38%; height: 22px; transform: rotate(-8deg); }
.mapart__street--h2 { left: -10%; right: -10%; top: 74%; height: 14px; transform: rotate(-8deg); }
.mapart__street--v1 { top: -10%; bottom: -10%; left: 30%; width: 14px; transform: rotate(10deg); }
.mapart__street--v2 { top: -10%; bottom: -10%; left: 72%; width: 18px; transform: rotate(10deg); }
.mapart__label { position: absolute; top: 31%; left: 8%; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transform: rotate(-8deg); }
.mapart__pin { position: absolute; left: 52%; top: 40%; transform: translate(-50%, -100%); width: 64px; height: 64px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--red); display: grid; place-items: center; box-shadow: 0 14px 24px -10px rgba(179, 38, 46, .7); }
.mapart__pin svg { rotate: 45deg; width: 26px; height: 26px; color: #fff; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact__map, .mapart { min-height: 220px; } }

/* ───────────────────────── Footer ───────────────────────── */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .78); padding: 44px 0 calc(44px + env(safe-area-inset-bottom, 0px)); font-size: 14.5px; }
.footer__inner { display: grid; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand strong { display: block; color: #fff; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.footer__brand span { font-size: 13.5px; }
.footer__legal strong { color: #fff; }
.footer__copy { font-size: 13px; color: rgba(255, 255, 255, .55); }

.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 24px -8px rgba(29, 138, 75, .7); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float { transition: transform .15s, opacity .2s, visibility .2s; }
.wa-float.is-away { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); pointer-events: none; }
.wa-float svg { width: 30px; height: 30px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 15px; max-width: calc(100% - 32px); }

.mn { display: inline-block; font-size: .78em; font-weight: 600; letter-spacing: .04em; color: var(--navy-700); background: var(--sky-100); border-radius: 6px; padding: 1px 7px; vertical-align: .12em; }
.cal__home { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 11px; background: var(--sand); font-size: 14px; color: var(--ink-2); }
.cal__home svg { color: var(--red); margin-top: 2px; }
.seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ───────────────────────── Páginas simples (cancelar / 404) ───────────────────────── */
.page-mini { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(900px 400px at 80% -10%, var(--sky-100), transparent 60%), var(--paper); }
.mini { flex: 1; display: grid; align-items: center; padding-block: clamp(32px, 8vw, 80px); }
.mini__card { padding: clamp(24px, 5vw, 44px); display: grid; gap: 14px; justify-items: start; }
.mini__title { font-size: clamp(28px, 4vw, 38px); }
.mini__title::first-letter { text-transform: uppercase; }
.mini__sub { font-weight: 600; color: var(--navy-700); }
.mini__muted { color: var(--muted); }
.mini__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.mini .done__icon { margin-bottom: 4px; }

/* Celular: la lista de próximos turnos, más compacta. */
@media (max-width: 440px) {
  .next { padding: 18px 16px; }
  .next__list li button { gap: 12px; padding: 10px 12px; }
  .next__date { width: 46px; height: 46px; }
  .next__date b { font-size: 19px; }
  .next__info strong { font-size: 15px; }
  .next__time { font-size: 18px; }
}
