/* Esmalte · Clínica dental (demo de Sivar Design). Layout calcado de DentArt (plantilla de Framer), con las animaciones
   de fotos de Jacques + Cie. Marca, textos y fotos propios. Sistema de diseño en DISENO.md.
   Los colores y medidas viven en :root, cada uno con su comentario: el panel de ajustes los lee de aquí. */

@font-face { font-family: "Outfit"; src: url("../fonts/Outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Mrs Saint Delafield"; src: url("../fonts/MrsSaintDelafield.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Color */
  --fondo: #F6F2EA;        /* fondo de la página (crema) */
  --blanco: #FFFDF9;       /* bandas claras, tarjetas y formulario */
  --menta: #E9E3D3;        /* tarjetas y banda de la cita (arena desde los ajustes de Mike; se sigue llamando menta) */
  --verde: #13811b;        /* botones, título de portada, cifras, punto de las listas y pie */
  --verde-2: #0a7111;      /* paso de tono: botones al pasar el ratón */
  --tinta: #1F2A26;        /* títulos */
  --texto: #4A524E;        /* texto corrido */
  --apagado: #736E63;      /* opciones no elegidas en las listas de las tarjetas arena */
  --sobre-verde: #F6F2EA;  /* texto sobre el verde */
  --borde: #E3DCCD;        /* bordes finos de tarjetas y separadores */

  /* Letras */
  --f-titulos: "Outfit", system-ui, sans-serif;   /* títulos */
  --f-texto: "Outfit", system-ui, sans-serif;     /* texto */
  --f-firma: "Mrs Saint Delafield", cursive;      /* firma del pie */

  /* Medidas (de la referencia) */
  --ancho: 1200px;                      /* ancho del contenido */
  --gutter: clamp(20px, 5vw, 120px);    /* margen a los lados */
  --sec: clamp(48px, 5.5vw, 80px);      /* aire arriba y abajo de cada sección */
  --radio-banda: 48px;                  /* bandas blancas y menta */
  --radio: 24px;                        /* fotos y tarjetas grandes */
  --radio-2: 16px;                      /* tarjetas chicas y campos */
  --radio-boton: 999px;                 /* botones y pestañas */
  --alto-barra: 76px;                   /* barra de arriba */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--alto-barra) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 16px/1.3 var(--f-texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, figure, blockquote, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--f-titulos); color: var(--tinta); }
h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1; font-weight: 600; letter-spacing: -.01em; }
h3 { font-weight: 500; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--menta); color: var(--verde); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--verde); color: var(--sobre-verde); padding: 10px 16px; border-radius: var(--radio-boton); }
.saltar:focus { top: 12px; }
.contenedor { width: min(var(--ancho), 100% - 2 * var(--gutter)); margin-inline: auto; }
.seccion { padding-block: var(--sec); }
.sub { font-size: 18px; line-height: 1.3; font-weight: 300; margin-top: 20px; max-width: 34em; }
.icono { width: 20px; height: 20px; flex: none; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dos--arriba { align-items: start; gap: 60px; }
.cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }

/* Botones (píldora con doble borde, como la referencia) */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: var(--radio-boton);
  background: var(--verde); color: var(--sobre-verde); border: 1px solid var(--verde); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--blanco) 22%, transparent), 0 1px 2px rgba(0,0,0,.08);
  font-size: 16px; white-space: nowrap; transition: background .25s, transform .25s; }
