/* --- ESTILOS DE LA PÁGINA DE HISTORIAL --- */

.hero-historial {
    background: linear-gradient(rgba(45, 106, 79, 0.9), rgba(27, 67, 50, 0.9)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 3.5rem 2rem;
}

.hero-historial h2 { font-size: 2.2rem; margin-bottom: 0.5rem;}
.hero-historial p { font-size: 1.1rem; opacity: 0.9; }

.historial-main {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

/* --- LA LÍNEA DE TIEMPO (TIMELINE) --- */
.timeline {
    position: relative;
    border-left: 3px solid #2d6a4f;
    margin-bottom: 5rem;
    padding-left: 2.5rem; 
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    transition: all 0.4s ease;
}

/* Puntos de la línea de tiempo */
.timeline-dot {
    position: absolute;
    left: -2.9rem; 
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #40916c;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #2d6a4f;
}

.timeline-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.timeline-content h3 {
    color: #1b4332;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.timeline-content p {
    margin-bottom: 1rem;
    text-align: justify;
    color: #444;
}

.year-badge {
    display: inline-block;
    background-color: #2d6a4f;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.text-alert { background-color: #b7094c; }
.text-gold { background-color: #d4af37; color: #1b4332; }

/* Cajas de aprendizaje */
.aprendizajes-box {
    background-color: #f2f9f5;
    border-left: 4px solid #40916c;
    padding: 1.2rem;
    margin-top: 1.5rem;
    border-radius: 4px;
}
.aprendizajes-box h4 { color: #1b4332; margin-bottom: 0.5rem; }
.aprendizajes-box ul { padding-left: 1.2rem; }
.aprendizajes-box li { margin-bottom: 0.5rem; color: #333; }

blockquote {
    border-left: 4px solid #2d6a4f;
    background-color: #e9f5ed;
    padding: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.nota-vida-real {
    background: #fff5f5;
    border-left: 4px solid #b7094c;
    padding: 1rem;
    margin: 1.5rem 0;
}
.nota-vida-real h5 { color: #b7094c; font-size: 1rem; margin-bottom: 0.3rem;}

/* Grid para el año 2026 */
.destacado {
    border: 2px solid #d4af37;
    background-color: #fffdf6;
}
.cuentas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.cuenta-card {
    background: #fff;
    padding: 1rem;
    border: 1px solid #e1e8e4;
    border-radius: 6px;
}
.cuenta-card h5 { color: #2d6a4f; font-size: 1.05rem; margin-bottom: 0.4rem; }
.resumo-actual { font-weight: 500; color: #1b4332 !important; }

/* --- SECCIÓN CONCLUSIÓN --- */
.conclusion-container {
    background-color: #1b4332;
    color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.conclusion-container h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: #b7e4c7; }
.conclusion-container p { margin-bottom: 1.2rem; opacity: 0.95; text-align: justify; }
.meta-box {
    background-color: rgba(255,255,255,0.1);
    border: 1px dashed #b7e4c7;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    margin: 2rem 0;
    border-radius: 6px;
}
.final-call { font-size: 1.2rem; font-weight: bold; color: #b7e4c7; text-align: center !important; margin-top: 2rem; }

/* ===================================================
   REGLAS RESPONSIVAS DE LA LÍNEA DE TIEMPO
   =================================================== */

@media (max-width: 768px) {
    .historial-main {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .timeline {
        padding-left: 1.8rem; 
    }

    .timeline-dot {
        left: -2.2rem; 
    }

    .timeline-content {
        padding: 1.5rem; 
    }

    .hero-historial h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-historial {
        padding: 2.5rem 1rem;
    }

    .hero-historial h2 {
        font-size: 1.5rem;
    }

    .hero-historial p {
        font-size: 0.95rem;
    }

    .timeline {
        padding-left: 1.2rem; 
    }

    .timeline-dot {
        left: -1.6rem;
        width: 12px;
        height: 12px;
        top: 20px;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-content h3 {
        font-size: 1.15rem; 
    }

    .cuentas-grid {
        grid-template-columns: 1fr; 
        gap: 0.8rem;
    }

    .conclusion-container {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .conclusion-container h3 {
        font-size: 1.4rem;
    }

    .meta-box {
        font-size: 1rem;
    }
}