/* VARIABLES GLOBALES Y PALETA OFICIAL */
:root {
    --reach-navy: #092F67;
    --reach-orange: #E67A22;
    --reach-teal: #147E8B;
    --reach-gold: #E0A526;
    --bg-warm: #FAF6EF;
    
    --font-display: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-accent: 'Lora', Georgia, serif;
}

body {
    font-family: var(--font-body);
    color: #111827;
    background-color: #FFFFFF;
    padding-top: 76px; /* Para desfasar el navbar fijo */
}

/* NAVBAR CUSTOM */
.custom-navbar {
    background-color: rgba(9, 47, 103, 0.75) !important; /* Azul marino oficial con 85% de opacidad */
    backdrop-filter: blur(10px); /* Aplica el desenfoque de fondo tipo cristal */
    -webkit-backdrop-filter: blur(10px); /* Compatibilidad con Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Sutil línea divisoria */
    transition: all 0.3s ease;
}

.brand-title {
    font-family: var(--font-display);
    color: #FFFFFF !important;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.custom-navbar .nav-link {
    color: #FFFFFF !important;
    font-weight: 500;
    margin: 0 8px;
}

.btn-reach-orange {
    background-color: var(--reach-orange);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.btn-reach-orange:hover {
    background-color: #C56411;
    color: #FFFFFF;
}
/* Contenedor principal con la imagen de fondo */
.hero-section {
    position: relative;
    min-height: 85vh; /* Ocupa el 85% de la altura de la pantalla */
    background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=1920') no-repeat center center/cover;
    padding: 60px 0;
}

/* Capa azul translúcida para que resalte el texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 47, 103, 0.82); /* Navy oficial (#092F67) con opacidad */
    z-index: 0;
}

/* Estilos del Título Principal */
.hero-title {
    font-family: var(--font-display); /* Aplica la fuente Cinzel */
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Estilos del Subtítulo */
.hero-subtitle {
    font-size: 1.2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Caja de la barra flotante estilo UVA */
.hero-search-bar {
    background-color: rgba(6, 26, 58, 0.9); /* Azul marino muy oscuro */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px); /* Efecto de cristal esmerilado */
}

/* Textos pequeños sobre los selectores */
.text-lightSmall {
    font-size: 0.85rem;
    color: #DCE8F8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Selectores desplegables personalizados */
.custom-select {
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #111827;
    font-weight: 500;
}

.custom-select:focus {
    border-color: var(--reach-orange);
    box-shadow: 0 0 0 0.25rem rgba(230, 122, 34, 0.25);
}
/*ESTILOS PARA SECCION DE PROGRAMAS Y CURSOS*/
.section-title {
    font-family: var(--font-display);
    color: var(--reach-navy);
    font-weight: 700;
    font-size: 2.2rem;
}

.section-subtitle {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Custom Pills / Tabs */
.custom-tabs {
    background-color: #E2E8F0;
    padding: 6px;
    border-radius: 50px;
    gap: 4px;
}

.custom-tabs .nav-link {
    color: #475569;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 22px;
    transition: all 0.3s ease;
}

.custom-tabs .nav-link.active {
    background-color: var(--reach-navy);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(9, 47, 103, 0.25);
}

/* Tarjetas de Curso (Course Cards) */
.course-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Badges / Etiquetas */
.badge-live {
    background-color: #E8F5E9;
    color: var(--reach-teal);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge-popular {
    background-color: var(--reach-navy);
    color: var(--reach-gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
}

.btn-outline-reach {
    border: 2px solid var(--reach-navy);
    color: var(--reach-navy);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-reach:hover {
    background-color: var(--reach-navy);
    color: #FFFFFF;
}
/* Tamaño del logo en la barra de navegación */
.nav-logo {
    height: 65px; /* Sube la altura para que destaque bastante */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Espaciado de la barra para acomodar un logo más grande */
.custom-navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background-color: rgba(9, 47, 103, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}
/* Mejoras de contraste en el Footer */
footer p.text-muted, 
footer .text-muted {
    color: #CBD5E1 !important; /* Gris claro/azulado de alto contraste */
    font-size: 0.9rem;
}

footer p {
    color: #FFFFFF;
}
/* Estilo de la frase en una sola línea en la barra flotante */
.hero-sentence-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: #FFFFFF;
    white-space: nowrap;
}

.custom-select-inline {
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #092F67;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 36px 8px 14px;
    width: auto; /* Permite que el selector se adapte al contenido */
}

/* Slogan en 2 líneas estilo UVA */
.hero-title {
    font-family: var(--font-display); /* Cinzel */
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-subtitle-script {
    font-family: var(--font-accent); /* Lora */
    font-style: italic; /* Cursiva elegante */
    font-size: clamp(1.3rem, 2.8vw, 2.1rem);
    color: #F8FAFC;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-weight: 400;
}
/* Espaciado responsivo para el botón Explorar en pantallas pequeñas */
@media (max-width: 991px) {
    .hero-search-bar .btn-reach-orange {
        width: 100%;
        margin-top: 10px;
    }
}
/* ESTILOS DE FOOTER MULTICOLUMNA */
.site-footer {
    background-color: #041838;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.footer-tagline {
    color: #FFFFFF;
    font-size: 1rem;
}

.footer-text {
    color: #CBD5E1 !important;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Enlaces de Navegación */
.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-links a.text-orange-link {
    color: var(--reach-orange);
    font-weight: 600;
}

.footer-links a.text-orange-link:hover {
    color: #FF9D42;
}

/* Enlaces e íconos de contacto */
.footer-contact a {
    color: #CBD5E1;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-contact a:hover {
    color: #FFFFFF;
}

.footer-contact span {
    color: #CBD5E1;
    font-size: 0.95rem;
}

/* Colores personalizados para íconos */
.text-danger-custom {
    color: #E1306C; /* Tono oficial Instagram */
}

.text-warning-custom {
    color: var(--reach-orange);
}

.text-info-custom {
    color: #38BDF8;
}

/* Línea divisoria */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
}

/* COMPENSACIÓN DE SCROLL PARA LA BARRA FIJA */
section, header {
    scroll-margin-top: 45px; /* <--- JUEGA CON ESTE NÚMERO */
}

/* Corrección puntual para el buscador flotante en pantallas móviles */
@media (max-width: 767.98px) {
    .hero-search-bar .d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .hero-sentence-text {
        white-space: normal !important;
        text-align: center !important;
        margin-right: 0 !important;
    }

    .custom-select-inline {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .hero-search-bar .btn-reach-orange {
        width: 100% !important;
        margin-top: 6px !important;
    }
}
/* Botón del menú móvil en blanco brillante */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}