/* Dr. Hendel Mercedes — Odontología
   Identidad visual enviada por el Dr. Hendel (3 dic 2026): azul petróleo #071E2B, dorado #C6A15B, marfil #F5F2ED y blanco.
   Titulares y nombre en Cormorant Garamond; texto en Montserrat; llamadas a la acción en Montserrat SemiBold (600).
   Reglas de color:
   · Texto sobre claro (marfil/blanco): siempre azul petróleo o sus grises. El dorado NO se usa como texto sobre claro
     (≈2,3:1, ilegible); sobre claro solo aparece como filete, borde o fondo suave decorativo.
   · Sobre azul petróleo el dorado sí puede ser texto (≈7:1): rótulos, números, títulos del pie.
   · El verde de WhatsApp se conserva solo en lo que abre WhatsApp (reconocimiento del botón), no como color de marca. */
:root {
  --ink: #071E2B;        /* azul petróleo: títulos, botones principales, franjas oscuras */
  --ink-h: #10334A;      /* azul petróleo al pasar el cursor */
  --ink-2: #22394A;      /* texto */
  --muted: #55656F;      /* texto secundario (5,4:1 sobre marfil, 6,0:1 sobre blanco) */
  --gold: #C6A15B;       /* dorado: solo acentos */
  --gold-soft: #F3ECDD;  /* dorado muy claro (fondo de íconos) */
  --ivory: #F5F2ED;      /* marfil: fondo general */
  --white: #FFFFFF;
  --wa: #1fa855;         /* WhatsApp (funcional, no de marca) */
  --error: #A8322A;
  --error-soft: #FBEDEA;
  --line: #E2DCD1;
  --on-dark: #D3DBE0;    /* texto sobre azul petróleo */
  --shadow: 0 18px 40px -24px rgba(7, 30, 43, .35);
  --radius: 14px;
  --display: 'Cormorant Garamond', 'Cormorant', Garamond, 'EB Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Montserrat', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
/* Sin overflow-x en html/body a propósito: un recorte global escondería desbordes reales (contenido cortado) y haría
   que la medida de ?prueba-cita no detectara nada. Los únicos recortes son decorativos y dentro de su sección
   (.band-ink, .final), y ?prueba-cita lista cualquier elemento de contenido que quede fuera de la pantalla. */
body { margin: 0; background: var(--ivory); color: var(--ink-2); font: 400 16.5px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0; text-wrap: balance; font-weight: 600; }
h2 { font-size: clamp(34px, 4.8vw, 52px); }
h3 { font-size: 24px; line-height: 1.15; }
p { margin: 0; }
/* Las fuentes llegan hasta 600: <b>/<strong> usan 600 para que el navegador no simule un 700 engrosando la letra. */
b, strong { font-weight: 600; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
/* Foco: azul petróleo sobre claro; dorado sobre las zonas oscuras (ambos ≥3:1). */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.band-ink :focus-visible, .final :focus-visible, .foot :focus-visible { outline-color: var(--gold); }

/* ---------- botones (Montserrat SemiBold) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 8px; font: 600 15.5px/1 var(--body); letter-spacing: .02em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 12px 24px -16px rgba(7, 30, 43, .8); }
.btn-primary:hover { background: var(--ink-h); }
.btn-wa { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-wa:hover { border-color: var(--ink); }
.btn-wa svg { fill: var(--wa); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D2B072; }

/* ---------- cabecera ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(245, 242, 237, .9); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; padding-top: env(safe-area-inset-top, 0px); }
.top.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(7, 30, 43, .45); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
/* Logo (PNG 315 × 279 del kit): ancho fijo y altura automática, nunca ampliado ni deformado.
   Espacio libre ≥ 25 % del ancho del símbolo (guía §2): 52 px → ≥ 13 px. Hasta el nombre hay 16 px; arriba y abajo,
   (76 − 46) / 2 = 15 px. En móvil 44 px → ≥ 11 px: hueco de 12 px y (68 − 39) / 2 ≈ 14 px. */
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; margin-right: auto; padding: 4px 0; }
.brand img { width: 52px; height: auto; flex: none; }
.brand span { display: grid; line-height: 1.1; }
.brand b { font: 600 23px/1.05 var(--display); color: var(--ink); letter-spacing: .005em; }
.brand small { margin-top: 3px; font: 500 11px/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.brand-light b { color: #fff; }
.brand-light small { color: var(--gold); }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 10px 14px; color: var(--ink-2); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.menu { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); cursor: pointer; padding: 0; place-items: center; gap: 5px; align-content: center; }
.menu span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-movil { display: grid; gap: 4px; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); }
.nav-movil a:not(.btn) { padding: 12px 6px; text-decoration: none; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-movil .btn { margin-top: 10px; }

/* ---------- portada (sin ilustración ni fotografía) ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
/* Sin cursivas: el kit no trae Cormorant Garamond cursiva y no se deja que el navegador la simule. */
.hello { font: 500 clamp(22px, 2.6vw, 28px)/1.2 var(--display); color: var(--ink-2); margin-bottom: 14px; }
/* Escala de la guía §4: H1 clamp(36px, 5vw, 64px), interlineado 1.05 (mínimo 38 px para que se lea bien a 320 px). */
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.005em; }
.hl { font-weight: 500; white-space: nowrap; }
.rule { display: block; width: 72px; height: 2px; margin: 26px 0 0; background: var(--gold); border: 0; }
.lead { margin-top: 22px; font-size: clamp(16.5px, 1.5vw, 18px); max-width: 34em; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.chips svg { width: 18px; height: 18px; fill: var(--ink); background: var(--gold-soft); border-radius: 50%; padding: 2px; }
/* Tarjeta de datos del consultorio (sustituye a la ilustración). Solo texto: no añade controles junto al flotante. */
.hero-card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: clamp(26px, 3vw, 36px); display: grid; gap: 18px; box-shadow: 0 30px 60px -36px rgba(7, 30, 43, .7); }
.hero-card .eyebrow { color: var(--gold); }
.hero-card-name { font: 600 30px/1.1 var(--display); color: #fff; }
.hero-card-name small { display: block; margin-top: 6px; font: 500 12px/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hero-card dl { margin: 0; display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(198, 161, 91, .35); }
.hero-card dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hero-card dd { margin: 2px 0 0; color: #fff; font-size: 15.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.hero-card-note { font-size: 14px; color: var(--on-dark); }

.ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; flex: none; }
.ic svg { width: 24px; height: 24px; }
.ic-brand { background: var(--gold-soft); } .ic-brand svg { fill: var(--ink); }
.ic-wa { background: rgba(255, 255, 255, .14); } .ic-wa svg { fill: #fff; }

/* ---------- franjas / secciones ---------- */
.band { padding: clamp(64px, 9vw, 112px) 0; }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.band-ink::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); display: grid; gap: 14px; justify-items: center; }
.sec-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--gold); }
.eyebrow-light { color: var(--gold); }

