/* ===========================================================
   Lab-U — Hoja de estilos principal
   Marca: #e03854  ·  Tipografía: Inter
   =========================================================== */

/* ---------- Fuente ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/InterVariable-Italic.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --brand:       #e03854;
  --brand-dark:  #c42c46;
  --brand-700:   #a82139;
  --brand-50:    #fdeef1;
  --brand-100:   #fbdde3;

  --ink:         #232021;
  --ink-soft:    #4b5563;
  --muted:       #6b7280;
  --line:        #e8eaed;
  --bg:          #ffffff;
  --bg-soft:     #f8f9fb;
  --bg-pink:     #fff5f7;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow:    0 8px 24px rgba(16,24,40,.08);
  --shadow-lg: 0 20px 48px rgba(224,56,84,.16);

  --container: 1200px;
  --header-h: 76px;

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--pink { background: var(--bg-pink); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-title .accent { color: var(--brand); }
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg, .btn img { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(224,56,84,.28); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(224,56,84,.36); }
.btn--ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand-100); }
.btn--ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--wa { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.3); }
.btn--wa:hover { background: #1eb558; transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(16,24,40,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 18px; }
.nav__logo img { height: 38px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 22px; }
.nav__link { font-weight: 600; color: var(--ink-soft); font-size: .95rem; white-space: nowrap; position: relative; padding: 6px 0; transition: color .2s; }
@media (min-width: 761px) and (max-width: 1320px) { .nav__menu { gap: 14px; } .nav__link { font-size: .86rem; } .nav__actions .btn { padding: 11px 15px; font-size: .88rem; } }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--brand); }
.nav__link[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-pink) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 70px 0 90px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 800; }
.hero h1 .accent { color: var(--brand); }
.hero__sub { margin: 22px 0 32px; font-size: 1.18rem; color: var(--ink-soft); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-size: 1.5rem; color: var(--brand); font-weight: 800; }
.hero__trust span { font-size: .9rem; color: var(--muted); }
.hero__media { position: relative; }
.hero__media .blob {
  position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; background: var(--brand-50);
}
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.hero__inner { position: relative; z-index: 1; }
.hero__badge {
  position: absolute; bottom: 18px; left: 18px; background: #fff; border-radius: 16px;
  padding: 12px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem;
}
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 4px rgba(37,211,102,.2); }

/* ---------- Results strip ---------- */
.results-strip { background: linear-gradient(110deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: var(--radius-lg); padding: 40px 44px; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; box-shadow: var(--shadow-lg); }
.results-strip h2 { color: #fff; font-size: 1.7rem; }
.results-strip p { color: rgba(255,255,255,.9); margin-top: 6px; }
.results-strip small { display: block; margin-top: 10px; color: rgba(255,255,255,.75); font-size: .82rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--brand-50); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon img { width: 32px; height: 32px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* feature (¿por qué elegirnos?) */
.feature { text-align: left; }
.feature h3 { text-transform: uppercase; font-size: 1.04rem; letter-spacing: .01em; }

/* exam categories */
.exam-card { display: flex; align-items: center; gap: 16px; cursor: default; }
.exam-card .card__icon { margin-bottom: 0; flex-shrink: 0; }
.exam-card h3 { font-size: 1.06rem; margin: 0; }
.exam-card small { color: var(--muted); font-size: .85rem; }

/* ISO certifications */
.iso-row { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: center; }
.iso { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 150px; text-align: center; }
.iso img { width: 76px; height: 76px; }
.iso b { font-size: 1rem; color: var(--ink); }
.iso span { font-size: .8rem; color: var(--muted); line-height: 1.3; }

/* ---------- Acerca split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; }

/* values */
.value { display: flex; gap: 16px; align-items: flex-start; }
.value__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); display: grid; place-items: center; flex-shrink: 0; }
.value__ic img { width: 28px; height: 28px; }
.value h3 { font-size: 1.08rem; margin-bottom: 4px; }
.value p { color: var(--ink-soft); font-size: .95rem; }

/* mission/vision */
.mv { border-radius: var(--radius-lg); padding: 38px; color: #fff; }
.mv--mision { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); }
.mv--vision { background: linear-gradient(135deg, #2b2b2b 0%, #4b5563 100%); }
.mv h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
.mv p { color: rgba(255,255,255,.92); }

/* ---------- Page hero (subpáginas) ---------- */
.page-hero { background: var(--bg-pink); padding: 54px 0; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--brand); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* ---------- Sedes ---------- */
.sede-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s; }
.sede-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.sede-card__body { padding: 26px; }
.sede-card__tag { display: inline-block; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: .78rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.sede-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.sede-line { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .96rem; margin-top: 8px; }
.sede-line img { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.sede-card__actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field textarea, .field select {
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: .98rem; background: #fff; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.field textarea { resize: vertical; min-height: 130px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; }

/* search bar */
.search { position: relative; max-width: 520px; margin: 0 auto 40px; }
.search img { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; opacity: .5; }
.search input { width: 100%; padding: 15px 18px 15px 50px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: 1rem; box-shadow: var(--shadow-sm); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
/* Barra de búsqueda fija: el campo permanece visible al escribir y filtrar */
.exam-search-bar { position: sticky; top: 68px; z-index: 50; background: #fff; padding: 16px 0 8px; margin-bottom: 18px; }
.exam-search-bar .search { margin-bottom: 0; }
.exam-search-bar::after { content: ""; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); width: 100vw; max-width: 100vw; height: 14px; background: linear-gradient(rgba(16,24,40,.05), transparent); pointer-events: none; }

/* exam list (examenes page) */
.exam-cat { margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.exam-cat__head { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; user-select: none; }
.exam-cat__head .card__icon { margin: 0; width: 50px; height: 50px; }
.exam-cat__head .card__icon img { width: 26px; height: 26px; }
.exam-cat__head h3 { font-size: 1.1rem; flex: 1; }
.exam-cat__chev { transition: transform .3s; color: var(--brand); font-size: 1.2rem; }
.exam-cat.open .exam-cat__chev { transform: rotate(180deg); }
.exam-cat__list { display: none; padding: 0 24px 22px 90px; }
.exam-cat.open .exam-cat__list { display: block; }
.exam-cat__list li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.exam-empty { text-align: center; color: var(--muted); padding: 40px; }
/* Examen encontrado por el buscador: resaltado */
.exam-cat__list li.exam-hit {
  background: var(--brand-50);
  border-top-color: transparent;
  border-radius: 10px;
  padding-left: 12px; padding-right: 12px;
  box-shadow: inset 3px 0 0 var(--brand);
}
.exam-cat__list li.exam-hit .exam-name span { color: var(--brand); font-weight: 700; }

/* Preguntas frecuentes (FAQ) */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { border-color: var(--brand); box-shadow: 0 6px 24px rgba(224,56,84,.08); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--brand); }
.faq-item > p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); line-height: 1.7; }
.faq-item > p a { color: var(--brand); font-weight: 600; }

/* Indicaciones / preparación de exámenes */
.exam-cat__list li.prep-row { display: block; border-top: 0; padding-top: 4px; }
.prep { background: var(--brand-50); border-radius: 12px; padding: 12px 16px; font-size: .9rem; color: var(--ink-soft); line-height: 1.7; }
.prep strong { color: var(--ink); font-weight: 700; }
.exam-name { display: flex; flex-direction: column; gap: 2px; }
.prep-ex { color: var(--brand); font-size: .8rem; font-weight: 600; }

/* ---------- CTA banda ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: var(--radius-xl); padding: 56px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.92); margin: 12px auto 26px; max-width: 50ch; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #1c1a1b; color: #cfd2d6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #cfd2d6; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 10px; }
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-logo img { height: 40px; filter: brightness(0) invert(1); }
.footer-contact div { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: .95rem; }
.footer-contact img { width: 18px; height: 18px; filter: brightness(0) invert(.85); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; text-align: center; font-size: .86rem; color: #8b9096; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .25s var(--ease); animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 10px 26px rgba(37,211,102,.45);} 50% { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0);} }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; padding: 48px 0 60px; }
  .hero__media { order: -1; max-width: 520px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .results-strip { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 22px 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s var(--ease); height: auto;
  }
  body.menu-open .nav__menu { transform: translateY(0); }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--ghost { display: none; }
  .grid--3, .grid--4, .grid--2, .form-row { grid-template-columns: 1fr; }
  .cta-band, .results-strip { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .exam-cat__list { padding-left: 24px; }
  .hero__trust { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===========================================================
   FUNCIONES NUEVAS (cotizador, agendar, directorio)
   =========================================================== */

/* ---- Botón "Agregar" en la lista de exámenes ---- */
.exam-cat__list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.exam-add {
  flex-shrink: 0; border: 1.5px solid var(--brand-100); color: var(--brand); background: #fff;
  border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; transition: all .2s var(--ease);
}
.exam-add:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.exam-add.added { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }

/* ---- Carrito flotante (cotizador) ---- */
.cart-fab {
  position: fixed; right: 22px; bottom: 92px; z-index: 91;
  height: 56px; padding: 0 22px; border-radius: 999px; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(224,56,84,.4); transition: transform .2s var(--ease), opacity .2s;
}
.cart-fab:hover { transform: scale(1.05); }
.cart-fab[hidden] { display: none; }
.cart-fab .count { background: #fff; color: var(--brand); border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: .82rem; padding: 0 6px; }

.cart-overlay { position: fixed; inset: 0; background: rgba(20,16,17,.5); z-index: 110; opacity: 0; visibility: hidden; transition: opacity .3s; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 92vw; background: #fff; z-index: 111;
  transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.cart-panel.open { transform: none; }
.cart-panel__head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cart-panel__head h3 { font-size: 1.2rem; }
.cart-close { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.2rem; color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item span { font-size: .95rem; color: var(--ink); }
.cart-item button { color: var(--muted); font-size: 1.3rem; line-height: 1; padding: 0 4px; }
.cart-item button:hover { color: var(--brand); }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.cart-panel__foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-panel__foot p { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }

/* ---- Análisis frecuentes (chips) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .95rem; color: var(--ink); transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.chip .plus { color: var(--brand); font-weight: 800; }

/* ---- Servicio destacado (domicilio) ---- */
.feature-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.feature-banner__media { background: var(--brand-50); min-height: 320px; }
.feature-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-banner__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.feature-banner__body h2 { font-size: clamp(1.6rem,3vw,2.2rem); }
.feature-banner__body p { color: var(--ink-soft); margin: 14px 0 24px; }

/* ---- Directorio de sedes (mapa + lista) ---- */
.directorio { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
.directorio__panel { display: flex; flex-direction: column; gap: 16px; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); transition: all .2s;
}
.filtro:hover { border-color: var(--brand); }
.filtro.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.directorio__list { display: flex; flex-direction: column; gap: 14px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.directorio__list .sede-card { cursor: pointer; }
.directorio__list .sede-card.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-100); }
.directorio__map { position: sticky; top: 96px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 560px; border: 1px solid var(--line); }
.directorio__map iframe { width: 100%; height: 560px; border: 0; display: block; }
.sede-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sede-tags span { background: var(--bg-soft); color: var(--ink-soft); font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

@media (max-width: 900px) {
  .directorio { grid-template-columns: 1fr; }
  .directorio__map { position: relative; top: 0; order: -1; min-height: 320px; }
  .directorio__map iframe { height: 320px; }
  .feature-banner { grid-template-columns: 1fr; }
  .feature-banner__media { min-height: 220px; }
  .feature-banner__body { padding: 32px 24px; }
  .cart-panel { width: 100%; }
}

/* ---- Programas / Paquetes ---- */
.paquetes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.paquete {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.paquete:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.paquete__head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.paquete__head .card__icon { margin: 0; width: 52px; height: 52px; flex-shrink: 0; }
.paquete__head .card__icon img { width: 28px; height: 28px; }
.paquete__head h3 { font-size: 1.18rem; line-height: 1.2; }
.paq-dom { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.paquete__sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }
.paquete__incluye { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.paquete__items { margin-bottom: 18px; }
.paquete__items li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--ink-soft); }
.paquete__items small { color: var(--ink); font-weight: 700; white-space: nowrap; }
.paq-precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 4px 0 20px; }
.paq-regular { text-decoration: line-through; color: var(--muted); font-size: 1rem; }
.paq-especial { font-size: 1.7rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.paq-ahorro { background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.paq-consultar { font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); }
.paquete__actions { margin-top: auto; display: flex; gap: 10px; }
.paquete__actions .btn { flex: 1; }

@media (max-width: 980px) { .paquetes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .paquetes-grid { grid-template-columns: 1fr; } }

/* ---- Membresía: cómo funciona ---- */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.paso { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.paso__num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(224,56,84,.3); }
.paso .value__ic { margin: 8px auto 14px; width: 56px; height: 56px; }
.paso h3 { font-size: 1.1rem; margin-bottom: 6px; }
.paso p { color: var(--ink-soft); font-size: .95rem; }

/* ---- Membresía: planes ---- */
.planes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px; position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--top { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-weight: 700; font-size: .78rem; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.4rem; }
.plan__resumen { color: var(--ink-soft); font-size: .95rem; margin: 8px 0 18px; min-height: 42px; }
.plan__precio { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan__monto { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan--top .plan__monto { color: var(--brand); }
.plan__periodo { color: var(--muted); font-weight: 600; }
.plan__beneficios { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan__beneficios li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.plan__check { color: var(--brand); font-weight: 800; flex-shrink: 0; }

@media (max-width: 920px) {
  .pasos, .planes-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--top { order: -1; }
}

/* ---- Premios ---- */
.premios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.premio { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.premio:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.premio__pos { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; }
.premio h3 { font-size: 1.1rem; margin-bottom: 4px; }
.premio p { color: var(--ink-soft); font-size: .95rem; }
.premio__periodo { display: inline-block; margin-top: 10px; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: .76rem; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 920px) { .premios-grid { grid-template-columns: 1fr; } }

/* ---- Tabla de ganadores ---- */
.ganadores { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ganadores th, .ganadores td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ganadores thead th { background: var(--bg-soft); font-weight: 700; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.ganadores tbody tr:last-child td { border-bottom: 0; }
.ganadores tbody tr:hover { background: var(--bg-pink); }
.ganadores td:first-child { font-weight: 700; color: var(--ink); }
@media (max-width: 680px) {
  .ganadores, .ganadores thead, .ganadores tbody, .ganadores tr, .ganadores td { display: block; }
  .ganadores thead { display: none; }
  .ganadores tr { border-bottom: 8px solid var(--bg-soft); }
  .ganadores td { border: 0; padding: 8px 16px; display: flex; justify-content: space-between; gap: 14px; }
  .ganadores td::before { content: attr(data-l); font-weight: 700; color: var(--muted); font-size: .8rem; }
  .ganadores td:first-child { padding-top: 16px; }
}

/* ---- Promociones ---- */
.promos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.promo-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.promo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.promo-card--top { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.promo-card .card__icon { margin-bottom: 16px; }
.promo-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.promo-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 18px; }
.promo-card .btn { margin-top: 16px; }
.promo-badge { position: absolute; top: -13px; right: 20px; background: var(--brand); color: #fff; font-weight: 800; font-size: .8rem; padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(224,56,84,.3); }
@media (max-width: 980px) { .promos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .promos-grid { grid-template-columns: 1fr; } }

/* ---- Páginas legales (prosa) ---- */
.prose { max-width: 820px; margin: 0 auto; }
.prose > p:first-child { font-size: 1.05rem; }
.prose h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.75; }
.prose ul { padding-left: 22px; margin: 10px 0; list-style: disc; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); font-weight: 600; }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.legal-note { background: var(--brand-50); border-radius: 12px; padding: 14px 18px; font-size: .9rem; color: var(--ink-soft); margin: 18px 0; }
.footer-bottom a { color: #8b9096; }
.footer-bottom a:hover { color: #fff; }

/* ===========================================================
   CTA SOCIOS: barra superior + popup
   =========================================================== */
.socio-bar { position: relative; background: linear-gradient(100deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; }
.socio-bar__in { max-width: var(--container); margin: 0 auto; padding: 9px 46px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; font-size: .92rem; font-weight: 500; }
.socio-bar .bar-cta { background: #fff; color: var(--brand); font-weight: 700; padding: 5px 15px; border-radius: 999px; font-size: .84rem; white-space: nowrap; transition: transform .2s var(--ease); }
.socio-bar .bar-cta:hover { transform: translateY(-1px); }
.socio-bar__close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 1.25rem; line-height: 1; opacity: .85; }
.socio-bar__close:hover { opacity: 1; }

.socio-overlay { position: fixed; inset: 0; background: rgba(20,16,17,.55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s; }
.socio-overlay.open { opacity: 1; visibility: visible; }
.socio-pop { background: #fff; border-radius: 24px; max-width: 420px; width: 100%; padding: 40px 32px 32px; text-align: center; box-shadow: var(--shadow-lg); position: relative; transform: translateY(18px) scale(.97); transition: transform .35s var(--ease); }
.socio-overlay.open .socio-pop { transform: none; }
.socio-pop__close { position: absolute; top: 14px; right: 16px; font-size: 1.6rem; color: var(--muted); line-height: 1; }
.socio-pop .pop-ic { width: 66px; height: 66px; border-radius: 18px; background: var(--brand-50); display: grid; place-items: center; margin: 0 auto 16px; }
.socio-pop .pop-ic img { width: 34px; height: 34px; }
.socio-pop h3 { font-size: 1.4rem; }
.socio-pop p { color: var(--ink-soft); margin: 10px 0 22px; }
.socio-pop .btn { width: 100%; }
.socio-pop__later { display: block; margin: 12px auto 0; color: var(--muted); font-size: .9rem; }

/* ===========================================================
   ANIMACIONES (CSS puro)
   =========================================================== */
/* Entrada del hero al cargar */
@keyframes heroFade { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: heroFade .7s var(--ease) both; }
.hero__copy > *:nth-child(2) { animation-delay: .08s; }
.hero__copy > *:nth-child(3) { animation-delay: .16s; }
.hero__copy > *:nth-child(4) { animation-delay: .24s; }
.hero__copy > *:nth-child(5) { animation-delay: .32s; }
.hero__media { animation: heroFade .8s var(--ease) .2s both; }

/* Flotación sutil del badge */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero__badge { animation: floatY 3.2s ease-in-out infinite; }

/* Brillo al pasar el mouse por los botones primarios */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn--primary:hover::after { left: 130%; }

/* Realce extra en tarjetas al pasar el mouse */
.card:hover .card__icon, .paquete:hover .card__icon, .promo-card:hover .card__icon { transform: scale(1.08) rotate(-3deg); transition: transform .25s var(--ease); }
