        /* Variables de colores y estilos */
        :root {
            --color-primary: #000000;
            --color-secondary: #E30613;
            --color-accent: #FFFFFF;
            --text-dark: #333333;
            --text-light: #FFFFFF;
            --spacing-sm: 8px;
            --spacing-md: 16px;
            --spacing-lg: 32px;
            --spacing-xl: 64px;
            --border-radius: 4px;
        }
        
        /* Estilos generales */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background-color: var(--color-accent);
        }

        
        a {
            text-decoration: none;
            color: inherit;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--spacing-md);
        }
        
        .btn {
            display: inline-block;
            padding: var(--spacing-sm) var(--spacing-md);
            background-color: var(--color-secondary);
            color: var(--text-light);
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .btn:hover {
            background-color: var(--color-primary);
            transform: translateY(-2px);
        }
        
        .section-title {
            font-size: 2.5rem;
            margin-bottom: var(--spacing-lg);
            text-align: center;
            position: relative;
            color: var(--color-primary);
        }
        
        .section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background-color: var(--color-secondary);
            margin: var(--spacing-sm) auto;
        }
        
        /* Header */
        header {
            background-color: var(--color-primary);
            color: var(--text-light);
            padding: var(--spacing-md) 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo img {
            height: 60px;
        }
        
        .logo-text {
            margin-left: var(--spacing-sm);
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--color-accent);
        }
        
        .logo-text span {
            color: var(--color-secondary);
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: var(--spacing-lg);
        }
        
        nav ul li a {
            font-weight: 500;
            transition: color 0.3s ease;
        }
        
        nav ul li a:hover {
            color: var(--color-secondary);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/inicio/4.webp') no-repeat center center/cover;
            color: var(--text-light);
            padding: var(--spacing-xl) 0;
            text-align: center;
            min-height: 700px;
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            padding-top: 5%;
        }
        
        .hero h1 {
            font-size: 3rem;
            margin-bottom: var(--spacing-md);
            line-height: 1.2;
        }
        
        .hero p {
            font-size: 1.2rem;
            margin-bottom: var(--spacing-lg);
        }
        
        .hero-badge {
            display: inline-block;
            background-color: var(--color-secondary);
            color: var(--text-light);
            padding: var(--spacing-sm) var(--spacing-md);
            border-radius: 30px;
            font-weight: bold;
            margin-bottom: var(--spacing-lg);
        }
        
        /* About Section */
        .about {
            padding: var(--spacing-xl) 0;
            background-color: var(--color-accent);
        }
        
        .about-content {
            display: flex;
            align-items: center;
            gap: var(--spacing-xl);
        }
        
        .about-text {
            flex: 1;
        }
        
        .about-text h2 {
            color: var(--color-primary);
            margin-bottom: var(--spacing-md);
        }
        
        .about-text p {
            margin-bottom: var(--spacing-md);
        }
        
        .about-image {
            flex: 1;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .about-image img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        /* Products Section */
        .products {
            padding: var(--spacing-xl) 0;
            background-color: #f8f8f8;
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: var(--spacing-lg);
        }
        
        .products-container {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            justify-content: center;
            width: 100%;
            max-width: 1200px;
        }
        
        .product-card-container {
            perspective: 1000px;
            width: 100%;
            max-width: 320px;
            height: 500px; /* Aumenté ligeramente la altura */
        }
        
        .product-card {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .product-card.flipped {
            transform: rotateY(180deg);
        }
        
        .card-face {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 12px;
            overflow: hidden;
            background: white;
            display: flex;
            flex-direction: column;
        }
        
        .card-back {
            transform: rotateY(180deg);
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Asegura que el botón se posicione al final */
        }
        
        .product-image {
            height: 220px;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            background: #f8f9fa;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .product-info {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center; /* Centra verticalmente */
            align-items: center; /* Centra horizontalmente */
            text-align: center; /* Centra el texto */
        }
        
        .product-info h3 {
            color: #000;
            margin-bottom: 10px;
            font-size: 1.25rem;
        }
        
        .product-info p {
            color: #666;
            margin-bottom: 20px;
            flex-grow: 1;
        }

         /* Nueva Sección: Producto Destacado */
        .featured-product {
            padding: 80px 0;
            background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
        }
        
        .featured-container {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
        }
        
        .featured-image {
            flex: 1;
            min-width: 300px;
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            max-width: 600px; /* Ancho máximo aumentado */
            margin: 0 auto; /* Centrado */
        }
        
        .featured-image img {
            width: 100%;
            /*height: 200px; /* Altura fija aumentada */
           /* object-fit: cover; /* Asegura que la imagen cubra el espacio */
            display: block;
            transition: transform 0.5s;
        }
        
        .featured-image:hover img {
            transform: scale(1.05);
        }
        
        .new-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #d32f2f;
            color: white;
            padding: 10px 15px;
            border-radius: 30px;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 0.8rem;
            box-shadow: 0 4px 10px rgba(211, 47, 47, 0.4);
        }
        
        .featured-content {
            flex: 1;
            min-width: 300px;
        }
        
        .featured-content h2 {
            font-size: 2.2rem;
            margin-bottom: 20px;
            color: #333;
        }
        
        .featured-content h2 span {
            color: #d32f2f;
        }
        
        .featured-content p {
            margin-bottom: 20px;
            line-height: 1.6;
            font-size: 1.1rem;
            color: #555;
        }
        
        .product-features {
            margin: 25px 0;
        }
        
        .feature-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .feature-icon {
            width: 40px;
            height: 40px;
            background: #d32f2f;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: white;
        }

         /* Contenedor del video de fondo */
        .video-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }
        
        .video-background video {
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            object-fit: cover;
            /* Filtro para oscurecer aún más el video */
            filter: brightness(0.5);
        }
        
        /* Overlay para mejorar legibilidad */
        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: -1;
        }
        
        /* Nueva Sección: Copa Monello */
          .tournament {
            position: relative;
            padding: 80px 0;
            color: white;
            overflow: hidden;
            text-align: center;
        }
        
        /* Contenedor del video de fondo */
                
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .tournament-content {
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }
        
        h2 {
            font-size: 2.8rem;
            margin-bottom: 20px;
            color: #ffffff;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        p {
            font-size: 1.2rem;
            line-height: 1.6;
            margin-bottom: 30px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .countdown {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 15px;
            padding: 25px;
            margin: 40px auto;
            max-width: 700px;
            border: 1px solid rgba(0, 0, 0, 0.3);
        }
        
        .countdown h3 {
            margin-bottom: 20px;
            color: #ffffff;
            font-size: 1.8rem;
        }
        
        .countdown-timer {
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        
        .time-unit {
            background: rgba(0, 0, 0, 0.7);
            border-radius: 10px;
            padding: 15px;
            min-width: 100px;
            border: 1px solid #bb1111;
        }
        
        .time-value {
            font-size: 2.5rem;
            font-weight: bold;
            color: #bb1111;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }
        
        .time-label {
            font-size: 1rem;
            margin-top: 5px;
            color: #fff;
        }
        
        .tournament-highlights {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 30px;
            margin: 40px 0;
        }
        
        .highlight-card {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 15px;
            padding: 25px 20px;
            width: 250px;
            border: 1px solid rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease;
        }
        
        .highlight-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .highlight-card i {
            font-size: 2.5rem;
            color: #b20101;
            margin-bottom: 15px;
        }
        
        .highlight-card h3 {
            margin-bottom: 10px;
            color: #ffffff;
        }
        
        .btn {
            display: inline-block;
            background: linear-gradient(to right, #3e3737, #ff0000);
            color: #ffffff;
            padding: 15px 40px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.2rem;
            margin-top: 20px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
            background: linear-gradient(to right, #8a3131, #ff0000);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .countdown-timer {
                flex-wrap: wrap;
            }
            
            .time-unit {
                min-width: 80px;
            }
            
            .tournament-highlights {
                flex-direction: column;
                align-items: center;
            }
            
            h2 {
                font-size: 2.2rem;
            }
            
            p {
                font-size: 1rem;
            }
        }
        
        .btn-back {
            background-color: #000;
            margin-top: auto; /* Empuja el botón hacia abajo */
            align-self: center; /* Centra el botón */
            width: 80%; /* Ancho consistente */
        }
        
        .btn-back:hover {
            background-color: #E30613;
        }
        
        .brand-links {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin: 20px 0;
        }
        
        .brand-link {
            display: flex;
            align-items: center;
            padding: 5px 15px;
            background-color: #f8f9fa;
            color: #000;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .brand-link:hover {
            background-color: #E30613;
            color: white;
            border-color: #E30613;
            transform: translateX(5px);
        }
        
        .brand-link i {
            margin-right: 10px;
            font-size: 16px;
        }
        
        .back-title {
            text-align: center;
            margin-bottom: 25px;
            color: #000;
            font-size: 1.25rem;
            position: relative;
        }
        
        .back-title::after {
            content: '';
            display: block;
            width: 50px;
            height: 3px;
            background-color: #E30613;
            margin: 10px auto 0;
        }
        
        .back-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        /* Brands Section */
        .brands {
            padding: var(--spacing-xl) 0;
            background-color: var(--color-accent);
        }
        
        .brands-logos {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: var(--spacing-xl);
        }
        
        .brand-logo {
            height: 200px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* sombra suave y profunda */
            border-radius: 8px; /* opcional: bordes redondeados para suavizar */
            transition: box-shadow 0.3s ease; /* animación suave al pasar el mouse */
        }
        .brand-logo:hover {
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); /* efecto más intenso al hacer hover */
        }
        
        /* Contact Section */
        .contact {
            padding: var(--spacing-xl) 0;
            background-color: #f8f8f8;
        }
        
        .contact-container {
            display: flex;
            gap: var(--spacing-xl);
        }
        
        .contact-info {
            flex: 1;
        }
        
        .contact-info h3 {
            color: var(--color-primary);
            margin-bottom: var(--spacing-md);
        }
        
        .contact-detail {
            display: flex;
            align-items: flex-start;
            margin-bottom: var(--spacing-md);
            text-align: left; /* Alineado a la izquierda */
        }
        
        .contact-detail i {
            color: var(--color-secondary);
            font-size: 1.2rem;
            margin-right: var(--spacing-sm);
            min-width: 25px;
            padding-top: 4px; /* Alineación vertical del icono */
        }
        
        .contact-detail p {
            margin: 0;
            line-height: 1.6;
            text-align: left; /* Alineado a la izquierda */
            flex: 1;
        }
        
        .contact-form {
            flex: 1;
        }
        
        .form-group {
            margin-bottom: var(--spacing-md);
        }
        
        .form-group label {
            display: block;
            margin-bottom: var(--spacing-sm);
            font-weight: 500;
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: var(--spacing-sm);
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-family: inherit;
        }
        
        .form-group textarea {
            min-height: 150px;
        }
        
        /* Footer */
        footer {
            background-color: var(--color-primary);
            color: var(--text-light);
            padding: var(--spacing-xl) 0 var(--spacing-md);
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: var(--spacing-xl);
            margin-bottom: var(--spacing-lg);
        }
        
        .footer-column {
            flex: 1;
            min-width: 200px;
        }
        
        .footer-column h3 {
            color: var(--color-secondary);
            margin-bottom: var(--spacing-md);
            position: relative;
        }
        
        .footer-column h3::after {
            content: '';
            display: block;
            width: 40px;
            height: 2px;
            background-color: var(--color-secondary);
            margin-top: var(--spacing-sm);
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column ul li {
            margin-bottom: var(--spacing-sm);
        }
        
        .footer-column ul li a:hover {
            color: var(--color-secondary);
        }
        
        .social-links {
            display: flex;
            gap: var(--spacing-md);
            margin-top: var(--spacing-md);
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background-color: var(--color-secondary);
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: var(--spacing-md);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        
        /* Responsive */
        @media (max-width: 992px) {
            .about-content {
                flex-direction: column;
            }
            
            .contact-container {
                flex-direction: column;
            }
        }
        
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                text-align: center;
            }
            
            nav ul {
                margin-top: var(--spacing-md);
                justify-content: center;
            }
            
            nav ul li {
                margin: 0 var(--spacing-sm);
            }
            
            .hero h1 {
                font-size: 2.2rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .footer-content {
                flex-direction: column;
            }
        }
        
        @media (max-width: 576px) {
            .mobile-menu-btn {
                display: block;
                position: absolute;
                top: var(--spacing-md);
                right: var(--spacing-md);
            }
            
            nav {
                display: none;
                width: 100%;
            }
            
            nav.active {
                display: block;
            }
            
            nav ul {
                flex-direction: column;
                margin-top: var(--spacing-md);
            }
            
            nav ul li {
                margin: var(--spacing-sm) 0;
            }
            
            .hero h1 {
                font-size: 1.8rem;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
        }
        
        
        /* SOLUCIÓN COMPLETA PARA LIGHTBOX EN MÓVILES */
        .lightboxOverlay {
            background: rgba(0, 0, 0, 0.9) !important;
        }

        .lightbox .lb-image {
            border: none !important;
            border-radius: 10px !important;
            max-width: 95vw !important;
            max-height: 80vh !important;
        }

        /* BOTÓN CERRAR - VISIBLE Y ACCESIBLE */
        .lb-close {
            position: fixed !important;
            top: 20px !important;
            right: 20px !important;
            background: rgba(255, 255, 255, 0.2) !important;
            backdrop-filter: blur(10px) !important;
            border: 2px solid rgba(255, 255, 255, 0.3) !important;
            border-radius: 50% !important;
            width: 50px !important;
            height: 50px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            z-index: 9999 !important;
            opacity: 1 !important;
            transition: all 0.3s ease !important;
        }

        .lb-close:hover {
            background: rgba(255, 255, 255, 0.3) !important;
            transform: scale(1.1) !important;
        }

        .lb-close:after {
            content: "×" !important;
            color: white !important;
            font-size: 30px !important;
            font-weight: bold !important;
            line-height: 1 !important;
        }

        .lb-close img {
            display: none !important;
        }

        /* NAVEGACIÓN MEJORADA */
        .lb-nav {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            z-index: 9998 !important;
        }

        .lb-prev, .lb-next {
            position: fixed !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            background: rgba(255, 255, 255, 0.2) !important;
            backdrop-filter: blur(10px) !important;
            border: 2px solid rgba(255, 255, 255, 0.3) !important;
            border-radius: 50% !important;
            width: 60px !important;
            height: 60px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            z-index: 9999 !important;
            opacity: 1 !important;
            transition: all 0.3s ease !important;
        }

        .lb-prev {
            left: 15px !important;
        }

        .lb-next {
            right: 15px !important;
        }

        .lb-prev:hover, .lb-next:hover {
            background: rgba(255, 255, 255, 0.3) !important;
            transform: translateY(-50%) scale(1.1) !important;
        }

        .lb-prev:after, .lb-next:after {
            color: white !important;
            font-size: 24px !important;
            font-weight: bold !important;
        }

        .lb-prev:after {
            content: "‹" !important;
        }

        .lb-next:after {
            content: "›" !important;
        }

        .lb-prev img, .lb-next img {
            display: none !important;
        }

        /* CONTENEDOR DE DATOS */
        .lb-dataContainer {
            position: fixed !important;
            bottom: 20px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            background: rgba(0, 0, 0, 0.7) !important;
            backdrop-filter: blur(10px) !important;
            border-radius: 25px !important;
            padding: 15px 25px !important;
            max-width: 90% !important;
            z-index: 9999 !important;
        }

        .lb-data .lb-caption {
            color: white !important;
            font-size: 16px !important;
            text-align: center !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .lb-data .lb-number {
            display: none !important;
        }

        /* MEJORAS ESPECÍFICAS PARA MÓVILES PEQUEÑOS */
        @media (max-width: 480px) {
            .lb-close {
                top: 10px !important;
                right: 10px !important;
                width: 45px !important;
                height: 45px !important;
            }

            .lb-close:after {
                font-size: 25px !important;
            }

            .lb-prev, .lb-next {
                width: 50px !important;
                height: 50px !important;
            }

            .lb-prev:after, .lb-next:after {
                font-size: 20px !important;
            }

            .lb-prev {
                left: 10px !important;
            }

            .lb-next {
                right: 10px !important;
            }

            .lightbox .lb-image {
                max-width: 98vw !important;
                max-height: 70vh !important;
            }

            .lb-dataContainer {
                bottom: 15px !important;
                padding: 12px 20px !important;
            }

            .lb-data .lb-caption {
                font-size: 14px !important;
            }
        }

        /* PREVENIR ZOOM EN IMÁGENES */
        .gallery-item img {
            touch-action: manipulation;
            -webkit-user-drag: none;
            -webkit-tap-highlight-color: transparent;
        }

        /* LOADER MEJORADO */
        .lb-loader {
            border: 5px solid #f3f3f3 !important;
            border-top: 5px solid #3b82f6 !important;
            border-radius: 50% !important;
            width: 50px !important;
            height: 50px !important;
            animation: spin 1s linear infinite !important;
            position: fixed !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            z-index: 10000 !important;
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        /* Estilos para la sección de galería */
        .gallery-section {
            padding: 80px 0;
            background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
            color: rgb(0, 0, 0);
        }

        .gallery-section .section-title {
            color: rgb(0, 0, 0);
            margin-bottom: 10px;
        }

        .section-subtitle {
            text-align: center;
            margin-bottom: 40px;
            font-size: 1.1rem;
            opacity: 0.9;
            color: rgb(0, 0, 0);
        }

        .gallery-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .gallery-item {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            aspect-ratio: 4/3;
            background: #fff;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

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

        .gallery-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(29, 78, 216, 0.9) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        .gallery-icon {
            color: white;
            font-size: 2.5rem;
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .gallery-icon {
            transform: scale(1);
        }

        .gallery-actions {
            text-align: center;
            margin-top: 2rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
            color: white;
            text-decoration: none;
        }

        /* Estados de carga y error */
        .gallery-loading,
        .gallery-empty,
        .gallery-error {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            color: #64748b;
        }

        .gallery-loading i,
        .gallery-empty i,
        .gallery-error i {
            font-size: 3rem;
            margin-bottom: 20px;
            opacity: 0.7;
        }

        .gallery-loading i {
            color: #3b82f6;
        }

        .gallery-empty i {
            color: #94a3b8;
        }

        .gallery-error i {
            color: #ef4444;
        }

        /* Responsive Design Mejorado */
        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                gap: 0.8rem;
            }
            
            .gallery-section {
                padding: 50px 0;
            }
            
            .gallery-item {
                border-radius: 12px;
                aspect-ratio: 1;
            }
            
            .section-subtitle {
                font-size: 1rem;
                margin-bottom: 30px;
                padding: 0 1rem;
            }
            
            .gallery-container {
                padding: 0 0.8rem;
            }
        }

        @media (min-width: 481px) and (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 1rem;
            }
            
            .gallery-section {
                padding: 60px 0;
            }
        }

        /* Efectos de hover para móviles con touch */
        @media (hover: none) {
            .gallery-item:hover {
                transform: none;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            }
            
            .gallery-item:hover img {
                transform: none;
            }
            
            .gallery-item:hover .gallery-overlay {
                opacity: 0;
            }
        }