/* ============================================================
   Home bluetrace.mx — piezas nuevas sobre la copia del sitio (home.css)
   · Colores, menú, botones y pie iguales a las landings (azul #006aca,
     tinta #0a223b, franja #092943); armar.py recolorea también home.css.
   · Encabezado y pie: mismo esquema que las landings (masthead con anuncios
     rotativos + header; pie de 4 columnas + barra inferior).
   · Barra de refuerzos: estándar §4 (4 bloques con ícono en recuadro).
   · Barra fija de compra en móvil (§4), FAQ con respuestas.
   ============================================================ */

:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.34, 1.4, .64, 1);
  --nav: 136px;                         /* masthead fijo en escritorio (anuncio 36 + header 100) */
  --sticky-h: 0px;
}
@media (max-width: 720px) { :root { --nav: 62px; } }   /* en móvil queda fijo el header (la franja de anuncios se va) */

.bt, .pasos-seccion, #compatibilidad, .plataforma {
  --ink: #0a223b;
  --blue: #006aca;
  --blue-hover: #0055a4;
  --sky: #eaf5ff;
  --line: #dce5ed;
  --muted: #617084;
}

/* Hero sin el fondo del isotipo (blanco, como las landings) */
.hero-bg.jsx-ef3060db1140b67c { background: #fff; }

html, body { overflow-x: clip; }
h1, h2, h3 { text-wrap: balance; }
@media (max-width: 640px) {
  .section-sub, .hero-sub { line-height: 1.55; }
  /* Títulos partidos a mano que dejaban una palabra sola: que los balancee el navegador */
  .payments-section .section-h2 br, .spotlight-text .section-h2 br { display: none; }
}
section[id] { scroll-margin-top: calc(var(--nav) + 12px); }

.bt .wrap { width: min(1220px, calc(100% - 80px)); margin-inline: auto; }
@media (max-width: 1050px) { .bt .wrap { width: calc(100% - 48px); } }
@media (max-width: 720px)  { .bt .wrap { width: calc(100% - 36px); } }

/* Botón (igual que las landings) */
.bt .button {
  display: inline-flex; justify-content: center; align-items: center; gap: 40px;
  min-height: 56px; padding: 16px 25px; border: 0; border-radius: 8px;
  background: var(--blue); color: #fff; font: 600 15px Inter, sans-serif; text-decoration: none;
  transition: background .2s, transform .2s;
}
.bt .button:active { transform: scale(.97); transition-duration: .08s; }
.bt .button span[aria-hidden="true"] { display: inline-block; font-size: 1.2em; transition: transform .2s var(--ease-out); }
@media (hover: hover) {
  .bt .button:hover { background: var(--blue-hover); transform: translateY(-2px); }
  .bt .button:hover span[aria-hidden="true"] { transform: translate(2px, -2px); }
}
.bt .button.small { min-height: 44px; padding: 10px 17px; gap: 22px; font-size: 13px; white-space: nowrap; }

/* ─── Encabezado ─────────────────────────────────────────────── */
.masthead { background: #fff; position: relative; z-index: 100; }
.bt .announcement {
  height: 36px; padding: 0 8px; display: flex; align-items: center; justify-content: center;
  background: #092943; color: #fff; font-size: clamp(12px, 2.8vw, 13px); overflow: hidden;
}
.bt .announcement-message { white-space: nowrap; font-weight: 500; line-height: 1.2; transition: opacity .22s ease; }
.bt .announcement-message.is-changing { opacity: 0; }
.bt .header { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.bt .header .logo { display: block; width: 178px; height: auto; }
.bt .header nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; color: #536276; }
.bt .header nav a, .bt .header-login { color: inherit; text-decoration: none; transition: color .2s; }
.bt .header-acciones { display: flex; align-items: center; gap: 22px; }
.bt .header-login { font-size: 14px; font-weight: 600; color: #536276; }
@media (hover: hover) { .bt .header nav a:hover, .bt .header-login:hover { color: var(--blue); } }

/* Se queda fijo al bajar (sin brinco: el hueco se reserva), con sombra ligera y blur.
   En escritorio queda todo el masthead; en móvil solo el header (la franja sube y se va). */
.masthead-slot.is-fixed .masthead {
  position: fixed; inset: 0 0 auto;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 4px 18px rgba(8, 42, 71, .08);
  animation: masthead-entra .2s ease-out;
}
@media (max-width: 720px) { .masthead-slot.is-fixed .masthead { top: -36px; } }
@keyframes masthead-entra { from { transform: translateY(-6px); opacity: .85; } to { transform: none; opacity: 1; } }

@media (max-width: 1050px) {
  .bt .header { gap: 16px; }
  .bt .header nav { gap: 14px; font-size: 13px; }
  .bt .header .logo { width: 150px; }
  .bt .header-acciones { gap: 14px; }
}
@media (max-width: 860px) { .bt .header nav { display: none; } }
@media (max-width: 720px) {
  .bt .header { height: 62px; }
  .bt .header .logo { width: 136px; }
  .bt .header-login, .bt .header-cta { display: none; }   /* van en el menú */
}

/* ─── Menú móvil: tres líneas como las del isotipo (#0985fc, puntas redondas;
   la de en medio, corta y con su punto, como la "i") → se vuelve una × ── */
.menu-btn { display: none; }
@media (max-width: 720px) {
  .menu-btn {
    position: relative; display: block; width: 44px; height: 44px; margin-right: -8px;
    border: 0; border-radius: 12px; background: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-btn:active { background: #0985fc14; }
  .mb-l, .mb-punto { position: absolute; left: 10px; height: 3.4px; border-radius: 3px; background: #0985fc;
    transition: transform .3s var(--ease-out), opacity .2s, width .3s var(--ease-out); }
  .mb-1 { top: 13.5px; width: 24px; }
  .mb-2 { top: 20.3px; width: 15px; }
  .mb-punto { top: 20.3px; left: 28.6px; width: 3.4px; border-radius: 50%; }
  .mb-3 { top: 27.1px; width: 24px; }
  .menu-btn[aria-expanded="true"] .mb-1 { transform: translateY(6.8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .mb-3 { transform: translateY(-6.8px) rotate(-45deg); }
  .menu-btn[aria-expanded="true"] .mb-2,
  .menu-btn[aria-expanded="true"] .mb-punto { opacity: 0; transform: scaleX(.3); }

  .menu-movil {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;                                   /* sólido: el blur ya lo trae el header */
    box-shadow: 0 16px 30px rgba(8, 42, 71, .12); border-top: 1px solid #edf1f5;
    max-height: calc(100svh - 62px); overflow-y: auto;
    animation: menu-baja .28s var(--ease-out);
  }
  .menu-movil[hidden] { display: none; }
  .menu-movil.cierra { animation: menu-sube .18s ease-in forwards; }
  @keyframes menu-baja { from { opacity: 0; transform: translateY(-8px); } }
  @keyframes menu-sube { to { opacity: 0; transform: translateY(-6px); } }
  .menu-movil .wrap { display: flex; flex-direction: column; padding: 6px 0 20px; }
  .menu-movil .wrap > a {
    padding: 12px 0; border-bottom: 1px solid #eef2f6;
    font: 600 15px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.1px; color: var(--ink); text-decoration: none;
  }
  .menu-movil .wrap > a { animation: menu-item .35s var(--ease-out) backwards; }
  .menu-movil .wrap > a:nth-child(2) { animation-delay: .03s; } .menu-movil .wrap > a:nth-child(3) { animation-delay: .06s; }
  .menu-movil .wrap > a:nth-child(4) { animation-delay: .09s; } .menu-movil .wrap > a:nth-child(5) { animation-delay: .12s; }
  .menu-movil .wrap > a:nth-child(6) { animation-delay: .15s; }
  @keyframes menu-item { from { opacity: 0; transform: translateX(-12px); } }
  .menu-movil-acciones { display: grid; gap: 12px; margin-top: 16px; text-align: center; }
  .menu-movil-acciones .button { width: 100%; min-height: 48px; padding: 12px 20px; font-size: 14px; }
  .menu-login { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
}

/* El hero ya no necesita el hueco del encabezado viejo (que flotaba encima) */
.hero.jsx-ef3060db1140b67c { padding-top: 48px; }
@media (max-width: 899px) { .hero.jsx-ef3060db1140b67c { padding-top: 26px; } }

/* ─── Barra de refuerzos (estándar §4) ───────────────────────── */
.bt.trust-strip { background: #fff; border-block: 1px solid #edf1f5; }
.bt.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 30px; }
.trust-strip .trust-item {
  display: flex; align-items: flex-start; gap: 14px;      /* títulos alineados arriba */
  padding: 2px 22px; border-left: 1px solid #e5ebf0; min-width: 0;
}
.trust-strip .trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-strip .trust-icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 11px; background: var(--sky); color: var(--blue);
}
.trust-strip .trust-text { min-width: 0; padding-top: 3px; }
.trust-strip .trust-text b { display: block; font: 700 15.5px/1.3 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.015em; color: var(--ink); }
.trust-strip .trust-text small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (max-width: 1050px) {
  .bt.trust-strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .trust-strip .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
  .bt.trust-strip .wrap { padding-block: 24px; gap: 22px 14px; }
  .trust-strip .trust-item { flex-direction: column; gap: 10px; padding: 0; border-left: 0; }
  .trust-strip .trust-icon { width: 38px; height: 38px; border-radius: 10px; }
  .trust-strip .trust-text b { font-size: 14.5px; }
  .trust-strip .trust-text small { font-size: 12.5px; }
}

/* ─── Pie (idéntico a las landings: fondo #f3f7fb con borde superior) ── */
.bt.site-footer { display: block; width: 100%; background: #f3f7fb; border-top: 1px solid #dce5ed; padding: 55px 0 0; font-family: Inter, Arial, sans-serif; color: var(--ink); }
.bt .footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; }
.bt .footer-brand .logo { display: block; width: 170px; height: auto; }
.bt .footer-brand p { font-size: 14px; line-height: 1.8; max-width: 270px; margin: 15px 0; }
.bt .footer-main nav { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.bt .footer-main h3 { font: 600 14px Inter, sans-serif; letter-spacing: 0; margin: 0 0 7px; color: var(--ink); }
.bt .footer-main nav a { font-size: 14px; line-height: 1.6; color: #607386; text-decoration: none; }
.bt .footer-bottom {
  display: flex; justify-content: space-between; gap: 25px; flex-wrap: wrap;
  margin-top: 45px; padding: 25px 0; border-top: 1px solid #dce5ed; font-size: 12px; color: #607386;
}
.bt .footer-bottom-links { display: flex; gap: 22px; }
.bt .footer-bottom a { color: var(--blue); text-decoration: none; }
@media (hover: hover) { .bt .footer-main nav a:hover, .bt .footer-bottom a:hover { color: var(--blue); text-decoration: underline; } }
@media (max-width: 1050px) { .bt .footer-main { gap: 25px; grid-template-columns: 1.3fr 1fr 1fr 1fr; } .bt .footer-main nav a { font-size: 13px; } }
@media (max-width: 720px) {
  .bt.site-footer { padding-top: 38px; }
  .bt .footer-main { grid-template-columns: 1fr 1fr; gap: 35px 25px; }
  .bt .footer-brand { grid-column: 1 / -1; }
  .bt .footer-brand p { max-width: 360px; }
  .bt .footer-main nav a { font-size: 14px; }
  .bt .footer-main nav:last-child { grid-column: 1 / -1; }
  .bt .footer-bottom { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 30px; padding-bottom: calc(25px + var(--sticky-h)); }
}

/* ─── Barra fija de compra (móvil) ───────────────────────────── */
.bt.sticky-cta { display: none; }
@media (max-width: 720px) {
  .bt.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: #fffffff0; -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid #e5ebf0; box-shadow: 0 -8px 24px #012c4614;
    transform: translateY(110%); transition: transform .3s var(--ease-out);
  }
  .bt.sticky-cta.is-visible { transform: none; }
  .sticky-cta-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .sticky-cta-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
  .sticky-cta-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
  .sticky-cta-price strong { font: 800 21px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.04em; color: var(--ink); }
  .sticky-cta-price small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
  .bt .button.sticky-cta-button { min-height: 46px; padding: 11px 18px; gap: 10px; font-size: 14px; flex-shrink: 0; }
  /* El botón de WhatsApp sube para no quedar encima */
  .wa-button { transition: translate .3s var(--ease-out), filter .15s; }
  body.has-sticky-cta .wa-button { translate: 0 calc(-1 * var(--sticky-h)); }
}

/* Montos del plan: ancho fijo para que no "bailen" al rodar */
.plan-price, .breakdown-val { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .bt .announcement-message, .bt.sticky-cta { transition: none; }
  .masthead-slot.is-fixed .masthead, .masthead-slot.is-fixed .announcement, .menu-movil, .menu-movil .wrap > a { animation: none; }
  .mb-l, .mb-punto { transition: none; }
}
