/* Estructura y Volumen · v3.8.5.5
   Reorganización de Home y pantallas secundarias.
   Capa aditiva: preserva los estilos/componentes vigentes. */

/* Objetivo destacado convertido en acceso a Criterio operativo. */
.ev-objective-criterion-card {
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  outline: none;
}
.ev-objective-criterion-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(201,168,76,.20), 0 18px 40px rgba(0,0,0,.18);
  border-color: var(--gold) !important;
}
@media (hover:hover) and (pointer:fine) {
  .ev-objective-criterion-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.16);
  }
}

/* Las pantallas secundarias se sienten parte de la misma Home, sin duplicar el menú completo. */
.secondary-home-screen {
  background: var(--black);
  min-height: 100vh;
}
.secondary-screen-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 78px;
  padding: 15px 60px;
  display: grid;
  grid-template-columns: minmax(190px,1fr) auto;
  align-items: center;
  gap: 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.secondary-brand { justify-self: start; cursor: pointer; }
.secondary-screen-context {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
.secondary-screen-context strong { color: var(--text-muted); font-weight: 600; }
.secondary-back-btn {
  justify-self: end;
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .78rem;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.secondary-back-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.secondary-home-main { padding-top: 78px; }

/* Las secciones conservan sus medidas originales, solo se ajusta el aire superior dentro de la nueva pantalla. */
.secondary-tools-main #bolsas { padding-top: 72px !important; }
.secondary-tools-main #sesiones { padding-top: 34px !important; padding-bottom: 92px; }
.secondary-membership-main #precios { padding-top: 72px !important; }
.secondary-criterion-main #criterio-operativo { padding-top: 72px !important; padding-bottom: 92px; }

/* En la Home, el nuevo orden es Enfoque → Objetivos → Programa → Contenido. */
#landing #objetivos { padding-top: 60px !important; }
#landing #modules { padding-top: 76px; }

@media (max-width: 980px) {
  .secondary-screen-nav {
    padding: 14px 24px;
    grid-template-columns: 1fr auto;
  }
  .secondary-screen-context { display: none; }
}

@media (max-width: 640px) {
  .secondary-screen-nav {
    min-height: 70px;
    padding: 12px 14px;
    gap: 10px;
  }
  .secondary-screen-nav .brand-sub { display: none; }
  .secondary-screen-nav .nav-logo { font-size: .92rem; }
  .secondary-back-btn {
    padding: 9px 11px;
    font-size: .7rem;
  }
  .secondary-home-main { padding-top: 70px; }
  .secondary-tools-main #bolsas,
  .secondary-membership-main #precios,
  .secondary-criterion-main #criterio-operativo { padding-top: 48px !important; }
  .secondary-tools-main #sesiones { padding-top: 24px !important; }
}


/* v3.8.5.1 · Ajuste tipográfico solicitado para la tarjeta Visión. */
.brand-intro-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: normal;
  letter-spacing: normal;
  color: var(--white);
  margin-bottom: 10px;
}


/* ═══════════════════════════════════════════════════
   v3.8.5.5 · Hero centrado + ritmo vertical de Home
   - elimina la píldora redundante del Hero;
   - recupera el copy "Aprendé a interpretar el mercado con fundamentos y criterio";
   - conserva el tamaño tipográfico original del título;
   - centra título, descripción, callout y CTAs;
   - mantiene el Header vigente intacto;
   - establece una separación proporcional Header → Hero → siguiente sección;
   - corrige el corte de palabras del remate dorado en móvil;
   - compacta solo móviles de poca altura, sin alterar desktop ni móviles normales.
═══════════════════════════════════════════════════ */
#landing > .hero.hero-centered-v3853 {
  min-height: 100svh;
  padding: 150px 60px 72px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

#landing .hero-centered-content-v3853 {
  flex: 0 1 1260px;
  width: min(1260px, 100%);
  max-width: 1260px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#landing .hero-centered-content-v3853 h1 {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  font-size: clamp(2.4rem, 5vw, 3.82rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

#landing .hero-line-v3853 {
  display: block;
}

#landing .hero-line-gold-v3853 {
  color: var(--gold);
}

#landing .hero-centered-content-v3853 .hero-sub {
  width: min(920px, 100%);
  max-width: 920px;
  margin: 36px auto 0;
  text-align: center;
  line-height: 1.7;
}

/* v3.8.5.18 · Callout Hero: variante C + ritmo vertical +7/+7 aprobado. */
#landing .hero-centered-content-v3853 .hero-brand-statement {
  width: min(660px, 100%);
  max-width: 660px;
  margin: 37px auto 0;
  padding: 15px 22px;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.10rem;
  font-weight: 700;
  line-height: 1.50;
  color: var(--text);
}

#landing .hero-centered-content-v3853 .hero-actions {
  justify-content: center;
  margin-top: 45px;
}