.boton:hover { background: var(--verde-2); }
.boton:active { transform: scale(.98); }
.boton--claro { background: color-mix(in srgb, var(--verde) 7%, var(--fondo)); color: var(--tinta); border-color: color-mix(in srgb, var(--verde) 55%, transparent); box-shadow: inset 0 0 0 1.5px var(--blanco); }
.boton--claro:hover { background: color-mix(in srgb, var(--verde) 14%, var(--fondo)); }
.boton--chico { height: 44px; padding: 0 22px; font-size: 15px; }
.boton .icono { width: 18px; height: 18px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.acciones--centro { justify-content: center; }
.enlace { display: inline-flex; align-items: center; gap: 8px; color: var(--verde); font-size: 16px; }
.enlace .icono { width: 16px; height: 16px; transition: translate .25s; }
.enlace:hover .icono { translate: 4px 0; }
.enlace--chico { font-size: 14px; color: var(--texto); }

/* Fotos: aparecen con un zoom suave y se mueven más lento que su marco al bajar (de Jacques + Cie) */
.foto { position: relative; overflow: hidden; border-radius: var(--radio); background: var(--menta); isolation: isolate; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.14;
  transition: opacity .9s ease, scale 1.6s cubic-bezier(.66, 0, .34, 1); }
.foto--mueve img { inset: -9% 0; height: 118%; }
.foto.visible img { opacity: 1; scale: 1; }
.foto--zoom.visible:hover img, a:hover .foto--zoom.visible img, li:hover > .foto--zoom.visible img, article:hover .foto--zoom.visible img { scale: 1.08; transition: scale .8s cubic-bezier(.66, 0, .34, 1); }
.foto.falta img { opacity: 0; }
.foto.falta::after { content: attr(data-falta); position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 12px; text-align: center; font: 600 12px/1.3 var(--f-texto); color: var(--verde); background: repeating-linear-gradient(45deg, var(--menta) 0 12px, var(--fondo) 12px 24px); }

/* Títulos que suben al aparecer (de Jacques + Cie) */
[data-titulo] { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-titulo] > .linea { display: block; translate: 0 105%; transition: translate 1s cubic-bezier(.66, 0, .34, 1); }
.js [data-titulo].visible > .linea { translate: 0 0; }
.js [data-aparece] { opacity: 0; translate: 0 24px; transition: opacity .8s ease, translate .8s cubic-bezier(.66, 0, .34, 1); }
.js [data-aparece].visible { opacity: 1; translate: 0 0; }

/* ============ BARRA ============ */
.barra { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--blanco); border-radius: 0 0 var(--radio) var(--radio); transition: box-shadow .3s; }
.barra.fija { box-shadow: 0 6px 30px rgba(31, 42, 38, .08); }
.barra__in { width: min(var(--ancho), 100% - 2 * var(--gutter)); margin-inline: auto; height: var(--alto-barra); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 600 23px/1 var(--f-titulos); color: var(--tinta); letter-spacing: -.01em; }
.logo img { width: 30px; height: 30px; }
.barra__nav { display: flex; gap: 22px; font-size: 15px; color: var(--tinta); margin-right: auto; }
.barra__nav a { position: relative; }
.barra__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; scale: 0 1; transform-origin: left; transition: scale .3s; }
.barra__nav a:hover::after { scale: 1 1; }
.barra__acciones { display: flex; align-items: center; gap: 10px; }
.idioma { display: flex; gap: 2px; font-size: 13px; font-weight: 500; margin-right: 6px; }
.idioma button { padding: 6px 8px; border-radius: 8px; color: var(--texto); }
.idioma button[aria-pressed="true"] { background: var(--menta); color: var(--verde); }
.barra__menu { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: var(--menta); color: var(--verde); }
.menu-movil { display: grid; gap: 4px; padding: 8px var(--gutter) 24px; font-size: 20px; color: var(--tinta); }
.menu-movil a { padding: 10px 0; border-bottom: 1px solid var(--borde); }
.menu-movil[hidden] { display: none; }

/* ============ PORTADA ============ */
.portada { background: var(--blanco); border-radius: 0 0 var(--radio-banda) var(--radio-banda); padding: calc(var(--alto-barra) + 24px) 0 56px; }
.portada__fotos { display: grid; grid-template-columns: 793fr 387fr; gap: 20px; height: clamp(320px, 36vw, 515px); }
.portada__fotos .foto { height: 100%; }
.portada__texto { display: grid; grid-template-columns: 793fr 387fr; gap: 20px; margin-top: 40px; }
.portada__titulo { font-size: clamp(36px, 4.45vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -.01em; color: var(--verde); }
.portada__titulo span { display: block; }
.portada__intro { font-size: 18px; line-height: 1.3; font-weight: 300; margin-top: 28px; max-width: 26em; }
.portada__lado { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.puntos { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--texto); }
.puntos i { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); }
.puntos span { margin-left: 6px; }
.puntos--chico i { width: 8px; height: 8px; }
.valoracion__gente { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.caras { display: flex; }
.caras img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; border: 2px solid var(--blanco); margin-left: -6px; background: var(--menta); }
.caras img:first-child { margin-left: 0; }
.valoracion__gente p { font-size: 13px; line-height: 1.3; }
.estado { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--tinta); }
.estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #BDB6A8; }
.estado.abierto::before { background: var(--verde); box-shadow: 0 0 0 4px color-mix(in srgb, var(--verde) 18%, transparent); }
.portada .acciones { margin-top: 0; }

