/* Estilos para la sección de contacto */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Sección de información de contacto */
.contact-info {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a5f6b 0%, #298899 100%);
    color: white;
    position: relative;
    z-index: 1;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBvcGFjaXR5PSIwLjA1Ij48cGF0dGVybiBpZD0icGF0dGVybi1iYXNlIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFucm9ybT0icm90YXRlKDQ1KSI+PHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiBmaWxsPSJ3aGl0ZSIgb3BhY2l0eT0iMC4xIj48L3JlY3Q+PC9wYXR0ZXJuPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybi1iYXNlKSI+PC9yZWN0Pjwvc3ZnPg==');
    z-index: -1;
    opacity: 0.3;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    color: white;
}

.map-section iframe {
    width: 100%;
    height: 400px; 
    border: none;
}

/* Estilos del formulario */
.contact-form {
    padding: 3rem 2.5rem;
    position: relative;
    background: white;
}

.contact-form h2 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #298899;
    border-radius: 2px;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 0;
    font-size: 1.1rem;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
    color: #2d3748;
    font-family: 'Montserrat', sans-serif;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    padding-top: 1.5rem;
    line-height: 1.6;
}

.form-group label {
    position: absolute;
    top: 1.2rem;
    left: 0;
    color: #718096;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1.1rem;
    background: white;
    padding-right: 0.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group select:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-bottom-color: #298899;
}

.form-group input:focus ~ label,
.form-group select:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:not([value=""]) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    font-size: 0.9rem;
    color: #298899;
    font-weight: 500;
    padding: 0 0.3rem;
    background: white;
}

.form-group select {
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718192' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin: 2rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 4px;
    accent-color: #298899;
    cursor: pointer;
}

.checkbox-group label {
    position: relative;
    top: 0;
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.5;
    cursor: pointer;
    background: transparent;
    padding: 0;
}

.checkbox-group a {
    color: #298899;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.checkbox-group a:hover {
    text-decoration: underline;
    color: #1a5f6b;
}

.submit-btn {
    background: linear-gradient(135deg, #298899 0%, #1a5f6b 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(26, 95, 107, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 107, 0.3);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        width: 95%;
    }
    
    .contact-info, .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        border-radius: 0 0 20px 20px;
    }
    
    .contact-info h2, .contact-form h2 {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}