/* Ritmo vertical de la Home. El Hero ocupa al menos un viewport para que,
   a 100% de zoom en escritorio, su cierre no se mezcle visualmente con Enfoque. */
#landing > .brand-intro-section {
  padding-top: 84px;
  padding-bottom: 64px;
}

#landing > #objetivos {
  padding-top: 76px !important;
  padding-bottom: 80px;
}

#landing > #modules {
  padding-top: 80px;
  padding-bottom: 82px;
}

#landing > #ofrecemos {
  padding-top: 80px !important;
  padding-bottom: 82px;
}

#landing > #preguntas-frecuentes {
  padding-top: 80px;
  padding-bottom: 78px;
}

#landing > #contacto {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

@media (max-width: 1180px) {
  #landing > .hero.hero-centered-v3853 {
    padding: 138px 28px 70px;
  }
}

@media (max-width: 1024px) {
  #landing > .hero.hero-centered-v3853 {
    min-height: auto;
    padding: 132px 28px 68px;
    align-items: flex-start;
  }

  #landing .hero-centered-content-v3853 h1 {
    font-size: clamp(2.8rem, 7vw, 3.82rem);
  }

  #landing > .brand-intro-section,
  #landing > #objetivos,
  #landing > #modules,
  #landing > #ofrecemos,
  #landing > #preguntas-frecuentes {
    padding-top: 68px !important;
    padding-bottom: 68px;
  }
}

@media (max-width: 760px) {
  #landing > .hero.hero-centered-v3853 {
    min-height: auto;
    padding: 112px 18px 56px;
  }

  /* v3.8.5.8: en móvil el eje del Hero es vertical. El flex-basis de 1260px
     usado en escritorio no debe convertirse en una reserva de altura. */
  #landing .hero-centered-content-v3853 {
    flex: none;
    flex-basis: auto;
  }

  #landing .hero-centered-content-v3853 h1 {
    font-size: clamp(2.05rem, 9.5vw, 3.05rem);
    line-height: 1.08;
  }

  #landing .hero-centered-content-v3853 .hero-sub {
    margin-top: 26px;
    font-size: .92rem;
    line-height: 1.65;
  }

  #landing .hero-centered-content-v3853 .hero-brand-statement {
    margin-top: 24px;
    padding: 15px 17px;
    font-size: .9rem;
  }

  #landing .hero-centered-content-v3853 .hero-actions {
    width: 100%;
    margin-top: 28px;
  }

  #landing > .brand-intro-section,
  #landing > #objetivos,
  #landing > #modules,
  #landing > #ofrecemos,
  #landing > #preguntas-frecuentes,
  #landing > #contacto {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}

/* ═══════════════════════════════════════════════════
   v3.8.5.8 · Cierre natural del Hero en móvil + ajustes v3.8.5.5
   1) La línea dorada conserva palabras completas en pantallas angostas.
   2) Solo en viewports móviles de poca altura se compacta el ritmo vertical.
   Desktop, tablet y móviles de altura normal permanecen sin cambios.
═══════════════════════════════════════════════════ */
@media (max-width: 560px) {
  #landing .hero-centered-content-v3853 .hero-line-gold-v3853 {
    font-size: .92em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

/* Variante automática para teléfonos con poca altura útil (p. ej. SE/SIII/S8).
   Se compactan espacios antes de reducir contenido. */
@media (max-width: 480px) and (max-height: 760px) and (orientation: portrait) {
  #landing > .hero.hero-centered-v3853 {
    padding: 96px 14px 34px;
  }

  #landing .hero-centered-content-v3853 h1 {
    line-height: 1.035;
  }

  #landing .hero-centered-content-v3853 .hero-sub {
    margin-top: 19px;
    line-height: 1.55;
  }

  #landing .hero-centered-content-v3853 .hero-brand-statement {
    margin-top: 18px;
    padding: 12px 14px;
    line-height: 1.5;
  }

  #landing .hero-centered-content-v3853 .hero-actions {
    margin-top: 20px;
    gap: 10px;
  }

  #landing .hero-centered-content-v3853 .hero-actions .btn-large {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Segundo escalón solo para los viewports más bajos.
   Mantiene legibilidad y tamaño táctil, pero recupera algunos píxeles extra. */
@media (max-width: 390px) and (max-height: 680px) and (orientation: portrait) {
  #landing > .hero.hero-centered-v3853 {
    padding: 88px 12px 26px;
  }

  #landing .hero-centered-content-v3853 .hero-line-gold-v3853 {
    font-size: .90em;
  }

  #landing .hero-centered-content-v3853 .hero-sub {
    margin-top: 16px;
    font-size: .88rem;
    line-height: 1.48;
  }

  #landing .hero-centered-content-v3853 .hero-brand-statement {
    margin-top: 15px;
    padding: 11px 12px;
    font-size: .86rem;
    line-height: 1.45;
  }

  #landing .hero-centered-content-v3853 .hero-actions {
    margin-top: 16px;
    gap: 8px;
  }
}

