/* Banner a pantalla completa */
.full-width-banner {
    width: 100%;
    max-height: 400px; /* Ajusta la altura máxima según sea necesario */
    overflow: hidden;
    position: relative;
}

.responsive-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* Contenido principal de contacto */
.contacto-content {
    padding: 4rem 0;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; /* Eliminado el espacio entre columnas */
    margin-bottom: 3rem;
}

/* Información de contacto */
.contacto-info h3,
.tiktok-video-container h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.tiktok-video-container h3 {
    color: white;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contacto-info .contacto-item:last-of-type {
    margin-bottom: 0; /* Corregido para eliminar espacio sobre el formulario */
}

.contacto-icon {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contacto-icon i {
    font-size: 1.2rem;
}

.contacto-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contacto-details p,
.contacto-details a {
    color: var(--text-color);
    text-decoration: none;
}

.contacto-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Estilos para los iconos de grupos */
.grupo-icons {
    display: flex;
    gap: 3rem;
    margin-top: 1.5rem;
}

.grupo-icon {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); /* Añadido para igualar estilo */
}

.grupo-icon:hover {
    transform: scale(1.1);
}

/* Forzar color blanco en el glifo del icono */
.grupo-icon i {
    color: white;
}

/* Contenedor de video de TikTok */
.tiktok-video-container {
    background-color: #FF8C00;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tiktok-video {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* Proporción 9:16 para video vertical */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #FF8C00;
}

.tiktok-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilos para el formulario de contacto */
.contact-form-section {
    padding: 0.5rem 2rem 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form-section p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

.contact-form button {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    border: none; /* Ensure btn styles are applied */
    cursor: pointer;
}

/* Contenedor para los mapas */
.mapas-contenedor {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.mapa-columna {
    flex: 1;
    background: #FF8C00;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mapa-columna h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.mapa-columna iframe {
    border-radius: 8px;
    width: 100%;
    height: 400px;
}

/* Modal del mapa */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: modalopen 0.5s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal .close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover {
    color: var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .mapas-contenedor { flex-direction: column; }
}

@media (max-width: 768px) {
    .contacto-grid { grid-template-columns: 1fr; }
    .modal-content { width: 95%; margin: 10% auto; }
    .mapa-columna iframe { height: 350px; }
}

@media (max-width: 480px) {
    .contacto-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .contacto-icon { margin-bottom: 0.5rem; }
    .mapa-columna iframe { height: 300px; }
}