/* =============================
   1. VARIABLES GLOBALES
============================= */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #5CA1E6;
    --accent-color: #347ABF;
    --font-family: 'Poppins', sans-serif;
    --navbar-height: 56px;
}

/* =============================
   2. ESTILOS GENERALES
============================= */
body {
    font-family: var(--font-family);
    min-height: 100vh;
    position: relative;
    background-color: #f8f9fa;
    padding-top: var(--navbar-height);
}

/* =============================
   3. TEMAS ESPECÍFICOS
============================= */
/* Tema principal */
.theme-main {
    --theme-primary: #4A90E2;
    --theme-secondary: #5CA1E6;
    --theme-gradient: linear-gradient(135deg, #4A90E2 0%, #5CA1E6 100%);
}

/* Tema Primaria */
.theme-primaria {
    --theme-primary: #001f3f;
    --theme-secondary: #4A90E2;
    --theme-gradient: linear-gradient(135deg, #001f3f 0%, #4A90E2 100%);
}

/* Tema Premedia */
.theme-premedia {
    --theme-primary: #6f42c1;
    --theme-secondary: #e83e8c;
    --theme-gradient: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

/* Tema Media */
.theme-media {
    --theme-primary: #198754;
    --theme-secondary: #20c997;
    --theme-gradient: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

/* =============================
   4. COMPONENTES REUTILIZABLES
============================= */
/* Navbar */
.theme-navbar {
    background: var(--theme-gradient) !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}
.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

/* Hero Section */
.theme-hero {
    background: var(--theme-gradient);
    padding-top: calc(5rem + var(--navbar-height));
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.theme-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 80%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-30deg);
}

/* Tarjetas */
.subject-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}
.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.subject-card .card-body {
    padding: 2rem;
    text-align: center;
}
.subject-card .icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--theme-gradient);
    transition: all 0.3s ease;
}
.subject-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}
.subject-card i {
    font-size: 1.5rem;
    color: white;
}

/* Botones */
.theme-btn {
    background: var(--theme-gradient);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}
.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================
   5. ESTILOS RESPONSIVOS
============================= */
@media (max-width: 768px) {
    .theme-hero {
        padding: 3rem 1rem;
    }
    .nav-link::after {
        display: none;
    }
    .subject-card {
        margin-bottom: 1rem;
    }
}
.parallax {
    background-image: url('https://cdn.pixabay.com/photo/2023/02/06/17/59/ai-generated-7772478_960_720.jpg'); /* Cambia por la URL de tu imagen */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax .container {
    position: relative;
    z-index: 2;
}

.parallax:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece el fondo para mejorar legibilidad */
    z-index: 1;
}
