/* ============================================
   DISEÑO MODERNO - NEW GATE TECHNOLOGIES
   ============================================ */

/* Variables CSS Modernas */
:root {
    /* Colores principales */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    
    /* Colores de texto */
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    
    /* Fondos */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    
    /* Bordes y sombras */
    --border-color: #e2e8f0;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transiciones */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Variables para modal de cookies */
    --modal-bg: rgba(255, 255, 255, 0.95);
    --modal-radius: 20px;
    --modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --modal-border: rgba(255, 255, 255, 0.3);
    --modal-text: #0f172a;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --primary-blue: #3b82f6;
    --primary-blue-hover: #2563eb;
    --success-green: #10b981;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    height: 100%;
    background-image: url('fondo/Fondo.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: transparent;
    background-image: url('fondo/Fondo.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Versión móvil optimizada del fondo */
@media (max-width: 768px) {
    html {
        background-image: url('fondo/Fondo-mobile.avif');
        background-attachment: scroll; /* Mejor rendimiento en móvil */
    }
    
    body {
        background-image: url('fondo/Fondo-mobile.avif');
        background-attachment: scroll; /* Mejor rendimiento en móvil */
    }
}

/* Container */
.container {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* ============================================
   HEADER MODERNO
   ============================================ */
.header {
    background: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: none;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(30, 58, 138, 0.3);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    will-change: background, backdrop-filter;
}

.header-logo {
    display: none;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    will-change: opacity, visibility;
}

.header-logo.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.header-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-img {
    height: auto;
    max-height: 160px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    display: block;
    transition: max-height 0.4s ease, max-width 0.4s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    will-change: max-height, max-width;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

.header-container .header-logo {
    order: 0;
}

.header-container .nav-menu {
    order: 1;
}

.header-container .menu-toggle {
    order: 2;
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
        padding: 1rem;
        max-width: 90%;
        width: 90%;
        margin: 0 auto;
    }
    
    .header-container .header-logo {
        order: 0;
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 60px);
    }
    
    .header-container .nav-menu {
        order: 1;
    }
    
    .header-container .menu-toggle {
        order: 2;
        margin-left: auto;
        position: relative;
        z-index: 10002 !important;
    }
    
    .header-container .menu-toggle.active {
        z-index: 10002 !important;
    }
    
    .header-logo-img {
        max-height: 160px;
        max-width: 400px;
        transition: var(--transition);
    }
    
    .header-logo.scrolled-mobile .header-logo-img {
        max-height: 100px;
        max-width: 240px;
    }
}

.logo-container {
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.logo-container a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: auto;
    max-height: 210px;
    width: auto;
    max-width: 525px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo:hover {
    opacity: 0.95;
}

/* Botones de header eliminados */

/* Menú Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1001;
    position: relative;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

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

.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: flex;
    position: static;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    border-top: none;
    flex: 1;
    order: 2;
    align-items: center;
    justify-content: flex-end;
}

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

/* Ocultar botón de cierre en desktop */
.menu-close {
    display: none !important;
}

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

.nav-menu ul {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-menu li {
    border-bottom: none;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    background: transparent;
    border: none;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background: white;
    transition: transform 0.3s ease, width 0.3s ease, background 0.3s ease;
    transform-origin: center;
}

.nav-menu a.active::after {
    transform: translateX(-50%) scaleX(1);
    width: 80%;
    background: red;
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
    width: 80%;
    background: white;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
}

.nav-menu a.active {
    color: white;
}

/* ============================================
   SECCIÓN HERO / HOME
   ============================================ */
.hero-section {
    min-height: 100vh;
    position: relative;
    padding: 0;
    padding-top: 120px;
    background-image: url('fondo/Fondo.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    box-sizing: border-box;
}

/* Versión móvil optimizada del fondo en hero */
@media (max-width: 768px) {
    .hero-section {
        background-image: url('fondo/Fondo-mobile.avif');
        background-attachment: scroll; /* Mejor rendimiento en móvil */
    }
}

.hero-container {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 0;
}

.hero-logo {
    position: absolute;
    top: 2rem;
    left: 0;
    z-index: 2;
    width: auto;
    height: auto;
    /* Remover animaciones iniciales que ocultan el elemento - crítico para LCP */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translateX(0) !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-logo-img {
    max-width: 1200px;
    max-height: 1200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    /* Remover animaciones que pueden interferir con LCP - aplicar después de carga */
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    /* Aplicar animaciones solo después de que la imagen esté cargada */
}

.hero-content {
    max-width: 800px;
    width: auto;
    padding: 2rem;
    padding-top: 4rem;
    position: absolute;
    left: 15%;
    right: auto;
    top: 12rem;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out 0.5s;
    animation-fill-mode: both;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 2rem 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 1s ease-out 0.7s, fadeIn 1s ease-out 0.7s;
    animation-fill-mode: both;
    opacity: 0;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    animation: slideInLeft 1s ease-out 0.9s, fadeIn 1s ease-out 0.9s;
    animation-fill-mode: both;
    opacity: 0;
    text-align: center;
}

/* Animaciones para hero */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    }
    50% {
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
    }
}

/* Responsive para sección hero */
@media (max-width: 968px) {
    .hero-section {
        min-height: 80vh;
        padding: 1.5rem;
        padding-top: 120px;
        box-sizing: border-box;
    }
    
    .hero-logo {
        top: 1.5rem;
        left: 0;
    }
    
    .hero-logo-img {
        max-width: 900px;
        max-height: 900px;
    }
    
    .hero-content {
        top: 12rem;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 0;
        padding-top: 120px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 1rem;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .hero-logo {
        top: 1rem;
        left: 0;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem;
        box-sizing: border-box;
        position: relative;
    }
    
    .hero-logo-img {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 200px;
        object-fit: contain;
        object-position: left;
        display: block;
    }
    
    .hero-content {
        top: 6rem;
        padding: 0 1rem;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto;
        text-align: center;
        box-sizing: border-box;
        position: relative;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        top: 1rem;
        left: 0;
    }
    
    .hero-logo-img {
        max-width: 600px;
        max-height: 600px;
    }
    
    .hero-content {
        top: 8rem;
        padding-top: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   BANNER PRINCIPAL MODERNO
   ============================================ */
.main-banner-section {
    background: transparent;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.main-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.main-banner-container {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.main-banner-image {
    flex-shrink: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.main-banner-image img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    width: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-2xl);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
}

.main-banner-text {
    flex: 1;
}

.main-banner-text p {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   BANNERS SECTION MODERNA
   ============================================ */
.banners-section {
    background: transparent;
    padding: 4rem 0;
    border-bottom: none;
}

.banners-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

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

.banners-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.banner-item {
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}

.banner-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.banner-item:hover::before {
    opacity: 1;
}

.banner-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
    object-fit: contain;
    background: transparent;
    transition: var(--transition);
}

.banner-item:hover img {
    transform: scale(1.05);
}

.banner-side-image {
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.banner-side-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.banner-side-image img,
.banner-side-image video,
.banner-side-image iframe {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.banner-side-image iframe {
    min-height: 400px;
    aspect-ratio: 16 / 9;
}

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

/* ============================================
   FABRICANTES Y ESPECIALISTAS MODERNOS
   ============================================ */
.manufacturers-section,
.specialists-section {
    padding: 5rem 2rem;
    position: relative;
}

.manufacturers-section {
    background: transparent;
}

.specialists-section {
    background: transparent;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bg-gradient-primary);
    border-radius: 2px;
}

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

.logo-item {
    width: 100%;
    min-width: 140px;
    min-height: 100px;
    max-width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.logo-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.logo-item:hover::before {
    opacity: 0.05;
}

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

.logo-item img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

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

/* ============================================
   PRODUCTOS MODERNOS
   ============================================ */
.products-section {
    padding: 2rem 2rem 6rem 2rem;
    background: transparent;
    position: relative;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.products-section .section-title {
    color: white !important;
    font-size: 1rem;
    text-align: left;
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
}

.products-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    transform: none;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.products-section .container {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
}

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    box-shadow: var(--shadow-md);
    cursor: default;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    display: flex !important;
    flex-direction: column;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
    word-wrap: break-word;
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    max-width: 100%;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 0;
    object-fit: contain;
    display: block;
    box-sizing: border-box;
}

/* Contenedor de imagen del producto */
.product-card > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
}

.product-card > div:first-child img {
    max-width: 100% !important;
    height: auto;
    object-fit: contain;
}

.product-card img.product-image {
    border-radius: 0;
    overflow: hidden;
}

.product-card:hover .product-image {
    transform: none;
}

.product-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
    font-weight: 700;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.product-card p {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.product-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: auto;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    background: #1e3a8a;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.product-info-icon:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.product-card:hover .product-info-icon {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.product-info-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Estilos para product-logo */
.product-logo {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
}

.product-logo img {
    max-width: 100% !important;
    height: auto;
    object-fit: contain;
}

/* ============================================
   SOBRE NOSOTROS MODERNO
   ============================================ */
.about-section {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-section.animate-in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.about-section.animate-in .about-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.about-section.animate-in .section-title {
    animation: fadeInDown 0.8s ease-out both;
}

.about-section .section-title {
    color: white !important;
    font-size: 1rem;
    text-align: left;
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
}

.about-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    transform: none;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.about-content {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.about-content p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.9;
}

/* ============================================
   CONTACTO MODERNO
   ============================================ */
.contact-section {
    padding: 6rem 2rem;
    background: transparent;
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0) !important;
    visibility: visible !important;
    display: block !important;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.contact-section.animate-in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.contact-section.animate-in .contact-layout {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-section.animate-in .section-title {
    animation: fadeInDown 0.8s ease-out both;
}

.contact-section .section-title {
    color: white !important;
    font-size: 1rem;
    text-align: left;
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
}

.contact-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    transform: none;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.contact-container-90 {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    margin-top: 2.25rem;
    align-items: stretch;
    animation: fadeInUp 0.8s ease-out;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-map-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: stretch;
    min-height: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: var(--border-radius-lg);
}

.contact-map-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(30, 58, 138, 0.3);
    border-color: rgba(30, 58, 138, 0.5);
}

.contact-map-wrapper:hover::before {
    opacity: 1;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-item {
    display: flex;
    gap: 1.125rem;
    align-items: flex-start;
    padding: 1.125rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    flex: 1;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.6s ease-out backwards;
}

.contact-item:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-item:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-item:nth-child(4) {
    animation-delay: 0.4s;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2), 0 0 20px rgba(30, 58, 138, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.contact-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--bg-gradient-primary);
    color: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.contact-item:hover .contact-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.contact-item h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    color: var(--text-dark);
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item:hover h4 {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Estilo para el nombre de la empresa en una línea */
.contact-item p .company-name {
    white-space: nowrap;
    display: inline-block;
}

.contact-item:hover p {
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

.contact-item a:hover::after {
    width: 100%;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-section .section-title {
    animation: fadeInDown 0.8s ease-out;
    font-size: 1rem !important;
    text-align: left !important;
    margin-bottom: 1.5rem !important;
}

/* ============================================
   RESEÑAS MODERNO
   ============================================ */
.resenas-section {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
}

.resenas-section .section-title {
    color: white !important;
    font-size: 1rem;
    text-align: left;
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
}

.resenas-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    transform: none;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.resenas-section .container {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
}

/* Carrusel de reseñas - similar a entradas pero con 4 reseñas */
.resenas-slider-container {
    position: relative;
    margin-top: 0;
    width: 100%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 0 5.5rem 0;
    box-sizing: border-box;
}

.resenas-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    cursor: grab;
    user-select: none;
    margin: 0;
    padding: 0.5rem 0;
}

.resenas-slider-wrapper:active {
    cursor: grabbing;
}

.resenas-slider-center-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% / 4);
    height: 100%;
    border: 3px solid transparent;
    pointer-events: none;
    z-index: 10;
    box-sizing: border-box;
}

.resenas-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    gap: 0;
}

.resenas-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

.resenas-grid-slide {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    box-sizing: border-box;
}

/* Desktop: mostrar 4 reseñas a la vez */
@media (min-width: 1025px) {
    .resenas-slider-container {
        width: 100%;
        max-width: 90%;
    }
    
    .resenas-slider-wrapper {
        width: 100%;
    }
    
    .resenas-slider-track {
        gap: 0;
    }
    
    .resenas-slide {
        width: calc(100% / 4);
        min-width: calc(100% / 4);
        max-width: calc(100% / 4);
        padding: 0 0.75rem;
        box-sizing: border-box;
    }
    
    .resena-card {
        width: 100%;
        margin: 0 auto;
    }
    
    .resenas-slider-center-indicator {
        width: calc(100% / 4);
    }
    
    /* Slides transparentes para mantener múltiplo de 4 */
    .resenas-slide-transparent {
        opacity: 0;
        pointer-events: none;
    }
    
    .resena-card-transparent {
        opacity: 0;
        pointer-events: none;
    }
}

/* Tablet: mostrar 2 reseñas */
@media (min-width: 769px) and (max-width: 1024px) {
    .resenas-slider-container {
        width: 100%;
        max-width: 90%;
    }
    
    .resenas-slider-wrapper {
        width: 100%;
    }
    
    .resenas-slide {
        width: calc(100% / 2);
        min-width: calc(100% / 2);
        max-width: calc(100% / 2);
        padding: 0 1rem;
    }
    
    .resenas-slider-center-indicator {
        width: calc(100% / 2);
    }
}

/* Móvil: mostrar 1 reseña */
@media (max-width: 768px) {
    .resenas-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .resenas-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 90% !important;
        width: 90% !important;
    }
    
    .resenas-slider-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.5rem 0 5.5rem 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .resenas-slider-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
    }
    
    .resenas-slider-track {
        width: 100% !important;
        gap: 0 !important;
    }
    
    .resenas-slider-center-indicator {
        width: 100% !important;
    }
    
    .resenas-slide {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .resenas-grid-slide {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        grid-template-columns: 1fr !important;
    }
    
    .resena-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .resenas-slide-transparent {
        display: none !important;
    }
}

.resenas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.resena-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    padding-bottom: 3.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out backwards;
    height: 100%;
    min-height: 400px;
    max-height: 400px;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.resena-header {
    min-height: 100px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.resena-card:nth-child(1) {
    animation-delay: 0.1s;
}

.resena-card:nth-child(2) {
    animation-delay: 0.2s;
}

.resena-card:nth-child(3) {
    animation-delay: 0.3s;
}

.resena-card:nth-child(4) {
    animation-delay: 0.4s;
}

.resena-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.resena-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
    min-height: 100px;
    flex-shrink: 0;
}

.resena-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.resena-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resena-avatar-default {
    background: var(--bg-gradient-primary);
    color: white;
}

.resena-info {
    flex: 1;
}

.resena-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.resena-empresa {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.resena-cargo {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
}

.resena-fecha {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.25rem 0 0 0;
}

.resena-calificacion {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
    min-height: 30px;
    align-items: center;
    flex-shrink: 0;
}

.star {
    font-size: 1.5rem;
    transition: var(--transition);
}

.star-filled {
    color: #ffc107;
}

.star-empty {
    color: #ddd;
}

.resena-comentario {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    min-height: calc(1.7em * 5);
    max-height: calc(1.7em * 5);
    margin-bottom: 0;
}

.resena-logo-newgate {
    margin-top: 1rem;
    text-align: right;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.resena-card:hover .resena-logo-newgate {
    opacity: 0.8;
}

.newgate-logo-small {
    width: 120px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: block;
}

.resena-card:hover .newgate-logo-small {
    opacity: 0.8;
}

.google-reviews-widget-container {
    margin-bottom: 3rem;
    width: 100%;
}

.google-reviews-widget {
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 1rem;
}

.google-reviews-widget iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .resenas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resena-card {
        padding: 1.5rem;
    }
    
    .google-reviews-widget iframe {
        min-height: 400px;
    }
}

/* ============================================
   FOOTER MODERNO
   ============================================ */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-section p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

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

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

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

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
}

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

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.social-links a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    margin: 0;
    padding: 0;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.btn-descargar-supremo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

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

.supremo-logo-btn {
    width: 28px;
    height: 28px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    object-fit: contain;
}

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

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

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

.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);
    position: relative;
    z-index: 1;
}

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

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

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

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: auto;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    position: relative;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
}

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

/* Modal de Entrada - Más ancho para artículos */
#modal-entrada .modal-content {
    max-width: 900px;
    width: 95%;
}

#modal-entrada .modal-body {
    padding: 0;
}

#modal-entrada .modal-body article {
    max-width: 100%;
}

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

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

.product-modal-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

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

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

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

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

.product-info p {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

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

.product-features li {
    padding: 1rem 0;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 2rem;
    font-size: 1.05rem;
}

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

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

.product-pricing {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

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

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

.price-label {
    color: var(--text-medium);
    font-weight: 600;
    font-size: 1.05rem;
}

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

.btn-contact {
    width: 100%;
    padding: 1.25rem;
    margin-top: 2rem;
    background: var(--bg-gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

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

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

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

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

.contacto-form {
    width: 100%;
}

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

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

.contacto-form .form-group input,
.contacto-form .form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
}

.contacto-form .form-group input:focus,
.contacto-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    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: 2.5rem;
}

.btn-cancel {
    flex: 1;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--text-light);
}

.contacto-form .btn-submit {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

.contacto-form .btn-submit:disabled {
    background: var(--text-lighter);
    cursor: not-allowed;
    transform: none;
}

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

.form-message {
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1.5rem;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
    display: block;
}

/* ============================================
   COOKIES BANNER 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.3);
    padding: 0;
    z-index: 9999;
    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: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

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

.cookie-banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-banner-message {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

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

.cookie-btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    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: 2px solid rgba(255, 255, 255, 0.2);
    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);
}

/* Contenedor para los botones flotantes */
.floating-buttons-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 9998;
}

/* 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;
}

.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: 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));
}

/* Botón de 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;
}

.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));
}

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

/* Asegurar que los botones no estén dentro de un contenedor si se crean directamente */
.cookie-settings-button,
.scroll-to-top-button {
    position: fixed !important;
    bottom: 20px;
    z-index: 10000 !important;
}

.cookie-settings-button {
    left: 20px;
}

.scroll-to-top-button {
    right: calc(1.5rem + 40px + 16px); /* 1.5rem (margen derecho WhatsApp) + 40px (ancho del icono WhatsApp) + 16px (gap) */
    left: auto;
}

/* 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));
}

@media (max-width: 768px) {
    .floating-buttons-container {
        bottom: 15px;
        left: 15px;
        gap: 10px;
    }
    
    .cookie-settings-button {
        left: 15px;
        bottom: 15px;
        z-index: 10000 !important;
        position: fixed !important;
    }
    
    .cookie-settings-button svg {
        width: 36px;
        height: 36px;
    }
    
    .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;
        z-index: 10000 !important;
        position: fixed !important;
    }
    
    .scroll-to-top-button svg {
        width: 36px;
        height: 36px;
    }
    
    .whatsapp-button {
        bottom: 15px;
        right: 1.5rem;
    }
    
    .whatsapp-button svg {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .banners-container {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .main-banner-text p {
        font-size: 1.25rem;
    }
}

@media (max-width: 968px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .logo {
        max-height: 236px;
        max-width: 709px;
    }
    
    /* Botones eliminados */

    .menu-toggle {
        display: flex;
    }

    .main-banner-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .main-banner-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .main-banner-text p {
        font-size: 1.15rem;
    }

    .banners-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

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

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .products-section .container {
        max-width: 90%;
        width: 90%;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
        box-sizing: border-box;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    img, video, iframe, embed, object, svg {
        max-width: 100% !important;
        height: auto;
        display: block;
    }
    
    .container {
        padding: 0 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    /* Asegurar que todas las secciones principales se ajusten */
    section, div, article, aside, header, footer, main {
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Prevenir desbordamiento en elementos con position */
    [style*="position: absolute"],
    [style*="position: fixed"] {
        max-width: 100vw !important;
    }
    
    /* Asegurar que los elementos flex y grid se ajusten */
    .flex, .grid, [class*="flex"], [class*="grid"] {
        max-width: 100% !important;
    }
    
    /* Ajustar elementos con anchos fijos grandes */
    [style*="width"] {
        max-width: 100% !important;
    }
    
    .header-container {
        padding: 1rem 0.75rem;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }
    
    .logo {
        max-height: 140px;
        max-width: 350px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        padding: 5rem 0 2rem 0;
        border-top: none;
        order: 4;
        width: 100%;
        height: 100vh;
        z-index: 10001 !important;
        overflow-y: auto;
        transition: backdrop-filter 0.3s ease, background 0.3s ease;
    }
    
    .nav-menu.active {
        display: block !important;
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        z-index: 10001 !important;
    }
    
    /* Bloquear scroll del body cuando el menú está abierto */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    .menu-close {
        display: none !important;
    }
    
    .nav-menu.active .menu-close {
        display: flex !important;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active .menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: rotate(90deg);
    }
    
    .nav-menu.active .menu-close span {
        color: white;
        font-size: 2rem;
        font-weight: 300;
        line-height: 1;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .nav-menu li {
        border-bottom: none;
    }
    
    .nav-menu a {
        border-radius: 0;
        background: transparent;
        border: none;
        padding: 1rem 1.5rem;
        color: white;
        position: relative;
    }
    
    .nav-menu a::after {
        left: 0;
        transform: scaleX(0);
        width: 4px;
        height: 100%;
        background: white;
        top: 0;
        bottom: 0;
    }
    
    .nav-menu a.active::after {
        transform: scaleX(1);
        width: 4px;
        background: red;
    }
    
    .nav-menu a:hover::after {
        transform: scaleX(1);
        width: 4px;
        background: white;
    }
    
    .nav-menu a:hover {
        background: transparent;
        transform: none;
        padding-left: 2rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .menu-toggle {
        position: relative;
        top: auto;
        right: auto;
        padding: 0.5rem;
        z-index: 10002 !important;
    }
    
    .menu-toggle.active {
        z-index: 10002 !important;
    }

    .main-banner-section {
        padding: 2rem 0;
    }
    
    .main-banner-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        padding: 0 0.75rem !important;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }
    
    .main-banner-text {
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-banner-text p {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }

    .banners-section {
        padding: 3rem 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .banners-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .manufacturers-section,
    .specialists-section {
        padding: 4rem 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

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

    .logo-item {
        min-width: 100px;
        min-height: 80px;
        height: 80px;
        max-width: 120px;
        padding: 1rem;
    }
    
    .products-section {
        padding: 4rem 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .products-section .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 0.5rem !important;
        margin: 0 auto !important;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }
    
    /* Estilos unificados para todas las medidas móviles - mismo ancho de ficha */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-items: stretch;
        padding: 0 0.25rem !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }
    
    .product-card {
        width: calc(100% - 0.5rem) !important;
        max-width: calc(100% - 0.5rem) !important;
        margin: 0 auto !important;
        box-sizing: border-box;
        padding: 1.25rem 0.75rem !important;
        overflow-x: hidden !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        border-radius: var(--border-radius) !important;
    }
    
    /* Asegurar que todos los elementos dentro de las tarjetas no se desborden */
    .product-card * {
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .product-card h3 {
        font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box;
        line-height: 1.3;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .product-card p {
        font-size: 0.95rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    
    .product-card .product-logo {
        max-width: 100% !important;
        overflow: hidden;
    }
    
    .product-card .product-logo img {
        max-width: 100% !important;
        height: auto;
    }
    
    .product-info-icon {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .product-info-icon span {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        max-width: 100% !important;
    }

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

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

    .about-section {
        padding: 4rem 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .about-section .section-title {
        padding: 0 0.75rem;
        box-sizing: border-box;
    }
    
    .about-content {
        max-width: calc(100% - 1.5rem) !important;
        width: calc(100% - 1.5rem) !important;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
        margin: 0 auto;
        border-radius: var(--border-radius) !important;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
    
    .contact-section {
        padding: 4rem 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .contact-section .section-title {
        padding: 0 0.75rem;
        box-sizing: border-box;
    }
    
    .contact-container-90 {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 0.25rem !important;
        box-sizing: border-box;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 0 0.25rem !important;
    }
    
    .contact-map-wrapper {
        aspect-ratio: 1;
        width: calc(100% - 0.5rem) !important;
        max-width: calc(100% - 0.5rem) !important;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .contact-info-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .contact-item {
        width: calc(100% - 0.5rem) !important;
        max-width: calc(100% - 0.5rem) !important;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 1rem !important;
    }
    
    .contact-item h4 {
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100%;
    }
    
    .contact-item > div:last-child {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .contact-item p {
        font-size: clamp(0.7rem, 2.8vw, 0.85rem) !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100%;
    }
    
    /* Asegurar que el nombre de la empresa se vea en una línea */
    .contact-item p .company-name {
        white-space: nowrap !important;
        display: inline-block !important;
        font-size: clamp(0.7rem, 2.8vw, 0.85rem) !important;
    }
    
    .map-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .map-wrapper iframe {
        height: 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer {
        padding: 3rem 1rem 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .footer-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-section h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .footer-section p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    .footer-section ul {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-section ul li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    .footer-section a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: inline-block;
    }
    
    .footer-bottom {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    
    .btn-descargar-supremo {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
    
    .social-links {
        flex-wrap: wrap;
        max-width: 100%;
    }
    
    .social-links a {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }
    
    .social-links a svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        display: block;
        margin: 0;
        padding: 0;
    }
    
    .footer-logo-msf {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-logo-msf img {
        max-width: 100%;
        height: auto;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .container {
        padding: 0 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .products-section .container {
        padding: 0 0.5rem !important;
    }
    
    .products-grid {
        padding: 0 0.25rem !important;
        gap: 0.75rem !important;
    }
    
    .product-card {
        width: calc(100% - 0.5rem) !important;
        max-width: calc(100% - 0.5rem) !important;
        padding: 1.25rem 0.75rem !important;
        margin: 0 auto !important;
    }
    
    .product-card h3 {
        font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0 !important;
    }
    
    .contact-container-90 {
        padding: 0 0.25rem !important;
    }
    
    .contact-layout {
        padding: 0 0.25rem !important;
    }
    
    .contact-map-wrapper {
        width: calc(100% - 0.5rem) !important;
        max-width: calc(100% - 0.5rem) !important;
    }
    
    .contact-item {
        width: calc(100% - 0.5rem) !important;
        max-width: calc(100% - 0.5rem) !important;
        padding: 1rem 0.75rem !important;
    }
    
    .contact-item p .company-name {
        font-size: clamp(0.65rem, 2.5vw, 0.75rem) !important;
    }
    
    .main-banner-container {
        padding: 0 0.5rem !important;
    }
    
    .main-banner-image img {
        max-height: 120px;
        max-width: 100% !important;
    }

    .banner-item img {
        max-height: 150px;
        max-width: 100% !important;
    }

    .banner-side-image img {
        max-height: 250px;
        max-width: 100% !important;
    }

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

    .product-modal-image {
        width: 120px;
        height: 120px;
        max-width: 100% !important;
    }
    
    /* Asegurar que todos los elementos dentro de las tarjetas no se desborden */
    .product-card * {
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .product-card img,
    .product-card .product-logo,
    .product-card .product-logo img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* ============================================
   ESTILOS ADICIONALES PARA ENTRADAS
   ============================================ */
.entradas-section {
    padding: 6rem 2rem;
    background: transparent;
    scroll-margin-top: 100px;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.entradas-section .container {
    max-width: 1260px;
    width: 90%;
}

.entradas-section.animate-in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.entradas-section .section-title {
    color: white !important;
    font-size: 1rem;
    text-align: left;
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

.entradas-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    transform: none;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
}

/* Mantener estilos existentes de entradas pero con mejoras */
.entrada-card {
    background: white !important;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.entrada-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.entrada-category {
    background: var(--bg-gradient-primary);
    color: white;
}

.entrada-read-more {
    color: var(--primary-color);
    font-weight: 600;
}

.entrada-read-more:hover {
    color: var(--primary-dark);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entrada-card,
.product-card,
.logo-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(60, 60, 60, 0.6);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(80, 80, 80, 0.8);
}

/* Para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(60, 60, 60, 0.6) rgba(0, 0, 0, 0.3);
}

/* ============================================
   MODAL DE COOKIES
   ============================================ */

.ngf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    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;
}

body.modal-open .cookie-banner {
    display: none !important;
}

.ngf-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10002;
}

.ngf-modal-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
}

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

.ngf-modal-subtitle {
    font-size: 14px;
    color: var(--text-light);
    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: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ngf-modal-close:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
}

.ngf-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.ngf-category {
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.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(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.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-color);
}

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

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

.ngf-modal-footer {
    padding: 12px 24px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.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: var(--transition);
    min-width: 120px;
    justify-content: center;
}

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

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

.ngf-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ngf-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

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

.ngf-btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.ngf-category.required {
    background: rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(10px);
    border-color: rgba(16, 185, 129, 0.3);
}

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

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

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

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

.ngf-icon-bullhorn {
    color: var(--accent-color);
}

.ngf-icon-cog {
    color: var(--text-light);
}

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

@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;
}

@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%;
    }
}
