/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 76, 117, 0.8), rgba(0, 168, 150, 0.7)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Misión y Visión */
.mision-vision {
    background: white;
    padding: 80px 0;
}

.mv-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.mv-card {
    flex: 1;
    min-width: 300px;
    background: var(--light);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--primary);
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.mv-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.mv-card h3 i {
    background: var(--accent);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Mesa Directiva */
.directiva {
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.05), rgba(126, 87, 194, 0.05));
    padding: 80px 0;
}

.section-description {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.directiva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.directiva-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 25px;
    border-top: 5px solid var(--accent);
}

.directiva-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.directiva-img {
    height: 250px;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.directiva-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.directiva-card:hover .directiva-img img {
    transform: scale(1.05);
}

.directiva-card h3 {
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.cargo {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.bio {
    padding: 0 20px;
    color: #555;
}

/* Expresidentes */
.expresidentes {
    background: white;
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-year {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 30px;
    background: var(--light);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.expresidente-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.expresidente-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.expresidente-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logros {
    padding-left: 20px;
}

.logros li {
    margin-bottom: 10px;
    position: relative;
}

.logros li::before {
    content: '✓';
    position: absolute;
    left: -20px;
    color: var(--secondary);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 900px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-year {
        left: 30px;
        transform: none;
    }
    
    .timeline-content {
        width: auto;
        margin-left: 70px;
        margin-top: 40px;
        left: 0 !important;
    }
}

@media (max-width: 768px) {
    .mv-container {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .expresidente-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Carrusel de fotos - CORREGIDO ------------------------------------------------------------------*/
.carrusel-container {
    margin-top: 60px;
    padding: 30px 0;
    background: linear-gradient(to bottom, #f9f9f9, #fff);
    border-top: 1px solid #eaeaea;
}

.carrusel-titulo {
    text-align: center;
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
}

.carrusel-titulo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.carrusel-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.carrusel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 450px; /* Altura fija para el carrusel */
}

/* CORRECCIÓN: Cada slide ocupa el 100% del ancho */
.carrusel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: white;
}

.carrusel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 76, 117, 0.9));
    color: white;
    padding: 20px;
    text-align: center;
}

.carrusel-caption h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.carrusel-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Botones del carrusel */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.carrusel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carrusel-prev {
    left: 20px;
}

.carrusel-next {
    right: 20px;
}

.carrusel-btn i {
    font-size: 1.2rem;
}

/* Indicadores (dots) */
.carrusel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carrusel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carrusel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.carrusel-dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* Animación para transiciones */
@keyframes slideIn {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

.carrusel-slide.active {
    animation: slideIn 0.5s ease;
}


/* Responsive */
@media (max-width: 768px) {
    .carrusel-track {
        height: 300px;
    }
    
    .carrusel-wrapper {
        margin: 0 15px;
    }
    
    .carrusel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carrusel-caption {
        padding: 15px;
    }
    
    .carrusel-caption h4 {
        font-size: 1rem;
    }
    
    .carrusel-caption p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .carrusel-track {
        height: 250px;
    }
    
    .carrusel-btn {
        width: 35px;
        height: 35px;
    }
}