/* ============ LISTA DE OPCIONES DENTRO DE LA TARJETA MENTA (resultados y pasos) ============ */
/* El punto de DentArt marca la opción elegida; al lado de cada nombre va su dato. */
.dos--selector { margin-top: 40px; }
.selector { display: grid; gap: 2px; margin: -8px 0 0; }
.selector button { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; padding: 10px 0 10px 28px; text-align: left; color: var(--apagado); transition: color .3s; }
.selector button span { font-family: var(--f-titulos); font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.selector button small { flex: none; font-size: 15px; color: var(--texto); }
.selector button::before { content: ""; position: absolute; left: 2px; top: calc(10px + .55em); width: 12px; height: 12px; border-radius: 50%; background: var(--verde); scale: 0; transition: scale .35s cubic-bezier(.3, 1.4, .5, 1); font-size: clamp(24px, 2.3vw, 32px); translate: 0 -50%; }
.selector button[aria-selected="true"] { color: var(--tinta); }
.selector button[aria-selected="true"]::before { scale: 1; }
.selector button:hover:not([aria-selected="true"]) { color: var(--tinta); }
.selector button:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; border-radius: 8px; }

.tarjeta-menta { background: var(--menta); border-radius: var(--radio); }

/* ============ RESULTADOS ============ */
.resultados__texto { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px; min-height: 443px; }
.resultados__texto p { max-width: 26em; font-size: 17px; line-height: 1.4; color: var(--texto); transition: opacity .3s; }
.comparar { position: relative; overflow: hidden; border-radius: var(--radio); min-height: 443px; background: var(--menta); user-select: none; }
.comparar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparar__antes { clip-path: inset(0 calc(100% - var(--corte)) 0 0); }
.comparar__linea { position: absolute; top: 0; bottom: 0; left: var(--corte); width: 1px; background: rgba(255, 255, 255, .7); pointer-events: none; }
.comparar__mango { position: absolute; top: 50%; left: 0; translate: -50% -50%; width: 48px; height: 48px; border-radius: 50%; background: var(--blanco); color: var(--tinta); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.comparar__mango .icono { width: 16px; height: 16px; }
.comparar__rango { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.comparar__etq { position: absolute; top: 16px; padding: 6px 12px; border-radius: var(--radio-boton); background: rgba(255, 255, 255, .85); color: var(--tinta); font-size: 13px; pointer-events: none; }
.comparar__etq--antes { left: 16px; }
.comparar__etq--despues { right: 16px; }

/* ============ TRATAMIENTOS («¿Qué necesitas?») ============ */
.tratamientos__fijo { position: sticky; top: calc(var(--alto-barra) + 24px); }
.tratamientos__fijo .enlace { margin-top: 24px; }
.tratamientos__foto { aspect-ratio: 590 / 360; margin-top: 56px; }
.lista-check { display: grid; gap: 14px; margin-top: 56px; }
.lista-check li { display: flex; align-items: center; gap: 12px; }
.lista-check .icono { width: 18px; height: 18px; color: var(--tinta); }
.necesitas { display: grid; gap: 14px; }
.trato { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio-2); transition: box-shadow .3s, border-color .3s; }
.trato:hover { box-shadow: 0 6px 24px rgba(31, 42, 38, .06); }
.trato.abierto { border-color: color-mix(in srgb, var(--verde) 45%, transparent); box-shadow: 0 10px 34px rgba(31, 42, 38, .08); }
.trato__boton { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; width: 100%; text-align: left; padding: 20px 24px; }
.trato__boton h3 { font-size: 20px; line-height: 1.2; }
.trato__boton p { grid-column: 1; font-size: 15px; line-height: 1.35; max-width: 30em; }
.trato__desde { grid-row: 1; grid-column: 2; align-self: start; font-size: 14px; color: var(--verde); white-space: nowrap; }
.trato__desde b { font-size: 20px; font-weight: 600; }
.trato__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.66, 0, .34, 1); }
.trato.abierto .trato__panel { grid-template-rows: 1fr; }
.trato__panel > div { overflow: hidden; }
.trato__datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 24px; padding-top: 18px; border-top: 1px solid var(--borde); }
.trato__datos div { background: var(--fondo); border-radius: 12px; padding: 12px; }
.trato__datos dt { font-size: 13px; color: var(--texto); }
.trato__datos dd { font-size: 16px; color: var(--tinta); font-weight: 500; margin-top: 4px; }
.trato__cuotas { margin: 12px 24px 0; font-size: 14px; }
.trato__elige { margin: 18px 24px 0; display: grid; gap: 10px; }
.trato__elige p { font-size: 13px; color: var(--tinta); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 36px; padding: 0 14px; border-radius: var(--radio-boton); border: 1px solid var(--borde); font-size: 14px; color: var(--tinta); background: var(--blanco); transition: background .2s, border-color .2s; }
.chips button[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: var(--sobre-verde); }
.trato__wa { margin: 18px 24px 22px; width: calc(100% - 48px); }
.trato__wa .icono { width: 20px; height: 20px; }
.trato__nota { font-size: 13px; padding: 4px 4px 0; }
.comparar.falta::after { content: attr(data-falta); position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 12px; text-align: center; font: 600 12px/1.3 var(--f-texto); color: var(--verde); background: repeating-linear-gradient(45deg, var(--menta) 0 12px, var(--fondo) 12px 24px); pointer-events: none; }
.comparar.falta img { opacity: 0; }

