/* Estilos compartidos: Rayos X Cruz Roja Mexicana (rojo y gris) */
:root {
  --red: #d52b1e;
  --red-dark: #a51d14;
  --red-deep: #7a120c;
  --coral: #ff6a5e;
  --red-soft: #fdecea;
  --g900: #232323;
  --g700: #4a4a4a;
  --g500: #6b6b6b;
  --g300: #dcdcdc;
  --g100: #f5f3f3;
  --ok: #15803d;
  --err: #b91c1c;
  --scroll: 0; /* 0..1, lo actualiza shared.js al hacer scroll */
  --p: 0;      /* avance de la sección pegajosa, también lo actualiza shared.js */
  --grad-red: linear-gradient(120deg, #e8372a 0%, #b91f14 55%, #7a120c 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--g900); background: var(--g100); line-height: 1.55;
}
a { color: var(--red-dark); }
img { max-width: 100%; display: block; }

/* Barra superior con logo de Cruz Roja */
.top {
  position: sticky; top: 0; z-index: 40; background: #fff;
  border-bottom: 0; box-shadow: 0 6px 20px rgba(122,18,12,.12);
}
.top::after { content: ""; display: block; height: 4px; background: var(--grad-red); }
.top-inner {
  max-width: 1080px; margin: 0 auto; padding: .45rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logos { display: flex; align-items: center; gap: 1rem; }
.logos img { height: 68px; width: auto; }
.top nav a {
  color: var(--g700); text-decoration: none; font-size: .95rem; margin-left: 1rem; font-weight: 700;
  padding: .4rem .8rem; border-radius: 999px; transition: background .2s, color .2s;
}
.top nav a:hover { color: var(--red); background: var(--red-soft); }
.utility {
  background: var(--g900); color: #f5f5f5; font-size: .85rem; padding: .45rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.utility a { color: #fff; font-weight: 700; text-decoration: none !important; background: var(--grad-red); padding: .3rem .9rem; border-radius: 999px; }
.top-inner .menu { display: flex; align-items: center; gap: .3rem; }
.top-inner .menu a { font-size: .98rem; font-weight: 700; color: var(--g700); padding: .5rem .9rem; border-radius: 999px; text-decoration: none; }
.top-inner .menu a.activo { color: var(--red-dark); background: var(--red-soft); }
.top-inner .menu a.menu-cta { background: var(--grad-red); color: #fff; margin-left: .4rem; box-shadow: 0 8px 18px rgba(185,31,20,.28); }
.top-inner .menu a.menu-cta:hover { color: #fff; background: var(--red-dark); }
.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-btn span { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--red); }

/* Línea de progreso (se llena con el scroll en cualquier navegador) */
.film {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 60; background: transparent;
}
.film::after {
  content: ""; display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--red));
  transform-origin: left; transform: scaleX(var(--scroll, 0));
}
.steps {
  max-width: 1080px; margin: 0 auto; padding: 1rem 1.25rem 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 720px;
}
[hidden] { display: none !important; }
.step-item { text-align: center; font-size: .8rem; color: var(--g500); }
.step-item .dot {
  width: 32px; height: 32px; border-radius: 50%; margin: 0 auto .3rem;
  display: grid; place-items: center; font-weight: 700; background: var(--g300); color: var(--g700);
}
.step-item.done .dot { background: var(--g700); color: #fff; }
.step-item.current .dot { background: var(--grad-red); color: #fff; box-shadow: 0 0 0 4px rgba(213,43,30,.18); }
.step-item.current { color: var(--red-dark); font-weight: 700; }

/* Contenedor de cada paso */
.page { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.page h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: .4rem 0 .4rem; letter-spacing: -.01em; }
.lead { color: var(--g500); margin: 0 0 1.4rem; font-size: 1.05rem; }
.back { display: inline-block; margin-bottom: .6rem; color: var(--g500); text-decoration: none; font-size: .95rem; font-weight: 600; }
.back:hover { color: var(--red); }

/* Botones */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .55rem;
  background: var(--grad-red); color: #fff; padding: .95rem 1.8rem; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.02rem; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; text-align: center;
  box-shadow: 0 12px 26px rgba(185,31,20,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 34px rgba(185,31,20,.42); }
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { background: #c9c9c9; cursor: not-allowed; box-shadow: none; transform: none; }
.btn:disabled::before { display: none; }
.btn.ghost {
  background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.85);
  box-shadow: none; backdrop-filter: blur(4px);
}
.btn.ghost:hover { background: #fff; color: var(--red-dark); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.btn.light { background: #fff; color: var(--red-dark); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.btn.light:hover { background: #fff7f6; }
.btn.light::before { background: linear-gradient(100deg, transparent, rgba(213,43,30,.18), transparent); }
.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(5px); }
.actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1.5rem; align-items: center; }

/* Tarjetas de opción (sucursal, estudio) */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.option {
  background: #fff; border: 0; border-left: 5px solid var(--red); border-radius: 16px; padding: 1.1rem 1.2rem;
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s;
}
.option:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(185,31,20,.16); }
.option strong { display: block; font-size: 1.08rem; color: var(--g900); }
.option small { color: var(--g500); }
.tag-region {
  display: inline-block; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  background: var(--red-soft); color: var(--red-dark); padding: .18rem .6rem; border-radius: 999px; margin-top: .45rem; font-weight: 700;
}

/* Estudios */
.search {
  width: 100%; padding: .9rem 1.1rem; border: 2px solid var(--g300); border-radius: 999px; font: inherit; background: #fff;
}
.search:focus { outline: none; border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 1rem; }
.chip {
  border: 2px solid var(--g300); background: #fff; border-radius: 999px; padding: .32rem .9rem;
  cursor: pointer; font: inherit; font-size: .9rem; color: var(--g700); font-weight: 600; transition: all .2s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.on { background: var(--grad-red); color: #fff; border-color: transparent; }
.list { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.item {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; width: 100%;
  background: #fff; border: 0; border-bottom: 1px solid #efefef; font: inherit; text-align: left; cursor: pointer; color: inherit;
  transition: background .2s;
}
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--red-soft); }
.item .meta { font-size: .85rem; color: var(--g500); }
.item .price { white-space: nowrap; font-weight: 800; color: var(--red-dark); align-self: center; }
.empty { padding: 1.2rem; color: var(--g500); }

/* Formularios */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } .logos img { height: 52px; } }
.card-box { background: #fff; border-radius: 20px; padding: 1.7rem; box-shadow: 0 12px 30px rgba(0,0,0,.07); }
label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .3rem; color: var(--g700); }
input, select, textarea {
  width: 100%; padding: .8rem 1rem; border: 2px solid var(--g300); border-radius: 12px; font: inherit; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(213,43,30,.12); }
.full { grid-column: 1 / -1; }
.err { color: var(--err); font-size: .85rem; min-height: 1.1em; margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.check input { width: auto; margin-top: .3rem; }

/* Resumen */
.summary { border: 0; border-radius: 16px; padding: 1.2rem 1.4rem; background: var(--red-soft); }
.summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed #efc2bd; }
.summary div:last-child { border-bottom: 0; }
.total { font-size: 1.3rem; font-weight: 800; color: var(--red-dark); }
.notice { padding: .9rem 1rem; border-radius: 12px; background: #fff7e6; border: 1px solid #f5d28a; color: #7a4a00; font-size: .92rem; margin: .8rem 0; }
.small { color: var(--g500); font-size: .85rem; margin-top: 1rem; }

footer { background: var(--g900); color: #d4d4d4; padding: 2.2rem 1.25rem; font-size: .9rem; }
footer .inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; }
footer a { color: #ffb4ad; }

/* ===== Efectos con scroll (JS, funcionan en todos los navegadores) ===== */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.from-left { transform: translateX(-70px); }
.js .reveal.from-right { transform: translateX(70px); }
.js .reveal.in { opacity: 1; transform: none; }

/* Titular de bienvenida: palabra por palabra al cargar */
.hero-word { display: inline-block; opacity: 0; animation: word-in .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * .12s + .25s); }
@keyframes word-in { from { opacity: 0; transform: translateY(.5em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* Radiografía de muestra (dibujada con CSS) */
.xray {
  position: relative; width: min(520px, 100%); aspect-ratio: 4 / 3; margin: 0 auto; overflow: hidden;
  border-radius: 22px; border: 8px solid #fff; box-shadow: 0 24px 60px rgba(0,0,0,.4);
  background:
    radial-gradient(ellipse 17% 30% at 36% 52%, #3b3b3b 0 62%, transparent 66%),
    radial-gradient(ellipse 17% 30% at 64% 52%, #3b3b3b 0 62%, transparent 66%),
    linear-gradient(90deg, transparent 47%, #ffffff 48% 52%, transparent 53%),
    radial-gradient(ellipse 60% 70% at 50% 50%, #e9e9e9 0 60%, #bdbdbd 100%);
}
.xray svg, .xray-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.xray::after {
  content: ""; position: absolute; left: 0; right: 0; height: 4px; top: 0; z-index: 2;
  background: var(--coral); box-shadow: 0 0 22px var(--coral);
}

/* Bloque de bienvenida */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 4.5rem 1.25rem 5.5rem;
  background:
    radial-gradient(circle at 88% 15%, rgba(255,106,94,.45), transparent 42%),
    radial-gradient(circle at 5% 90%, rgba(255,255,255,.12), transparent 40%),
    linear-gradient(150deg, #e8372a 0%, #b91f14 45%, #5c0d08 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -160px; top: -180px; animation: spin 40s linear infinite; }
.hero::after { width: 300px; height: 300px; left: -120px; bottom: -120px; animation: spin 30s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.06; margin: .9rem 0 1rem; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.hero p { color: #ffe3e0; font-size: 1.15rem; max-width: 520px; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); padding: .38rem .9rem; border-radius: 999px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.hero-logo {
  display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 0 auto 1.4rem;
  width: fit-content; background: #fff; padding: .6rem 1.1rem; border-radius: 18px; box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.hero-logo img { height: 64px; width: auto; }
.hero-note { margin-top: 1.4rem; display: flex; align-items: center; gap: .6rem; font-size: .98rem; color: #fff; font-weight: 700; }
.hero-note .heart { display: inline-block; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }

/* Franja en movimiento */
.marquee { background: var(--g900); color: #fff; overflow: hidden; white-space: nowrap; padding: .9rem 0; font-weight: 700; letter-spacing: .05em; }
.marquee-track { display: inline-block; animation: marquee 28s linear infinite; }
.marquee span { margin: 0 1.6rem; }
.marquee span::after { content: "✚"; margin-left: 3.2rem; color: var(--coral); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Franja de cifras */
.stats { background: var(--grad-red); color: #fff; }
.stats-inner { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats strong { display: block; font-size: 2.2rem; line-height: 1.1; font-weight: 800; }
.stats span { font-size: .92rem; opacity: .95; }

/* Sección pegajosa: del negativo al diagnóstico */
.stage-sec { position: relative; height: 240vh; background: #fff; }
.stage {
  position: sticky; top: 90px; height: calc(100vh - 110px); max-width: 1080px; margin: 0 auto;
  padding: 0 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.stage .xray { width: 100%; margin: 0; }
.stage .xray {
  filter: invert(calc(1 - var(--p))) grayscale(calc(1 - var(--p))) contrast(calc(1.4 - .4 * var(--p))) blur(calc((1 - var(--p)) * 5px));
}
.stage .xray::after { top: calc(var(--p) * 96%); }
.stage-text { position: relative; min-height: 300px; }
.stage-step {
  position: absolute; inset: 0; opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.stage-step.on { opacity: 1; transform: none; }
.stage-step h2 { font-size: 2rem; margin: .5rem 0 .6rem; font-weight: 800; color: var(--g900); }
.stage-step p { font-size: 1.12rem; color: var(--g700); }
.stage-step .num {
  display: inline-block; background: var(--red-soft); color: var(--red-dark); font-weight: 800;
  letter-spacing: .08em; font-size: .8rem; padding: .3rem .8rem; border-radius: 999px;
}

/* Carrusel horizontal de sucursales */
.carousel-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.carousel-ctrl { display: flex; gap: .5rem; }
.carousel-ctrl button {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad-red); color: #fff;
  font-size: 1.2rem; cursor: pointer; box-shadow: 0 8px 18px rgba(185,31,20,.3); transition: transform .2s;
}
.carousel-ctrl button:hover { transform: scale(1.08); }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .2rem 1.2rem; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.sucursal-card {
  scroll-snap-align: start; text-decoration: none; border-radius: 22px; padding: 1.5rem 1.3rem; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.12); transition: transform .25s ease;
}
.sucursal-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.sucursal-card:nth-child(3n+1) { background: var(--grad-red); }
.sucursal-card:nth-child(3n+2) { background: linear-gradient(140deg, #3a3a3a, #1d1d1d); }
.sucursal-card:nth-child(3n+3) { background: linear-gradient(140deg, #ff7a6e, #d52b1e); }
.sucursal-card h3 { margin: 0; font-size: 1.35rem; font-weight: 800; color: #fff; }
.sucursal-card .region { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.sucursal-card .go { font-weight: 700; font-size: .95rem; }

/* Tarjetas de precios y CTA */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #3a3a3a 0%, #232323 100%); color: #fff;
  padding: 4rem 1.25rem; text-align: center;
}
.cta::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle, rgba(213,43,30,.35), transparent 50%); animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-6%, -4%); } to { transform: translate(6%, 6%); } }
.cta-inner { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: 2.2rem; margin: 0 0 .6rem; font-weight: 800; }
.cta p { margin: 0 auto 1.6rem; max-width: 560px; color: #e7e7e7; font-size: 1.1rem; }

.donar {
  background: #fff; border-radius: 24px; padding: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.08); border-top: 6px solid var(--red);
}
.donar .heart-big { font-size: 3rem; line-height: 1; color: var(--red); font-weight: 900; animation: beat 1.6s ease-in-out infinite; }
.donar h3 { margin: 0 0 .3rem; font-size: 1.4rem; color: var(--red-dark); }
.donar p { margin: 0; color: var(--g700); }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stage-sec { height: auto; }
  .stage { position: static; height: auto; grid-template-columns: 1fr; padding: 2.5rem 1.25rem; gap: 1.5rem; }
  .stage-text { min-height: 0; display: grid; gap: 1rem; }
  .stage-step { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .stage .xray { filter: none; }
  .donar { grid-template-columns: 1fr; text-align: center; }
  .top-inner .menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: .6rem 1.25rem 1.2rem; box-shadow: 0 16px 30px rgba(0,0,0,.14); display: none; }
  .top-inner .menu.open { display: flex; }
  .top-inner .menu a { margin: 0; padding: .8rem .4rem; border-bottom: 1px solid #f0f0f0; border-radius: 0; }
  .top-inner .menu a.menu-cta { margin: .8rem 0 0; border-radius: 999px; text-align: center; border-bottom: 0; }
  .menu-btn { display: flex; }
  .utility span { display: none; }
  .utility { justify-content: flex-end; }
  .top-inner { position: relative; }
  .logos img { height: 52px; }
}
/* ===== Landing v2: impacto, Google Ads ===== */
.hero-word.red { color: #ff5a4e; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #ff8a80; }
.eyebrow.dark { color: var(--red); }
.hero2 {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  background: #090f10; color: #fff; padding: 7rem 1.25rem 5rem;
}
.hero2-bg { position: absolute; inset: 0; }
.hero2-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
.hero2-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #090f10 28%, rgba(9,15,16,.55) 68%, rgba(9,15,16,.88)), linear-gradient(0deg, #090f10 0%, rgba(9,15,16,0) 38%); }
.hero2-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; width: 100%; }
.hero2-title { font-size: clamp(3.2rem, 8.4vw, 6.6rem); line-height: .94; letter-spacing: -.04em; font-weight: 900; margin: 1rem 0 1.4rem; }
.hero2-title .line { display: block; overflow: hidden; }
.hero2-title .hero-word { display: inline-block; }
.hero2-sub { font-size: 1.15rem; color: #c9d1d3; max-width: 560px; margin: 0; }
.hero2 .actions { margin-top: 2.2rem; }
.btn-xl { padding: 1.15rem 2.3rem; font-size: 1.1rem; }
.hero2 .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; box-shadow: none; }
.hero2 .btn.ghost:hover { background: #fff; color: #090f10; }
.trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.6rem; color: #c9d1d3; font-size: .92rem; font-weight: 700; }
.trust img { height: 44px; background: #fff; padding: 4px 8px; border-radius: 6px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px; transform: translateX(-50%); z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.numbers { background: var(--red); color: #fff; }
.numbers-inner { max-width: 1080px; margin: 0 auto; padding: 2.4rem 1.25rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.numbers strong { display: block; font-size: 2.6rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.numbers span { font-size: .9rem; opacity: .92; font-weight: 600; }

.block { background: #fff; padding: 5.5rem 1.25rem; }
.block.alt { background: #f2f2f2; }
.block > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.block-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.03em; margin: .5rem 0 2.2rem; color: var(--g900); }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.paso { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 2rem; }
.paso span { display: block; font-size: 2.4rem; font-weight: 900; color: var(--red); letter-spacing: -.02em; }
.paso h3 { font-size: 1.3rem; margin: .5rem 0 .4rem; }
.paso p { color: var(--g500); margin: 0; }
.zonas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.zona { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 1.5rem; text-decoration: none; color: var(--g900); transition: border-color .2s, transform .2s; }
.zona:hover { border-color: var(--red); transform: translateY(-3px); }
.zona strong { display: block; font-size: 1.15rem; }
.zona small { color: var(--g500); font-weight: 600; }
.costos { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; background: #fff; border-left: 6px solid var(--red); padding: 2.4rem; }
.costos p { color: var(--g700); max-width: 560px; font-size: 1.1rem; margin: .4rem 0 0; }
.costos .block-title { margin-bottom: .4rem; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid #ddd; padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--g700); margin: .6rem 0 0; }
.final { background: #090f10; color: #fff; padding: 6.5rem 1.25rem; text-align: center; }
.final-inner { max-width: 800px; margin: 0 auto; }
.final h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -.035em; margin: 0 0 1rem; line-height: 1; }
.red-t { color: #ff5a4e; }
.final p { color: #c9d1d3; font-size: 1.15rem; margin-bottom: 2.2rem; }
.sucursal-card, .sucursal-card:nth-child(n) { background: #151b1d !important; border-top: 4px solid var(--red); }
.landing .carousel-head .block-title { margin-bottom: 0; }
.landing footer { background: #090f10; }

/* Estudios: estilo sobrio (sin pastel ni íconos infantiles) */
.sc-ico { display: none; }
.study-grid { gap: 0; border: 1px solid #ddd; background: #fff; border-radius: 4px; overflow: hidden; }
.study-card { border: 0; border-bottom: 1px solid #e5e5e5; border-radius: 0; box-shadow: none; border-left: 4px solid #111; padding: 1.2rem 1.4rem; animation: none; }
.study-card:hover { transform: none; box-shadow: none; border-left-color: var(--red); background: #fafafa; }
.study-card strong { font-size: 1.05rem; }
.study-card small { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.sc-go { color: var(--g900); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.chip { border-radius: 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; border: 1px solid #bbb; }
.chip.on { background: #111; border-color: #111; }
.big-search { border-radius: 2px; box-shadow: none; border: 2px solid #111; font-size: 1rem; }
.big-search:focus { border-color: var(--red); box-shadow: none; }
.sede-bar { border-radius: 2px; box-shadow: none; border: 1px solid #ddd; border-left: 4px solid #111; }
.search-ico { display: none; }
.lead { color: var(--g700); }
.pop { animation: none; }
@media (max-width: 760px) {
  .numbers-inner { grid-template-columns: repeat(2, 1fr); }
  .pasos, .zonas { grid-template-columns: 1fr; }
  .costos { padding: 1.6rem; }
}

/* ===== Landing: fondo de escaneo (sin fotos) ===== */
.hero2-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero2-grid::after {
  content: ""; position: absolute; left: 0; right: 0; height: 180px; top: -180px;
  background: linear-gradient(180deg, transparent, rgba(255,106,94,.22), transparent);
  animation: scanline 6s linear infinite;
}
@keyframes scanline { to { top: 110%; } }
.hero2-bg::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 35%, rgba(213,43,30,.35), transparent 45%);
}

.stage-sec { background: #090f10; }
.stage-step h2 { color: #fff; }
.stage-step p { color: #c9d1d3; }
.stage-step .num { background: transparent; color: #ff8a80; padding: 0; letter-spacing: .2em; }

.scanner {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #17201f, #0a1011 70%); border: 1px solid #1f2a2b;
}
.scanner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.scanner-logo { position: absolute; inset: 0; display: grid; place-items: center; }
.scanner-logo img {
  width: 58%; height: auto; background: #fff; padding: 22px 26px; border-radius: 8px;
  filter: blur(calc((1 - var(--p)) * 12px)) grayscale(calc(1 - var(--p))) brightness(calc(.35 + var(--p) * .65));
  opacity: calc(.25 + var(--p) * .75);
}
.scanner::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; top: calc(var(--p) * 100%);
  background: #ff6a5e; box-shadow: 0 0 22px #ff6a5e;
}

/* Centros: lista sobria, sin pastel */
.zona-titulo { margin: 1.6rem 0 .7rem; font-size: .9rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--g700); }
.hero2-side { position: absolute; right: 6%; top: 50%; width: min(420px, 36vw); transform: translateY(-50%); z-index: 1; }
@media (max-width: 860px) { .hero2-side { display: none; } }
.sucursal-card .region { color: #ff8a80; }
.branch {
  background: #fff; border: 1px solid #e3e3e3; border-left: 4px solid #111; border-radius: 4px; box-shadow: none;
  padding: 1.1rem 1.2rem; animation: none;
}
.branch:hover { transform: none; box-shadow: none; border-left-color: var(--red); background: #fafafa; }
.branch-name { font-size: 1.15rem; letter-spacing: -.01em; }
.branch .tag-region { background: transparent; color: var(--g500); padding: 0; margin-top: .1rem; font-size: .72rem; letter-spacing: .12em; }
.branch-actions .ver-mapa { border-radius: 2px; border: 1px solid #111; color: #111; background: #fff; }
.branch-actions .ver-mapa:hover, .branch-actions .ver-mapa.activo { background: #111; color: #fff; box-shadow: none; }
.branch-actions .agendar { border-radius: 2px; background: #111; box-shadow: none; }
.branch-actions .agendar:hover { background: var(--red); transform: none; }
.map-box { border-radius: 4px; box-shadow: none; border: 1px solid #ddd; }
.map-box iframe { border-radius: 2px; }
.map-title { text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.sede-bar { border-radius: 2px; }
.zona { border-radius: 4px; }
.zona-hint { font-size: .9rem; }

/* ===== Journey: sucursal, estudio, fecha ===== */
.pop { animation: pop-in .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.zona { margin: 1.6rem 0 .7rem; font-size: 1rem; color: var(--g700); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.branch {
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; text-align: left; cursor: pointer;
  background: #fff; border: 0; border-radius: 18px; padding: 1rem 1.1rem; font: inherit; color: var(--g900);
  box-shadow: none; border-left: 4px solid #111;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: pop-in .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s);
}
.branch:hover, .branch:focus-visible { transform: none; box-shadow: none; outline: none; }
.branch-name { font-size: 1.12rem; font-weight: 800; }
.branch { cursor: default; }
.branch-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; width: 100%; }
.branch-actions button { flex: 1; border-radius: 999px; padding: .55rem .7rem; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.branch-actions .ver-mapa { background: #fff; color: var(--red-dark); border: 2px solid var(--red); }
.branch-actions .ver-mapa:hover, .branch-actions .ver-mapa.activo { background: var(--red-soft); }
.branch-actions .ver-mapa.activo { box-shadow: inset 0 0 0 1px var(--red); }
.branch-actions .agendar { background: var(--grad-red); color: #fff; border: 0; box-shadow: 0 6px 14px rgba(185,31,20,.25); }
.branch-actions .agendar:hover { transform: translateY(-2px); }
.sede-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem;
  background: #fff; border-left: 5px solid var(--red); border-radius: 14px; padding: .8rem 1.1rem; margin: 0 0 1.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.sede-bar a { font-weight: 800; color: var(--red-dark); }
.branch .tag-region { margin-top: 0; }
.go-arrow { font-size: .85rem; font-weight: 700; color: var(--red-dark); margin-top: .3rem; }
.map-box { position: sticky; top: 120px; background: #fff; border-radius: 22px; padding: 1rem; box-shadow: 0 12px 30px rgba(0,0,0,.09); }
.map-title { font-weight: 800; margin: .2rem .3rem .7rem; color: var(--g900); }
.map-box iframe { width: 100%; height: 380px; border: 0; border-radius: 16px; background: var(--g100); }
.small-btn { display: block; text-align: center; margin-top: .8rem; padding: .7rem 1rem; font-size: .95rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .map-box { position: static; } .map-box iframe { height: 260px; } }

.search-wrap { position: relative; max-width: 100%; margin: 0 0 1.2rem; }
.search-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; pointer-events: none; }
.big-search { padding: 1.1rem 1.2rem 1.1rem 3.2rem; font-size: 1.1rem; border-radius: 999px; box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; background: #fff; border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18); overflow: hidden;
}
.sug { display: flex; justify-content: space-between; gap: 1rem; width: 100%; padding: .9rem 1.2rem; border: 0; background: #fff; font: inherit; text-align: left; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
.sug:hover { background: var(--red-soft); }
.sug small { color: var(--g500); }
.sug-empty { padding: 1rem 1.2rem; color: var(--g500); }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-top: 1rem; }
.cat {
  position: relative; overflow: hidden; border: 0; border-radius: 22px; padding: 1.6rem 1.4rem; text-align: left; cursor: pointer; font: inherit; color: #fff;
  background: linear-gradient(140deg, var(--c, #d52b1e), #1d1d1d); min-height: 150px;
  box-shadow: 0 14px 30px rgba(0,0,0,.14); transition: transform .25s ease, box-shadow .25s ease;
}
.cat:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 22px 40px rgba(0,0,0,.22); }
.cat strong { display: block; font-size: 1.25rem; font-weight: 800; margin-top: .4rem; }
.cat small { opacity: .9; font-weight: 600; }
.cat-ico { font-size: 2.6rem; display: block; transition: transform .3s; }
.cat:hover .cat-ico { transform: scale(1.2) rotate(-8deg); }
.linkish { background: none; border: 0; color: var(--red-dark); font: inherit; font-weight: 700; cursor: pointer; padding: .4rem 0; }
.back-cat { margin-top: 1rem; }
.study-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.study-card {
  text-align: left; cursor: pointer; background: #fff; border: 0; border-radius: 20px; padding: 1.3rem 1.2rem; font: inherit; color: var(--g900);
  box-shadow: none; border-top: 0; transition: transform .25s, box-shadow .25s;
  animation: pop-in .5s ease both;
}
.study-card:hover { transform: translateY(-5px); box-shadow: 0 20px 36px rgba(185,31,20,.18); }
.study-card strong { display: block; font-size: 1.1rem; font-weight: 800; margin-bottom: .35rem; }
.study-card small { color: var(--red-dark); font-weight: 700; }
.study-card em { display: block; margin-top: .5rem; color: var(--g500); font-style: normal; font-size: .9rem; }
.sc-ico { display: none; }
.sc-go { display: block; margin-top: .9rem; color: var(--g900); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.study-card small { display: block; color: var(--g500) !important; font-weight: 600 !important; margin-top: .2rem; }
.sin-resultados { color: var(--g500); text-align: center; margin: 2rem 0; }

.cal-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.4rem; align-items: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-head strong { font-size: 1.2rem; text-transform: capitalize; font-weight: 800; }
.cal-nav {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad-red); color: #fff; font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 8px 18px rgba(185,31,20,.3); transition: transform .2s;
}
.cal-nav:hover:not(:disabled) { transform: scale(1.1); }
.cal-nav:disabled { background: #d5d5d5; box-shadow: none; cursor: not-allowed; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-week span { font-size: .78rem; font-weight: 800; color: var(--g500); text-transform: uppercase; padding-bottom: .3rem; }
.cal-days button {
  aspect-ratio: 1; border: 0; border-radius: 14px; background: var(--g100); font: inherit; font-weight: 700; color: var(--g900); cursor: pointer;
  transition: transform .2s, background .2s; font-size: 1rem;
}
.cal-days button:hover:not(:disabled) { background: var(--red-soft); transform: scale(1.08); }
.cal-days button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.cal-days button.hoy { box-shadow: inset 0 0 0 2px var(--red); }
.cal-days button.on { background: var(--grad-red); color: #fff; box-shadow: 0 8px 18px rgba(185,31,20,.35); transform: scale(1.06); }
.horas-title { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 800; }
.hour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.hour {
  padding: .75rem .4rem; border-radius: 999px; border: 2px solid var(--g300); background: #fff; font: inherit; font-weight: 700; cursor: pointer;
  transition: all .2s; animation: pop-in .4s ease both;
}
.hour:hover { border-color: var(--red); color: var(--red-dark); transform: translateY(-2px); }
.hour.on { background: var(--grad-red); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(185,31,20,.3); }
.hint { color: var(--g500); margin: 0; }
.bar {
  position: sticky; bottom: 14px; margin-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: #fff; border-radius: 999px; padding: .7rem .7rem .7rem 1.4rem; box-shadow: 0 16px 36px rgba(0,0,0,.16);
}
.bar .btn { padding: .75rem 1.6rem; }
@media (max-width: 860px) { .cal-layout { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .pop, .branch, .hour, .study-card { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-word { animation: none; opacity: 1; }
  .float, .hero::before, .hero::after, .marquee-track, .cta::before, .donar .heart-big, .hero-note .heart { animation: none; }
}

/* Botones de mapa: estado final */
.branch-actions .ver-mapa, .branch-actions .ver-mapa:hover { background: #fff; color: #111; border: 1px solid #111; }
.branch-actions .ver-mapa.activo { background: #111; color: #fff; }
