/* Modal de Testimonios */
.modal-testimonio {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #6dc62c;
}

.modal-header {
    background: linear-gradient(135deg, #6dc62c 0%, #5bb025 100%);
    padding: 30px 20px 20px;
    text-align: center;
    color: white;
    position: relative;
    flex-shrink: 0;
}

#modal-imagen{
    background-color: #ffffff;
}

.modal-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    object-fit: cover;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 30px 25px;
    background-color: #fafafa;
    flex: 1;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #6dc62c;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #5bb025;
}

.modal-body p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.7;
    color: #333;
    text-align: justify;
    font-family: 'Quicksand', sans-serif;
}

.modal-footer {
    padding: 20px 25px 25px;
    text-align: center;
    background-color: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.btn-cerrar-modal {
    background: linear-gradient(135deg, #6dc62c 0%, #5bb025 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(109, 198, 44, 0.3);
}

.btn-cerrar-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 198, 44, 0.4);
}

/* Botón "Ver más" en las tarjetas */
.btn-ver-mas {
    background: linear-gradient(135deg, #00afef 0%, #0099cc 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 175, 239, 0.3);
}

.btn-ver-mas:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 175, 239, 0.4);
    background: linear-gradient(135deg, #0099cc 0%, #0088b3 100%);
}

/* Estilos para cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 25px 15px 15px;
    }
    
    .modal-img {
        width: 60px;
        height: 60px;
    }
    
    .modal-header h3 {
        font-size: 1.3em;
    }
    
    .modal-body {
        padding: 20px 20px;
        max-height: 50vh;
    }
    
    .modal-body p {
        font-size: 1em;
    }
    
    .modal-footer {
        padding: 15px 20px 20px;
    }
    
    .btn-cerrar-modal {
        padding: 10px 25px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px 10px 10px;
    }
    
    .modal-body {
        padding: 15px 15px;
        max-height: 55vh;
    }
    
    .modal-footer {
        padding: 10px 15px 15px;
    }
    
    .close-modal {
        right: 15px;
        top: 10px;
        font-size: 24px;
    }
}

/* Animación de entrada para el botón "Ver más" */
.btn-ver-mas {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto hover en las tarjetas cuando tienen botón "Ver más" */
.card:has(.btn-ver-mas) {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:has(.btn-ver-mas):hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
} 