/* Estilos independientes para la sección de contacto */
.contact {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
    z-index: 1;
}

.contact .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.contact .section-header p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Contenedor principal */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Columna de información */
.contact-info {
    width: 35%;
    background-color: #673de6;
    padding: 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.contact-info-header {
    margin-bottom: 30px;
}

.contact-info-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.contact-info-header p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 18px;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item span {
    font-size: 15px;
    color: #fff;
}

/* Sección de WhatsApp */
.contact-whatsapp {
    margin-top: auto;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.whatsapp-content {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}



.whatsapp-icon i {
    font-size: 28px;
    color: #fff;
}

.whatsapp-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.whatsapp-text p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.whatsapp-button {
    display: block;
    background-color: #25d366;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.whatsapp-button:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Columna del formulario */
.contact-form-wrapper {
    width: 65%;
    padding: 40px;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #673de6;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.1);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    background-color: #673de6;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #5a35c8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 61, 230, 0.2);
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .contact-card {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form-wrapper {
        width: 100%;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .contact-whatsapp {
        margin-top: 30px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact .section-header h2 {
        font-size: 28px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-info-header h3,
    .form-header h3 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .contact-info,
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .whatsapp-content {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-icon {
        margin: 0 auto 15px;
    }
}
/* Corrección para centrar el icono de WhatsApp */
.whatsapp-icon {
    width: 50px;
    height: 50px;
    background-color: #25d366;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.whatsapp-icon i {
    font-size: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@media (max-width: 576px) {
    .whatsapp-content {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-icon {
        margin: 0 auto 15px;
    }
}
/* Reglas de aislamiento para evitar conflictos con el footer */
.contact .contact-info {
    background-color: #673de6;
    padding: 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.contact .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact .contact-item i {
    font-size: 18px;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.contact .contact-item span {
    font-size: 15px;
    color: #fff;
}

/* Asegurarse de que los estilos del footer no afecten a la sección de contacto */
.contact .footer-contact-info,
.contact .footer-contact-item {
    all: unset; /* Resetea todos los estilos heredados */
}
/* Mejoras responsivas para la sección de contacto */

/* Estilos base mejorados para el contenedor */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Ajustes responsivos mejorados */
@media (max-width: 992px) {
    .contact-card {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form-wrapper {
        width: 100%;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .contact-whatsapp {
        margin-top: 30px;
        margin-bottom: 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact .section-header h2 {
        font-size: 28px;
    }
    
    .contact-info-header h3,
    .form-header h3 {
        font-size: 22px;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .submit-button {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .contact .section-header h2 {
        font-size: 24px;
    }
    
    .contact .section-header p {
        font-size: 14px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .contact-info-header h3,
    .form-header h3 {
        font-size: 20px;
    }
    
    .whatsapp-content {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-icon {
        margin: 0 auto 15px;
    }
    
    .whatsapp-button {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .contact-item {
        margin-bottom: 15px;
    }
    
    .contact-item i {
        font-size: 16px;
        margin-right: 10px;
    }
    
    .contact-item span {
        font-size: 14px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
}

/* Corrección específica para dispositivos muy pequeños */
@media (max-width: 375px) {
    .contact-info,
    .contact-form-wrapper {
        padding: 20px 15px;
    }
    
    .contact-info-header h3,
    .form-header h3 {
        font-size: 18px;
    }
    
    .contact-info-header p,
    .whatsapp-text p {
        font-size: 13px;
    }
    
    .contact-item span {
        font-size: 13px;
    }
    
    .submit-button {
        font-size: 14px;
        padding: 10px;
    }
}
/* Correcciones para problemas específicos */

/* Evitar desbordamiento horizontal */
.contact {
    overflow-x: hidden;
}

/* Asegurar que los inputs no se desborden */
.form-group input,
.form-group select,
.form-group textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* Corregir problemas de alineación en dispositivos iOS */
@supports (-webkit-touch-callout: none) {
    .contact-card {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
    }
    
    @media (max-width: 992px) {
        .contact-card {
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -webkit-flex-direction: column;
            flex-direction: column;
        }
    }
}
