/* =========================================================
   Laboratorio Clínico Pérez Molina — estilos
   Colores tomados del logo: verde azulado + fucsia
   ========================================================= */
:root {
  --teal: #167784;
  --teal-600: #115f6a;
  --teal-800: #0f4e57;
  --teal-900: #0a353c;
  --teal-50: #e9f6f7;
  --teal-100: #d3eef1;
  --rose: #c42b4c;
  --rose-600: #a8233f;
  --rose-50: #fdecf0;
  --ink: #0c2328;
  --text: #2b4248;
  --muted: #5d7379;
  --bg: #f7fbfb;
  --card: #ffffff;
  --line: #e1eced;
  --wa: #25d366;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(12, 35, 40, .06);
  --shadow: 0 12px 32px -12px rgba(12, 35, 40, .18);
  --shadow-lg: 0 30px 60px -20px rgba(12, 35, 40, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Nada debe empujar la página hacia los lados (en el celular se movía de lado a lado).
   «clip» no crea un contenedor de scroll, así que el encabezado y el formulario
   siguen siendo «sticky». Navegadores viejos se quedan con el overflow-x: hidden de arriba. */
@supports (overflow: clip) {
  html, body, main { overflow-x: clip; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }

.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  will-change: transform;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(29, 135, 150, .8); }
.btn-primary:hover { background: var(--teal-600); box-shadow: 0 16px 30px -12px rgba(29, 135, 150, .9); }
.btn-rose { background: var(--rose); color: #fff; box-shadow: 0 10px 24px -12px rgba(216, 56, 90, .9); }
.btn-rose:hover { background: var(--rose-600); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--teal-800); border: 1.5px solid var(--teal-100); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--teal); background: #fff; }
.btn-white { background: #fff; color: var(--teal-800); }
.btn-white:hover { box-shadow: 0 16px 30px -10px rgba(0,0,0,.35); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 1.08rem; }
.muted { color: var(--muted); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: linear-gradient(135deg, #fff, var(--teal-50));
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
/* Seguro: si el JavaScript falla, la pantalla de carga se va sola a los 4 segundos */
.loader { animation: loaderOut .5s ease 4s forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.loader-flask { position: relative; width: 84px; height: 84px; }
.loader-flask svg { width: 100%; height: 100%; }
.flask-outline { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flask-liquid { fill: var(--rose); opacity: .9; transform-origin: 50% 100%; animation: liquid 1.4s var(--ease) infinite alternate; }
.bubble { position: absolute; bottom: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); opacity: 0; animation: bubble 1.6s ease-in infinite; }
.b1 { left: 36px; } .b2 { left: 44px; animation-delay: .5s; width: 5px; height: 5px; } .b3 { left: 40px; animation-delay: 1s; }
@keyframes liquid { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-70px); opacity: 0; } }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  background: linear-gradient(90deg, var(--teal), var(--rose));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Aviso superior ---------- */
.announce {
  background: var(--teal-900); color: #dff3f5; font-size: .88rem; font-weight: 500;
  display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 16px; text-align: center;
}
.announce a:hover { color: #fff; text-decoration: underline; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(216,56,90,.7); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(216,56,90,0); } 100% { box-shadow: 0 0 0 0 rgba(216,56,90,0); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.scrolled { background: rgba(255,255,255,.9); border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 56px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: scale(1.03); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  position: relative; padding: 8px 12px; font-weight: 600; font-size: .93rem; color: var(--text); border-radius: 10px; transition: color .2s;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--rose); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav > a:not(.btn):hover, .nav > a.active { color: var(--teal-800); }
.nav > a:not(.btn):hover::after, .nav > a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-left: 10px; padding: .7em 1.2em; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--teal-50); border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--teal-800); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(80px, 9vw, 120px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 520px; height: 520px; background: #bfe7ec; top: -160px; right: -120px; }
.blob-2 { width: 380px; height: 380px; background: #fbd3dc; bottom: -120px; left: -100px; animation-delay: -6s; }
.blob-3 { width: 260px; height: 260px; background: #d8f1e9; top: 40%; left: 38%; animation-delay: -12s; opacity: .45; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } 100% { transform: translate(-30px,20px) scale(.95); } }
.helix { position: absolute; right: 3%; top: -40px; width: 90px; height: 120%; opacity: .35; }
.helix circle { animation: helixDot 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.helix line { stroke: var(--teal); stroke-width: 1.4; opacity: .35; }
@keyframes helixDot { 50% { transform: scale(.45); opacity: .4; } }
.molecules span {
  position: absolute; border-radius: 50%; border: 2px solid var(--teal); opacity: .18;
  animation: rise linear infinite;
}
.molecules span.rose { border-color: var(--rose); }
@keyframes rise { from { transform: translateY(0) rotate(0); } to { transform: translateY(-110vh) rotate(360deg); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .45em; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero-title .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.hero-title.in .w > span { transform: none; }
.hero-title .hl { color: var(--teal); position: relative; }
.hero-title .hl.rose { color: var(--rose); }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .92rem; color: var(--teal-800); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .i { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 20px; height: 20px; stroke-width: 3; }

.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-lg); animation: morph 14s ease-in-out infinite;
  transform-style: preserve-3d; transition: transform .5s var(--ease);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.loaded .hero-photo img { transform: scale(1); }
@keyframes morph {
  0%, 100% { border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; }
  33% { border-radius: 55% 45% 40% 60% / 55% 60% 40% 45%; }
  66% { border-radius: 45% 55% 62% 38% / 40% 55% 45% 60%; }
}
.ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 6px rgba(255,255,255,.35); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: 16px; box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.25; animation: bob 6s ease-in-out infinite; z-index: 2;
}
.float-card strong { display: block; color: var(--ink); font-size: .92rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.fc-icon.teal { background: var(--teal-50); color: var(--teal); }
.fc-icon.rose { background: var(--rose-50); color: var(--rose); }
.fc-1 { top: 8%; left: -6%; }
.fc-2 { bottom: 14%; left: -10%; animation-delay: -2s; }
.fc-3 { top: 46%; right: -4%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--teal-100); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Estadísticas ---------- */
.stats { position: relative; z-index: 2; margin-top: -40px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 28px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat strong { display: block; font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 800; color: var(--teal); letter-spacing: -.03em; line-height: 1.1; }
.stat strong .suf { color: var(--rose); }
.stat > span { color: var(--muted); font-size: .92rem; font-weight: 500; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-media { position: relative; }
.about-card { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.about-card img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; transition: transform 1.2s var(--ease); }
.about-media:hover .about-card img { transform: scale(1.05); }
.about-badge {
  position: absolute; right: -22px; bottom: 36px; display: flex; align-items: center; gap: 12px;
  background: var(--rose); color: #fff; padding: 18px 22px; border-radius: 20px; box-shadow: 0 20px 40px -16px rgba(216,56,90,.7);
  line-height: 1.2; font-weight: 600; font-size: .9rem; animation: bob 7s ease-in-out infinite;
}
.about-badge strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; }
.about-copy p { font-size: 1.05rem; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.area {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--teal-800);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.area:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow-sm); }
.area .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.area .dot .i { width: 15px; height: 15px; }

/* ---------- Servicios ---------- */
.services { background: linear-gradient(180deg, transparent, var(--teal-50) 30%, var(--teal-50) 70%, transparent); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  position: relative; background: var(--card); border-radius: var(--radius); padding: 32px 26px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  transform-style: preserve-3d;
}
.service::before {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,135,150,.16), transparent 70%); z-index: -1; transition: transform .6s var(--ease);
}
.service:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { transform: scale(2.2); }
.service-ic {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--teal), var(--teal-800)); color: #fff; box-shadow: 0 12px 24px -10px rgba(29,135,150,.9);
  transition: transform .5s var(--ease);
}
.service:nth-child(even) .service-ic { background: linear-gradient(135deg, var(--rose), var(--rose-600)); box-shadow: 0 12px 24px -10px rgba(216,56,90,.9); }
.service:hover .service-ic { transform: rotate(-8deg) scale(1.08); }
.service-ic .i { width: 30px; height: 30px; stroke-width: 1.8; }
.service h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.service .more { font-weight: 700; font-size: .9rem; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.service .more .arrow { transition: transform .3s var(--ease); }
.service:hover .more .arrow { transform: translateX(5px); }

/* ---------- Promociones ---------- */
.promos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.promo {
  position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.promo:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.promo-img { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--teal), var(--teal-900)); position: relative; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.promo:hover .promo-img img { transform: scale(1.07); }
.promo-img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.promo-img .ph .i { width: 64px; height: 64px; stroke-width: 1.4; }
.promo-img .ph::before, .promo-img .ph::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); }
.promo-img .ph::before { width: 180px; height: 180px; animation: spinSlow 20s linear infinite; border-style: dashed; }
.promo-img .ph::after { width: 260px; height: 260px; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.promo-img .ph-pct { position: relative; z-index: 1; font-size: clamp(3.5rem, 12vw, 5.5rem); font-weight: 800; letter-spacing: -.04em; color: #fff; text-shadow: 0 10px 30px rgba(0,0,0,.25); animation: pctPop 2.8s var(--ease) infinite alternate; }
@keyframes pctPop { from { transform: scale(.94) rotate(-3deg); } to { transform: scale(1.04) rotate(2deg); } }
.promo-foot .btn { white-space: nowrap; }
.promo-tag { position: absolute; top: 14px; left: 14px; background: var(--rose); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; z-index: 1; }
.promo-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.promo-body h3 { font-size: 1.2rem; margin: 0; }
.promo-body p { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.promo-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.promo-price { font-size: 1.5rem; font-weight: 800; color: var(--teal); letter-spacing: -.02em; }
.promo-price small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.promo-until { font-size: .8rem; color: var(--rose); font-weight: 600; }

/* ---------- Estudios ---------- */
.tests-tools { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 36px; }
.search {
  display: flex; align-items: center; gap: 12px; width: min(620px, 100%); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 22px; box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s;
}
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 5px rgba(29,135,150,.12); }
.search .i { color: var(--teal); }
.search input { flex: 1; border: 0; outline: 0; background: none; padding: 12px 0; font-size: 1rem; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .88rem; color: var(--text); transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--teal); color: var(--teal-800); }
.chip.active { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 8px 18px -8px rgba(29,135,150,.9); }
.chip .n { font-weight: 500; margin-left: 4px; color: var(--muted); } /* 5.0:1 sobre blanco */
.chip.active .n { color: inherit; } /* blanco sobre --teal: 5.2:1 */
.tests-status { margin: -20px 0 16px; text-align: center; font-size: .86rem; font-weight: 600; color: var(--muted); }
.tests-status:empty { margin: 0; }
.tests-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.test {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  animation: popIn .5s var(--ease) both;
}
.test:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-100); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.test-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.test h3 { font-size: 1.02rem; margin: 0; font-weight: 700; }
.test-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); background: var(--teal-50); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.test-prep span { white-space: pre-line; }
.test-incl { font-size: .84rem; color: var(--muted); margin: 0; }
.test-incl b { color: var(--teal-800); }
.badge.sample { background: var(--rose-50); color: var(--rose-600); }
.tests-more { display: flex; margin: 26px auto 0; }
.test-prep { font-size: .9rem; color: var(--muted); margin: 0; display: flex; gap: 8px; }
.test-prep .i { width: 16px; height: 16px; margin-top: 3px; color: var(--teal); }
.test-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; align-items: center; }
.badge { font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; }
.badge .i { width: 13px; height: 13px; }
.badge.fast { background: #e7f7ef; color: #1a7a4c; }
.badge.ayuno { background: var(--rose-50); color: var(--rose-600); }
.badge.price { background: var(--teal-50); color: var(--teal-800); }
.test-ask { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--teal); display: inline-flex; gap: 4px; align-items: center; }
.test-ask:hover { color: var(--rose); }
.tests-empty { text-align: center; color: var(--muted); padding: 24px; }
.tests-empty a { color: var(--teal); font-weight: 700; text-decoration: underline; }

/* ---------- CTA Resultados ---------- */
.cta-band { padding: 20px 0 clamp(60px, 8vw, 90px); }
.cta-inner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: #fff;
  /* El tono más claro (#13697a) deja el texto blanco en ≥5.3:1 en todo el ciclo de la animación,
     incluso bajo el círculo claro decorativo (antes, con --teal, bajaba a 3.9:1) */
  background: linear-gradient(120deg, var(--teal-900), var(--teal-600), #13697a, var(--teal-800));
  background-size: 300% 300%; animation: gradientMove 12s ease infinite; box-shadow: var(--shadow-lg);
}
.cta-inner::before, .cta-inner::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.cta-inner::before { width: 340px; height: 340px; right: -80px; top: -160px; }
.cta-inner::after { width: 200px; height: 200px; left: 30%; bottom: -120px; background: rgba(216,56,90,.25); filter: blur(30px); }
@keyframes gradientMove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cta-inner p { margin: 0; color: #fff; }
.cta-icon { width: 76px; height: 76px; border-radius: 22px; background: rgba(255,255,255,.14); display: grid; place-items: center; animation: bob 5s ease-in-out infinite; }
.cta-icon .i { width: 38px; height: 38px; color: #fff; stroke-width: 1.6; }
.cta-inner > * { position: relative; z-index: 1; }

/* ---------- ARS ---------- */
.ars { padding-bottom: clamp(60px, 8vw, 100px); }
.marquee {
  overflow: hidden; position: relative; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
.ars-logo {
  width: 200px; height: 104px; flex-shrink: 0; background: #fff; border-radius: 18px; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 18px 24px; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.ars-logo img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1) opacity(.7); transition: filter .4s; }
.ars-logo:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--teal-100); }
.ars-logo:hover img { filter: none; }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testi { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; }
.testi::before { content: "“"; position: absolute; top: 4px; right: 22px; font-size: 5rem; line-height: 1; color: var(--teal-100); font-weight: 800; }
.testi .stars { display: inline-block; color: #f5a524; letter-spacing: 2px; margin-bottom: 10px; }
.testi p { font-size: 1rem; }
.testi strong { color: var(--ink); }

/* ---------- Noticias ---------- */
.news { background: linear-gradient(180deg, transparent, var(--teal-50)); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Tarjeta = <article>; el título es un <button class="post-open"> cuyo ::after cubre toda la tarjeta,
   así se puede tocar en cualquier parte y el lector de pantalla oye solo el título */
.post {
  position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); text-align: left; border: 0; padding: 0;
}
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post:focus-within { outline: 3px solid var(--rose); outline-offset: 3px; }
/* Con :has, el anillo sale solo al navegar con teclado (no tras un clic) */
.post:focus-within:not(:has(:focus-visible)) { outline: none; }
.post-img { aspect-ratio: 16/10; overflow: hidden; background: var(--teal-100); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post-img img { transform: scale(1.07); }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-date { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rose); }
.post h3, .post-title { font-size: 1.15rem; margin: 0; }
.post-open { all: unset; cursor: pointer; }
.post-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-open:focus-visible { outline: none; }
.post p { color: var(--muted); font-size: .94rem; margin: 0; }
.post .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--teal); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-grid > div:first-child p { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; }
.acc-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.acc-item.open { box-shadow: var(--shadow); border-color: var(--teal-100); }
.acc-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  padding: 20px 22px; background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.acc-q .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-50); position: relative; flex-shrink: 0; transition: background .3s, transform .4s var(--ease); }
.acc-q .plus::before, .acc-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--teal); border-radius: 2px; transition: transform .4s var(--ease), background .3s; }
.acc-q .plus::after { transform: rotate(90deg); }
.acc-item.open .plus { background: var(--rose); transform: rotate(180deg); }
.acc-item.open .plus::before, .acc-item.open .plus::after { background: #fff; }
.acc-item.open .plus::after { transform: rotate(0); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-item.open .acc-a { grid-template-rows: 1fr; }
/* visibility saca la respuesta cerrada del lector de pantalla; se apaga al terminar la animación de cierre */
.acc-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear .45s; }
.acc-item.open .acc-a > div { visibility: visible; transition-delay: 0s; }
.acc-a p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-info { display: grid; gap: 12px; }
.info-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
a.info-row:hover { transform: translateX(6px); border-color: var(--teal-100); box-shadow: var(--shadow-sm); }
.info-row small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.info-row strong { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; } /* el correo largo no ensancha la columna */
.info-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); flex-shrink: 0; }
.info-ic.wa { background: #e5f9ed; color: #1c9d50; }
#hours { display: block; font-size: .95rem; color: var(--ink); }
#hours b { font-weight: 700; }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); height: 240px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }

.booking { background: var(--card); border-radius: 24px; padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 20px); }
.booking h3 { font-size: 1.5rem; margin-bottom: 4px; }
.booking > p { margin-bottom: 24px; font-size: .95rem; }
.field { position: relative; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 24px 16px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); outline: 0;
  transition: border-color .25s, box-shadow .25s, background .25s; font-size: 1rem; resize: vertical; -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d8796' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(29,135,150,.12); }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); pointer-events: none; transition: all .25s var(--ease); font-size: 1rem; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.static {
  top: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal);
}
.field.error input { border-color: var(--rose); }
.form-error { color: var(--rose); font-weight: 600; font-size: .9rem; margin: 10px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-900); color: #a9cbd0; padding: 70px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-grid a:hover { color: #fff; }
.footer-logo { height: 60px; width: auto; background: #fff; padding: 8px 14px; border-radius: 14px; margin-bottom: 8px; }
.footer p { max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--rose); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .86rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-notes { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.7);
  transition: transform .4s var(--ease); animation: waPulse 2.6s infinite;
}
.wa-float .i { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 14px 30px -8px rgba(37,211,102,.7); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 14px 30px -8px rgba(37,211,102,.7); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 14px 30px -8px rgba(37,211,102,.7); } }
.wa-tip {
  position: absolute; right: 74px; white-space: nowrap; background: #fff; color: var(--ink); font-weight: 700; font-size: .88rem;
  padding: 9px 14px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: all .4s var(--ease); pointer-events: none;
}
.wa-float:hover .wa-tip, .wa-float.hint .wa-tip { opacity: 1; transform: none; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: 24px; width: min(680px, calc(100% - 32px)); max-height: 88vh; box-shadow: var(--shadow-lg); overflow: auto; }
.modal::backdrop { background: rgba(10, 53, 60, .55); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.modal-content { padding: 28px 32px 34px; }
.modal-content h3 { font-size: 1.6rem; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); z-index: 2; }

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal, .js .reveal-left, .js .reveal-right, .js .stagger > * {
  opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal { transform: translateY(32px); }
.js .reveal-left { transform: translateX(-48px); }
.js .reveal-right { transform: translateX(48px); }
.js .stagger > * { transform: translateY(36px) scale(.98); }
.js .reveal.in, .js .reveal-left.in, .js .reveal-right.in, .js .stagger.in > * { opacity: 1; transform: none; }

/* =========================================================
   Componentes nuevos
   ========================================================= */

/* Accesibilidad */
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 2000; background: var(--teal-900); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
/* Sobre fondos oscuros el anillo fucsia casi no se ve (1.1–2.4:1): ahí va blanco (≥7:1) */
.announce :focus-visible, .cta-band :focus-visible, .footer :focus-visible { outline-color: #fff; }
/* La barra del celular es blanca: el anillo fucsia (5.6:1) se queda, pero dentro de la barra */
.mobile-bar a:focus-visible { outline-offset: -3px; border-radius: 12px; }
.center { text-align: center; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--teal-800);
  display: inline-grid; place-items: center; cursor: pointer; flex-shrink: 0; font-size: 1.3rem; line-height: 1;
  transition: border-color .25s, background .25s, transform .3s var(--ease);
}
.icon-btn:hover { border-color: var(--teal); background: var(--teal-50); }
.icon-btn .i { width: 18px; height: 18px; }

/* Portada */
.hero-local { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal-800); font-size: .95rem; margin: -14px 0 26px; }
.hero-local .i { color: var(--rose); width: 18px; height: 18px; }