/* ============ SOLUCIONES ============ */
.cuatro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.solucion { padding: 24px; display: flex; flex-direction: column; min-height: 300px; }
.solucion__arriba { display: flex; justify-content: space-between; align-items: flex-start; color: var(--tinta); margin-bottom: auto; }
.solucion__arriba .icono { width: 26px; height: 26px; stroke-width: 1.5; }
.solucion__arriba span { font-size: 13px; }
.solucion h3 { font-size: 22px; margin-top: 64px; }
.solucion p { font-size: 15px; line-height: 1.3; margin-top: 14px; }
.solucion .enlace { margin-top: 22px; }

/* ============ BANDAS (blanca y menta) ============ */
.banda { background: var(--blanco); border-radius: var(--radio-banda); padding-block: 60px; margin-block: 20px; }
.banda--menta { background: var(--menta); }

/* ============ ATENCIÓN ============ */
.atencion__foto { min-height: 443px; }
.urgencia { position: absolute; left: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 14px; background: var(--blanco); padding: 18px 22px 16px 14px; border-radius: 0 var(--radio) 0 0; color: var(--tinta); }
.urgencia .icono { width: 26px; height: 26px; stroke-width: 1.5; }
.urgencia small { display: block; font-size: 15px; color: var(--texto); }
.urgencia b { display: block; font-size: 20px; font-weight: 500; color: var(--verde); margin-top: 2px; }
.atencion__texto { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 6px 0 0 20px; }

/* ============ RESEÑAS ============ */
.resenas__arriba { display: grid; grid-template-columns: 387fr 793fr; gap: 20px; }
.resenas__izq { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-bottom: 6px; }
.cifra { font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -.04em; color: var(--verde); }
.cifra__txt { font-size: 14px; color: var(--tinta); margin-top: 10px; }
.resenas__izq .boton { margin-top: 40px; }
.resenas__grande .comillas { width: 34px; height: 34px; color: var(--verde); stroke-width: 1.5; }
.resenas__grande blockquote { font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; color: var(--verde); margin-top: 16px; max-width: 24em; }
.resenas__grande figcaption { margin-top: 40px; font-size: 13px; }
.resenas__grande figcaption b { display: block; font-size: 16px; font-weight: 500; color: var(--tinta); margin-bottom: 2px; }
.resenas__foto { width: min(420px, 100%); aspect-ratio: 420 / 315; margin-top: 24px; }
.resenas__fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 44px; background: var(--blanco); border-radius: var(--radio); padding: 8px; }
.resena { display: flex; flex-direction: column; gap: 18px; padding: 18px 16px; border-radius: 18px; border: 1px solid transparent; opacity: .45; transition: opacity .5s, background .5s, border-color .5s; cursor: pointer; }
.resena.activa { opacity: 1; background: var(--fondo); border-color: var(--borde); }
.resena__cuerpo { display: flex; gap: 14px; }
.resena__cuerpo .icono { width: 26px; height: 26px; color: var(--tinta); stroke-width: 1.5; }
.resena blockquote { font-size: 16px; line-height: 1.3; color: var(--tinta); }
.resena figcaption, .cita__resena figcaption, .pie__cita figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 13px; }
.resena figcaption img, .cita__resena figcaption img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--menta); }
.resena figcaption b, .cita__resena figcaption b, .pie__cita figcaption b { display: block; font-size: 16px; font-weight: 500; color: var(--tinta); }

