/* --- HERO SECTION ESPECÍFICO --- */
.hero-section.small-hero {
    padding: 100px 0 60px; /* Espaciado generoso arriba para el header */
    background-color: #002e5d; /* Azul corporativo base */
    background: linear-gradient(rgba(0, 46, 93, 0.9), rgba(0, 46, 93, 0.9)), 
                url('../img/bg-hero-contact.jpg') center/cover no-repeat; /* Opcional: imagen de fondo con overlay */
    text-align: center;
    color: #ffffff;
}

.hero-section.small-hero .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Pre-título (Naranja Viva México) */
.hero-section.small-hero .pre-title {
    display: block;
    color: #e65c00;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* Título H1 */
.hero-section.small-hero h1 {
    font-size: clamp(32px, 5vw, 48px); /* Responsivo: se ajusta al tamaño de pantalla */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
	color: #fff;
}

/* Texto descriptivo */
.hero-section.small-hero .hero-text {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .hero-section.small-hero {
        padding: 80px 0 40px;
    }
    
    .hero-section.small-hero .hero-text {
        font-size: 16px;
    }
}




/* --- CONTENEDOR GENERAL --- */
.section-contact {
    padding: 80px 0;
    background-color: #f4f7f9; /* Fondo gris claro para que resalte todo */
}

.contact-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BLOQUE AZUL (INFORMACIÓN) --- */
.contact-info {
    flex: 1;
    background: #002e5d; /* Azul corporativo */
    padding: 50px;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 46, 93, 0.1);
}

.contact-info .pre-title {
    display: block;
    color: #ff9d5c; /* Naranja suave */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.contact-info h2.main-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

/* Iconos y Enlaces */
.contact-methods .method-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-methods i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ff9d5c;
    font-size: 18px;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.contact-link:hover {
    color: #ff9d5c;
}

/* Redes Sociales */
.social-links-contact {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links-contact a {
    width: 40px;
    height: 40px;
    background: #e65c00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.3s;
}

.social-links-contact a:hover {
    background: #ffffff;
    color: #e65c00;
    transform: translateY(-3px);
}

/* --- BLOQUE BLANCO (FORMULARIO) --- */
.contact-form-container {
    flex: 1.2;
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.viva-form .form-group {
    margin-bottom: 15px;
}

.viva-form label {
    display: block;
    margin-bottom: 8px;
}

.viva-form input, 
.viva-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: #fdfdfd;
}

.viva-form input:focus, 
.viva-form textarea:focus {
    border-color: #e65c00;
    outline: none;
    background: #fff;
}

/* Botón de envío */
.btn-submit {
    width: 100%;
    padding: 18px;
    background-color: #e65c00;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #002e5d;
}

/* --- RESPONSIVO --- */
@media (max-width: 991px) {
    .contact-flex {
        flex-direction: column;
    }
    
    .contact-info, 
    .contact-form-container {
        width: 100%;
    }
}

/* --- SECCIÓN DEL MAPA --- */
.contact-map {
    width: 100%;
    line-height: 0; /* Elimina espacio en blanco debajo del iframe */
    overflow: hidden;
    background-color: #f4f7f9; /* Color de carga */
}

.contact-map iframe {
    width: 100%; /* Obliga al mapa a ocupar todo el ancho */
    height: 500px; /* Altura fija para escritorio */
    border: 0;
    /* Filtro opcional: hace que el mapa se vea más integrado con el diseño */
    filter: grayscale(0.2) contrast(1.1); 
    transition: filter 0.3s ease;
}

.contact-map iframe:hover {
    filter: grayscale(0); /* Al pasar el mouse recupera sus colores originales */
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .contact-map iframe {
        height: 350px; /* Reducimos la altura en celulares para que no ocupe toda la pantalla */
    }
}