/* «Abierto ahora» */
.open-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--rose-600); }
.open-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); flex-shrink: 0; }
.open-status.is-open { color: #156a3f; }
.open-status.is-open .dot { background: #1f9d55; box-shadow: 0 0 0 0 rgba(31,157,85,.6); animation: openPulse 2s infinite; }
@keyframes openPulse { 70% { box-shadow: 0 0 0 8px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }
.info-row .open-status { display: flex; margin-top: 6px; font-size: .9rem; }
.info-row .ref { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }

.slogan { font-size: 1.15rem; font-weight: 700; color: var(--rose); font-style: italic; }

/* Tu visita paso a paso */
.visit { padding-top: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-100) 0 10px, transparent 10px 18px); }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: -2px auto 16px; font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-800)); box-shadow: 0 10px 20px -8px rgba(22,119,132,.8); position: relative; }
.step:nth-child(even) .step-n { background: linear-gradient(135deg, var(--rose), var(--rose-600)); box-shadow: 0 10px 20px -8px rgba(196,43,76,.8); }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Textos largos del panel: respetar los saltos de línea que escriba el dueño */
[data-bind="nosotros.texto"], .hero-sub, .step p, .service p, .promo-body > p, .testi blockquote p { white-space: pre-line; }

/* Promociones (extras) */
.promo-hurry { position: absolute; top: 14px; right: 14px; z-index: 1; background: #fff; color: var(--rose-600); font-weight: 800; font-size: .75rem; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); animation: pulseSoft 1.8s ease-in-out infinite; }
@keyframes pulseSoft { 50% { transform: scale(1.06); } }
.promo-incl { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; font-size: .9rem; }
.promo-incl li { display: flex; gap: 8px; align-items: flex-start; }
.promo-incl .i { color: var(--teal); width: 16px; height: 16px; margin-top: 4px; }
.promo-cond { color: var(--muted); font-size: .78rem; display: block; margin-bottom: 10px; }
.promo-price s { color: var(--muted); font-size: 1rem; font-weight: 600; }

/* Catálogo (extras) */
.chips-sm .chip { padding: 6px 13px; font-size: .82rem; }
.test-actions { display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; }
.test-add {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--teal-100); background: var(--teal-50); color: var(--teal-800);
  font-weight: 700; font-size: .82rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: all .25s var(--ease);
}
.test-add .i { width: 15px; height: 15px; }
.test-add:hover { border-color: var(--teal); }
.test-add .when-on { display: none; align-items: center; gap: 6px; }
.test-add .when-off { display: inline-flex; align-items: center; gap: 6px; }
.test-add.added { background: var(--teal); border-color: var(--teal); color: #fff; }
.test-add.added .when-on { display: inline-flex; }
.test-add.added .when-off { display: none; }
.test-actions .icon-btn { width: 34px; height: 34px; border-radius: 10px; }
.test-actions .test-ask { margin-left: auto; }
.test.flash { animation: flash 2.4s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--rose), var(--shadow); } 100% { box-shadow: none; } }
.disclaimer { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .86rem; margin-top: 22px; }
.disclaimer.center { justify-content: center; }
.disclaimer .i { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }

/* Resultados */
.cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.cta-help { margin-top: 8px !important; font-size: .9rem; }
.cta-help a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ARS */
.marquee-wrap { position: relative; }
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-pause { position: absolute; right: 18px; bottom: -12px; z-index: 2; box-shadow: var(--shadow-sm); }
.ars-names { list-style: none; padding: 0; margin: 34px auto 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.ars-names li { background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--teal-800); }

/* Reseñas */
.testimonials { background: linear-gradient(180deg, transparent, var(--rose-50) 50%, transparent); }
.testi-grid { margin-bottom: 30px; }
.testi blockquote { margin: 0; }
.review-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.ig-post { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--teal-100); display: block; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ig-post:hover img, .ig-post:focus-visible img { transform: scale(1.08); }
.ig-over {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; color: #fff; font-size: .85rem; line-height: 1.4;
  background: linear-gradient(180deg, transparent 30%, rgba(10,53,60,.85)); opacity: 0; transition: opacity .4s var(--ease);
}
.ig-over .i { width: 22px; height: 22px; }
.ig-post:hover .ig-over, .ig-post:focus-visible .ig-over { opacity: 1; }
.ig-badge { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }
.ig-badge .i { width: 15px; height: 15px; }

/* Contacto (extras) */
.directions { display: flex; gap: 10px; flex-wrap: wrap; }
.directions .btn { flex: 1; min-width: 140px; }
.field-note { margin: -6px 0 12px; font-size: .86rem; color: var(--teal-800); font-weight: 600; }
.field-note:empty { margin: 0; } /* sigue en el DOM (sin hidden) para que su aviso sí se anuncie */
.field-note.warn { color: var(--rose-600); }
.form-privacy { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.form-privacy .i { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: var(--teal); }

/* Pie de página */
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer-note { opacity: .8; max-width: 520px; } /* 5.5:1 sobre el fondo del pie */
/* En computadora, el texto del pie termina antes de los botones flotantes de la derecha
   (WhatsApp; y también «Mi lista» cuando está visible). En pantallas anchas no hace falta. */
@media (min-width: 921px) {
  .footer-bottom { padding-right: clamp(0px, calc(108px - (100vw - 1200px) / 2), 84px); }
  .has-quote .footer-bottom { padding-right: clamp(0px, calc(200px - (100vw - 1200px) / 2), 180px); }
  body:has(#quote-fab:not([hidden])) .footer-bottom { padding-right: clamp(0px, calc(200px - (100vw - 1200px) / 2), 180px); }
}

/* Barra fija en el celular */
.mobile-bar { display: none; }

/* Mi lista de estudios */
/* En computadora va a la derecha, encima del botón de WhatsApp (62px + 14px de separación),
   para no tapar los botones de la portada */
.quote-fab {
  position: fixed; right: 22px; bottom: 98px; z-index: 91; display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-900); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.18); animation: fabIn .5s var(--ease); /* el borde claro lo separa del pie oscuro */
}
.quote-fab .i { width: 18px; height: 18px; }
.quote-count { background: var(--rose); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: .8rem; padding: 0 6px; }
.quote-fab.bump { animation: bump .5s var(--ease); }
@keyframes fabIn { from { transform: translateY(30px); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.15); } }
.quote .modal-content { padding-top: 34px; }
.quote-items { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 8px; }
.quote-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.quote-items li.muted { font-weight: 500; justify-content: center; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.modal-actions .btn[disabled] { opacity: .5; cursor: not-allowed; }
.modal-content .disclaimer { margin-top: 10px; }

/* Aviso breve (enlace copiado, etc.) */
.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 1500; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg);
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Redes sociales */
.social-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; }
.social-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.social-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.social-card strong { display: block; color: var(--ink); }
.social-card small { color: var(--muted); font-size: .85rem; }
.sc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.sc-ic .i { width: 24px; height: 24px; }
.social-card.ig .sc-ic { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.social-card.fb .sc-ic { background: #1877f2; }
.social-card.wa .sc-ic { background: #1c9d50; }
.sc-cta { margin-left: auto; font-weight: 700; font-size: .88rem; color: var(--teal); white-space: nowrap; }
.ig-grid:empty { display: none; }
.nav-social { display: inline-flex; gap: 2px; margin-left: 4px; }
.nav-social a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--teal-800); transition: background .25s, color .25s; }
.nav-social a:hover { background: var(--teal-50); color: var(--rose); }
.nav-social .i { width: 18px; height: 18px; }
.info-social { display: flex; gap: 14px; flex-wrap: wrap; }
.info-social a { font-weight: 700; color: var(--teal); }
.info-social a:hover { color: var(--rose); text-decoration: underline; }
@media (max-width: 920px) {
  .social-cards { grid-template-columns: 1fr; }
  .nav-social { margin: 12px 0 0; gap: 10px; }
  .nav-social a { width: 44px; height: 44px; background: var(--teal-50); }
}
@media (min-width: 921px) and (max-width: 1180px) { .nav-social { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tests-grid { grid-template-columns: repeat(2, 1fr); }
  .nav > a:not(.btn) { padding: 8px 8px; font-size: .88rem; }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .brand img { height: 42px; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 14px 20px 24px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); overflow: auto;
    /* Cerrado: además de recortarlo, se oculta para que Tab y el lector de pantalla no entren.
       visibility cambia al terminar la animación de cierre. */
    visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s linear .5s;
    /* El menú empieza debajo del encabezado y, arriba del todo, también debajo del aviso superior
       (hasta ~64px si ocupa 2 líneas): se resta ese margen para que el último enlace se alcance en horizontal */
    max-height: calc(100vh - var(--header-h) - 72px);
    max-height: calc(100dvh - var(--header-h) - 72px);
  }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s; }
  .nav > a:not(.btn) { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 14px 0 0; padding: 1em; }
  /* minmax(0, 1fr): un texto largo no puede ensanchar la columna más que la pantalla */
  .hero-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  /* Animación de entrada vertical: el desplazamiento lateral sacaba el formulario 48px fuera de la pantalla */
  .js .reveal-left, .js .reveal-right { transform: translateY(32px); }
  .hero-visual { max-width: 520px; margin: 10px auto 0; width: 100%; }
  .faq-grid > div:first-child, .booking { position: static; }
  .about-media { max-width: 480px; margin: 0 auto; width: 100%; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  /* Barra de acciones fija abajo en celular/tableta */
  .mobile-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(12,35,40,.2);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .past-hero .mobile-bar { transform: none; }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 12px; font-size: .72rem; font-weight: 700; color: var(--teal-800); }
  .mobile-bar a .i { width: 22px; height: 22px; }
  .mobile-bar a:active { background: var(--teal-50); }
  .mobile-bar .mb-wa { color: #0b6b39; } /* 6.6:1 sobre la barra blanca */
  .wa-float { display: none; }
  .quote-fab { left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(78px + env(safe-area-inset-bottom)); transition: bottom .45s var(--ease); }
  /* Mientras la barra de abajo está escondida (en la portada), «Mi lista» baja a su lugar */
  body:not(.past-hero) .quote-fab { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .quote-fab.bump { animation: none; }
  .toast { bottom: 150px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* Espacio al final del pie para que «Mi lista» (flota sobre la barra) no tape el texto */
  .footer-bottom { padding-bottom: 66px; }
  @supports selector(:has(*)) {
    .footer-bottom { padding-bottom: 22px; }
    body:has(#quote-fab:not([hidden])) .footer-bottom { padding-bottom: 66px; }
  }
  .has-quote .footer-bottom { padding-bottom: 66px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  /* Botones con texto largo bajan de línea en vez de salirse de la pantalla (320px) */
  .btn { white-space: normal; text-align: center; }
  .hero { padding-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .fc-1 { left: -2%; top: 2%; } .fc-2 { left: -2%; bottom: 6%; } .fc-3 { right: -2%; top: auto; bottom: 34%; }
  .float-card { padding: 9px 12px 9px 9px; font-size: .8rem; }
  .float-card small { display: none; }
  .fc-icon { width: 34px; height: 34px; border-radius: 10px; }
  .services-grid, .tests-grid, .news-grid { grid-template-columns: 1fr; }
  .about-badge { right: 8px; bottom: 16px; padding: 14px 16px; }
  .about-badge strong { font-size: 2rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .helix { display: none; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .ars-logo { width: 160px; height: 86px; padding: 14px 18px; }
  .section-head { margin-bottom: 38px; }
  .modal-content { padding: 22px 22px 28px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; text-align: left; padding: 18px; }
  .step-n { grid-row: span 2; margin: 0; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .test-actions { flex-wrap: wrap; }
  .hero-local { margin-top: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track > [data-dup] { display: none; }
  .marquee-pause { display: none; }
}
