        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50;
            --gray-color: #95a5a6;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --border-radius: 8px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f9f9f9;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        header {
            background-color: var(--primary-color);
            color: white;
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: var(--shadow);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .logo-image {
    height: 70px; /* Cambia de 40px a 60px (o el tamaño que prefieras) */
    width: auto;
    object-fit: contain;
}

        .logo-text {
            margin-left: 10px;
            font-size: 1.8rem;
            font-weight: 700;
            color: white;
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav ul li {
            margin-left: 1.5rem;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            padding: 5px 10px;
            border-radius: var(--border-radius);
        }

        nav ul li a:hover,
        nav ul li a.active {
            background-color: rgba(255, 255, 255, 0.1);
            color: var(--secondary-color);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            text-align: center;
            padding: 4rem 1rem;
            margin-bottom: 3rem;
            border-radius: 0 0 var(--border-radius) var(--border-radius);
        }

        .hero h1 {
            font-size: 2.8rem;
            margin-bottom: 1rem;
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 2rem;
            opacity: 0.9;
        }

        /* Category Navigation */
        .category-nav {
            display: flex;
            justify-content: center;
            margin-bottom: 2.5rem;
            flex-wrap: wrap;
        }

        .category-btn {
            background-color: white;
            border: 2px solid var(--light-color);
            padding: 0.8rem 1.8rem;
            margin: 0.5rem;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: var(--shadow);
        }

        .category-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        }

        .category-btn.active {
            background-color: var(--secondary-color);
            color: white;
            border-color: var(--secondary-color);
        }

        /* Subcategory Navigation */
        .subcategory-nav {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 2.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid #eee;
        }

        .subcategory-btn {
            background-color: white;
            border: 1px solid #ddd;
            padding: 0.6rem 1.5rem;
            margin: 0.3rem;
            border-radius: 30px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }

        .subcategory-btn:hover {
            background-color: var(--light-color);
        }

        .subcategory-btn.active {
            background-color: var(--primary-color);
            color: white;
        }

        /* Products Grid */
        .products-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .product-card {
            background-color: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }

        .product-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .product-image-container {
            height: 220px;
            overflow: hidden;
            position: relative;
        }

        .product-image-slider {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease;
        }

        .product-image-slide {
            min-width: 100%;
            height: 100%;
            position: relative;
        }

        .product-image-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background-color: var(--accent-color);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            z-index: 2;
        }

        .slider-controls {
            position: absolute;
            width: 100%;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            padding: 0 10px;
            z-index: 2;
        }

        .slider-btn {
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
            font-size: 0.8rem;
        }

        .slider-btn:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .product-info {
            padding: 1.5rem;
        }

        .product-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark-color);
        }

        .product-description {
            color: var(--gray-color);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }

        .product-btn {
            display: block;
            width: 100%;
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 0.8rem;
            border-radius: var(--border-radius);
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s;
            text-align: center;
            text-decoration: none;
        }

        .product-btn:hover {
            background-color: var(--secondary-color);
        }

        /* Modal para detalles del producto */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 20px;
            overflow: hidden;
        }

        .modal-content {
            background-color: white;
            border-radius: var(--border-radius);
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        /* Prevenir scroll en el body cuando el modal está abierto */
        body.modal-open {
            overflow: hidden;
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            font-size: 2rem;
            color: white;
            cursor: pointer;
            z-index: 10;
        }

        .close-modal:hover {
            color: var(--accent-color);
        }

        .product-detail {
            display: flex;
            flex-direction: column;
        }

        @media (min-width: 768px) {
            .product-detail {
                flex-direction: row;
            }
        }

        .product-detail-images {
            flex: 1;
            min-height: 350px;
            background-color: #111;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .product-detail-slider {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease;
        }

        .product-detail-slide {
            min-width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .product-detail-slide img {
            max-width: 100%;
            max-height: 350px;
            object-fit: contain;
            cursor: pointer;
        }

        .detail-slider-controls {
            position: absolute;
            width: 100%;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            z-index: 2;
        }

        .detail-slider-btn {
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }

        .detail-slider-btn:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .product-detail-info {
            flex: 1;
            padding: 2rem;
        }

        .product-detail-title {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: var(--dark-color);
        }

        .product-detail-price {
            font-size: 2rem;
            color: var(--secondary-color);
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .product-detail-description {
            margin-bottom: 1.5rem;
            color: #555;
            line-height: 1.8;
        }

        .product-detail-category {
            margin-bottom: 1.5rem;
            padding: 0.5rem 0;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
        }

        /* Modal para imagen ampliada */
        .image-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
            z-index: 1100;
            justify-content: center;
            align-items: center;
            touch-action: none;
        }

        .image-modal-content {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        .close-image-modal {
            position: absolute;
            top: 20px;
            right: 30px;
            background: none;
            border: none;
            font-size: 3rem;
            color: white;
            cursor: pointer;
            z-index: 10;
        }

        .close-image-modal:hover {
            color: var(--accent-color);
        }

        .zoomed-image-container {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            position: relative;
        }

        .zoomed-image {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-origin: center;
            will-change: transform;
            cursor: move;
        }

        .image-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 30px;
            transform: translateY(-50%);
            z-index: 5;
        }

        .image-nav-btn {
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: background-color 0.3s;
        }

        .image-nav-btn:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        /* Indicador de imágenes */
        .image-indicators {
            position: absolute;
            bottom: 15px;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 8px;
            z-index: 2;
        }

        .image-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .image-indicator.active {
            background-color: white;
        }

        /* Footer */
        footer {
            background-color: var(--primary-color);
            color: white;
            padding: 3rem 0 1.5rem;
            margin-top: 3rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--secondary-color);
        }

        .footer-section p {
            margin-bottom: 1rem;
            opacity: 0.8;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
            font-size: 0.9rem;
        }

        /* ========== PAGINACIÓN ========== */
        .pagination-container {
            margin-top: 3rem;
            margin-bottom: 4rem;
            display: none; /* Oculto inicialmente */
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .pagination-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 120px;
            justify-content: center;
        }

        .pagination-btn:hover:not(:disabled) {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
        }

        .pagination-btn:disabled {
            background-color: var(--gray-color);
            cursor: not-allowed;
            opacity: 0.6;
        }

        .page-numbers {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .page-number {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--border-radius);
            background-color: white;
            color: var(--dark-color);
            border: 1px solid #ddd;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .page-number:hover {
            background-color: var(--light-color);
            border-color: var(--secondary-color);
        }

        .page-number.active {
            background-color: var(--secondary-color);
            color: white;
            border-color: var(--secondary-color);
        }

        .page-ellipsis {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-color);
            font-weight: bold;
        }

        .pagination-info {
            text-align: center;
            color: var(--gray-color);
            font-size: 0.95rem;
            padding: 0.5rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            nav ul {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--primary-color);
                flex-direction: column;
                padding: 1rem 0;
                box-shadow: var(--shadow);
            }

            nav ul.show {
                display: flex;
            }

            nav ul li {
                margin: 0;
                text-align: center;
            }

            nav ul li a {
                display: block;
                padding: 0.8rem 1rem;
            }

            .mobile-menu-btn {
                display: block;
            }

            .hero h1 {
                font-size: 2.2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .category-btn {
                padding: 0.7rem 1.5rem;
                font-size: 0.9rem;
            }
            
            .product-detail {
                flex-direction: column;
            }
            
            .product-detail-images {
                min-height: 250px;
            }
            
            .zoomed-image {
                max-width: 95%;
                max-height: 95%;
            }
            
            .image-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .close-image-modal {
                top: 10px;
                right: 20px;
                font-size: 2.5rem;
            }
            
            /* Ajustes responsivos para paginación */
            .pagination-btn {
                padding: 0.6rem 1rem;
                min-width: 100px;
                font-size: 0.9rem;
            }
            
            .page-number {
                width: 36px;
                height: 36px;
                font-size: 0.9rem;
            }
            
            .pagination {
                gap: 6px;
            }
        }

        @media (max-width: 480px) {
            .pagination-btn {
                min-width: auto;
                padding: 0.6rem 0.8rem;
            }
            
            .pagination-btn span {
                display: none; /* Ocultar texto, solo mostrar íconos en móvil */
            }
            
            .pagination-btn i {
                margin: 0;
            }
        }

        /* ===== BOTÓN DE WHATSAPP MODERNO ===== */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #1DA851) !important;
    color: white !important;
    border: none !important;
    display: flex !important; /* Cambiado de inline-flex a flex */
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 14px 28px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 25px auto 0 auto !important; /* Centrado horizontal */
    width: 100% !important; /* Ocupa todo el ancho disponible */
    max-width: 300px !important; /* Ancho máximo */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

/* Efecto de brillo al pasar el mouse */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35) !important;
    background: linear-gradient(135deg, #1DA851, #25D366) !important;
}

.whatsapp-btn:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3) !important;
}

/* Estilo del icono de WhatsApp */
.whatsapp-btn i {
    font-size: 1.4rem !important;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease !important;
}

.whatsapp-btn:hover i {
    transform: scale(1.1) !important;
}

.product-detail-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.copy-link-btn {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 14px 28px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    max-width: 300px !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    margin: 0 auto !important;
}

.copy-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.copy-link-btn:hover::before {
    left: 100%;
}

.copy-link-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.35) !important;
    background: linear-gradient(135deg, #2980b9, #3498db) !important;
}

.copy-link-btn:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3) !important;
}

.copy-link-btn i {
    font-size: 1.4rem !important;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease !important;
}

.copy-link-btn:hover i {
    transform: scale(1.1) !important;
}

/* Para pantallas más grandes, mostrar botones en fila */
@media (min-width: 768px) {
    .product-detail-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .whatsapp-btn,
    .copy-link-btn {
        margin: 0 !important;
        flex: 1;
        max-width: 280px;
    }
}