/* Estilos Generales */
body {
    font-family: sans-serif;
   
}

.contact-header {
    background: linear-gradient(to right, rgb(28, 109, 250), rgb(28, 109, 250));
    color: white;
    padding: 2.5rem;
    text-align: center;
}

.contact-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-form, .office-map-container, .info-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Formulario de Contacto */
.contact-form {
    /* El ancho se gestiona por el grid */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: calc(100% - 1.5rem);
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
}

.submit-btn {
    background: #0e1dee;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #ee130b;
}

.info-container-horizontal {
    display: flex;
    gap: 1rem; 
    flex-wrap: wrap; 
}

.info-container-horizontal .info-item {
    flex: 1 1 200px;
    padding: 1rem;
}

.info-container-horizontal .info-item h3 {
    color: #f23e16;
    margin-bottom: 0.5rem;
    font-size: 1.5em;
}

.info-container-horizontal .info-item p {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.office-map-container {
    /* Estilos heredados de .contact-form, .info-item */
}

.office-map-container .info-item h3 {
    color: #f22c16;
    margin-bottom: 0.5rem;
    font-size: 1.5em;
}

.office-map-container select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-map {
    height: 300px;
    width: 100%;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .info-container-horizontal {
        flex-direction: column; 
    }

    .info-container-horizontal .info-item {
        flex: 1 1 auto; 
        padding: 1rem 0; 
    }

    .contact-map {
        height: 250px;
    }
}