/* Estilos para la sección de equipo */
.team {
    padding: 80px 20px;
    background-color: #F6BB5C;
    overflow: hidden;
}

.team-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
}

/* Contenedor del slider */
.team-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.team-cards-container {
    display: flex;
    transition: transform 0.5s ease;
}

/* Estilos para las tarjetas de miembros */
.team-member {
    background-color: #964508;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    min-width: 100%;
    display: flex;
    flex-direction: row;
    margin-right: 20px;
    padding: 25px;
    transition: opacity 0.5s ease-in-out;
}

.team-member.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.member-image {
    width: 50%;
    min-height: 320px;
    max-height: 320px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 30px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.member-info {
    padding: 20px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}

.member-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #F6BB5C;
}

.member-role {
    font-size: 1.1rem;
    color: #F6BB5C;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.member-role:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #964508;
}

.member-bio {
    color: #F6BB5C;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    max-height: 300px;
    overflow-y: auto;
}

.member-bio p {
    margin-bottom: 12px;
}

.member-bio p:last-child {
    margin-bottom: 0;
}

/* Controles del slider */
.team-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.slider-arrow {
    background-color: #964508;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    margin: 0 10px;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-arrow:hover {
    background-color: #964508;
    transform: scale(1.1);
}

.slider-arrow.prev:before {
    content: "←";
}

.slider-arrow.next:before {
    content: "→";
}

.team-slider-dots {
    display: flex;
    margin: 0 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #964508;
    transform: scale(1.2);
}

/* Animación para la aparición de los miembros */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .team-member {
        flex-direction: column;
        padding: 20px;
    }
    
    .member-image {
        width: 100%;
        min-height: 280px;
        max-height: 280px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .member-info {
        padding: 10px 5px;
        width: 100%;
    }
    
    .member-name {
        font-size: 1.5rem;
    }
    
    .member-role {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .team {
        padding: 50px 15px;
    }
    
    .team-member {
        min-width: 100%;
        padding: 15px;
    }
    
    .member-image {
        min-height: 220px;
        max-height: 220px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Estilos adicionales para pantallas pequeñas */
@media (max-width: 480px) {
    .team-slider-controls {
        margin-top: 20px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}
