/* ============================================================
   BRANBEX · Landing
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
  --c-dark:        #0B0D2A;  /* fondo oscuro principal */
  --c-red:         #E8432E;  /* acento rojo */
  --c-light:       #F2F1EC;  /* fondo claro / crema */
  --c-white:       #FFFFFF;  /* texto claro */
  --c-gray-dark:   #9A9CB8;  /* texto secundario sobre oscuro */
  --c-gray-light:  #5A5A6E;  /* texto secundario sobre claro */
  --c-gray-mid:    #46475C;  /* texto atenuado con buen contraste sobre claro */

  --c-line-dark:   rgba(255, 255, 255, 0.12);  /* bordes sutiles sobre oscuro */
  --c-line-light:  rgba(11, 13, 42, 0.14);     /* bordes sutiles sobre claro */

  --font-display: 'Archivo Black', system-ui, sans-serif;
  --font-body:    'Archivo', system-ui, -apple-system, sans-serif;

  --maxw: 1160px;
  --pad:  1.5rem;

  --header-h: 60px;  /* altura del header fijo (se ajusta en tablet/desktop) */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--c-dark);
  color: var(--c-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  overflow-wrap: break-word;  /* evita desbordes por palabras largas en 360px */
}

img { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section--dark  { background: var(--c-dark);  color: var(--c-white); }
.section--light { background: var(--c-light); color: var(--c-dark); }

section { padding-block: 4.5rem; }

/* el header fijo tapa el inicio de la sección al saltar por ancla */
section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Shared type ---------- */
.eyebrow {
  color: var(--c-red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: -0.01em;
}

.section__title--lg { font-size: clamp(2.1rem, 6.5vw, 3.6rem); }

.section__text {
  color: var(--c-gray-dark);
  font-size: 1.02rem;
  margin-top: 1.1rem;
  max-width: 44ch;
}
.section--light .section__text { color: var(--c-gray-light); }

.section__text--center { margin-inline: auto; text-align: center; max-width: 52ch; }
.section__text--wide   { max-width: 60ch; }

.hl { color: var(--c-red); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.95rem 2.1rem;
  border-radius: 4px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }

.btn--red {
  background: var(--c-red);
  color: var(--c-white);
  box-shadow: 0 8px 24px rgba(232, 67, 46, 0.35);
}
.btn--red:hover { box-shadow: 0 12px 30px rgba(232, 67, 46, 0.45); }

.btn--dark {
  background: var(--c-dark);
  color: var(--c-white);
  box-shadow: 0 8px 24px rgba(11, 13, 42, 0.25);
}
.btn--dark:hover { box-shadow: 0 12px 30px rgba(11, 13, 42, 0.35); }

/* ============================================================
   0. HEADER FIJO (efecto vidrio)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 13, 42, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line-dark);
}

/* si el navegador no soporta blur, opacamos más el fondo para legibilidad */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header { background: rgba(11, 13, 42, 0.94); }
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo { height: 30px; width: auto; }

/* ---------- Links ---------- */
.site-nav__link {
  color: var(--c-gray-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--c-white); }

/* ---------- Botón hamburguesa ---------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  margin-right: -9px;   /* alinea ópticamente con el borde del container */
  background: none;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--c-white);
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Panel desplegable (móvil / tablet) ---------- */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--c-dark);           /* sólido, no transparente */
  border-bottom: 1px solid var(--c-line-dark);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  padding: 0.4rem var(--pad) 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }

.site-nav .site-nav__link {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--c-line-dark);
  font-size: 0.8rem;
}
.site-nav .site-nav__link:last-child { border-bottom: none; }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);   /* deja libre el espacio del header fijo */
  padding-bottom: 0;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(232, 67, 46, 0.18), transparent 55%),
    var(--c-dark);
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 3rem;
}

.hero__kicker {
  color: var(--c-red);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero__kicker span { opacity: 0.5; margin-inline: 0.35rem; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  /* 14vw mantiene "BRANBEX" dentro del container incluso a 360px */
  font-size: clamp(2.6rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* la "B" central en rojo, igual que en el logo (hero y footer) */
.brand-b { color: var(--c-red); }

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--c-gray-dark);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.hero .btn { align-self: flex-start; }

/* ============================================================
   2. STAT
   ============================================================ */
.stat__grid {
  display: grid;
  gap: 3rem;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 22vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.stat__num-dark { color: var(--c-dark); }
.stat__num-red  { color: var(--c-red); }

.stat__caption {
  margin-top: 1rem;
  color: var(--c-gray-light);
  max-width: 22ch;
  font-size: 1.05rem;
  font-weight: 500;
}

.stat__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.08;
  color: var(--c-dark);
}
.stat__text { color: var(--c-gray-light); margin-top: 1.2rem; max-width: 46ch; }

/* ============================================================
   3. QUIÉNES SOMOS
   ============================================================ */
.about__grid { display: grid; gap: 2.5rem; }

.quote {
  border-left: 3px solid var(--c-red);
  padding: 0.4rem 0 0.4rem 1.6rem;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 3.6vw, 1.9rem);
  line-height: 1.3;
  color: var(--c-white);
}

/* ============================================================
   4. TU EVOLUCIÓN
   ============================================================ */
.evolution__head { text-align: center; margin-bottom: 3rem; }
.evolution__head .eyebrow { text-align: center; }
.evolution__head .section__title { max-width: 16ch; margin-inline: auto; color: var(--c-dark); }

.evolution__track {
  display: grid;
  gap: 2rem;
  position: relative;
}

.ev-card {
  background: var(--c-white);
  border: 1px solid var(--c-line-light);
  border-radius: 12px;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.ev-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--c-red);
  color: var(--c-red);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  flex: none;   /* el círculo no se deforma dentro del flex column */
}

