/* ==========================================================================
   Estilos ÚNICOS para oferta-educativa.html - oferta-educativa.css
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/*                                  VARIABLES CSS                           */
/* -------------------------------------------------------------------------- */
/* Definimos variables específicas para esta página, o heredamos si es necesario.
   Como esta página es independiente, podemos definir sus propias variables,
   pero para mantener una paleta de colores coherente, usaremos las que ya teníamos. */
:root {
    /* Colores principales */
    --primary-color: #006400; /* Verde oscuro principal */
    --secondary-color: #088f18; /* Verde secundario */
    --accent-color: #43b17e; /* Verde acento */

    /* Colores de apoyo */
    --primary-color-alt: #226d3f; /* Verde oscuro alternativo */
    --light-green: #e8f5e9; /* Verde muy claro */

    /* Colores de texto y fondo */
    --text-color: #333; /* Texto principal oscuro */
    --light-text: #fff; /* Texto claro */
    --light-text-secondary: #666; /* Texto claro secundario */
    --light-bg: #f5f5f5; /* Fondo claro general */
    --dark-bg: #121212; /* Fondo oscuro para footer */
    --white: #fff; /* Blanco absoluto */
    --border-color: #e0e0e0; /* Color de borde sutil */

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada para cards y hover */

    /* Espaciado y bordes */
    --spacing-unit: 8px;
    --border-radius: 4px;
    --border-radius-lg: 8px; /* Bordes más redondeados para tarjetas y otros elementos */
    --border-radius-pill: 30px;

    /* Transiciones */
    --transition: all 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/*                                  RESET Y GLOBALES                        */
/* -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color-alt);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-bottom: 20px; text-align: center; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------------------------------------------------------------------------- */
/*                                  BOTONES                                   */
/* -------------------------------------------------------------------------- */
.btn-primary, .btn-secondary, .btn-platform {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-platform {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--border-radius-pill);
}

.btn-platform:hover {
    background-color: var(--secondary-color);
}

/* -------------------------------------------------------------------------- */
/*                                NAVEGACIÓN PRINCIPAL (NAVBAR)               */
/* -------------------------------------------------------------------------- */
/* Copiamos los estilos de navbar de estilosgenerales.css para consistencia,
   pero los ajustamos ligeramente para este archivo específico si fuera necesario. */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 10px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo img {
    height: 45px;
    margin-right: 12px;
}

.logo span {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color-alt);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Botón para menú móvil */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color-alt);
    background: none;
    border: none;
    padding: 5px;
}

/* Responsivo para el menú */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 100;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link:hover, .nav-link.active {
        background-color: var(--light-bg);
        color: var(--primary-color);
    }

    .nav-menu li:not(:last-child) {
        margin-left: 0;
    }
}

/* -------------------------------------------------------------------------- */
/*                                 SECCIONES GENERALES                        */
/* -------------------------------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: var(--light-bg);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* -------------------------------------------------------------------------- */
/*                                  HERO SECTION (ESPECIAL PARA DEFAULT.HTML) */
/* -------------------------------------------------------------------------- */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 70px; /* Ajuste para que no quede detrás de la navbar fija */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay oscuro para mejorar legibilidad */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

/* -------------------------------------------------------------------------- */
/*                                   CARDS GENERALES                          */
/* -------------------------------------------------------------------------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.card p {
    margin-bottom: 20px;
    color: var(--text-color);
}

/* -------------------------------------------------------------------------- */
/*                                  INFO GRID                                 */
/* -------------------------------------------------------------------------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* -------------------------------------------------------------------------- */
/*                                   GALERÍA GENERAL                          */
/* -------------------------------------------------------------------------- */
.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 900px;
}

.gallery {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    min-width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background-color: var(--primary-color);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.gallery-nav:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

/* -------------------------------------------------------------------------- */
/*                                 TESTIMONIOS                                */
/* -------------------------------------------------------------------------- */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    display: none;
}

.testimonial-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--white);
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info {
    text-align: center;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background-color: var(--primary-color);
}

/* -------------------------------------------------------------------------- */
/*                                   CTA SECTION                              */
/* -------------------------------------------------------------------------- */
.cta-section {
    text-align: center;
    padding: 80px 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* -------------------------------------------------------------------------- */
/*                                  PLATAFORMAS                               */
/* -------------------------------------------------------------------------- */
.platforms-section {
    padding: 80px 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.platform-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.platform-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.platform-card p {
    margin-bottom: 20px;
    color: var(--text-color);
}

/* -------------------------------------------------------------------------- */
/*                                    FOOTER                                  */
/* -------------------------------------------------------------------------- */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-links h4, .footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: var(--light-text);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #999;
}

/* -------------------------------------------------------------------------- */
/*                                  ESTILOS DE PESTAÑAS (OFERTA EDUCATIVA)      */
/* -------------------------------------------------------------------------- */
/* Estos estilos de pestañas se integran aquí para mantener la especificidad
   y el diseño único de esta sección. */

.tabs-container {
    margin-top: 30px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
}

.tab-btn:hover {
    background-color: #e9ecef;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* -------------------------------------------------------------------------- */
/*                                 TARJETAS DE PROGRAMA                       */
/* -------------------------------------------------------------------------- */
.program-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.program-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.program-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.program-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.program-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-icon {
    color: var(--primary-color);
    min-width: 20px;
}

/* -------------------------------------------------------------------------- */
/*                                PLAN DE ESTUDIOS                            */
/* -------------------------------------------------------------------------- */
.plan-estudios {
    margin-top: 20px;
}

.plan-estudios h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.materias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .materias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .materias-grid {
        grid-template-columns: 1fr;
    }
}

.semestre {
    margin-bottom: 20px;
}

.semestre h5 {
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.semestre ul {
    padding-left: 20px;
}

.semestre li {
    margin-bottom: 5px;
}

/* -------------------------------------------------------------------------- */
/*                                ESTILOS DE GALERÍA ESPECÍFICOS (OFERTA)      */
/* -------------------------------------------------------------------------- */
.gallery-container {
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.gallery {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    min-width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
}

.gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-dot.active {
    background-color: white;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

/* Estilos responsivos adicionales */
@media (max-width: 768px) {
    .program-details {
        flex-direction: column;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}