/* ========================================
   TESTIMONIOS - COMPACTO
   ======================================== */

.testimonios-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 30px 0; /* Compactado 40% adicional */
}

/* PROMEDIO DE CALIFICACIÓN */
.testimonios-rating-general {
    text-align: center;
    margin: 15px 0 20px; /* Compactado 40% adicional */
    padding: 12px; /* Compactado */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px; /* Reducido */
    max-width: 280px; /* Compactado 20% adicional */
    margin-left: auto;
    margin-right: auto;
}

.rating-stars {
    font-size: 1.3rem; /* Reducido de 1.5rem */
    color: #D4AF37;
    margin-bottom: 8px; /* Reducido */
}

.rating-stars i {
    margin: 0 4px; /* Reducido de 5px */
}

.rating-number {
    font-size: 1.3rem; /* Reducido de 1.5rem */
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px; /* Reducido */
}

.rating-value {
    color: #D4AF37;
}

.rating-count {
    color: #888;
    font-size: 0.85rem; /* Reducido de 0.9rem */
}

.count-value {
    color: #D4AF37;
    font-weight: 600;
}

/* CARRUSEL - COMPACTO */
.testimonios-carousel {
    position: relative;
    max-width: 700px; /* Compactado 12% adicional */
    margin: 0 auto;
    padding: 0 35px; /* Compactado */
}

.testimonios-container {
    position: relative;
    overflow: hidden;
    min-height: 200px; /* Compactado 28% adicional */
}

.testimonio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px; /* Reducido 25% */
    padding: 20px; /* Compactado 33% adicional */
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.testimonio-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonio-card.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.testimonio-rating {
    font-size: 1.2rem; /* Compactado 20% adicional */
    color: #D4AF37;
    margin-bottom: 10px; /* Reducido 33% */
}

.testimonio-texto {
    font-size: 0.95rem; /* Compactado 14% adicional */
    line-height: 1.5; /* Compactado */
    color: #fff;
    font-style: italic;
    margin: 12px 0; /* Compactado 40% */
    min-height: 70px; /* Compactado 30% */
}

.testimonio-texto::before {
    content: '"';
    font-size: 1.8rem; /* Compactado 28% adicional */
    color: #D4AF37;
    opacity: 0.3;
}

.testimonio-texto::after {
    content: '"';
    font-size: 1.8rem; /* Compactado 28% adicional */
    color: #D4AF37;
    opacity: 0.3;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Compactado 33% */
    margin-top: 12px; /* Compactado 40% */
    padding-top: 12px; /* Compactado 40% */
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.testimonio-foto {
    width: 45px; /* Compactado 25% adicional */
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonio-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonio-foto-placeholder {
    font-size: 1.5rem; /* Compactado 25% adicional */
    color: #D4AF37;
}

.testimonio-info {
    text-align: left;
}

.testimonio-nombre {
    font-size: 0.9rem; /* Compactado 18% adicional */
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.testimonio-rol {
    font-size: 0.8rem; /* Compactado 20% */
    color: #D4AF37;
    margin-bottom: 3px;
}

.testimonio-equipo {
    font-size: 0.95rem;
    color: #888;
}

/* BOTONES DEL CARRUSEL - COMPACTOS */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #D4AF37;
    color: #D4AF37;
    width: 40px; /* Reducido de 50px */
    height: 40px; /* Reducido de 50px */
    border-radius: 50%;
    font-size: 1rem; /* Reducido de 1.2rem */
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #D4AF37;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* INDICADORES - COMPACTOS */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px; /* Reducido de 10px */
    margin-top: 20px; /* Reducido de 30px */
}

.carousel-indicator {
    width: 10px; /* Reducido de 12px */
    height: 10px; /* Reducido de 12px */
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #D4AF37;
    transform: scale(1.2); /* Reducido de 1.3 */
}

.carousel-indicator:hover {
    background: #D4AF37;
}

/* LOADING */
.testimonio-loading {
    text-align: center;
    padding: 80px 20px;
}

/* ========================================
   MODAL DE FORMULARIO
   ======================================== */

.modal-testimonio {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal-testimonio.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-testimonio {
    background: #1a1a1a;
    border: 2px solid #D4AF37;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header-testimonio {
    padding: 25px 30px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-testimonio h2 {
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header-testimonio h2 i {
    color: #D4AF37;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.modal-body-testimonio {
    padding: 30px;
}

/* FORMULARIO */
.form-group-testimonio {
    margin-bottom: 20px;
}

.form-group-testimonio label {
    display: block;
    color: #D4AF37;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group-testimonio input,
.form-group-testimonio select,
.form-group-testimonio textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group-testimonio input:focus,
.form-group-testimonio select:focus,
.form-group-testimonio textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group-testimonio textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group-testimonio small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
}

.form-row-testimonio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* RATING INPUT */
.rating-input {
    display: flex;
    gap: 10px;
    font-size: 2rem;
    margin: 10px 0;
}

.rating-input i {
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-input i:hover {
    color: #D4AF37;
    transform: scale(1.2);
}

.rating-input i.fas {
    color: #D4AF37;
}

/* BOTONES DEL FORMULARIO */
.form-actions-testimonio {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary-testimonio,
.btn-secondary-testimonio {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-testimonio {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000;
}

.btn-primary-testimonio:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary-testimonio {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
}

.btn-secondary-testimonio:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
}

/* MENSAJES */
.testimonio-mensaje {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.testimonio-mensaje.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
    display: block;
}

.testimonio-mensaje.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #F44336;
    color: #F44336;
    display: block;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .testimonios-carousel {
        padding: 0 50px;
    }
    
    .testimonio-card {
        padding: 30px 20px;
    }
    
    .testimonio-texto {
        font-size: 1.1rem;
        min-height: 100px;
    }
    
    .testimonio-autor {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonio-info {
        text-align: center;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .form-row-testimonio {
        grid-template-columns: 1fr;
    }
    
    .modal-content-testimonio {
        margin: 20px;
    }
    
    .modal-body-testimonio {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .testimonios-rating-general {
        padding: 20px;
    }
    
    .rating-stars {
        font-size: 2rem;
    }
    
    .rating-number {
        font-size: 2rem;
    }
    
    .testimonio-texto {
        font-size: 1rem;
    }
    
    .testimonio-nombre {
        font-size: 1.1rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .testimonios-carousel {
        padding: 0 40px;
    }
}
