/* Estilos para la sección de Formación y Experiencia */
.education-experience-section {
    padding: 90px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fondo */
.education-experience-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 84, 80, 0.03) 0%, rgba(12, 35, 64, 0.03) 100%);
    z-index: 1;
}

.education-experience-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 84, 80, 0.03) 0%, rgba(12, 35, 64, 0.03) 100%);
    z-index: 1;
}

/* Encabezado de la sección */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-accent);
    line-height: 1.8;
}

/* Contenido principal en dos columnas */
.education-experience-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Estilos comunes para ambas columnas */
.education-column,
.experience-column {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: relative;
}

/* Encabezado de columna */
.column-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.column-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 84, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.column-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.column-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 2px;
    background-color: rgba(0, 84, 80, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    left: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 84, 80, 0.2);
    z-index: 1;
}

.timeline-content {
    padding-bottom: 20px;
}

.timeline-date {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(0, 84, 80, 0.1);
    color: var(--secondary-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0 0 5px;
}

.timeline-institution {
    font-size: 1.3rem;
    color: var(--gray-accent);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.timeline-achievements {
    padding-left: 20px;
    margin: 10px 0 0;
}

.timeline-achievements li {
    font-size: 0.9rem;
    color: var(--gray-accent);
    margin-bottom: 5px;
    position: relative;
}

.timeline-achievements li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

/* Certificaciones */
.certifications {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.certifications-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.certifications-list {
    padding-left: 20px;
    margin: 0;
}

.certifications-list li {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
}

.certifications-list li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

/* Habilidades profesionales */
.skills {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.skills-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skills-grid {
    display: grid;
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
}

.skill-name {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease;
}

/* Llamada a la acción */
.education-experience-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 84, 80, 0.2);
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Estilos responsivos */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .education-experience-content {
        gap: 30px;
    }
    
    .column-title {
        font-size: 1.3rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .education-experience-section {
        padding: 70px 0;
    }
    
    .education-experience-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .education-column,
    .experience-column {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .column-icon {
        width: 40px;
        height: 40px;
    }
    
    .column-icon i {
        font-size: 1.2rem;
    }
    
    .timeline-marker {
        width: 16px;
        height: 16px;
        left: -28px;
    }
}

@media (max-width: 576px) {
    .education-experience-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .education-column,
    .experience-column {
        padding: 20px;
    }
    
    .column-title {
        font-size: 1.2rem;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline::before {
        left: 8px;
    }
    
    .timeline-marker {
        width: 14px;
        height: 14px;
        left: -25px;
        top: 6px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    .timeline-institution {
        font-size: 0.9rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes growSkill {
    from {
        width: 0;
    }
}

.section-header {
    animation: fadeInUp 0.8s ease forwards;
}

.education-column {
    animation: fadeInLeft 0.8s ease 0.2s forwards;
    opacity: 0;
}

.experience-column {
    animation: fadeInRight 0.8s ease 0.4s forwards;
    opacity: 0;
}

.timeline-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.education-column .timeline-item:nth-child(1) { animation-delay: 0.3s; }
.education-column .timeline-item:nth-child(2) { animation-delay: 0.5s; }
.education-column .timeline-item:nth-child(3) { animation-delay: 0.7s; }

.experience-column .timeline-item:nth-child(1) { animation-delay: 0.4s; }
.experience-column .timeline-item:nth-child(2) { animation-delay: 0.6s; }
.experience-column .timeline-item:nth-child(3) { animation-delay: 0.8s; }

.certifications, .skills {
    opacity: 0;
    animation: fadeInUp 0.5s ease 0.9s forwards;
}

.skill-level {
    width: 0;
    animation: growSkill 1s ease 1.2s forwards;
}

.education-experience-cta {
    opacity: 0;
    animation: fadeInUp 0.5s ease 1.4s forwards;
}

/* Efectos de hover */
.timeline-marker {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(0, 84, 80, 0.2);
}

.timeline-date {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.timeline-item:hover .timeline-date {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.column-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.column-header:hover .column-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--secondary-color);
}

.column-header:hover .column-icon i {
    color: #ffffff;
}
