/* Reset y Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Asegurar que todos los elementos sean responsive */
*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Asegurar que todos los elementos sean responsive */
*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

html {
    scroll-padding-top: 140px; /* Offset para el header fixed */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling en iOS */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevenir scroll horizontal */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-image: url('imagenes/fondo.avif') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-color: var(--bg-light);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevenir scroll horizontal */
    padding-top: 120px; /* Espacio para el header fixed */
}

.container {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header */
.header {
    background: transparent;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.header.scrolled {
    background: rgba(0, 0, 139, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    min-height: 120px;
    box-sizing: border-box;
}

.logo-container {
    flex-shrink: 0;
    position: relative;
    left: auto;
}

.logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.btn-login {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-beta {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-beta:hover {
    background: var(--primary-dark);
}

/* Menú Hamburguesa */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: absolute;
    right: 1rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Menú hamburguesa blanco desde 1440px hacia abajo */
@media (max-width: 1440px) {
    .menu-toggle span {
        background: white !important;
    }
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}

/* Menú móvil con fondo azul oscuro desde 1440px hacia abajo */
@media (max-width: 1440px) {
    .nav-menu {
        background: #1e293b !important; /* Azul oscuro */
    }
    
    .nav-menu ul {
        display: flex;
        flex-direction: column;
    }
    
    .nav-menu a {
        color: white !important;
    }
    
    .nav-menu a:hover {
        color: #60a5fa !important; /* Azul claro para hover */
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

.nav-menu.active {
    display: block;
}

/* Mostrar menú en pantallas grandes (> 1440px) */
@media (min-width: 1441px) {
    .nav-menu {
        display: block !important;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        flex: 1;
        order: 2;
    }
    
    .menu-toggle {
        display: none !important;
    }
    
    .nav-menu ul {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        width: auto;
        padding: 0;
        margin: 0;
        justify-content: flex-end;
        align-items: center;
        list-style: none;
    }
    
    .nav-menu li {
        border-bottom: none;
    }
    
    .nav-menu a,
    .nav-menu a:link,
    .nav-menu a:visited {
        padding: 0.5rem 1rem;
        color: #ffffff !important;
        transition: var(--transition);
        white-space: nowrap;
        text-decoration: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        color: rgba(255, 255, 255, 0.8) !important;
        transform: translateY(-2px);
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    .logo-container {
        order: 1;
    }
}

.nav-menu ul {
    list-style: none;
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.nav-menu a {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Banner Principal Section */
.main-banner-section {
    background: transparent;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.main-banner-container {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-banner-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.main-banner-image img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    width: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    object-fit: contain;
}

.main-banner-text {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    text-align: left;
}

.main-banner-text p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Banners Section */
.banners-section {
    background: transparent;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.banners-container {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

.banners-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.banners-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}

.banner-side-image {
    width: 800px;
    height: 560px;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    position: relative;
    margin: 0 auto;
}

.banner-side-image img,
.banner-side-image video,
.banner-side-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-side-image iframe {
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    pointer-events: all;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.banner-item {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    transition: opacity 0.3s ease;
    box-shadow: var(--shadow-md);
    line-height: 0;
    border: 2px solid var(--border-color);
    padding: 0;
    position: relative;
}

.banner-item:empty,
.banner-item[style*="display: none"] {
    display: none !important;
}

.banner-item iframe {
    width: 100%;
    max-height: 200px;
    height: 200px;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    vertical-align: top;
    line-height: 0;
    background: var(--bg-white);
    object-fit: contain;
}

.banner-item img {
    width: 100%;
    max-width: 100%;
    max-height: 200px;
    height: auto;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    object-fit: contain;
    background: transparent;
}

/* Manufacturers Section */
.manufacturers-section {
    padding: 3rem 2rem;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.specialists-section {
    padding: 3rem 2rem;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.logo-item {
    width: 100%;
    min-width: 100px;
    min-height: 80px;
    max-width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.logo-item img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: grayscale(20%);
    transition: var(--transition);
    display: block;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 5rem 2rem;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

/* Products Section */
.products-section {
    padding: 5rem 2rem;
    background: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: #9ca3af;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #000;
}

.section-title::before {
    margin-right: 1rem;
}

.section-title::after {
    margin-left: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Centrar todos los productos cuando hay un número impar */
.products-grid-odd {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
}

.products-grid-odd .product-card {
    flex: 0 0 calc(25% - 1.5rem);
    max-width: calc(25% - 1.5rem);
    height: auto;
    align-self: stretch;
}

/* Para pantallas más pequeñas, ajustar el centrado */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
    
    .products-grid-odd .product-card {
        flex: 0 0 calc(33.333% - 1.5rem);
        max-width: calc(33.333% - 1.5rem);
        height: auto;
        align-self: stretch;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
    }
    
    .products-grid-odd {
        flex-wrap: wrap;
        align-items: stretch;
    }
    
    .products-grid-odd .product-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
        height: auto;
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    
    .products-grid-odd {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-grid-odd .product-card {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        height: auto;
        align-self: stretch;
    }
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    border-radius: 8px;
    display: block;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-card p {
    color: var(--text-light);
    flex-grow: 1;
}

.product-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
}

.product-info-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-info-icon svg {
    width: 20px;
    height: 20px;
}

.product-card:hover .product-info-icon {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.product-card:hover .product-info-icon:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: transparent;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: transparent;
}

/* Mapa arriba a todo el ancho */
.contact-map-container {
    width: 100%;
    margin-bottom: 3rem;
}

.contact-map-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.map-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* Información de Contacto */
.contact-info-wrapper {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.contact-info-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

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

.contact-info-left,
.contact-info-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Asegurar que los primeros elementos tengan exactamente la misma altura */
.contact-info-left .contact-item:first-child,
.contact-info-right .contact-item:first-child {
    height: auto;
    min-height: 95px;
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

/* Asegurar que los segundos elementos (Dirección y Email) estén alineados */
.contact-info-left .contact-item:nth-child(2),
.contact-info-right .contact-item:nth-child(2) {
    height: auto;
    min-height: 95px;
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.contact-social-links {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.contact-social-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-social-links .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-social-links .social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.contact-social-links .social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-info h3,
.contact-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    align-items: flex-start;
    min-height: 60px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-item > div {
    flex: 1;
    min-width: 0; /* Permite que el contenido se ajuste */
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Menos espacio en móvil para header fixed */
    }
    
    .contact-section {
        padding: 2rem 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-map-container {
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .map-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .map-wrapper iframe {
        height: 300px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info-left,
    .contact-info-right {
        width: 100%;
        max-width: 100%;
    }
    
    .contact-item {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .contact-item > div {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 64px); /* 48px icono + 16px gap */
    }
    
    .contact-item h4 {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-item p {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .contact-info {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
}

/* Ajustes para móvil pequeño (424px y menos) */
@media (max-width: 424px) {
    .contact-section {
        padding: 1.5rem 0.75rem;
    }
    
    .contact-info-wrapper {
        padding: 0 0.5rem;
    }
    
    .contact-item {
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        padding: 8px;
        flex-shrink: 0;
    }
    
    .contact-item > div {
        max-width: calc(100% - 56px); /* 40px icono + 16px gap */
    }
    
    .contact-item h4 {
        font-size: 0.95rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-logo-msf {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1rem;
}

.footer-logo-msf img {
    max-width: 150px;
    height: auto;
    opacity: 0.9;
    transition: var(--transition);
    border-radius: 12px;
}

.footer-logo-msf img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.btn-descargar-supremo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 0.5rem;
    border: 2px solid var(--primary-color);
}

.btn-descargar-supremo:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.supremo-logo-btn {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.modal-body {
    margin-top: 1rem;
}

/* Product Modal Styles */
.product-modal {
    max-width: 900px;
}

.product-modal-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.product-modal-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-light);
    padding: 1rem;
}

.product-modal-title h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.product-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-info h3,
.product-pricing h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.product-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-pricing {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    color: var(--text-light);
    font-weight: 500;
}

.price-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-contact {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   MODAL DE COOKIES DESDE CERO - INFOTERMI
   Diseño limpio y moderno sin efectos molestos
   ======================================== */

/* Variables para el modal */
:root {
    --modal-bg: #ffffff;
    --modal-text: #1f2937;
    --modal-border: #e5e7eb;
    --modal-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --modal-radius: 16px;
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --success-green: #10b981;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    :root {
        --modal-bg: #1f2937;
        --modal-text: #f9fafb;
        --modal-border: #374151;
        --gray-100: #374151;
        --gray-200: #4b5563;
        --gray-500: #9ca3af;
        --gray-600: #d1d5db;
        --gray-700: #e5e7eb;
        --gray-800: #f9fafb;
    }
}

/* ========================================
   BANNER PRINCIPAL MODERNO
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    padding: 0;
    z-index: 9999; /* Menor que el modal */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
}

.cookie-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
    color: white;
    position: relative;
    z-index: 1;
}

.cookie-banner-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cookie-banner-message {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
    font-weight: 400;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Botones del banner modernos */
.cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cookie-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Iconos del banner */
.cookie-banner-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Animación de entrada del banner */
@keyframes bannerSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    animation: bannerSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive para el banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
    
    .cookie-banner-text {
        min-width: auto;
        margin-bottom: 0;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .cookie-banner-title {
        font-size: 16px;
        justify-content: center;
    }
    
    .cookie-banner-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 16px;
    }
    
    .cookie-banner-title {
        font-size: 15px;
    }
    
    .cookie-banner-message {
        font-size: 12px;
    }
    
    .cookie-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

.ngf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001; /* Mayor que el banner */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100vw;
    height: 100vh;
}

.ngf-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Ocultar el banner cuando el modal esté abierto */
.ngf-modal-overlay.show ~ .cookie-banner {
    display: none !important;
}

/* Alternativa: ocultar banner cuando modal está visible */
body.modal-open .cookie-banner {
    display: none !important;
}

/* ========================================
   MODAL PRINCIPAL
   ======================================== */

.ngf-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--modal-bg);
    border-radius: var(--modal-radius);
    box-shadow: var(--modal-shadow);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid var(--modal-border);
    z-index: 10002; /* Mayor que overlay y banner */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* ========================================
   HEADER DEL MODAL
   ======================================== */

.ngf-modal-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--modal-border);
    background: var(--gray-100);
    position: relative;
}

.ngf-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--modal-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ngf-modal-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin: 8px 0 0 0;
    line-height: 1.4;
}

.ngf-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--gray-500);
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.ngf-modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* ========================================
   CUERPO DEL MODAL
   ======================================== */

.ngf-modal-body {
    padding: 20px 24px;
    height: auto;
    overflow: hidden;
    scroll-behavior: unset;
    -webkit-overflow-scrolling: unset;
    will-change: auto;
    backface-visibility: unset;
    -webkit-backface-visibility: unset;
}

/* ========================================
   CATEGORÍAS DE COOKIES
   ======================================== */

.ngf-category {
    margin-bottom: 16px;
    padding: 14px;
    background: var(--gray-100);
    border: 1px solid var(--modal-border);
    border-radius: 12px;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.ngf-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ngf-category-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--modal-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ngf-category-description {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.4;
    margin: 0;
}

/* ========================================
   SWITCHES/TOGGLES
   ======================================== */

.ngf-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ngf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ngf-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: background-color 0.2s ease;
    border-radius: 24px;
}

.ngf-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: transform 0.2s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ngf-switch input:checked + .ngf-switch-slider {
    background-color: var(--primary-blue);
}

.ngf-switch input:checked + .ngf-switch-slider:before {
    transform: translateX(20px);
}

.ngf-switch input:disabled + .ngf-switch-slider {
    background-color: var(--success-green);
    cursor: not-allowed;
}

.ngf-switch input:disabled + .ngf-switch-slider:before {
    background-color: white;
}

/* ========================================
   FOOTER DEL MODAL
   ======================================== */

.ngf-modal-footer {
    padding: 12px 24px 20px;
    border-top: 1px solid var(--modal-border);
    background: var(--gray-100);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ========================================
   BOTONES
   ======================================== */

.ngf-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: none;
    min-width: 120px;
    justify-content: center;
}

.ngf-btn-primary {
    background: var(--primary-blue);
    color: white;
}

.ngf-btn-primary:hover {
    background: var(--primary-blue-hover);
}

.ngf-btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.ngf-btn-secondary:hover {
    background: var(--gray-500);
    color: white;
}

.ngf-btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.ngf-btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
    .ngf-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .ngf-modal-header,
    .ngf-modal-body,
    .ngf-modal-footer {
        padding: 16px;
    }
    
    .ngf-modal-footer {
        flex-direction: column;
    }
    
    .ngf-btn {
        width: 100%;
    }
}

/* ========================================
   ANIMACIONES SUAVES OPTIMIZADAS
   ======================================== */

@keyframes ngf-fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.ngf-modal-overlay.show .ngf-modal {
    animation: ngf-fadeIn 0.3s ease-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Prevenir pantallazos durante transiciones */
.ngf-modal-overlay {
    will-change: opacity, visibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.ngf-modal-overlay.show {
    will-change: auto;
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */

.ngf-modal-close:focus,
.ngf-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.ngf-switch:focus-within .ngf-switch-slider {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* ========================================
   ESTADOS ESPECIALES
   ======================================== */

.ngf-category.required {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.ngf-category.required .ngf-category-title {
    color: var(--success-green);
}

/* ========================================
   ICONOS
   ======================================== */

.ngf-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.ngf-icon-shield {
    color: var(--success-green);
}

.ngf-icon-chart {
    color: var(--primary-blue);
}

.ngf-icon-bullhorn {
    color: #f59e0b;
}

.ngf-icon-cog {
    color: var(--gray-500);
}

.ngf-icon-cookie {
    color: #8b5cf6;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-banner-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 968px) {
    .header-container {
        justify-content: center;
        position: relative;
    }

    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-buttons {
        display: none;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 1.5rem;
        left: auto;
        transform: none;
    }

    .main-banner-container {
        flex-direction: row;
        padding: 0 1rem;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .main-banner-image {
        width: auto;
        max-width: 40%;
        flex-shrink: 0;
    }

    .main-banner-image img {
        max-height: 120px;
    }

    .main-banner-text {
        text-align: left;
        flex: 1;
        min-width: 200px;
    }

    .main-banner-text p {
        font-size: 1rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .banners-container {
        padding: 0 1rem;
        gap: 1.5rem;
        flex-direction: row;
    }

    .banners-left {
        gap: 1.5rem;
    }

    .banner-item {
        max-width: 100%;
        width: 100%;
    }

    .banner-item img {
        max-height: 180px;
    }

.banners-right {
    gap: 1.5rem;
}

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }

    .logo-item {
        max-width: 130px;
        height: 70px;
        min-width: 90px;
        min-height: 70px;
        padding: 0.5rem;
    }
    
    .logo-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .logo-item img {
        max-width: 85%;
        max-height: 85%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000;
        width: 100%;
        max-width: 100%;
    }
    
    .header-icons {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-icon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
        flex-direction: row; /* Una sola línea */
        align-items: center;
        justify-content: space-between;
        position: relative;
        min-height: auto;
        padding-bottom: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .logo-container {
        position: relative;
        left: auto;
        transform: none;
        margin: 0;
        order: 1;
        flex-shrink: 0;
    }
    
    .logo {
        height: 60px;
    }

    .header-buttons {
        display: none; /* Ocultar botones en móvil si no son necesarios */
    }

    .header-icons {
        order: 2;
        margin-left: auto;
        padding-right: 3rem;
    }

    .menu-toggle {
        position: relative;
        right: auto;
        top: auto;
        left: auto;
        transform: none;
        order: 3; /* Después de los iconos */
        z-index: 1002;
        margin-left: 0.5rem;
    }
}

/* Ajustes para tablet (768px a 1440px) - más espacio entre iconos y hamburguesa */
@media (min-width: 769px) and (max-width: 1440px) {
    .header-icons {
        padding-right: 4.5rem !important; /* Más espacio para el menú hamburguesa */
        gap: 0.75rem;
    }
}

/* Ajustes para móvil pequeño (425px hacia abajo) - Iconos pegados a hamburguesa, logo ocupa resto */
@media (max-width: 425px) {
    body {
        padding-top: 70px; /* Aún menos espacio en móvil pequeño */
    }
    
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .header-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        padding: 0.75rem 1rem !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }
    
    .logo-container {
        flex: 1;
        min-width: 0;
        order: 1;
        display: flex;
        align-items: center;
    }
    
    .header-icons {
        display: flex !important;
        gap: 0.4rem;
        padding-right: 0 !important;
        margin-right: 0.5rem;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
        order: 2;
    }
    
    .header-icon {
        display: flex !important;
        min-width: 30px;
        height: 30px;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
    }
    
    .header-icon svg {
        width: 16px;
        height: 16px;
        display: block !important;
    }
    
    .header-icon span {
        font-size: 1.2rem !important;
        display: inline-block !important;
    }
    
    .logo {
        height: 50px !important;
        max-width: 100%;
    }
    
    .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: 0;
        flex-shrink: 0;
        order: 3;
        position: relative !important;
    }
    
    .menu-toggle span {
        background: white !important;
    }
    
    .nav-menu {
        background: #1e293b !important; /* Azul oscuro */
    }
    
    .nav-menu a {
        color: white !important;
    }
    
    .nav-menu a:hover {
        color: #60a5fa !important; /* Azul claro para hover */
        background: rgba(255, 255, 255, 0.1);
        padding-left: 1.5rem;
    }
    
    .nav-menu li {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .header {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .header-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 1rem !important;
        box-sizing: border-box !important;
    }
    
    .main-banner-section {
        padding: 1.5rem 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    .main-banner-container {
        padding: 0 1rem;
        gap: 1rem;
        flex-wrap: wrap;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .main-banner-image {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .main-banner-image img {
        max-height: 100px;
        width: 100%;
        max-width: 100%;
        object-fit: contain;
        box-sizing: border-box;
    }

    .main-banner-text {
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .main-banner-text p {
        font-size: 0.95rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        max-width: 100%;
    }

    .banners-section {
        padding: 1.5rem 0;
        width: 100%;
        max-width: 100%;
    }

    .banners-container {
        padding: 0 1rem;
        gap: 1rem;
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .banners-left {
        width: 100% !important;
        max-width: 100% !important;
        gap: 1rem;
        order: 2;
        box-sizing: border-box !important;
    }
    
    /* Asegurar que todas las secciones sean responsive */
    section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Asegurar que los contenedores principales sean responsive */
    .container, .section-container, [class*="container"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Prevenir desbordamiento horizontal */
    img, video, iframe, embed, object {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Asegurar que todos los elementos dentro de secciones sean responsive */
    section * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .banners-right {
        width: 100%;
        gap: 1rem;
        order: 1;
    }

    .banner-side-image {
        width: 100%;
        max-width: 800px;
        height: auto;
        aspect-ratio: 16 / 9;
        order: 1;
    }

    .banners-right .banner-item {
        order: 2;
    }

    .banner-side-image img {
        height: auto;
        object-fit: cover;
    }
    
    .banner-side-image video,
    .banner-side-image iframe {
        height: auto;
        object-fit: cover;
    }

    .banner-item {
        max-width: 100%;
        width: 100%;
    }

    .banner-item img {
        max-height: 150px;
        width: 100%;
        object-fit: contain;
    }

    .manufacturers-section,
    .specialists-section {
        padding: 2rem 1rem;
    }

    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .logo-item {
        max-width: 110px;
        height: 60px;
        min-width: 80px;
        min-height: 60px;
        padding: 0.4rem;
    }
    
    .logo-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .logo-item img {
        max-width: 85%;
        max-height: 85%;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-modal-body {
        grid-template-columns: 1fr;
    }

    .product-modal-header {
        flex-direction: column;
        text-align: center;
    }

    .product-modal-image {
        width: 120px;
        height: 120px;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 80px;
    }

    .banners-section {
        padding: 1rem 0;
    }

    .banners-container {
        padding: 0 0.5rem;
        gap: 0.75rem;
        flex-direction: column;
    }

    .banners-left {
        gap: 0.75rem;
    }

    .banner-item {
        max-width: 100%;
    }

    .banner-item img {
        max-height: 120px;
    }

    .banner-side-image {
        width: 100%;
        max-width: 800px;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .banner-side-image img {
        height: auto;
        object-fit: cover;
    }
    
    .banner-side-image video,
    .banner-side-image iframe {
        height: auto;
        object-fit: cover;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .cookie-banner {
        padding: 1rem;
    }
}

/* Modal de Contacto para Productos */
.contacto-modal {
    max-width: 600px;
    width: 90%;
}

.contacto-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.contacto-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.contacto-modal-header p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.contacto-form {
    width: 100%;
}

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

.contacto-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.contacto-form .form-group input,
.contacto-form .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-white);
    color: var(--text-dark);
    box-sizing: border-box;
}

.contacto-form .form-group input:focus,
.contacto-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contacto-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.contacto-form .btn-submit {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contacto-form .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contacto-form .btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

#form-message-producto {
    margin-top: 1rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contacto-modal {
        width: 95%;
        max-width: none;
    }
    
    .contacto-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .contacto-form .btn-submit {
        width: 100%;
    }
}

/* ========================================
   BOTÓN FLOTANTE DE CONFIGURACIÓN DE COOKIES
   ======================================== */

/* Botón de configuración de cookies (engranaje) */
.cookie-settings-button {
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    pointer-events: none;
    padding: 0;
    min-width: auto;
    min-height: auto;
    z-index: 10000;
    position: fixed;
    bottom: 20px;
    left: 20px;
}

.cookie-settings-button.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all !important;
    cursor: pointer !important;
}

.cookie-settings-button:hover {
    background: transparent;
    transform: translateY(-3px) scale(1.1);
    box-shadow: none;
    border: none;
}

.cookie-settings-button:active {
    transform: translateY(-1px) scale(1.05);
}

.cookie-settings-button i,
.cookie-settings-button svg {
    animation: cookie-rotate 3s linear infinite;
    animation-play-state: paused;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.cookie-settings-button:hover i,
.cookie-settings-button:hover svg {
    animation-play-state: running;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

@keyframes cookie-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive para el botón de cookies */
@media (max-width: 768px) {
    .cookie-settings-button {
        bottom: 15px;
        left: 15px;
    }
    
    .cookie-settings-button i,
    .cookie-settings-button svg {
        width: 35px;
        height: 35px;
    }
}

/* ========================================
   BOTÓN SCROLL TO TOP
   ======================================== */

.scroll-to-top-button {
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    pointer-events: none;
    padding: 0;
    min-width: auto;
    min-height: auto;
    z-index: 10000;
    position: fixed;
    bottom: 20px;
    right: calc(1.5rem + 40px + 16px); /* 1.5rem (margen derecho WhatsApp) + 40px (ancho del icono WhatsApp) + 16px (gap) */
    left: auto;
}

.scroll-to-top-button.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all !important;
    cursor: pointer !important;
}

.scroll-to-top-button:hover {
    background: transparent;
    transform: translateY(-3px) scale(1.1);
    box-shadow: none;
    border: none;
}

.scroll-to-top-button:active {
    transform: translateY(-1px) scale(1.05);
}

.scroll-to-top-button i,
.scroll-to-top-button svg {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.scroll-to-top-button:hover i,
.scroll-to-top-button:hover svg {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

/* ========================================
   BOTÓN DE WHATSAPP
   ======================================== */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 1.5rem;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    z-index: 9997;
    text-decoration: none;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    pointer-events: none;
}

.whatsapp-button.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.whatsapp-button:hover {
    background: transparent;
    transform: translateY(-3px) scale(1.1);
    box-shadow: none;
    border: none;
}

.whatsapp-button:active {
    transform: translateY(-1px) scale(1.05);
}

.whatsapp-button svg {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    width: 40px;
    height: 40px;
}

.whatsapp-button:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

/* Responsive para los botones flotantes */
@media (max-width: 768px) {
    .cookie-settings-button {
        bottom: 15px;
        left: 15px;
    }
    
    .cookie-settings-button i,
    .cookie-settings-button svg {
        width: 35px;
        height: 35px;
    }
    
    .scroll-to-top-button {
        right: calc(1.5rem + 36px + 15px); /* 1.5rem (margen derecho WhatsApp) + 36px (ancho del icono WhatsApp) + 15px (gap) */
        left: auto;
        bottom: 15px;
    }
    
    .scroll-to-top-button svg {
        width: 36px;
        height: 36px;
    }
    
    .whatsapp-button {
        bottom: 15px;
        right: 1.5rem;
    }
    
    .whatsapp-button svg {
        width: 36px;
        height: 36px;
    }
}

/* Media query específico para 375px y menos - Asegurar visibilidad de iconos y hamburguesa */
@media (max-width: 375px) {
    .header-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 0.5rem !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        justify-content: space-between !important;
    }
    
    .header-icons {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        gap: 0.3rem;
        padding-right: 1.5rem;
        flex-shrink: 0;
        order: 2;
        margin-left: auto;
    }
    
    .header-icon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    .header-icon svg {
        display: block !important;
        width: 14px;
        height: 14px;
        visibility: visible !important;
    }
    
    .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: 0.25rem;
        flex-shrink: 0;
        order: 3;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
    }
    
    .menu-toggle span {
        display: block !important;
        background: white !important;
        visibility: visible !important;
    }
    
    .logo-container {
        flex-shrink: 1;
        min-width: 0;
        order: 1;
    }
}

/* Layout móvil para página de producto (768px hacia abajo) */
@media (max-width: 768px) {
    .producto-completo {
        padding: 1.5rem !important;
    }
    
    .producto-completo > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        grid-template-columns: none !important;
    }
    
    /* Imagen principal arriba (segundo div) */
    .producto-completo > div[style*="grid-template-columns"] > div:nth-child(2) {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Galería de miniaturas debajo de la imagen principal (primer div) */
    .producto-completo > div[style*="grid-template-columns"] > div:first-child {
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.75rem !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .producto-completo .thumbnail-item {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        flex-shrink: 0;
    }
    
    /* Información del producto debajo de la galería (tercer div) */
    .producto-completo > div[style*="grid-template-columns"] > div:last-child {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

