@import "../../../_main/components/editorial-style.css";

:root {
    --bg: #002DA4;
    --bg-light: #3EC5DB;
    --bg-gradient-image: #080604;

    --text: #ffffff;
    --text-light: rgba(255, 255, 255, 0.75);
    --accent: #cb2b2d;
    --accent-light: #3EC5DB;
    --white: #ffffff;
    --red-ucv: #cb2b2d;
    --blue-ucv: var(--bg);

    --nav-cta-hover-bg: var(--accent);
    --burger-btn-bg: var(--accent);
    --burger-btn-hover-bg: black;

    --sgi-logo-height: 40px;
    --form-section-bg: #010A2C;

    --hero-editorial-short-padding-top: 6.5rem;
    --hero-editorial-short-padding-bottom: 1.5rem;
    --hero-editorial-short-align-items: flex-end;

    --giant-letter-color: var(--white);
}

.hero-editorial {
    background: transparent !important;
}
.hero-cta-btn {
    color: var(--white) !important;
    background-color: #F6202B !important;
    border-color: #ffffff !important;
    border-width: 4px !important;
}
.hero-cta-btn:hover {
    background-color: var(--white) !important;
    border-color: var(--white) !important;
    color: #F6202B !important;
}
.hero-avail-date {
    color: var(--white) !important;
}
/* 
.body-editorial {
    background: #012C9F !important;
} */

.body-editorial {
    background: url('../img/fondo.webp') no-repeat center center / cover fixed !important;
}

@media (max-width: 767px) {
  .body-editorial {
    background-position: 75% center !important;
  }
}

.body-editorial::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    box-shadow: inset 40px 400px 340px 400px rgba(6, 12, 102, 0.87);
}

.hero-arrow {
    color: #F6202B !important;
}

.nav-cta-pill {
    color: var(--white) !important;
}

/* ============================================================
   ESCUELA DE LÍDERES — Hero personalizado (imagen + formulario)
   ============================================================ */
.el-hero-section {
    position: relative;
    z-index: 11;
    padding-top: 20px;
    padding-bottom: 80px;
    background: var(--bg);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow: hidden;
}

.el-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;  /* ambas columnas se estiran a la misma altura */
}

/* Mobile: columna simple — imagen arriba, formulario abajo, sin padding en imagen */
@media (max-width: 767px) {
    .el-hero-section {
        padding-top: 0;
        padding-bottom: 0;
    }
    .el-hero-inner {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }
    .el-hero-img-col picture {
        min-height: unset;
        flex: none;
    }
    .el-hero-banner {
        border-radius: 0;
        height: auto;
        flex: none;
    }
    .el-hero-form-col {
        padding: 32px 16px 60px;
        box-sizing: border-box;
    }
    .el-hero-form-col .formCRM {
        border-radius: 16px;
    }
}


/* Columna imagen — se estira para coincidir con la altura del form */
.el-hero-img-col {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.el-hero-img-col picture {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.el-hero-banner {
    width: 100%;
    height: 100%;          /* ocupa todo el alto disponible */
    display: block;
    border-radius: 0;
    object-fit: contain;
    object-position: center top;
    flex: 1;
}

/* Columna formulario */
.el-hero-form-col {
    width: 100%;
}

.el-hero-form-col .formCRM {
    width: 100%;
    min-height: 600px;
    height: 100%;
    border: none;
    background: transparent;
    display: block;
    border-radius: 24px;
}

/* ============================================================
   HEADER VARIANTE BLANCA — .top-nav--white
   ============================================================ */

/* El header blanco es estático (no flota sobre el hero) */
.top-nav--white {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    z-index: 200 !important;
    transform: none !important;
    background: #ffffff !important;
    border-bottom: 3px solid #002DA4 !important;
    box-shadow: 0 2px 12px rgba(0, 45, 164, 0.08) !important;
    overflow: hidden;
}

/* Ajuste del padding del container en variante blanca */
.top-nav--white .nav-container {
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    overflow: hidden;
}

/* Logo visible sobre fondo blanco — sin filtro adicional (logo ya es a color) */
.top-nav--white .logo-ucv {
    height: 44px;
    filter: none !important;
    flex-shrink: 0;
    object-fit: contain;
    object-position: left center;
}

/* Desktop: logo completo visible, escudo oculto */
.top-nav--white .logo-ucv--desktop {
    display: block;
    max-width: 220px;
}
.top-nav--white .logo-ucv--mobile {
    display: none;
}

/* Mobile (<480px): escudo visible, logo completo oculto */
@media (max-width: 479px) {
    .top-nav--white .logo-ucv--desktop {
        display: none;
    }
    .top-nav--white .logo-ucv--mobile {
        display: block;
        height: 36px;
        width: auto;
        max-width: none;
    }
}

/* Tagline derecha */
.nav-tagline-text {
    font-family: 'MessinaSerif-Light', serif;
    font-size: clamp(0.75rem, 0.7rem + 0.3vw, 1rem);
    color: #002DA4;
    text-align: right;
    line-height: 1.45;
    letter-spacing: 0.01em;
    flex-shrink: 1;
    min-width: 0;
    white-space: normal;
    word-break: keep-all;
    margin-bottom: 0px !important;
}

/* Mobile (<480px): tagline visible pero más pequeño */
@media (max-width: 479px) {
    .nav-tagline-text {
        font-size: 0.65rem;
        line-height: 1.35;
    }

    .top-nav--white .nav-container {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .nav-tagline-text {
        font-size: 0.72rem;
    }

    .top-nav--white .logo-ucv--desktop {
        height: 36px;
        max-width: 200px;
    }
}

/* Ocultar sticky nav bar en esta variante (el header es siempre visible) */
.has-white-header #sticky-nav-bar {
    display: none !important;
}