/* Hero Section */
.historia-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

/* Misión y Visión */
.mision-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.mision, .vision {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mision.visible, .vision.visible {
    opacity: 1;
    transform: translateY(0);
}

.mision h3, .vision h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.mision-icon, .vision-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px;
}

/* Línea de Tiempo */
.historia-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.historia-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 2;
}

.timeline-content {
    display: flex;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Imagen cuadrada en la línea de tiempo */
.timeline-img {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
    flex-shrink: 0;
}

.timeline-content:hover .timeline-img {
    transform: scale(1.05);
}

.timeline-text {
    flex: 1;
    padding: 20px;
}

/* Posicionamiento de los elementos */
.left {
    left: 0;
    padding-right: 70px;
}

.right {
    left: 50%;
    padding-left: 70px;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

/* Textos de la línea de tiempo */
.timeline-year {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Responsive */
@media (max-width: 992px) {
    .timeline-content {
        flex-direction: column;
    }
    
    .timeline-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .historia-timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .left, .right {
        left: 0;
        padding-right: 25px;
    }
    
    .left::after, .right::after {
        left: 18px;
    }
    
    .historia-hero {
        height: 50vh;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .historia-hero {
        height: 60vh;
    }
}

@media (min-width: 992px) {
    .historia-hero {
        height: 70vh;
    }
}