
.sedes-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 12vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    text-align: center;
        margin-bottom: 3vh;

}

.section-title h2 {
    font-size: 5rem;
    color: #333;
    font-weight: 300;
    font-family: 'Caneletter';

}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-wrapper {
    display: flex;
        height: 50vh;

    transition: transform 0.5s ease-in-out;
    align-items: center;
}

.sede-card {
   
    display: flex;
    
    flex-direction: row;  /* Cambiado para mostrar imagen y descripción en fila */
    padding: 0 15px;
    transition: all 0.5s ease;
    align-items: center;
    justify-content: space-between; /* Ajusta el espacio entre imagen y descripción */
        transition: all 0.5s ease-in-out;

}

.sede-card.side {
     min-width: 25%;
   opacity: 0.5;
    transform: scale(0.85);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sede-card.center {
    background-color: #ffffff;
    border-radius: 20px;
    padding-left: 3vw;
    padding-right: 3vw;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.18), 0 2px 8px rgba(0,0,0,0.08);
     min-width: 50%;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;    z-index: 2;
}

.sede-image {
    width: 100%; /* Imagen ocupará la mitad del espacio */
    max-width: 400px;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}



.sede-image img {
    width: 100%;
    height: 100%;  /* Ajustar para que ocupe toda la altura */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sede-card.center .sede-image img {
        transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.sede-image:hover img {
    transform: scale(1.05); /* Suaviza el aumento de tamaño */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Suaviza la sombra */
}


.sede-info {
    padding-top: 1vh;
    display: none;
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: left; /* Alineación a la izquierda */
    max-width: 500px; /* Máxima anchura para el contenido */
    width: 100%;
 opacity: 0;
    transform: translateY(20px); /* Hace que la información suba desde abajo */
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-top: -10px;
}

.sede-card.center .sede-info {
    display: block;
    opacity: 1;
      opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sede-info h3 {
    font-size: 3rem;
    color: #000;
    font-family: 'Caneletter';
    padding: 0;
}
.sede-info p{
    font-weight: 600;
}
.sede-info .address {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.sede-info .description {
    font-size: 1rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sede-info .contact {
    font-size: 0.95rem;
    color: #555;
    text-align: left;
}

.sede-info .contact strong {
    color: #333;
}

.sede-title-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sede-card.side .sede-image {
    position: relative;
}

.sede-card.side .sede-image:hover .sede-title-overlay {
    opacity: 1;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-button:hover {
    background: #666;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.nav-button.prev {
    left: 20px;
}

.nav-button.next {
    right: 20px;
}

.indicators {

    color: #fff;
    display: flex;
    justify-content: space-evenly;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 00;
    /* Aumenta el z-index para estar por encima */
    background: #fff;
    /* Fondo blanco */
    width: 20vw;
    height: 5vh;
    align-items: center;
        margin-top: 5vh;

    margin-bottom: 5vh;
}

.indicator {
   width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #000;
    cursor: pointer;
    margin: 0 5px;
    transition: transform 0.3s ease, background-color 0.3s ease, border 0.3s ease;
    transform-origin: center;
}

.indicator.active {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    transform: scale(2.5);
    /* Agranda desde el centro */
}

.indicator:hover {
    background: #e6b800;
}

@media (max-width: 1024px) {
    .sede-card {
        min-width: 50%;
    }
    
    .sede-card.side {
        display: none;
    }
    
}

@media (max-width: 768px) {
    .sede-card {
        min-width: 100%;
        flex-direction: column;  /* Cambiar la dirección a columna para móviles */
    }

    .sede-info {
        padding: 20px;
        
    }

    .sede-image {
        width: 100%;  /* Imagen ocupa toda la anchura */
        max-height: 250px;  /* Limitar el alto */
    }

    .section-title h2 {
        font-size: 3rem;
    }

    .sede-info h3 {
        text-align: center;
        font-size: 1.8rem;
        line-height: 1;
    }
    .sede-info p {
        font-size: 0.7rem;
    }

    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .nav-button.prev {
        left: 10px;
    }

    .nav-button.next {
        right: 10px;
    }
    .indicators{
        width: 70%;
    }

}