/* ============ EQUIPO ============ */
.equipo { padding-bottom: 28px; }
.carrusel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), (100% - var(--ancho)) / 2); scroll-padding-inline: max(var(--gutter), (100% - var(--ancho)) / 2); }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel__lista { display: flex; gap: 20px; width: max-content; }
.doctor { position: relative; width: 320px; height: 480px; scroll-snap-align: start; border-radius: var(--radio); overflow: hidden; background: var(--verde); }
.doctor .foto { position: absolute; inset: 0; border-radius: 0; }
.doctor__datos { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; background: var(--blanco); border-radius: 18px; padding: 18px 20px; display: grid; gap: 4px; }
.doctor__datos b { font-size: 21px; font-weight: 500; color: var(--tinta); }
.doctor__datos span { font-size: 15px; }
.doctor__datos small { font-size: 13px; color: var(--verde); }
.carrusel__botones { display: flex; justify-content: flex-end; gap: 20px; margin-top: 24px; }
.redondo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--verde) 55%, transparent); background: color-mix(in srgb, var(--verde) 7%, var(--fondo)); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--blanco); }
.redondo .icono { width: 18px; height: 18px; }

/* ============ MISIÓN ============ */
.mision__texto { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 48px; }
.cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 560px; }
.mision__foto { display: grid; gap: 14px; justify-items: start; }
.mision__foto .foto { width: 100%; aspect-ratio: 590 / 440; }
.sello { display: inline-flex; align-items: center; gap: 8px; background: var(--menta); color: var(--verde); padding: 6px 14px; border-radius: var(--radio-boton); font-size: 14px; }
.sello .icono { width: 15px; height: 15px; fill: currentColor; }

/* ============ PROCESO ============ */
.paso { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px; min-height: 410px; }
.paso p { font-size: 17px; line-height: 1.4; max-width: 28em; }
.paso__foto { min-height: 410px; }

