/* Hero Section Styles - Componente Unificado */

/* Hero Section Base - Para páginas internas (contact, brands, products) */
.page-hero {
    background: linear-gradient(90deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 60px 0 40px 0; /* Altura uniforme más generosa */
    text-align: center;
    height: 230px; /* Altura fija para uniformidad visual */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Títulos unificados */
.page-hero-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary-color, #698C8C);
    margin: 0;
    font-family: var(--montserrat-font), Arial, sans-serif;
    line-height: 1.2;
    text-align: center;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-color, #40403F);
    margin: 0;
    font-family: var(--poppins-font), Arial, sans-serif;
    line-height: 1.5;
    text-align: center;
    max-width: 800px;
}

/* Variantes de color para diferentes páginas */
.page-hero.contact-hero .page-hero-title {
    color: var(--primary-color, #698C8C);
}

.page-hero.brands-hero .page-hero-title {
    color: var(--primary-color, #698C8C);
    font-weight: 600;
    font-size: 2.5rem;
}

.page-hero.products-hero .page-hero-title {
    color: #3B564D;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        padding: 48px 0 32px 0;
        height: 200px; /* Altura fija en tablet */
    }
    
    .page-hero-title {
        font-size: 2rem;
    }
    
    .page-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .page-hero.brands-hero .page-hero-title {
        font-size: 2.2rem;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 40px 0 24px 0;
        height: 170px; /* Altura fija en mobile */
    }
    
    .page-hero-title {
        font-size: 1.8rem;
    }
    
    .page-hero-subtitle {
        font-size: 1rem;
    }
    
    .page-hero.brands-hero .page-hero-title {
        font-size: 2rem;
        font-weight: 600;
    }
}

/* Compatibilidad con clases existentes - DEPRECATED */
/* Estas clases se mantendrán temporalmente para compatibilidad */
.contact-header-section,
.brands-hero,
.products-header-section {
    /* Redirigir a la nueva clase unificada */
    background: linear-gradient(90deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 60px 0 40px 0;
    text-align: center;
    height: 230px; /* Altura fija para uniformidad */
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-title,
.brands-title,
.products-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary-color, #698C8C);
    margin: 0 0 16px 0;
    font-family: var(--montserrat-font), Arial, sans-serif;
    line-height: 1.2;
}

.contact-subtitle,
.brands-hero-desc,
.products-subtitle {
    font-size: 1.2rem;
    color: var(--text-color, #40403F);
    margin: 0;
    font-family: var(--poppins-font), Arial, sans-serif;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Ajustes específicos para brands */
.brands-title {
    font-weight: 600;
    font-size: 2.5rem;
}

/* Ajustes específicos para products */
.products-title {
    color: #3B564D;
}

/* Hero Section Styles - Solo Hero Estático */

/* Hero Estático */
.hero-static {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
    max-height: 750px;
}

.hero-image-container {
    width: 100%;
    height: auto;
    position: relative;
    display: block;
}

.hero-static-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 750px;
}

.hero-static .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-gray);
    text-align: center;
    padding: 0 20px;
    transform: translateX(10%);
}

/* Estilos de tipografía del hero estático */
.hero-static .hero-title {
    font-family: var(--montserrat-font);
    font-size: 6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    color: #311309;
    line-height: 1.1;
    display: block !important;
    width: 100%;
    pointer-events: auto;
    user-select: text;
    cursor: text;
}

.hero-static .hero-subtitle {
    font-family: var(--poppins-font);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #311309;
    line-height: 1.4;
    display: block !important;
    width: 100%;
    pointer-events: auto;
    user-select: text;
    cursor: text;
}

.hero-highlight {
    color: var(--secondary-color);
    font-weight: 900;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-static .hero-content {
        align-items: center;
        text-align: center;
        padding: 0 5%;
        transform: translateX(5%);
    }
    
    .hero-static .hero-title {
        font-size: 3rem;
        letter-spacing: 2px;
        max-width: none;
    }
    
    .hero-static .hero-subtitle {
        font-size: 1.3rem;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hero-static {
        max-height: 600px;
    }
    
    .hero-static-img {
        height: auto;
        max-height: 600px;
        object-fit: cover;
    }
    
    /* Sobrescribir style.css línea 950 - Hero específico con mayor especificidad */
    .hero-static .hero-title {
        font-size: 2rem !important;
        letter-spacing: 1.5px;
        margin-bottom: 0.8rem;
    }
    
    .hero-static .hero-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 1.5rem;
    }

    .hero-static .hero-content {
        padding: 0 1.5rem;
        align-items: center;
        text-align: center;
        transform: translateX(10%) !important;
    }
}

@media (max-width: 480px) {
    /* Asegurar especificidad sobre cualquier regla genérica */
    .hero-static .hero-title {
        font-size: 2rem !important;
        letter-spacing: 1px;
    }
    
    .hero-static .hero-subtitle {
        font-size: 0.8rem !important;
    }

    .hero-static .hero-content {
        padding: 0 1rem;
        align-items: center;
        text-align: center;
        transform: translateX(10%) !important;
    }
}

/* Contenedor específico del hero - Sin limitaciones de .container */
.hero-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
} /* Contact Us Page - Component CSS */

/* Contact Header Section */
.contact-header-section {
    background: linear-gradient(90deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 48px 0 24px 0;
    text-align: center;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color, #698C8C);
    margin-bottom: 12px;
    font-family: var(--montserrat-font), Arial, sans-serif;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-color, #40403F);
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--poppins-font), Arial, sans-serif;
}

/* HERO ESPECÍFICO PARA CONTACT-US - Mayor altura por texto largo */
.page-hero.contact-hero {
    height: auto; /* Permitir altura automática */
    min-height: 280px; /* Altura mínima mayor que otras páginas */
    padding: 70px 0 50px 0; /* Más padding que hero genérico */
}

.page-hero.contact-hero .page-hero-subtitle {
    max-width: 900px; /* Más ancho para texto largo */
    line-height: 1.6; /* Mejor espaciado de líneas */
}

/* RESPONSIVE ESPECÍFICO PARA CONTACT HERO */
@media (max-width: 768px) {
    .page-hero.contact-hero {
        min-height: 240px; /* Más altura que hero genérico (200px) */
        padding: 60px 0 40px 0; /* Más padding que hero genérico */
        height: auto; /* Altura automática para contenido */
    }
    
    .page-hero.contact-hero .page-hero-title {
        font-size: 1.9rem; /* Ligeramente más grande que genérico */
        line-height: 1.3; /* Mejor espaciado */
        margin-bottom: 16px; /* Más espacio con subtítulo */
    }
    
    .page-hero.contact-hero .page-hero-subtitle {
        font-size: 1.1rem; /* Igual que genérico pero mejor line-height */
        line-height: 1.5; /* Mejor legibilidad */
        max-width: 95%; /* Usar casi todo el ancho */
        padding: 0 10px; /* Padding lateral */
    }
    
    .page-hero.contact-hero .page-hero-content {
        gap: 16px; /* Más espacio entre elementos */
        padding: 0 15px; /* Padding lateral */
    }
}

@media (max-width: 480px) {
    .page-hero.contact-hero {
        min-height: 220px; /* Más altura que hero genérico (170px) */
        padding: 50px 0 35px 0; /* Más padding */
    }
    
    .page-hero.contact-hero .page-hero-title {
        font-size: 1.7rem; /* Ligeramente más grande que genérico (1.8rem) */
        line-height: 1.2;
        margin-bottom: 14px;
    }
    
    .page-hero.contact-hero .page-hero-subtitle {
        font-size: 1.05rem; /* Ligeramente más grande que genérico (1rem) */
        line-height: 1.4;
        padding: 0 8px;
    }
}

@media (max-width: 400px) {
    /* Para pantallas muy pequeñas */
    .page-hero.contact-hero {
        min-height: 200px;
        padding: 45px 0 30px 0;
    }
    
    .page-hero.contact-hero .page-hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .page-hero.contact-hero .page-hero-subtitle {
        font-size: 1rem;
        line-height: 1.3;
        padding: 0 5px;
    }
}

/* Contact Main Section */
.contact-main-section {
    padding: 32px 0 0 0;
    margin-bottom: 20px;
}

.contact-main-section>.container.contact-main-grid.contact-main-grid-70-30 {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.contact-main-grid.contact-main-grid-70-30 {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: center;
}

.contact-main-grid.contact-main-grid-70-30 .contact-map {
    flex: 0 1 60%;
    min-width: 0;
    max-width: 60%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-main-grid.contact-main-grid-70-30 .contact-map iframe {
    width: 100%;
    height: 340px;
    min-height: 340px;
    border: 0;
    border-radius: 10px;
    background: #e8f5e9;
}

.contact-main-grid.contact-main-grid-70-30 .contact-form-container {
    flex: 0 1 40%;
    min-width: 0;
    max-width: 40%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    padding: 28px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.2s;
}

/* Form Styles */
.modern-form .form-group {
    margin-bottom: 12px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color, #698C8C);
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Roboto', Arial, sans-serif;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--body-text-font, 'Open Sans', Arial, sans-serif);
    background: #f7fafc;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.modern-form input:focus,
.modern-form textarea:focus {
    border-color: #8C7355;
    box-shadow: 0 0 0 2px #e8e0d6;
    outline: none;
}

.modern-btn {
    background: linear-gradient(90deg, #698C8C 0%, #8C7355 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(140, 115, 85, 0.07);
    transition: background 0.2s, box-shadow 0.2s;
}

.modern-btn:hover {
    background: linear-gradient(90deg, #8C7355 0%, #698C8C 100%);
    box-shadow: 0 4px 16px rgba(140, 115, 85, 0.13);
}

.form-msg {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #388e3c;
    min-height: 24px;
}

.form-msg.error {
    color: #c62828;
}

/* Contact Info Section */
.contact-info-section {
    background: #f8f8f8;
    padding: 60px 0 40px 0;
}

.contact-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 0;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 25px;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 320px;
    height: auto;
    box-sizing: border-box;
    text-align: center;
}

.contact-info-item>div {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-icon {
    font-size: 2.3rem;
    color: #ffffff;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 50%, #3d8b40 100%);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 0;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    transform: scale(1);
}

.contact-icon:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 50%, #45a049 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transform: scale(1.05) translateY(-2px);
}

.contact-info-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #698C8C);
}

.contact-info-link {
    color: var(--text-color, #40403F);
    font-size: 1rem;
    text-decoration: none;
    word-break: break-all;
}

.contact-info-link:hover {
    color: var(--secondary-color, #8C7355);
}

/* Social Section */
.contact-social-section {
    background: #fff;
    padding: 20px 0 60px 0;
    text-align: center;
}

.contact-social-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.contact-social-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #698C8C);
}

.contact-social-icon {
    font-size: 2.1rem;
    color: #fff;
    background: linear-gradient(135deg, #698C8C 0%, #8C7355 100%);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.contact-social-icon:hover {
    background: linear-gradient(135deg, #8C7355 0%, #698C8C 100%);
    color: #fff200;
}

/* Variante 1: Monocromático */
.contact-social-section.mono {
    background: #f6f7f6;
}

.contact-social-section.mono .contact-social-label {
    color: #444;
}

.contact-social-section.mono .contact-social-icon {
    background: #bfcfc6;
    color: #232b2b;
}

.contact-social-section.mono .contact-social-icon:hover {
    background: #698C8C;
    color: #fff;
}

/* Variante 2: Colores originales de red social */
.contact-social-section.social-brand {
    background: #f8f8f8;
}

.contact-social-section.social-brand .contact-social-label {
    color: #444;
}

.contact-social-section.social-brand .contact-social-icon[title="Facebook"] {
    background: #1877f3;
    color: #fff;
}

.contact-social-section.social-brand .contact-social-icon[title="Instagram"] {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
}

.contact-social-section.social-brand .contact-social-icon[title="LinkedIn"] {
    background: #0077b5;
    color: #fff;
}

.contact-social-section.social-brand .contact-social-icon:hover {
    filter: brightness(1.1) contrast(1.1);
    color: #fff200;
}

/* MOBILE OPTIMIZATIONS - Responsive */
@media (max-width: 1100px) {
    .contact-main-grid.contact-main-grid-70-30 {
        flex-direction: column;
        gap: 24px; /* Aumentado de 18px para mejor separación */
    }

    .contact-main-grid.contact-main-grid-70-30 .contact-map,
    .contact-main-grid.contact-main-grid-70-30 .contact-form-container {
        max-width: 100%;
        flex: 1 1 100%;
    }

    /* Aumentar altura del mapa en tablet */
    .contact-main-grid.contact-main-grid-70-30 .contact-map iframe {
        height: 400px; /* Aumentado de 340px para mejor visibilidad */
        min-height: 400px;
    }

    .contact-info-grid {
        flex-direction: column;
        gap: 20px; /* Aumentado de 18px */
    }

    .contact-info-item {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        padding: 32px 20px; /* Aumentado padding para tablet */
    }
}

@media (max-width: 768px) {
    .contact-header-section {
        padding: 40px 0 20px 0; /* Mejorado padding */
    }

    .contact-title {
        font-size: 1.8rem; /* Aumentado de 1.3rem */
    }

    .contact-subtitle {
        font-size: 1.15rem; /* Aumentado de 1rem */
    }

    /* CONTENEDOR PRINCIPAL - SIN SCROLL HORIZONTAL */
    .contact-main-section>.container.contact-main-grid.contact-main-grid-70-30 {
        max-width: 100%; /* Usar todo el ancho disponible */
        padding: 0 15px; /* Padding consistente */
        box-sizing: border-box; /* Incluir padding en el ancho */
    }

    /* FORMULARIO MÓVIL OPTIMIZADO - SIN OVERFLOW */
    .contact-form-container {
        padding: 32px 20px 24px 20px; /* Mucho más padding para móvil */
        border-radius: 16px;
        margin: 0; /* Sin margen para evitar overflow */
        width: 100%; /* Ancho completo sin calc() */
        max-width: 100%; /* Límite seguro */
        box-sizing: border-box; /* Incluir padding en el ancho */
    }

    .form-title {
        font-size: 1.7rem; /* Aumentado para móvil */
        margin-bottom: 24px;
    }

    .modern-form .form-group {
        margin-bottom: 18px; /* Más espacio entre campos */
    }

    .modern-form input,
    .modern-form textarea {
        padding: 16px 18px; /* TÁCTIL: mucho más padding para dedos */
        font-size: 1.1rem; /* Texto más grande */
        border-radius: 12px; /* Bordes más redondeados */
        min-height: 48px; /* Altura mínima táctil */
        box-sizing: border-box;
    }

    .modern-form textarea {
        min-height: 120px; /* Altura mínima para textarea */
        resize: vertical;
    }

    .modern-btn {
        padding: 18px 0; /* Botón más alto para móvil */
        font-size: 1.2rem; /* Texto del botón más grande */
        border-radius: 12px;
        min-height: 56px; /* Altura mínima táctil */
    }

    /* MAPA MÓVIL OPTIMIZADO - SIN OVERFLOW */
    .contact-main-grid.contact-main-grid-70-30 .contact-map {
        margin: 0; /* Sin margen para evitar overflow */
        border-radius: 16px;
        width: 100%; /* Ancho completo sin calc() */
        max-width: 100%; /* Límite seguro */
        box-sizing: border-box; /* Incluir padding en el ancho */
    }

    .contact-main-grid.contact-main-grid-70-30 .contact-map iframe {
        height: 300px; /* Altura optimizada para móvil */
        min-height: 300px;
        border-radius: 16px;
        width: 100%; /* Asegurar ancho completo */
        box-sizing: border-box; /* Incluir border en el ancho */
    }

    /* INFORMACIÓN DE CONTACTO MÓVIL */
    .contact-info-section {
        padding: 30px 0 20px 0; /* Reducido más de 40px 0 25px 0 */
    }

    .contact-info-grid {
        gap: 15px; /* Aumentado a 15px como solicitado */
        padding: 0 15px; /* Padding consistente con contenedor */
        display: flex; /* Cambiar de flex wrap a flex column en móvil */
        flex-direction: column; /* Apilar verticalmente */
        align-items: center; /* Centrar items horizontalmente */
    }

    .contact-info-item {
        padding: 16px 12px; /* Reducido más de 20px 16px para móvil */
        border-radius: 12px;
        flex-direction: column; /* VERTICAL como desktop: icono arriba, texto abajo */
        text-align: center; /* Centrar contenido */
        gap: 12px; /* Reducido de 14px */
        min-height: auto; /* Altura automática */
        align-items: center; /* Centrar horizontalmente */
        justify-content: center; /* Centrar verticalmente */
        flex: none; /* Sin flex para permitir ancho natural */
        min-width: auto; /* Quitar min-width de desktop */
        max-width: 350px; /* Ancho máximo para centrado en tablet */
        width: 100%; /* Ancho completo hasta el máximo */
    }

    .contact-info-item>div {
        text-align: center; /* Centrar texto */
        align-items: center; /* Centrar elementos internos */
        flex: none; /* Sin flex stretch */
        width: 100%; /* Ocupar ancho completo */
    }

    .contact-icon {
        flex-shrink: 0; /* No encoger el icono */
        margin-bottom: 0; /* Sin margin bottom adicional */
        width: 44px; /* Reducido más de 48px para móvil */
        height: 44px; /* Reducido más de 48px para móvil */
        font-size: 1.6rem; /* Reducido más de 1.8rem */
        align-self: center; /* Centrar icono horizontalmente */
    }

    .contact-info-label {
        font-size: 1.05rem; /* Reducido de 1.1rem */
        margin-bottom: 1px; /* Reducido más de 2px */
        font-weight: 600;
    }

    .contact-info-link {
        font-size: 0.95rem; /* Reducido de 1rem */
        word-break: break-word; /* Mejor manejo de URLs largas */
        line-height: 1.2; /* Más compacto de 1.3 */
    }

    /* SOCIAL MÓVIL OPTIMIZADO */
    .contact-social-section {
        padding: 30px 0 50px 0;
    }

    .contact-social-grid {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-social-label {
        font-size: 1.2rem;
        width: 100%; /* Full width para que los iconos queden abajo */
        margin-bottom: 8px;
    }

    .contact-social-icon {
        width: 52px; /* Más grande para móvil */
        height: 52px;
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .contact-header-section {
        padding: 36px 0 18px 0;
    }

    .contact-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .contact-subtitle {
        font-size: 1.05rem;
        padding: 0 10px;
    }

    /* CONTENEDOR PRINCIPAL - PADDING REDUCIDO MÓVIL PEQUEÑO */
    .contact-main-section>.container.contact-main-grid.contact-main-grid-70-30 {
        padding: 0 10px; /* Padding reducido pero seguro */
    }

    /* FORMULARIO MÓVIL PEQUEÑO - SIN OVERFLOW */
    .contact-form-container {
        padding: 28px 16px 20px 16px;
        margin: 0; /* Sin margen */
        width: 100%; /* Ancho completo */
        box-sizing: border-box;
    }

    .form-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .modern-form input,
    .modern-form textarea {
        padding: 14px 16px; /* Ligeramente reducido para pantallas muy pequeñas */
        font-size: 1.05rem;
    }

    .modern-btn {
        padding: 16px 0;
        font-size: 1.1rem;
    }

    /* MAPA MÓVIL PEQUEÑO - SIN OVERFLOW */
    .contact-main-grid.contact-main-grid-70-30 .contact-map {
        margin: 0; /* Sin margen */
        width: 100%; /* Ancho completo */
        box-sizing: border-box;
    }

    .contact-main-grid.contact-main-grid-70-30 .contact-map iframe {
        height: 280px; /* Ligeramente más pequeño */
        min-height: 280px;
    }

    /* INFO CONTACTO MÓVIL PEQUEÑO */
    .contact-info-grid {
        padding: 0 10px; /* Padding consistente */
        gap: 15px; /* Aumentado a 15px como solicitado */
        display: flex; /* Cambiar de flex wrap a flex column en móvil */
        flex-direction: column; /* Apilar verticalmente */
        align-items: center; /* Centrar items horizontalmente */
    }

    .contact-info-item {
        padding: 14px 10px; /* Reducido más de 18px 14px para móvil pequeño */
        gap: 10px; /* Reducido de 12px */
        min-height: auto; /* Altura automática */
        align-items: center; /* Centrar horizontalmente */
        justify-content: center; /* Centrar verticalmente */
        flex-direction: column; /* VERTICAL como desktop: icono arriba, texto abajo */
        text-align: center; /* Centrar contenido */
        flex: none; /* Sin flex para permitir ancho natural */
        min-width: auto; /* Quitar min-width de desktop */
        max-width: 320px; /* Ancho máximo para centrado */
        width: 100%; /* Ancho completo hasta el máximo */
    }

    .contact-info-item>div {
        text-align: center; /* Centrar texto */
        align-items: center; /* Centrar elementos internos */
        flex: none; /* Sin flex stretch */
        width: 100%; /* Ocupar ancho completo */
    }

    .contact-icon {
        width: 40px; /* Reducido más de 44px para móvil pequeño */
        height: 40px; /* Reducido más de 44px para móvil pequeño */
        font-size: 1.4rem; /* Reducido más de 1.6rem */
        align-self: center; /* Centrar icono horizontalmente */
        margin-bottom: 0; /* Sin margin bottom adicional */
    }

    .contact-info-label {
        font-size: 1rem; /* Reducido de 1.05rem */
        margin-bottom: 1px; /* Consistente */
        font-weight: 600;
    }

    .contact-info-link {
        font-size: 0.9rem; /* Reducido más de 0.95rem para móvil pequeño */
        line-height: 1.1; /* Más compacto de 1.2 */
    }

    /* SOCIAL MÓVIL PEQUEÑO */
    .contact-social-icon {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }
}

/* Modo Oscuro SOLO para el mapa */
@media (prefers-color-scheme: dark) {
    /* No dark mode for map */
} 