/* Veterinaria Doctora Pet · ladoctorapet.cl (hecha por Storytellers)
   Cálida y tierna: verde petróleo, salvia, coral y crema. */

:root {
  --petroleo: #0F4C4A;
  --petroleo-oscuro: #0A3533;
  --petroleo-medio: #17625F;
  --salvia: #A8C5B5;
  --salvia-suave: #E4EFE8;
  --coral: #FF8A65;
  --coral-claro: #FFB59C;
  --coral-texto: #B84A2B;
  --durazno: #FFEFE6;
  --crema: #FFF8F0;
  --blanco: #FFFFFF;
  --tinta: #17302E;
  --gris: #4F5F5D;
  --linea: #EADFD2;
  --estrella: #F2A900;
  --rojo: #B3261E;
  --rojo-suave: #FDE6E2;
  --ambar: #8A5300;
  --ambar-suave: #FFF0D2;
  --verde: #1F6B4A;
  --verde-suave: #DDF1E5;
  --verde-vivo: #3CCB7F;

  --titulos: "Fraunces", Georgia, "Times New Roman", serif;
  --texto: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radio: 28px;
  --sombra: 0 22px 44px -22px rgba(10, 53, 51, .38);
  --cabecera: 76px;
  --foco: var(--petroleo);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--crema); color: var(--tinta); font-family: var(--texto); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.envoltura { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.seccion { padding-block: clamp(72px, 10vw, 128px); }

.saltar { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--petroleo-oscuro); color: var(--blanco); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }
.portada, .pausa__caja, .franja, .horario, .resultado, .cierre__caja, .pie { --foco: var(--coral-claro); }

/* ---------- Textos comunes ---------- */
.ceja { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-texto); margin-bottom: 14px; }
.ceja::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.ceja--clara { color: var(--coral-claro); }
.titulo { font-family: var(--titulos); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: clamp(2.05rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -.015em; color: var(--petroleo-oscuro); text-wrap: balance; }
.titulo em { font-style: italic; font-weight: 500; color: var(--coral-texto); }
.titulo--claro { color: var(--blanco); }
.titulo--claro em { color: var(--coral-claro); }
.bajada { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--gris); margin-top: 18px; max-width: 58ch; }
.bajada--clara { color: rgba(255, 255, 255, .86); }
.encabezado { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.boton svg { width: 20px; height: 20px; fill: currentColor; }
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0) scale(.98); }
.boton--coral { background: var(--coral); color: var(--petroleo-oscuro); }
.boton--coral:hover { background: var(--coral-claro); box-shadow: 0 12px 24px -12px rgba(255, 138, 101, .8); }
.boton--teal { background: var(--petroleo); color: var(--blanco); }
.boton--teal:hover { background: var(--petroleo-medio); }
.boton--rojo { background: var(--rojo); color: var(--blanco); }
.boton--rojo:hover { background: #8F1D17; }
.boton--borde { border-color: var(--petroleo); color: var(--petroleo); background: transparent; }
.boton--borde:hover { background: var(--petroleo); color: var(--blanco); }
.boton--borde-claro { border-color: rgba(255, 255, 255, .75); color: var(--blanco); }
.boton--borde-claro:hover { background: var(--blanco); color: var(--petroleo-oscuro); border-color: var(--blanco); }
.boton--chico { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.boton--ancho { width: 100%; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo__sello { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--coral); color: var(--petroleo-oscuro); flex: none; }
.logo__sello svg { width: 28px; height: 28px; fill: currentColor; }
.logo__texto { display: flex; flex-direction: column; }
.logo__nombre { font-family: var(--titulos); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.32rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.logo__linea { font-weight: 700; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--coral-claro); margin-top: 4px; white-space: nowrap; }
@media (max-width: 479px) {
  .logo { gap: 10px; }
  .logo__sello { width: 40px; height: 40px; }
  .logo__sello svg { width: 24px; height: 24px; }
  .logo__nombre { font-size: 1.16rem; }
  .logo__linea { font-size: .58rem; letter-spacing: .16em; }
  .boton-menu { padding: 10px 14px; }
}
.logo--pie .logo__nombre { color: var(--blanco); }

/* ---------- Cabecera ---------- */
.cabecera { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--blanco); transition: background-color .3s, box-shadow .3s, color .3s; }
.cabecera.solida { background: rgba(255, 248, 240, .95); color: var(--petroleo-oscuro); box-shadow: 0 6px 24px -14px rgba(10, 53, 51, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); --foco: var(--petroleo); }
.cabecera.solida .logo__linea { color: var(--coral-texto); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--cabecera); }
.nav { display: none; gap: 26px; }
.nav a { font-weight: 600; font-size: .98rem; text-decoration: none; color: inherit; padding: 6px 0; background: linear-gradient(var(--coral), var(--coral)) left bottom / 0 2px no-repeat; transition: background-size .25s; }
.nav a:hover { background-size: 100% 2px; }
.cabecera__acciones { display: flex; align-items: center; gap: 14px; }
.cabecera__fono { display: none; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: inherit; }
.cabecera__fono svg { width: 18px; height: 18px; }
.cabecera__acciones .boton--chico { display: none; }
.boton-menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--blanco); font-weight: 600; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.boton-menu svg { width: 20px; height: 20px; }
.cabecera.solida .boton-menu, .boton-menu--cerrar { background: var(--petroleo); border-color: var(--petroleo); color: var(--blanco); }

