/* ======================= Variables y Estilos Globales ======================= */
:root {
    --primary-color: #003d76; /* Azul oscuro corporativo */
    --secondary-color: #0F172A; /* Un azul casi negro para fondos */
    --accent-color: #FECD5B;   /* Dorado/Amarillo para acentos */
    --light-gray: #f8f9fa;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-body);
    color: #333;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #fbd781;
    border-color: #fbd781;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ======================= Menú de Navegación ======================= */
#main-navbar {
    transition: background-color 0.4s ease-out;
    background-color: transparent;
}

#main-navbar.navbar-scrolled {
    background-color: rgba(15, 23, 42, 0.9); /* Azul casi negro con transparencia */
    backdrop-filter: blur(5px);
}

.navbar .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent-color);
}

/* ======================= Sección de Héroe ======================= */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay oscuro para legibilidad */
    z-index: -50;
}

.hero-content h1 {
    font-family: var(--font-heading);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ======================= Tarjetas de Cursos ======================= */
.card-curso {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card-curso:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.card-curso .card-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* ======================= Sección Parallax ======================= */
.parallax-section {
    background-image: url('../imagenes/img/huey-holo.png'); /* Reemplaza con una imagen de fondo de calidad */
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
/* Overlay para la sección parallax para mejorar legibilidad */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 61, 118, 0.6); /* Overlay azul */
}
.parallax-section .container {
    position: relative;
    z-index: 2;
}


/* ======================= Sección ¿Por qué CEAAR? ======================= */
.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* ======================= Footer ======================= */
footer {
    background-color: var(--secondary-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--accent-color) !important;
}

/* ======================= Estilos Página de Cursos ======================= */

.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
    margin-top: 58px; /* Ajusta según la altura de tu navbar */
}

#filter-controls .btn-filter {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    color: #333;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

#filter-controls .btn-filter:hover {
    background-color: #ced4da;
}

#filter-controls .btn-filter.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.course-item {
    transition: transform 0.3s ease;
}