.ev-card__age {
  color: var(--c-red);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ev-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--c-dark);
  margin: 0.3rem 0 0.9rem;
}

.ev-card__quote {
  font-style: italic;
  color: var(--c-gray-light);
  font-size: 0.98rem;
  flex: 1;
}

.ev-card__divider {
  border: none;
  border-top: 1px solid var(--c-line-light);
  margin: 1.4rem 0 1rem;
}

.ev-card__next {
  color: var(--c-red);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   5. PROPUESTA DE VALOR
   ============================================================ */
.value__inner { max-width: 780px; }

/* ============================================================
   6. 3 COLUMNAS
   ============================================================ */
.pillars { padding-top: 0; }

.pillars__card {
  border: 1px solid var(--c-line-dark);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 2rem;
}

.pillar__num {
  color: var(--c-red);
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}
.pillar__title {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  color: var(--c-white);
}
.pillar__text { color: var(--c-gray-dark); font-size: 0.98rem; }

/* ============================================================
   7. ASÍ HABLAMOS
   ============================================================ */
.voice__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.voice__block {
  border-radius: 14px;
  padding: 2rem 1.8rem;
  border: 1px solid var(--c-line-light);
}
.voice__block--yes { background: var(--c-white); }
.voice__block--no  { background: transparent; }

.voice__label {
  color: var(--c-red);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.voice__label--muted { color: var(--c-gray-light); }

.voice__quote {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-dark);
}
.voice__quote--strike {
  text-decoration: line-through;
  text-decoration-color: var(--c-red);
  color: var(--c-gray-mid);
  font-weight: 400;
}

/* ============================================================
   8. CTA FINAL
   ============================================================ */
/* "Así hablamos" ahora también es clara: hairline para separar ambas */
.cta { border-top: 1px solid var(--c-line-light); }

/* el kicker y el botón siguen centrados; solo el párrafo se alinea a la izquierda */
.cta__inner { text-align: center; max-width: 900px; }

.cta__kicker {
  color: var(--c-red);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}

.cta__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--c-dark);
  margin-bottom: 2.2rem;
  text-align: justify;
  max-width: 860px;
  margin-inline: auto;   /* el bloque queda centrado, el texto alineado a la izquierda */
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: 2.5rem; }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.footer__copy { color: var(--c-gray-dark); font-size: 0.85rem; }

/* ============================================================
   SCROLL FADE-IN
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — tablet ≥ 768px
   ============================================================ */
@media (min-width: 768px) {
  :root { --pad: 2.5rem; --header-h: 68px; }
  section { padding-block: 6rem; }

  .site-header__logo { height: 34px; }

  .stat__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 4rem;
  }

  .about__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
  }

  /* embudo: 3 cards con línea punteada de conexión */
  .evolution__track {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
  /* en tablet las columnas son estrechas: comprimimos padding y título */
  .ev-card { padding: 1.6rem 1.25rem; }
  .ev-card__name { font-size: 1.35rem; }
  .ev-card__quote { font-size: 0.92rem; }
  .evolution__track::before {
    content: "";
    position: absolute;
    top: 3.2rem;   /* centro del ícono con el padding de tablet */
    left: 12%;
    right: 12%;
    border-top: 2px dashed var(--c-red);
    opacity: 0.55;
    z-index: 0;
  }

  .voice__grid { grid-template-columns: 1fr 1fr; }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================================
   RESPONSIVE — desktop ≥ 1024px
   ============================================================ */
@media (min-width: 1024px) {
  :root { --header-h: 74px; }
  section { padding-block: 7rem; }

  /* header: los 5 links en línea, sin hamburguesa */
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.7rem;
    background: none;
    border-bottom: none;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .site-nav .site-nav__link {
    padding: 0;
    border-bottom: none;
    font-size: 0.72rem;
  }

  .site-header__logo { height: 38px; }

  /* recuperamos el respiro de las cards en pantallas anchas */
  .evolution__track { gap: 1.8rem; }
  .evolution__track::before { top: 3.6rem; }
  .ev-card { padding: 2rem 1.8rem; }
  .ev-card__name { font-size: 1.6rem; }
  .ev-card__quote { font-size: 0.98rem; }

  .pillars__card {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .pillar {
    padding-inline: 2.2rem;
    border-left: 1px solid var(--c-line-dark);
  }
  .pillar:first-child { border-left: none; padding-left: 0; }
  .pillar:last-child  { padding-right: 0; }

  .value__inner { max-width: 820px; }
}