/* ============ CONSEJOS ============ */
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.consejo { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 8px; display: flex; flex-direction: column; }
.consejo .foto { aspect-ratio: 371 / 258; border-radius: var(--radio-2); }
.consejo__cuerpo { padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.meta { font-size: 14px; }
.meta b { font-weight: 500; color: var(--verde); margin-right: 6px; }
.consejo h3 { font-size: 22px; line-height: 1.2; }
.consejo p { font-size: 14px; line-height: 1.3; }
.consejo button.enlace { margin-top: auto; padding-top: 10px; font-size: 16px; color: var(--tinta); }
.consejo button[aria-expanded="true"] .icono { rotate: 90deg; }

/* ============ CITA ============ */
.cita { padding-block: 60px; }
.cita__verde { background: var(--verde); border-radius: var(--radio); padding: 28px 24px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; color: var(--sobre-verde); }
.cita__verde h2 { color: var(--sobre-verde); font-size: clamp(32px, 3.4vw, 48px); max-width: 9em; }
.cita__resena { display: flex; gap: 14px; }
.cita__resena > .icono { width: 30px; height: 30px; stroke-width: 1.5; flex: none; }
.cita__resena blockquote { font-size: 18px; line-height: 1.4; max-width: 26em; }
.cita__resena figcaption { margin-top: 18px; }
.cita__resena figcaption b { color: var(--sobre-verde); }
.formulario { background: var(--blanco); border-radius: var(--radio); padding: 28px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; align-content: start; }
.formulario .ancho { grid-column: 1 / -1; }
.formulario label { display: grid; gap: 8px; font-size: 13px; color: var(--tinta); }
.formulario input:not([type="checkbox"]), .formulario select { height: 48px; border: 1px solid var(--borde); border-radius: 10px; padding: 0 12px; background: var(--blanco); font-size: 15px; color: var(--tinta); width: 100%; }
.formulario input::placeholder { color: #A39D90; }
.formulario .check { display: flex; align-items: center; gap: 10px; }
.formulario .check input { width: 18px; height: 18px; accent-color: var(--verde); }
.formulario .boton { width: 100%; margin-top: 4px; }
.formulario__aviso { font-size: 14px; color: var(--verde); min-height: 1em; }

/* ============ PREGUNTAS ============ */
.dos--preguntas { grid-template-columns: 387fr 793fr; gap: 20px; }
.preguntas__izq { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.preguntas__contacto { display: grid; gap: 4px; font-size: 20px; font-weight: 600; color: var(--verde); }
.acordeon { background: var(--blanco); border-radius: var(--radio); padding: 4px 24px; }
.acordeon details { border-bottom: 1px solid var(--borde); }
.acordeon details:last-child { border-bottom: 0; }
.acordeon summary { list-style: none; display: grid; grid-template-columns: 12px 1fr 20px; gap: 18px; align-items: center; padding: 24px 0; font-size: 18px; color: var(--tinta); cursor: pointer; }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--verde); }
.acordeon summary::after { content: "+"; font-size: 22px; font-weight: 300; line-height: 1; text-align: right; transition: rotate .3s; }
.acordeon details[open] summary::after { rotate: 45deg; }
.acordeon details p { padding: 0 32px 24px 30px; font-size: 16px; line-height: 1.35; max-width: 38em; }

/* ============ CIERRE (las fotos se separan al bajar, como el banner de Jacques + Cie) ============ */
.cierre { text-align: center; padding-bottom: 0; overflow: hidden; }
.cierre .sub { margin-inline: auto; max-width: 24em; }
.cierre__fotos { display: grid; grid-template-columns: 590fr 285fr 285fr; gap: 20px; margin-top: 40px; height: clamp(260px, 30vw, 420px); }
.cierre__fotos .foto { height: 100%; translate: var(--x, 0) 0; }
.cierre__1 { transform-origin: right center; }

/* ============ PIE ============ */
.pie { background: var(--verde); color: var(--sobre-verde); border-radius: var(--radio-banda) var(--radio-banda) 0 0; padding: 60px 0 40px; position: relative; margin-top: -48px; z-index: 1; }
.pie a { transition: opacity .2s; }
.pie a:hover { opacity: .75; }
.pie__arriba { display: grid; grid-template-columns: 387fr 793fr; gap: 20px; }
.logo--claro { color: var(--sobre-verde); }
.pie address { font-style: normal; display: grid; gap: 4px; font-size: 14px; margin-top: 24px; }
.horario { display: grid; gap: 4px; margin-top: 22px; font-size: 13px; }
.horario div { display: grid; grid-template-columns: 68px 1fr; }
.horario div.hoy { font-weight: 600; }
.pie__cita blockquote { font-size: 24px; line-height: 1.3; font-weight: 500; max-width: 25em; }
.pie__cita figcaption { margin-top: 18px; gap: 14px; }
.pie__cita figcaption img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--verde-2); }
.pie__cita figcaption b { color: var(--sobre-verde); }
.firma { font: 400 44px/1 var(--f-firma); margin-left: 18px; opacity: .95; }
.pie__medio { display: grid; grid-template-columns: 387fr 251fr 251fr 251fr; gap: 20px; margin-top: 80px; }
.recordatorio h2 { color: var(--sobre-verde); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; }
.recordatorio p { font-size: 15px; margin-top: 18px; max-width: 22em; }
.recordatorio input { width: 100%; height: 48px; margin-top: 32px; border-radius: 10px; border: 0; padding: 0 14px; background: color-mix(in srgb, var(--sobre-verde) 14%, transparent); color: var(--sobre-verde); font-size: 15px; }
.recordatorio input::placeholder { color: color-mix(in srgb, var(--sobre-verde) 80%, transparent); }
.boton--pie { width: 100%; margin-top: 12px; background: var(--sobre-verde); color: var(--verde); border-color: var(--sobre-verde); }
.boton--pie:hover { background: var(--menta); }
.pie__col h3 { color: var(--sobre-verde); font-size: 18px; font-weight: 500; }
.pie__col ul { display: grid; gap: 12px; margin-top: 24px; font-size: 15px; }
.pie__contacto { display: grid; gap: 4px; margin-top: 40px; font-size: 17px; font-weight: 500; }
.redes { display: flex; gap: 12px; margin-top: 40px; }
.redes a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blanco); color: var(--verde); }
.redes .icono { width: 16px; height: 16px; }
.pie__abajo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 80px; font-size: 13px; }

