/* ===== TESTIMONIOS CARRUSEL CENTRADO ===== */
.testimonios-carrusel-section {
    padding: 5rem 2rem;
    background: var(--gris-claro);
    position: relative;
    overflow: hidden;
}

.testimonios-carrusel-section h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: var(--hunter-green); 
    font-weight: 700;
}

.testimonios-carrusel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonios-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    align-items: stretch; /* Asegura altura uniforme */
}

.testimonio-slide {
    min-width: 33.333%;
    padding: 0 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    height: auto; /* Permite crecimiento vertical */
}

/* Destacar tarjeta central */
.testimonio-slide.centered .testimonio-card {
    border: 2px solid var(--secondary);
    box-shadow: 0 15px 40px rgba(251, 155, 32, 0.15);
}

.testimonio-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Asegura que el contenido se distribuya desde el inicio */
}

.quote-mark {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--secondary); 
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonio-texto {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    margin: 1.5rem 0 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
    flex-shrink: 0; /* Mantiene tamaño fijo */
}

.testimonio-autor img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border-color: var(--primary); 
    flex-shrink: 0;
}

.autor-info {
    display: flex;
    flex-direction: column;
}

.autor-nombre {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.autor-cargo {
    color: var(--gris-medio); 
    font-size: 0.9rem;
}


/* Botones de navegación */
.carrusel-btn {
    position: absolute;
    top: 50%; /* Centrado vertical respecto a TODO el contenido */
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100; /* Z-index alto para estar sobre todo */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carrusel-btn:hover:not(:disabled) {
    background: var(--secondary); 
    transform: translateY(-50%) scale(1.1);
}

/* Botones fuera del contenedor del carrusel */
.carrusel-btn.prev {
    left: 0; /* Pegado al borde izquierdo del container */
}

.carrusel-btn.next {
    right: 0; /* Pegado al borde derecho del container */
}


.carrusel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Indicadores */
.testimonio-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.testimonio-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.testimonio-indicator.active {
    background: var(--secondary); 
    transform: scale(1.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .testimonio-slide {
        min-width: 50%;
    }
    
    .testimonio-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonio-slide {
        min-width: 100%;
        padding: 0 0.5rem;
    }   
    
    .testimonios-carrusel-section {
        padding: 3rem 1rem;
    }
    
    .testimonios-carrusel-section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .carrusel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: calc(50% - 20px); /* Ajustar para dispositivos móviles */
    }
    
    .carrusel-btn.prev {
        left: -40px; /* Mover el botón al extremo izquierdo */
    }
    
    .carrusel-btn.next {
        right: -40px; /* Mover el botón al extremo derecho */
    }
    
    .quote-mark {
        font-size: 3rem;
        top: 1rem;
        left: 1rem;
    }
}

/* En pantallas menores al max-width del carrusel */
@media (max-width: 1340px) {
    .carrusel-btn.prev {
        left: 20px;
    }
    
    .carrusel-btn.next {
        right: 20px;
    }
}