/* servicios */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--ivory); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.card p { color: var(--muted); font-size: 15.5px; }
.cards.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; }
.card-service { grid-template-rows: auto auto 1fr auto; }
.card-service .btn { margin-top: 6px; }
.note { text-align: center; margin-top: 30px; font-weight: 500; color: var(--ink); max-width: 720px; margin-inline: auto; }
.note a { color: var(--ink); }
/* Ayuda cuando WhatsApp no puede abrirse (sin JS o número sin configurar) */
.wa-help { display: none; max-width: 720px; margin: 24px auto 0; padding: 20px 24px; border-radius: var(--radius); background: #fff; border: 2px solid var(--gold); color: var(--ink); }
.wa-help:target, .wa-off .wa-help { display: block; }
.wa-help h3 { margin: 0 0 8px; }
.wa-help ul { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; }
.wa-help p { margin: 8px 0 0; }
/* Verificación interna (?verificar-wa) */
.wa-check { max-width: 720px; margin: 0 auto 24px; padding: 16px 20px; border-radius: 16px; background: #fffbe6; border: 2px dashed #b58900; color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }
.wa-check p { margin: 0 0 8px; }
.wa-check ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.wa-check li.ok::marker { content: '✔ '; color: #1a7f37; }
.wa-check li.bad::marker { content: '✘ '; color: #c0392b; }

/* por qué */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why-text { display: grid; gap: 18px; }
.why-text h2 em { font-style: normal; font-weight: 500; }
.why-text p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 30em; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
.why-list .num { font: 600 20px/1 var(--display); color: var(--gold); background: var(--ink); border-radius: 8px; padding: 10px 11px; flex: none; font-variant-numeric: tabular-nums; }
.why-list h3 { font-size: 22px; margin-bottom: 4px; }
.why-list p { color: var(--muted); font-size: 15.5px; }

/* pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; border-top: 1.5px solid rgba(198, 161, 91, .55); }
.steps li { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 0 8px; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--gold); color: var(--ink); font: 600 26px/1 var(--display); box-shadow: 0 0 0 8px var(--white); }
.steps p { color: var(--muted); font-size: 15.5px; max-width: 18em; }

/* consejos */
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tip { border-radius: var(--radius); padding: 28px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); display: grid; gap: 10px; align-content: start; }
/* Pedido del propietario (3 dic 2026): en «Consejos» los títulos van en Montserrat SemiBold (600), no en Cormorant.
   Solo dentro de #consejos: el resto de titulares de la página sigue en Cormorant Garamond (marca).
   Montserrat es más ancha que Cormorant, por eso los tamaños bajan respecto al h2/h3 general. */
#consejos h2, #consejos h3 { font-family: var(--body); font-weight: 600; }
#consejos h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -.01em; }
#consejos h3 { font-size: 19px; line-height: 1.3; }
/* Las cifras grandes (2×2, 1/día, 6 meses) acompañan a los títulos: también en Montserrat SemiBold. */
.tip-big { font: 600 clamp(40px, 4vw, 48px)/1 var(--body); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tip-big small { font: 500 16px/1 var(--body); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.tip p:not(.tip-big) { color: var(--muted); font-size: 15.5px; }
.social { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.social > p { font-weight: 600; color: var(--ink); width: 100%; text-align: center; }
.soc { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 12px; border-radius: var(--radius); text-decoration: none; background: var(--white); border: 1px solid var(--line); transition: transform .15s, box-shadow .2s; }
.soc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.soc svg { width: 44px; height: 44px; padding: 10px; border-radius: 10px; fill: #fff; }
.soc-ig svg { background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #8a3ab9); }
.soc-tt svg { background: #111; }
.soc span { display: grid; line-height: 1.2; }
.soc b { color: var(--ink); font-weight: 600; }
.soc small { color: var(--muted); font-size: 14px; }

/* citas */
.book { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.book-text { display: grid; gap: 18px; }
.book-text h2 { color: #fff; }
.book-text strong { color: #fff; }
/* Sobre azul petróleo: CTA dorado con texto azul (guía §5; 7,0:1). Antes era verde WhatsApp con texto blanco
   (3,1:1, insuficiente para el texto de 13 px). El ícono de WhatsApp se conserva para que se reconozca. */
.wa-big { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-top: 8px; padding: 12px 22px 12px 12px; border-radius: var(--radius); background: var(--gold); width: fit-content; transition: background .2s; }
.wa-big:hover { background: #D2B072; }
.wa-big .ic-wa { background: rgba(7, 30, 43, .1); } .wa-big .ic-wa svg { fill: var(--ink); }
.wa-big span:last-child { display: grid; line-height: 1.25; }
.wa-big small { font-size: 13px; font-weight: 500; }
.wa-big b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.form { background: var(--white); color: var(--ink-2); border-radius: 18px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: 14px; color: var(--ink); padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0;font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--ivory); border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(198, 161, 91, .35); }
.field.bad input, .field.bad select { border-color: var(--error); background: var(--error-soft); }
/* minmax(0, …): las columnas pueden encogerse por debajo del ancho intrínseco del selector de fecha nativo */
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* Selector de fecha: nunca más ancho que su columna */
.field input[type="date"] { display: block; min-width: 0; max-width: 100%; min-height: 50px; text-align: left; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type="date"]::-webkit-datetime-edit { padding: 0; }
/* Safari de iOS: el aspecto nativo impone un ancho mínimo propio que se salía del formulario.
   Solo se quita en iOS (-webkit-touch-callout) para no perder el icono de calendario de Chrome/Android. */
@supports (-webkit-touch-callout: none) {
  .field input[type="date"] { -webkit-appearance: none; appearance: none; }
}
/* Fecha en es-DO: con JS el input nativo queda transparente ENCIMA de .fecha-ver (sigue recibiendo el toque y abre
   el calendario del teléfono), así el texto visible nunca depende del idioma/calendario del sistema. */
.fecha-box { position: relative; width: 100%; max-width: 100%; min-width: 0; }
.fecha-ver { display: none; }
.js .fecha-ver { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 44px 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zm12 8v10H5V10z' fill='%23071E2B'/%3E%3C/svg%3E") right 14px center/20px no-repeat; font: 500 16px/1.3 var(--body); color: var(--ink); overflow-wrap: anywhere; transition: border-color .2s, background-color .2s; }
.js .fecha-ver.vacio { color: var(--muted); font-weight: 400; }
.js .fecha-box input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 16px; /* 16px: evita el zoom de iOS al tocar */ }
.js .fecha-box:focus-within .fecha-ver { border-color: var(--ink); background-color: var(--white); box-shadow: 0 0 0 4px rgba(198, 161, 91, .35); }
.js .field.bad .fecha-ver { border-color: var(--error); background-color: var(--error-soft); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { grid-column: 1 / -1; margin-bottom: 7px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; height: 50px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--ivory); font-weight: 600; color: var(--ink-2); transition: all .2s; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.form-msg { min-height: 1.4em; font-weight: 600; font-size: 15px; text-align: center; }
.form-msg.ok { color: var(--ink); }
.form-msg.err { color: var(--error); }
.done { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 18px 6px; }
.done .ic { width: 64px; height: 64px; border-radius: 50%; }
.done .ic svg { width: 32px; height: 32px; }
.done h3 { font-size: 30px; }
.done p { color: var(--muted); }

/* preguntas */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--gold); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font: 600 16.5px/1.35 var(--body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5h2v14h-2zM5 11h14v2H5z' fill='%23071E2B'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* cierre */
.final { position: relative; overflow: hidden; border-radius: 20px; padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px); text-align: center; color: var(--on-dark); background: var(--ink); display: grid; gap: 14px; justify-items: center; }
.final::before, .final::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(198, 161, 91, .35); pointer-events: none; }
.final::before { width: 280px; height: 280px; left: -110px; top: -130px; }
.final::after { width: 220px; height: 220px; right: -70px; bottom: -110px; }
.final h2 { color: #fff; position: relative; }
.final p { font-size: 17px; position: relative; }
.final .cta-row { position: relative; margin-top: 12px; }
.final .btn-wa { border-color: transparent; }

/* pie */
.foot { background: var(--ink); color: #B9C5CC; padding: 56px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 3px solid var(--gold); }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-in > div { display: grid; gap: 14px; align-content: start; }
.foot h3 { font: 600 13px/1.3 var(--body); color: var(--gold); letter-spacing: .18em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot a { color: #E6ECEF; text-decoration: none; }
/* Objetivos táctiles de al menos 44 px de alto en el pie (WhatsApp, redes, «Acceso del doctor»). */
.foot ul a, .foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.foot ul li:not(:has(a)) { padding: 10px 0; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.foot-bottom a { color: #B9C5CC; }

/* WhatsApp flotante (posición y tamaño SIN CAMBIOS: --carril depende de ellos) */
/* --wa-alza (px, lo pone app.js): sube el flotante por encima de un control que quedaría debajo (enlace, botón,
   pregunta…). Nunca se oculta. Sin JavaScript vale 0 y el flotante no se muestra (lleva hidden). */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--wa-alza, 0px)); z-index: 40; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .8); transition: transform .2s, opacity .2s, visibility .2s; } /* sin transición en bottom: app.js mide la posición exacta */
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
/* El anillo animado crece hasta 1,6×: sin pointer-events capturaba toques fuera del botón (encima de «Solicitar cita»). */
/* Sin movimiento continuo: el anillo late solo 2 veces tras cargar (antes era infinito) y luego queda invisible. */
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); opacity: 0; animation: ping 2.4s ease-out .8s 2; pointer-events: none; }
/* Carril del flotante: el flotante NUNCA se oculta. En su lugar, TODO el contenido del formulario («Solicitar cita»,
   los campos —incluido «Día preferido»—, el recuadro de prueba y la pantalla de confirmación) termina 10 px antes del
   borde izquierdo del flotante: el carril se suma al relleno derecho de .form. Antes solo lo respetaba «Solicitar cita»
   y, a 430×932 al llegar a #agendar, el flotante quedaba encima de «Día preferido». La separación es horizontal, así
   que vale en cualquier posición de desplazamiento y no depende de JavaScript (el formulario es demasiado denso para
   que el flotante lo esquive subiendo; fuera del formulario lo hace app.js con --wa-alza).
   Distancia del borde izquierdo del flotante al borde derecho de la pantalla: max(18px, zona segura) + 60px (ancho).
   Distancia del borde derecho del botón al de la pantalla: relleno de .wrap + relleno de .form + margen lateral de .wrap
   cuando la pantalla es más ancha que 1180 px. --carril = la diferencia + 10 px de holgura (cubre el hover a 1,08×).
   Ej.: 360 px → 18+70−20−22 = 46 px · 1000 px → 18+70−20−30 = 38 px · ≥1260 px → 0. */
.form { --carril: max(0px, calc(max(18px, env(safe-area-inset-right, 0px)) + 70px - max(20px, env(safe-area-inset-right, 0px)) - clamp(22px, 3vw, 32px) - max(0px, (100vw - 1180px) / 2))); }
.wa-off .form { --carril: 0px; } /* sin WhatsApp configurado no hay flotante */
.form { padding-right: calc(clamp(22px, 3vw, 32px) + var(--carril)); }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- movimiento (pedido del propietario, 3 dic 2026) ----------
   1) Aparición al entrar en pantalla: app.js marca con .rv SOLO los bloques que al cargar están por debajo de la
      pantalla y añade .reveal-on a <html>. Sin JavaScript, sin IntersectionObserver, con movimiento reducido o al
      imprimir no se oculta nada: el contenido se ve siempre. Lo que ya está a la vista al abrir no se anima (no retrasa
      la portada). Cada bloque sube 16 px y aparece en 0,5 s una sola vez; app.js quita .rv al terminar.
      «backwards» (no «both»): al acabar no queda ningún transform fijado y los :hover de tarjetas y botones siguen igual. */
.reveal-on .rv:not(.is-in) { opacity: 0; }
.reveal-on .rv.is-in { animation: rise .5s cubic-bezier(.22, .7, .3, 1) var(--rv-d, 0ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media print { .reveal-on .rv { opacity: 1 !important; animation: none !important; } }

/* 2) Respuesta al pulsar: hundido leve (escala .98) en botones y enlaces-botón; funciona también con el dedo. */
@media (hover: none) { /* en táctil el :hover se queda «pegado» tras tocar: sin desplazamiento por hover */
  .btn:hover, .card:hover, .soc:hover, .wa-float:hover { transform: none; }
}
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-primary:hover { box-shadow: 0 16px 28px -14px rgba(7, 30, 43, .85); }
.wa-big { transition: background .2s, transform .15s; }
.wa-big:active, .soc:active { transform: scale(.98); transition-duration: .08s; }
.wa-float:active { transform: scale(.94); transition-duration: .08s; }
.menu { transition: transform .15s, border-color .2s; }
.menu:hover { border-color: var(--ink); }
.menu:active { transform: scale(.94); }
.seg span:active { transform: scale(.98); }
/* Preguntas: el «+» se aclara al pasar y la respuesta aparece con un fundido corto al abrir. */
.faq summary::after { transition: transform .25s, background-color .2s; }
.faq summary:hover::after { background-color: #EADFC6; }
.faq details[open] > p { animation: fade-in .28s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- adaptable ---------- */
@media (max-width: 980px) {
  .nav, .top-in > .btn { display: none; }
  .menu { display: grid; }
  /* minmax(0, 1fr): ningún hijo (formulario, selector de fecha) puede ensanchar la columna más que la pantalla */
  .hero-in, .why, .book { grid-template-columns: minmax(0, 1fr); }
  .book > *, .hero-in > *, .why > * { min-width: 0; }
  .hero-card { max-width: 560px; }
  .cards, .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .steps::before { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .top-in { min-height: 68px; }
  .brand { gap: 12px; }
  .brand img { width: 44px; }
  .cta-row .btn { flex: 1 1 100%; }
  .cards, .cards.cards-2, .tips, .steps { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
  /* espacio para que el botón flotante no tape los enlaces del final del pie */
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .wa-big { max-width: 100%; }
  .soc { width: 100%; }
}
/* 320–374 px: el nombre de la cabecera cabe en una línea junto al botón de menú */
@media (max-width: 374px) {
  .top-in { gap: 12px; }
  .brand { gap: 11px; }
  .brand img { width: 40px; }
  .brand b { font-size: 19px; }
  .brand small { letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* Sin desplazamientos ni escalas: la respuesta a hover/toque queda en cambios de color, borde y sombra. */
  .btn:hover, .btn:active, .card:hover, .soc:hover, .soc:active, .wa-big:active, .wa-float:hover, .wa-float:active, .menu:active, .seg span:active { transform: none; }
  .reveal-on .rv { opacity: 1 !important; }
}