/* WhatsApp flotante: solo en celular */
.wa-flotante { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; place-items: center; background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.wa-flotante .icono { width: 28px; height: 28px; }

/* ============ TABLETA ============ */
@media (max-width: 1100px) {
  .barra__nav { display: none; }
  .barra__menu { display: grid; }
  .barra__acciones { margin-left: auto; }
  .cuatro { grid-template-columns: repeat(2, 1fr); }
  .pie__medio { grid-template-columns: 1fr 1fr; }
}

/* ============ CELULAR ============ */
@media (max-width: 820px) {
  :root { --alto-barra: 64px; --radio-banda: 28px; }
  .barra__llamar, .barra__acciones > .boton:not(.barra__llamar) { display: none; }
  .wa-flotante { display: grid; }
  .portada { padding-bottom: 32px; }
  .portada__fotos { grid-template-columns: 1fr; height: auto; }
  .portada__grande { aspect-ratio: 1 / .9; }
  .portada__chica { display: none; }
  .portada__texto { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
  .portada__lado { display: contents; }
  .valoracion { order: -1; }
  .portada__titulo { font-size: clamp(30px, 6vw, 44px); }
  .portada__intro { margin-top: 18px; }
  .portada .acciones { order: 2; }
  .acciones .boton { flex: 1 1 100%; }
  .dos, .dos--preguntas, .resenas__arriba, .pie__arriba { grid-template-columns: 1fr; }
  .dos--selector { margin-top: 28px; }
  .selector button { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 8px; }
  .selector button span { font-size: 24px; }
  .selector button::before { font-size: 24px; top: calc(8px + .55em); }
  .resultados__texto, .paso { min-height: 0; padding: 24px 22px; gap: 24px; }
  .comparar { min-height: 0; aspect-ratio: 1 / .8; }
  .tratamientos__fijo { position: static; }
  .tratamientos__foto, .lista-check { margin-top: 32px; }
  .trato__boton { padding: 18px; }
  .trato__datos, .trato__cuotas, .trato__elige { margin-inline: 18px; }
  .trato__wa { margin-inline: 18px; width: calc(100% - 36px); }
  .cabeza { flex-direction: column; align-items: flex-start; }
  .cuatro, .tres { grid-template-columns: 1fr; }
  .solucion { min-height: 0; }
  .solucion h3 { margin-top: 32px; }
  .atencion__foto { min-height: 0; aspect-ratio: 1 / .85; }
  .atencion__texto { padding: 12px 0 0; }
  .resenas__fila { grid-template-columns: 1fr; }
  .resena { opacity: 1; background: var(--fondo); border-color: var(--borde); }
  .doctor { width: 280px; height: 420px; }
  .cifra { font-size: 52px; }
  .paso, .paso__foto { min-height: 0; }
  .paso__foto { aspect-ratio: 1 / .8; }
  .formulario { grid-template-columns: 1fr; padding: 22px 18px; }
  .cierre__fotos { grid-template-columns: 1fr 1fr; height: auto; }
  .cierre__1 { grid-column: 1 / -1; aspect-ratio: 1 / .7; }
  .cierre__2, .cierre__3 { aspect-ratio: 3 / 4; }
  .pie__medio { grid-template-columns: 1fr; margin-top: 56px; }
  .firma { display: none; }
  .pie__cita blockquote { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .foto img { scale: 1 !important; translate: none !important; }
  .js [data-titulo] > .linea, .js [data-aparece] { translate: none; opacity: 1; }
}
