/* ============================================
   EDUCACIÓN - Estilos de página
   ============================================ */

/* Contenedor principal del artículo */
.educacion {
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
    line-height: 1.8;
    color: #333;
}

/* Título principal */
.educacion h1,
.educacion .page-header h1 {
    text-align: center;
    font-size: 2.2em;
    color: #1a1a2e;
    border-bottom: 3px solid #c0392b;
    padding-bottom: 15px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Subtítulo introductorio */
.educacion > .item-content > p:first-of-type {
    font-size: 1.15em;
    text-align: center;
    color: #555;
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.9;
    font-style: italic;
    border-left: 4px solid #c0392b;
    padding: 15px 20px;
    background: #fafafa;
}

/* Secciones H2 */
.educacion h2 {
    font-size: 1.5em;
    color: #1a1a2e;
    margin-top: 50px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    color: #fff;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.educacion h2::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #c0392b;
}

/* Secciones H3 */
.educacion h3 {
    font-size: 1.2em;
    color: #c0392b;
    margin-top: 30px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

/* Secciones H4 */
.educacion h4 {
    font-size: 1.05em;
    color: #1a1a2e;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Párrafos */
.educacion p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Listas */
.educacion ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.educacion ul li {
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.educacion ul li:last-child {
    border-bottom: none;
}

.educacion ul li::before {
    content: '▸';
    position: absolute;
    left: 5px;
    color: #c0392b;
    font-weight: bold;
}

/* Tarjetas de sección — para bloques destacados */
.edu-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.edu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.edu-card h3 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* Grid de tarjetas */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.edu-grid .edu-card {
    margin-bottom: 0;
}

/* Iconos de sección */
.edu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    border-radius: 50%;
    font-size: 1.4em;
    margin-bottom: 12px;
}

/* Bloque de llamada a la acción */
.edu-cta {
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.edu-cta h2,
.edu-cta h3 {
    color: #fff;
    background: none;
    border: none;
    margin-top: 0;
    padding: 0;
}

.edu-cta h2::after {
    display: none;
}

.edu-cta p {
    color: rgba(255,255,255,0.9);
    text-align: center;
}

.edu-cta a,
.edu-btn {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin: 5px;
    transition: background 0.3s, transform 0.2s;
}

.edu-cta a:hover,
.edu-btn:hover {
    background: #e74c3c;
    transform: translateY(-1px);
    color: #fff;
}

/* Bloque destacado / quote */
.edu-highlight {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border-left: 4px solid #c0392b;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.05em;
}

/* Timeline / Recorrido histórico */
.edu-timeline {
    position: relative;
    padding-left: 30px;
    margin: 25px 0;
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #c0392b;
    border-radius: 3px;
}

.edu-timeline-item {
    position: relative;
    padding: 15px 0 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.edu-timeline-item:last-child {
    border-bottom: none;
}

.edu-timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 22px;
    width: 13px;
    height: 13px;
    background: #c0392b;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #c0392b;
}

.edu-timeline-item h4 {
    color: #c0392b;
    margin-top: 0;
    margin-bottom: 5px;
}

/* Estadísticas / datos clave */
.edu-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.edu-stat {
    text-align: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-top: 3px solid #c0392b;
}

.edu-stat .number {
    font-size: 2em;
    font-weight: 800;
    color: #c0392b;
    display: block;
    line-height: 1.2;
}

.edu-stat .label {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* Público objetivo — badges */
.edu-audience {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.edu-audience-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.edu-audience-tag:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* Separador decorativo */
.edu-divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.edu-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #ddd;
}

.edu-divider span {
    background: #fff;
    padding: 0 20px;
    position: relative;
    color: #c0392b;
    font-size: 1.5em;
}

/* Responsive */
@media (max-width: 768px) {
    .educacion h1 {
        font-size: 1.6em;
    }

    .educacion h2 {
        font-size: 1.2em;
        padding: 10px 15px;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }

    .edu-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .edu-cta {
        padding: 25px 20px;
    }
}

/* Animación suave al scroll */
.edu-card,
.edu-timeline-item,
.edu-stat {
    opacity: 0;
    transform: translateY(20px);
    animation: eduFadeIn 0.5s ease forwards;
}

@keyframes eduFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edu-card:nth-child(1) { animation-delay: 0.1s; }
.edu-card:nth-child(2) { animation-delay: 0.2s; }
.edu-card:nth-child(3) { animation-delay: 0.3s; }
.edu-card:nth-child(4) { animation-delay: 0.4s; }

.edu-timeline-item:nth-child(1) { animation-delay: 0.1s; }
.edu-timeline-item:nth-child(2) { animation-delay: 0.2s; }
.edu-timeline-item:nth-child(3) { animation-delay: 0.3s; }
.edu-timeline-item:nth-child(4) { animation-delay: 0.4s; }

.edu-stat:nth-child(1) { animation-delay: 0.1s; }
.edu-stat:nth-child(2) { animation-delay: 0.15s; }
.edu-stat:nth-child(3) { animation-delay: 0.2s; }
.edu-stat:nth-child(4) { animation-delay: 0.25s; }