@media (min-width: 640px) { .cabecera__acciones .boton--chico { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .boton-menu { display: none; }
}
@media (min-width: 1280px) { .cabecera__fono { display: inline-flex; } }

/* ---------- Menú celular ---------- */
.menu { position: fixed; inset: 0; z-index: 100; background: var(--crema); color: var(--petroleo-oscuro); display: flex; flex-direction: column; padding: 0 clamp(20px, 5vw, 48px) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; opacity: 0; transform: translateY(-12px); transition: opacity .35s, transform .35s; }
.menu.abierto { opacity: 1; transform: none; }
.menu .logo__linea { color: var(--coral-texto); }
.menu__arriba { display: flex; align-items: center; justify-content: space-between; height: var(--cabecera); flex: none; }
.menu__links { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }
.menu__links a { font-family: var(--titulos); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: clamp(1.8rem, 8vw, 2.6rem); line-height: 1.18; color: var(--petroleo-oscuro); text-decoration: none; padding: 4px 0; }
.menu__links a:hover { color: var(--coral-texto); }
.menu__abajo { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }

/* ---------- Fondos con video ---------- */
.fondo { position: absolute; inset: 0; overflow: hidden; background: var(--petroleo-oscuro); }
.fondo__foto, .fondo__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fondo__video { opacity: 0; transition: opacity .9s ease; }
.fondo__video.listo { opacity: 1; }
.fondo__velo { position: absolute; inset: 0; background: rgba(6, 34, 33, .52); }
.video-pausa { position: absolute; z-index: 3; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; padding: 10px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(6, 34, 33, .45); color: var(--blanco); font-weight: 600; font-size: .88rem; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-pausa svg { width: 16px; height: 16px; fill: currentColor; }
.video-pausa:hover { background: rgba(6, 34, 33, .7); }
@media (max-width: 639px) {
  .video-pausa { padding: 10px; }
  .video-pausa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Portada ---------- */
.portada { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; color: var(--blanco); overflow: hidden; isolation: isolate; }
.portada .fondo { z-index: -1; }
.portada__contenido { position: relative; display: grid; gap: 26px; padding-top: calc(var(--cabecera) + 48px); padding-bottom: clamp(84px, 11vh, 120px); }
.portada__texto { max-width: 720px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: var(--blanco); font-weight: 600; font-size: .9rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chip svg { width: 18px; height: 18px; fill: var(--coral-claro); }
.portada__titulo { font-family: var(--titulos); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1.02; letter-spacing: -.025em; margin-top: 20px; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.portada__titulo em { font-style: italic; font-weight: 500; color: var(--coral-claro); }
.portada__bajada { margin-top: 20px; font-size: clamp(1.06rem, 1.5vw, 1.24rem); color: rgba(255, 255, 255, .92); max-width: 48ch; }
.portada__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.estado { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 600; font-size: .95rem; color: var(--blanco); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.estado__punto { width: 10px; height: 10px; border-radius: 50%; background: var(--verde-vivo); box-shadow: 0 0 0 0 rgba(60, 203, 127, .5); animation: latido 2s infinite; }
.estado.cerrado .estado__punto { background: var(--coral); animation: none; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(60, 203, 127, .6); } 70% { box-shadow: 0 0 0 10px rgba(60, 203, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 203, 127, 0); } }

.nota-google { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 16px; border-radius: 20px; background: var(--blanco); color: var(--petroleo-oscuro); box-shadow: var(--sombra); text-decoration: none; justify-self: start; transition: transform .2s; --foco: var(--petroleo); }
.nota-google:hover { transform: translateY(-3px); }
.nota-google__num { font-family: var(--titulos); font-weight: 600; font-size: 2.1rem; line-height: 1; }
.nota-google__detalle { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; font-weight: 600; color: var(--gris); }
.estrellas { display: inline-flex; gap: 2px; color: var(--estrella); }
.estrellas svg { width: 16px; height: 16px; fill: currentColor; }
.estrellas .media { opacity: .3; }

@media (max-width: 639px) {
  .portada .chip { display: none; }
  .portada__contenido { gap: 20px; padding-top: calc(var(--cabecera) + 32px); padding-bottom: 80px; }
  .portada__titulo { margin-top: 0; font-size: clamp(2.3rem, 10.6vw, 2.9rem); }
  .portada__bajada { margin-top: 14px; font-size: 1rem; }
  .portada__botones { flex-wrap: nowrap; margin-top: 22px; }
  .portada__botones .boton--coral { flex: 1; padding-inline: 16px; }
  .boton--llamar { width: 52px; padding: 0; flex: none; }
  .boton--llamar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .estado { margin-top: 16px; }
}
@media (min-width: 960px) {
  .portada { min-height: max(680px, min(100svh, 1000px)); }
  .portada__contenido { grid-template-columns: 1fr auto; align-items: end; padding-bottom: clamp(64px, 9vh, 104px); }
  .nota-google { justify-self: end; margin-bottom: 8px; }
}

/* Entrada de la portada */
.entra { animation: subir .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Franja ---------- */
.franja { background: var(--petroleo); color: var(--crema); overflow: hidden; padding: 18px 0; }
.franja__pista { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; animation: correr 42s linear infinite; padding-left: 28px; }
.franja__pista span { font-family: var(--titulos); font-weight: 500; font-style: italic; font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: .005em; }
.franja__pista svg { width: 26px; height: 26px; fill: var(--coral); }
@keyframes correr { to { transform: translateX(-50%); } }

/* ---------- Somos ---------- */
.somos__grid { display: grid; gap: 28px; }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.cifra { background: var(--blanco); border: 1.5px solid var(--linea); border-radius: 22px; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.cifra__num { font-family: var(--titulos); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; color: var(--petroleo); display: inline-flex; align-items: center; gap: 4px; }
.cifra__num svg { width: .58em; height: .58em; fill: var(--estrella); }
.cifra__icono { display: grid; place-items: center; width: clamp(40px, 6vw, 52px); height: clamp(40px, 6vw, 52px); border-radius: 50%; background: var(--durazno); color: var(--coral-texto); }
.cifra__icono svg { width: 55%; height: 55%; }
.cifra__txt { font-size: .86rem; line-height: 1.35; color: var(--gris); font-weight: 500; }
@media (min-width: 960px) {
  .somos__grid { grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: start; }
  .somos__derecha .bajada { margin-top: 38px; }
  .cifra { padding: 24px 22px; }
  .cifra__txt { font-size: .95rem; }
}

/* ---------- Servicios ---------- */
.servicios { background: var(--blanco); }
.tarjetas { display: grid; gap: 22px; }
.tarjeta { background: var(--crema); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.tarjeta__foto { aspect-ratio: 3 / 2; overflow: hidden; background: var(--salvia-suave); }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tarjeta:hover .tarjeta__foto img { transform: scale(1.04); }
.tarjeta__cuerpo { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tarjeta h3 { font-family: var(--titulos); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.5rem; line-height: 1.12; color: var(--petroleo-oscuro); }
.tarjeta p { color: var(--gris); }
.tarjeta__link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--petroleo); text-decoration: none; align-self: flex-start; }
.tarjeta__link svg { width: 18px; height: 18px; transition: transform .2s; }
.tarjeta__link:hover svg { transform: translateX(4px); }
.tarjeta__link:hover { color: var(--coral-texto); }
@media (min-width: 640px) { .tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tarjetas { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

/* ---------- ¿Es urgencia? ---------- */
.urgencia { background: var(--durazno); }
.guia { display: grid; gap: 20px; align-items: start; }
.guia__sintomas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sintoma { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 104px; padding: 16px; border-radius: 20px; border: 2px solid transparent; background: var(--blanco); text-align: left; cursor: pointer; touch-action: manipulation; box-shadow: 0 10px 24px -20px rgba(10, 53, 51, .5); transition: border-color .2s, background-color .2s, color .2s, transform .2s; }
.sintoma:hover { border-color: var(--coral); transform: translateY(-2px); }
.sintoma[aria-pressed="true"] { background: var(--petroleo); border-color: var(--petroleo); color: var(--blanco); transform: none; }
.sintoma__nombre { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.nivel { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; line-height: 1.3; white-space: nowrap; }
.nivel svg { width: 15px; height: 15px; }
.nivel--urgente { background: var(--rojo-suave); color: var(--rojo); }
.nivel--depende { background: var(--ambar-suave); color: var(--ambar); }
.nivel--pronto { background: var(--verde-suave); color: var(--verde); }

.guia__panel { background: var(--blanco); border-radius: var(--radio); padding: clamp(24px, 4vw, 36px); box-shadow: var(--sombra); scroll-margin-top: calc(var(--cabecera) + 16px); }
.respuesta { display: grid; gap: 12px; justify-items: start; }
.respuesta--inicio .respuesta__titulo { color: var(--petroleo-oscuro); }
.respuesta__titulo { font-family: var(--titulos); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.12; color: var(--petroleo-oscuro); }
.respuesta p { color: var(--gris); }
.respuesta .respuesta__titulo { color: var(--petroleo-oscuro); }
.respuesta .nivel { font-size: .8rem; padding: 6px 12px; }
.respuesta__hacer { background: var(--crema); border-radius: 16px; padding: 14px 16px; }
.respuesta__hacer strong { color: var(--petroleo-oscuro); }
.respuesta .boton { margin-top: 6px; }
.respuesta.aparece { animation: subir .45s cubic-bezier(.2, .7, .2, 1) both; }
.leyenda { display: grid; gap: 10px; margin-top: 8px; }
.leyenda li { display: flex; align-items: center; gap: 12px; color: var(--gris); font-size: .98rem; }
.leyenda .nivel { min-width: 92px; justify-content: center; }
.guia__nota { margin-top: 24px; font-size: .92rem; color: var(--gris); max-width: 70ch; }
@media (min-width: 960px) {
  .guia { grid-template-columns: 1.05fr .95fr; gap: 28px; }
  .guia__sintomas { gap: 14px; }
  .sintoma { min-height: 118px; padding: 20px; }
  .sintoma__nombre { font-size: 1.06rem; }
  .guia__panel { position: sticky; top: calc(var(--cabecera) + 24px); min-height: 380px; }
}

/* ---------- Video del centro ---------- */
.pausa { background: var(--crema); padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px) 0; }
.pausa__caja { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(540px, 82svh, 780px); border-radius: clamp(24px, 3vw, 40px); overflow: hidden; color: var(--blanco); }
.pausa .fondo { z-index: -1; }
.pausa .fondo__velo { background: rgba(6, 34, 33, .5); }
.pausa__texto { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-block: 72px; }
.pausa__titulo { font-family: var(--titulos); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: clamp(2.5rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .22); }
.pausa__titulo em { font-style: italic; font-weight: 500; color: var(--coral-claro); }
.pausa__bajada { font-size: clamp(1.06rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .92); max-width: 46ch; }

/* ---------- Primer año ---------- */
.primer { background: var(--crema); }
.primer__grid { display: grid; gap: 40px; }
.pestanas { display: inline-flex; gap: 4px; padding: 5px; margin-top: 28px; border-radius: 999px; background: var(--salvia-suave); }
.pestana { min-height: 46px; padding: 10px 24px; border: 0; border-radius: 999px; background: transparent; color: var(--petroleo-oscuro); font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.pestana:hover { background: rgba(15, 76, 74, .1); }
.pestana[aria-selected="true"] { background: var(--petroleo); color: var(--blanco); }
.primer__intro > .boton { margin-top: 24px; display: flex; width: fit-content; }
.primer__nota { margin-top: 18px; font-size: .9rem; color: var(--gris); max-width: 44ch; }
.linea { position: relative; padding-left: 40px; }
.linea::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 30px; width: 2px; background: repeating-linear-gradient(to bottom, var(--salvia) 0 8px, transparent 8px 14px); }
.linea.aparece { animation: subir .5s cubic-bezier(.2, .7, .2, 1) both; }
.hito { position: relative; padding-bottom: 30px; }
.hito:last-child { padding-bottom: 0; }
.hito::before { content: ""; position: absolute; left: -40px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--crema); border: 3px solid var(--coral); box-sizing: border-box; }
.hito--final::before { background: var(--coral); box-shadow: 0 0 0 6px rgba(255, 138, 101, .22); }
.hito__cuando { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--petroleo); background: var(--salvia-suave); padding: 4px 12px; border-radius: 999px; }
.hito h3 { font-family: var(--titulos); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.4rem; line-height: 1.2; color: var(--petroleo-oscuro); margin-top: 10px; }
.hito p { color: var(--gris); margin-top: 4px; max-width: 52ch; }
@media (min-width: 960px) {
  .primer__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .primer__intro { position: sticky; top: calc(var(--cabecera) + 40px); }
  .linea { background: var(--blanco); border-radius: var(--radio); padding: 40px 40px 40px 84px; box-shadow: var(--sombra); }
  .linea::before { left: 57px; top: 50px; bottom: 70px; }
  .hito::before { left: -44px; }
}

/* ---------- Edad en años humanos ---------- */
.edad { background: var(--salvia-suave); }
.edad__grid { display: grid; gap: 36px; align-items: start; }
.edad__foto { display: none; }
.calculadora { background: var(--blanco); border-radius: 32px; padding: 10px; box-shadow: var(--sombra); display: grid; gap: 10px; }
.calculadora__campos { padding: clamp(16px, 3vw, 28px); display: grid; gap: 22px; align-content: start; }
.calculadora legend, .calculadora label[for] { font-weight: 700; font-size: .98rem; color: var(--petroleo-oscuro); padding: 0; margin-bottom: 8px; display: block; }
.calculadora select { width: 100%; }
.calculadora .campo--doble { grid-template-columns: 1fr 1fr; gap: 14px; }
.calculadora .campo--doble label { margin-bottom: 0; }
[data-calc-tamano] .opciones span { flex-direction: column; align-items: flex-start; justify-content: center; border-radius: 16px; line-height: 1.25; padding: 10px 16px; }
.opciones small { font-weight: 500; font-size: .78rem; color: var(--gris); }
.opciones input:checked + span small { color: rgba(255, 255, 255, .82); }
.resultado { background: var(--petroleo); color: var(--blanco); border-radius: 24px; padding: clamp(24px, 4vw, 36px); display: grid; gap: 10px; justify-items: start; align-content: center; }
.resultado__antes { color: rgba(255, 255, 255, .85); font-weight: 600; }
.resultado__num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.resultado__num output { font-family: var(--titulos); font-weight: 600; font-size: clamp(4.2rem, 10vw, 6.2rem); line-height: .95; letter-spacing: -.03em; color: var(--coral-claro); font-variant-numeric: tabular-nums; }
.resultado__num span { font-family: var(--titulos); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.resultado__etapa { display: inline-flex; padding: 5px 14px; border-radius: 999px; background: var(--coral); color: var(--petroleo-oscuro); font-weight: 700; font-size: .88rem; }
.resultado__consejo { color: rgba(255, 255, 255, .88); max-width: 40ch; }
.resultado .boton { margin-top: 10px; white-space: nowrap; }
@media (min-width: 720px) { .calculadora { grid-template-columns: 1.05fr .95fr; } }
@media (min-width: 960px) {
  .edad__grid { grid-template-columns: .6fr 1.4fr; gap: 48px; }
  .edad__foto { display: block; margin-top: 36px; max-width: 360px; }
  .edad__foto img { border-radius: var(--radio); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
}

/* ---------- Horario ---------- */
.horario { background: var(--petroleo); color: var(--blanco); }
.horario__grid { display: grid; gap: 40px; align-items: center; }
.horario__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dias { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radio); padding: 10px; }
.dias li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 16px; font-size: 1.05rem; }
.dias li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.dias__dia { font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.dias__hora { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .9); }
.dias li.hoy { background: var(--coral); color: var(--petroleo-oscuro); border-top-color: transparent; }
.dias li.hoy + li { border-top-color: transparent; }
.dias li.hoy .dias__hora { color: var(--petroleo-oscuro); font-weight: 700; }
.dias__hoy { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--petroleo-oscuro); color: var(--coral-claro); padding: 3px 8px; border-radius: 999px; }
@media (min-width: 960px) { .horario__grid { grid-template-columns: 1fr .85fr; gap: 72px; } }

/* ---------- Opiniones ---------- */
.opiniones__caja { display: grid; gap: 28px; align-items: center; }
.opiniones__nota { background: var(--coral); border-radius: 32px; padding: clamp(32px, 5vw, 56px) 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.opiniones__num { font-family: var(--titulos); font-weight: 600; font-size: clamp(4.5rem, 10vw, 7rem); line-height: .9; color: var(--petroleo-oscuro); letter-spacing: -.03em; }
.estrellas--grandes { color: var(--petroleo-oscuro); }
.estrellas--grandes svg { width: 30px; height: 30px; }
.estrellas--grandes .media { opacity: .25; }
.opiniones__total { font-weight: 700; color: var(--petroleo-oscuro); }
.temas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.temas li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 16px; border-radius: 999px; border: 1.5px solid var(--petroleo); font-weight: 600; color: var(--petroleo-oscuro); background: var(--blanco); }
.temas li span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--salvia-suave); font-size: .85rem; font-weight: 700; }
.temas__nota { margin: 12px 0 28px; font-size: .9rem; color: var(--gris); }
@media (min-width: 900px) { .opiniones__caja { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* ---------- Cómo llegar ---------- */
.visitanos { background: var(--blanco); }
.visitanos__grid { display: grid; gap: 32px; }
.datos { display: grid; gap: 16px; margin: 28px 0 30px; }
.datos li { display: flex; gap: 14px; align-items: flex-start; }
.datos svg { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--durazno); color: var(--coral-texto); flex: none; }
.datos span { padding-top: 8px; }
.datos a { font-weight: 600; color: var(--petroleo); }
.mapa { position: relative; border-radius: var(--radio); overflow: hidden; background: var(--salvia-suave); min-height: 360px; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa__cargando { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gris); font-weight: 600; }
@media (min-width: 960px) {
  .visitanos__grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
  .mapa { min-height: 460px; }
}

/* ---------- Agenda ---------- */
.agenda { background: var(--salvia-suave); }
.agenda__grid { display: grid; gap: 32px; align-items: start; }
.agenda__urgente { display: flex; gap: 12px; align-items: center; margin-top: 24px; font-weight: 600; color: var(--petroleo-oscuro); }
.agenda__urgente svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--rojo); color: var(--blanco); }
.agenda__urgente a { color: var(--petroleo-oscuro); }
.formulario { background: var(--blanco); border-radius: 32px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--sombra); display: grid; gap: 20px; }
.campo { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.campo label, .campo legend, .campo--opciones legend { font-weight: 700; font-size: .98rem; color: var(--petroleo-oscuro); padding: 0; }
.campo--opciones { border: 0; margin: 0; padding: 0; min-width: 0; }
.campo--opciones legend { margin-bottom: 8px; }
.opcional { font-weight: 500; color: var(--gris); }
.formulario input[type="text"], .formulario input[type="date"], .formulario select, .calculadora select { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--linea); border-radius: 14px; background: #FFFCF8; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.formulario select, .calculadora select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230A3533' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; cursor: pointer; }
.formulario input:focus, .formulario select:focus, .calculadora select:focus { outline: none; border-color: var(--petroleo); box-shadow: 0 0 0 4px rgba(15, 76, 74, .16); }
.formulario [aria-invalid="true"] { border-color: var(--rojo); }
.opciones { display: flex; flex-wrap: wrap; gap: 10px; }
.opciones label { position: relative; cursor: pointer; }
.opciones input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opciones span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border: 2px solid var(--linea); border-radius: 999px; font-weight: 600; background: #FFFCF8; transition: background-color .2s, border-color .2s, color .2s; }
.opciones label:hover span { border-color: var(--petroleo); }
.opciones input:checked + span { background: var(--petroleo); border-color: var(--petroleo); color: var(--blanco); }
.opciones input:focus-visible + span { outline: 3px solid var(--petroleo); outline-offset: 3px; }
.opciones input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.opciones label:has(input:disabled) { cursor: not-allowed; }
.opciones label:has(input:disabled):hover span { border-color: var(--linea); }
.con-error .opciones span { border-color: var(--rojo); }
.campo__error { color: var(--rojo); font-size: .9rem; font-weight: 600; }
.campo__error:empty { display: none; }
.campo__ayuda { font-size: .88rem; color: var(--gris); margin-top: 8px; }
.campo--doble { display: grid; gap: 20px; }
.campo--doble > div { display: grid; gap: 8px; align-content: start; }
.formulario__nota { font-size: .88rem; color: var(--gris); text-align: center; }
@media (min-width: 520px) { .campo--doble { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .agenda__grid { grid-template-columns: .85fr 1.15fr; gap: 72px; } .agenda__texto { position: sticky; top: calc(var(--cabecera) + 40px); } }

/* ---------- Preguntas ---------- */
.preguntas { background: var(--blanco); }
.preguntas__grid { display: grid; gap: 28px; }
.acordeon details { border-bottom: 1.5px solid var(--linea); }
.acordeon details:first-child { border-top: 1.5px solid var(--linea); }
.acordeon summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--titulos); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: clamp(1.14rem, 1.8vw, 1.32rem); line-height: 1.25; color: var(--petroleo-oscuro); }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary svg { width: 26px; height: 26px; color: var(--coral-texto); transition: transform .3s; }
.acordeon details[open] summary svg { transform: rotate(45deg); }
.acordeon details p { padding: 0 40px 22px 0; color: var(--gris); }
@media (min-width: 960px) { .preguntas__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* ---------- Cierre ---------- */
.cierre { background: var(--crema); }
.cierre__caja { display: grid; border-radius: 36px; overflow: hidden; background: var(--petroleo); }
.cierre__texto { padding: clamp(32px, 6vw, 72px); color: var(--blanco); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cierre__titulo { font-family: var(--titulos); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.02em; color: var(--blanco); text-wrap: balance; }
.cierre__titulo em { font-style: italic; font-weight: 500; color: var(--coral-claro); }
.cierre__texto p { font-size: 1.15rem; color: rgba(255, 255, 255, .88); }
.cierre__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.cierre__foto { aspect-ratio: 3 / 2; }
.cierre__foto img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .cierre__caja { grid-template-columns: 1fr 1fr; }
  .cierre__foto { aspect-ratio: auto; min-height: 480px; }
}

/* ---------- Pie ---------- */
.pie { background: var(--petroleo-oscuro); color: rgba(255, 255, 255, .84); padding: 64px 0 calc(100px + env(safe-area-inset-bottom)); }
.pie__grid { display: grid; gap: 32px; }
.pie__titulo { font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-claro); margin-bottom: 10px; }
.pie__texto { line-height: 1.7; }
.pie .logo + .pie__texto { margin-top: 16px; font-family: var(--titulos); font-style: italic; font-size: 1.1rem; }
.pie a { color: var(--blanco); text-underline-offset: 3px; }
.pie__final { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; color: rgba(255, 255, 255, .7); }
@media (min-width: 720px) { .pie__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .pie { padding-bottom: 48px; } .pie__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; } }

/* ---------- Botón fijo (celular) ---------- */
.flotante { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 10px; transform: translateY(150%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.flotante.visible { transform: none; }
.flotante .boton { flex: 1; box-shadow: var(--sombra); }
.flotante__fono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--petroleo); color: var(--blanco); flex: none; box-shadow: var(--sombra); }
.flotante__fono svg { width: 22px; height: 22px; }
@media (min-width: 1080px) { .flotante { display: none; } }

/* ---------- Aparecer al bajar ---------- */
.js .revelar { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .revelar.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entra, .respuesta.aparece, .linea.aparece { animation: none; }
  .js .revelar { opacity: 1; transform: none; transition: none; }
  .franja__pista { animation: none; }
  .estado__punto { animation: none; }
  .fondo__video { display: none; }
  .boton, .tarjeta, .tarjeta__foto img, .nota-google, .menu, .flotante, .sintoma { transition: none; }
}
