/* --- Nosotros Section --- */
.nosotros-section {
    font-family: 'Roboto', Arial, sans-serif;
    padding-top: 120px !important; /* Compensar navbar fijo */
}
.nosotros-section h1, .nosotros-section h2 {
    letter-spacing: 1px;
}
.nosotros-img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: transform 0.4s, box-shadow 0.4s;
}
.nosotros-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(201,55,66,0.18);
}
.nosotros-img.img-placeholder {
    background: #eaeaea;
    min-height: 250px;
}
.valores-list li {
    margin-bottom: 1rem;
    font-size: 1.08rem;
    transition: color 0.3s;
}
.valores-list li:hover {
    color: #C93742;
}
/* Timeline Vertical Profesional */
.timeline-vertical {
    position: relative;
    padding: 2rem 0;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #C93742 0%, #a82a32 50%, #C93742 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(201, 55, 66, 0.3);
}

.timeline-item-vertical {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    opacity: 1; /* Visible por defecto */
    transform: translateY(0); /* Sin desplazamiento inicial */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animación opcional para mejorar la experiencia */
.timeline-item-vertical {
    animation: fadeInUp 0.8s ease forwards;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item-vertical:nth-child(odd) {
    flex-direction: row;
}

.timeline-item-vertical:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item-vertical.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2rem;
    min-width: 120px;
}

.timeline-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #C93742 0%, #a82a32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(201, 55, 66, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid white;
}

.timeline-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(201, 55, 66, 0.6);
}

.timeline-year {
    background: #f8f9fa;
    color: #C93742;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 0.5rem;
    border: 2px solid #C93742;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.timeline-content-vertical {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-left: 5px solid #C93742;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
}

.timeline-item-vertical:nth-child(odd) .timeline-content-vertical {
    margin-left: 1rem;
    border-left: 5px solid #C93742;
    border-right: none;
}

.timeline-item-vertical:nth-child(even) .timeline-content-vertical {
    margin-right: 1rem;
    border-right: 5px solid #C93742;
    border-left: none;
}

.timeline-content-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.timeline-title {
    color: #C93742;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.timeline-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.timeline-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #495057;
    font-weight: 500;
}

.timeline-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive Timeline */
@media (max-width: 991px) {
    .timeline-vertical::before {
        left: 35px;
    }
    
    .timeline-item-vertical,
    .timeline-item-vertical:nth-child(even) {
        flex-direction: row;
    }
    
    .timeline-marker {
        margin: 0 1rem 0 0;
        min-width: 70px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .timeline-year {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
        min-width: 60px;
    }
    
    .timeline-content-vertical,
    .timeline-item-vertical:nth-child(odd) .timeline-content-vertical,
    .timeline-item-vertical:nth-child(even) .timeline-content-vertical {
        margin-left: 1rem;
        margin-right: 0;
        border-left: 5px solid #C93742;
        border-right: none;
        max-width: none;
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .timeline-vertical {
        padding: 1rem 0;
    }
    
    .timeline-item-vertical {
        margin-bottom: 2.5rem;
    }
    
    .timeline-content-vertical {
        padding: 1.2rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-description {
        font-size: 1rem;
    }
}

/* AOS-like simple animations */
.aos-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Team cards */
.nosotros-section .card {
    border-radius: 12px;
}

/* make horizontal timeline hidden scrollbar cleaner */
.timeline-vertical::-webkit-scrollbar { display: none; }
.cta-btn {
    font-size: 1.2rem;
    border-radius: 30px;
    transition: background 0.3s, box-shadow 0.3s;
}
.cta-btn:hover {
    background: #a82a32;
    box-shadow: 0 4px 24px rgba(201,55,66,0.18);
}
@media (max-width: 991px) {
    .nosotros-img {
        max-height: 280px;
    }
}
@media (max-width: 767px) {
    .nosotros-section {
        padding-top: 100px !important; /* Navbar más pequeño en móvil */
    }
    .nosotros-section h1 {
        font-size: 2rem;
    }
    .nosotros-section h2 {
        font-size: 1.3rem;
    }
}
