/* Estilos para la sección de contacto */
.contact-section {
    padding: 40px 0 80px;
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 1;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info-section {
    flex: 1;
    min-width: 300px;
}

.contact-info-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    text-align: left;
}

.contact-info-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #f20784;
}

.contact-info-section p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: left; /* Alineación por defecto */
}

.contact-details-wrapper {
    margin-top: 40px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #444;
    /* Eliminamos la transición del contenedor principal */
}

/* Eliminamos el hover general del item */
.contact-detail-item:hover {
    transform: none;
}

.contact-detail-item i {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #f20784;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Movemos el hover al enlace en lugar del ítem */
.contact-detail-link {
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    display: inline-block;
    transform: translateX(0);
}

.contact-detail-link:hover {
    color: #f20784;
    text-decoration: underline;
    transform: translateX(5px);
}

/* Aplicamos el hover al ícono solo cuando el enlace está en hover */
.contact-detail-link:hover + i,
.contact-detail-item:hover i {
    background-color: #f0f0f0;
    color: #f20784;
}

.contact-detail-link:hover ~ i {
    background-color: #f20784;
    color: white;
}

.contact-form-section {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f20784;
    outline: none;
}

.form-group textarea {
    resize: none;
    height: 150px;
    overflow-y: auto;
}

.submit-btn {
    background-color: #f20784;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #d40671;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .contact-content-wrapper {
        flex-direction: column;
    }
    
    .contact-form-section {
        margin-top: 5px; /* Reducido de 30px a 15px */
    }
    
    .contact-info-section h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .contact-info-section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-info-section p {
        text-align: justify; /* Texto justificado en móviles */
        text-justify: inter-word; /* Mejora la justificación */
        hyphens: auto; /* Permite la separación silábica para mejor justificación */
    }
}

/* Asegurarse de que Font Awesome esté correctamente estilizado */
.fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* =========================================
   ESTILOS PARA LOS MODALES DE CONTACTO
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white; border-radius: 20px; padding: 40px;
    max-width: 500px; width: 90%; text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.success-icon, .error-icon {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; animation: scaleIn 0.6s ease-out;
}

.success-icon { background: linear-gradient(135deg, #4CAF50, #45a049); }
.error-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); }

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-icon::before { content: '✓'; color: white; font-size: 40px; font-weight: bold; }
.error-icon::before { content: '✕'; color: white; font-size: 40px; font-weight: bold; }

.modal-title { color: #333; font-size: 28px; font-weight: 600; margin-bottom: 15px; }
.modal-message { color: #666; font-size: 16px; line-height: 1.6; margin-bottom: 25px; }

.modal-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white; border: none; padding: 15px 35px; border-radius: 30px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-button.btn-error { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.modal-button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); }

.modal-details {
    background: #f8f9fa; border-radius: 10px; padding: 15px;
    margin: 20px 0; text-align: left;
}
.modal-details h4 { color: #333; font-size: 14px; margin-bottom: 10px; font-weight: 600; }
.modal-details p { color: #666; font-size: 14px; margin: 5px 0; }