/* Estilos específicos para la página de Contacto - Versión Mejorada */


/* Sección de contacto - Mejorada accesibilidad */
.contact-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
}

/* Columna del formulario - Mejorada validación */
.contact-form-col {
    background-color: #f0f0f0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-title {
    color: #ff093c;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-intro {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
    position: relative;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1f4fa2;
    box-shadow: 0 0 0 2px rgba(31, 79, 162, 0.2);
}

/* Estilos para validación */
.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #e74c3c;
}

.form-group.valid input,
.form-group.valid textarea {
    border-color: #2ecc71;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group.invalid .error-message {
    display: block;
}

.submit-btn {
    background-color: #1f4fa2;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #183c7d;
}

.submit-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Columna de información - Mejorado mapa responsivo */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-info {
    background-color: #f0f0f0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.location-title {
    color: #ff093c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.location-address {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.map-container {
    background-color: #f0f0f0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-title {
    color: #ff093c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.map-wrapper {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Media queries para responsividad mejorada */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .contact-banner {
        padding: 2rem 0;
    }
    
    .contact-section {
        padding: 2rem 0;
    }
    
    .form-title,
    .location-title,
    .map-title {
        font-size: 1.5rem;
    }
    
    .contact-form-col,
    .location-info,
    .map-container {
        padding: 1.5rem;
    }
    
    .map-wrapper {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.8rem;
    }
    
    .map-wrapper {
        height: 200px;
    }
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title,
.location-title,
.map-title {
    animation: fadeInUp 0.8s ease-out forwards;
}

.form-group {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }