/* ============================================
   ANNIE SOPER SCHOOL - HISTORIA PAGE STYLES
   ============================================
   Este archivo maneja todos los estilos visuales:
   línea de tiempo, misión/visión, valores, estadísticas.
   La estructura y responsividad están manejadas por Bootstrap.
*/

/* ========== 1. VARIABLES GLOBALES ========== */
:root {
    --primary-green: #2c5e2e;
    --primary-green-dark: #1f4521;
    --primary-green-light: #e8f0e8;
    --accent-gold: #ffc107;
    --accent-gold-dark: #e0a800;
    --neutral-light: #f8f9fa;
    --neutral-gray: #6c757d;
    --white: #ffffff;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

/* ========== 2. HERO SECTION ========== */
.hero-section-historia {
    background: linear-gradient(135deg, 
                rgba(27, 60, 34, 0.85) 0%, 
                rgba(27, 60, 34, 0.75) 100%), 
                url('/anniesoper/assets/img/login1.webp') center/cover no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* ========== 3. LÍNEA DE TIEMPO ========== */
.timeline-historia {
    position: relative;
    padding: 2rem 0;
}

/* Línea vertical central */
.timeline-historia::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-green), var(--accent-gold));
    border-radius: 2px;
}

/* Cada item de la timeline */
.timeline-historia-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 2rem);
}

.timeline-historia-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 2rem);
}

/* Badge con el año */
.timeline-historia-badge {
    position: absolute;
    right: calc(50% + 1.5rem);
    top: 0;
    width: 80px;
    text-align: center;
}

.timeline-historia-item:nth-child(even) .timeline-historia-badge {
    right: auto;
    left: calc(50% + 1.5rem);
}

.timeline-historia-badge .year {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

/* Contenido de la timeline */
.timeline-historia-content {
    width: 100%;
    max-width: 500px;
}

.timeline-icon {
    background-color: var(--primary-green-light);
}

/* ========== 4. MISIÓN, VISIÓN Y VALORES ========== */
.bg-historia-section {
    background-color: var(--primary-green-light);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card:hover .mv-icon {
    background-color: var(--primary-green);
}

.card:hover .mv-icon i {
    color: var(--white) !important;
}

.valor-item {
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.valor-item:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* ========== 5. FUNDADORA ========== */
.fundadora-img {
    position: relative;
}

.fundadora-quote {
    position: relative;
    border-left: 4px solid var(--primary-green);
}

/* ========== 6. ESTADÍSTICAS ========== */
.stat-card {
    background-color: var(--white);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ========== 7. CTA SECTION ========== */
.cta-historia-section {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
}

/* ========== 8. BOTONES PERSONALIZADOS ========== */
.btn-custom-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-custom-primary:hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    transform: translateY(-2px);
    color: var(--white);
}

/* ========== 9. RESPONSIVE AJUSTES ========== */
@media (max-width: 992px) {
    .hero-section-historia {
        min-height: 50vh;
    }
    
    .timeline-historia::before {
        left: 30px;
    }
    
    .timeline-historia-item,
    .timeline-historia-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-historia-badge,
    .timeline-historia-item:nth-child(even) .timeline-historia-badge {
        left: 0;
        right: auto;
        width: auto;
    }
    
    .timeline-historia-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section-historia {
        min-height: 45vh;
    }
    
    .timeline-historia::before {
        left: 20px;
    }
    
    .timeline-historia-item,
    .timeline-historia-item:nth-child(even) {
        padding-left: 55px;
    }
    
    .timeline-historia-badge .year {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .fundadora-img {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section-historia {
        min-height: 40vh;
    }
    
    .btn-custom-primary,
    .btn-warning,
    .btn-outline-light {
        width: 100%;
        text-align: center;
    }
    
    .d-flex.justify-content-center {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .timeline-historia-item,
    .timeline-historia-item:nth-child(even) {
        padding-left: 45px;
    }
    
    .timeline-historia::before {
        left: 12px;
    }
    
    .timeline-historia-content .card-body {
        padding: 1rem;
    }
    
    .timeline-historia-content h4 {
        font-size: 1rem;
    }
    
    .timeline-historia-content p {
        font-size: 0.85rem;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
    }
    
    .timeline-icon i {
        font-size: 1.25rem !important;
    }
    
    .mv-icon {
        width: 60px;
        height: 60px;
    }
    
    .mv-icon i {
        font-size: 1.5rem !important;
    }
    
    .valor-item {
        margin-bottom: 1rem;
    }
}