/* ==========================================================================
   VARIABLES GLOBALES
   ========================================================================== */
:root {
    --accent: #F5B400;
    --accent-2: #FFD100;
    --text: #F2F2F2;
    --bg: #1C1C1E;
    --bg-navbar: rgba(28, 28, 30, 0.8);
}

/* ==========================================================================
   RESET GLOBAL
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

/* Fix general para evitar desbordes en secciones básicas */
.hero img,
.programs img,
section img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   ⚡ NAVBAR DINÁMICO (EFECTO SCROLL)
   ========================================================================== */
.navbar-custom {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 20px;
    padding-bottom: 20px;
}

.navbar-custom.scrolled {
    background-color: rgba(28, 28, 30, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Enlaces del menú */
.nav-link-custom {
    color: rgba(242, 242, 242, 0.8) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link-custom:hover, 
.navbar-nav .active .nav-link-custom {
    color: var(--accent-2) !important;
}

@media (min-width: 992px) {
    .nav-link-custom::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: var(--accent-2);
        transition: all 0.2s ease;
        transform: translateX(-50%);
    }
    .nav-link-custom:hover::after,
    .navbar-nav .active .nav-link-custom::after {
        width: 60%;
    }
}

/* Botones Auth Navbar */
.btn-login-custom {
    color: var(--text) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login-custom:hover {
    color: var(--accent-2) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-register-custom {
    color: #111111 !important;
    background-color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 180, 0, 0.2);
    transition: all 0.2s ease;
}

.btn-register-custom:hover {
    background-color: var(--accent-2);
    transform: translateY(-1px);
}

/* Menu Móvil Colapsado */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg);
        margin: 1rem -15px -12px -15px;
        padding: 1.5rem;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-link-custom { padding: 0.75rem 0 !important; }
}