:root {
    --primary: #8cc63f; /* Verde de la empresa */
    --accent: #2c3e50;
    --text-main: #333;
    --text-muted: #666;
    --bg-light: #fbfbfb;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

html, body {
    width: 100%;
    position: relative;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-main);
    background-color: transparent; /* Permite ver la animación detrás */
    margin: 0;
    padding: 0;
}

.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

#mouse-waves-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Header Rediseñado */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 transparent;
}

header.is-scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.header-logo-area {
    text-align: center;
    padding: 15px 0 10px 0;
    max-height: 120px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

header.is-scrolled .header-logo-area {
    padding: 8px 0 4px 0;
}

.header-logo-area img {
    max-height: 80px; /* Logo más grande */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

header.is-scrolled .header-logo-area img {
    max-height: 40px; /* Se encoge al hacer scroll */
}

/* Logo pegajoso en barra de navegación (sticky-logo) */
.sticky-logo {
    display: none !important;
}

@media (min-width: 901px) {
    /* Logo pegajoso en barra de navegación para escritorio */
    .sticky-logo {
        display: flex !important;
        align-items: center;
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                    opacity 0.3s ease, 
                    margin-right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        text-decoration: none;
        margin-right: 0;
    }
    .sticky-logo img {
        max-height: 40px;
        width: auto;
        display: block;
        transition: transform 0.3s ease;
    }
    .sticky-logo:hover img {
        transform: scale(1.05);
    }
    
    /* Cuando se activa el scroll */
    header.is-scrolled .sticky-logo {
        max-width: 160px;
        opacity: 1;
        margin-right: 25px;
    }
    
    header.is-scrolled .header-logo-area {
        max-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        opacity: 0 !important;
        pointer-events: none;
    }
}

.header-nav-bar {
    box-sizing: border-box;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    border-left: none;
    border-right: none;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

header.is-scrolled .header-nav-bar {
    border-top-color: #eaeaea;
}

.header-nav-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%; /* Generous margin from screen edges for premium look */
    height: 60px;
}

/* Redes Sociales en Header */
.header-social {
    display: flex;
    gap: 15px;
    font-size: 1.1rem;
}
.header-social a { color: #333; transition: 0.2s; }
.header-social a:hover { color: #8cc63f; }

/* Navegación Principal (con separadores | ) */
nav.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto; /* Empuja el menú hacia la derecha */
    margin-right: 25px; /* Espacio antes del buscador */
}

.nav-item-wrapper {
    display: flex;
    align-items: center;
}

.nav-item-wrapper:not(:last-child)::after {
    content: '|';
    color: #444;
    margin: 0 15px;
    font-size: 0.9rem;
    font-weight: 400;
}

nav.main-nav a.nav-btn {
    text-decoration: none;
    color: #333;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: 0.2s;
}

nav.main-nav a.nav-btn:hover, nav.main-nav a.nav-btn.active {
    color: #8cc63f; /* Verde lima del diseño */
}

/* Buscador en Header */
.header-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 3px 12px 3px 15px;
    transition: 0.3s;
}
.header-search:focus-within {
    border-color: #8cc63f;
    box-shadow: 0 0 5px rgba(140, 198, 63, 0.3);
}
.header-search input {
    border: none;
    outline: none;
    padding: 5px 0;
    width: 140px;
    font-size: 0.85rem;
    color: #333;
}
.header-search input::placeholder { color: #aaa; }
.header-search button {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-search button:hover { color: #8cc63f; }

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px;
    z-index: 10;
    transition: color 0.3s ease;
}
.hamburger-btn:hover {
    color: #8cc63f;
}

@media (max-width: 900px) {
    .hamburger-btn {
        display: block;
    }
    
    .header-logo-area {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px 0 10px 0;
        min-height: 65px;
    }
    .header-logo-area img { 
        max-height: 40px; 
    }
    .header-nav-bar {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-15px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border: none;
        margin: 0;
        border-radius: 0;
    }
    .header-nav-bar.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    .header-nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    
    nav.main-nav { 
        order: 1; 
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        gap: 0;
    }
    .nav-item-wrapper {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }
    /* Eliminar separadores | en móviles */
    .nav-item-wrapper::after {
        display: none !important;
    }
    nav.main-nav a.nav-btn {
        font-size: 1.05rem;
        padding: 18px 20px;
        display: block;
        color: #333;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    nav.main-nav a.nav-btn:hover, nav.main-nav a.nav-btn.active {
        color: #8cc63f;
        background-color: rgba(140, 198, 63, 0.05);
        padding-left: 25px; /* Sutil efecto de indentación */
    }
    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        background: #fbfbfb;
        border-radius: 0;
    }
    .nav-dropdown-content a {
        padding: 12px 20px 12px 35px;
        font-weight: 500;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    
    .header-search { 
        order: 2; 
        width: 100%; 
        max-width: 100%; 
        margin-top: 10px;
        padding: 8px 15px;
    }
    .header-search input { 
        width: 100%; 
        font-size: 1rem;
    }
    
    .header-social { 
        order: 3; 
        margin-top: 10px; 
        font-size: 1.2rem;
        justify-content: center;
        gap: 30px;
        width: 100%;
        padding-bottom: 10px;
    }
}

/* Hero Section (Banners Dinámicos) */
.hero {
    padding: 0; /* Ancho completo y sin bordes */
    background: transparent;
}

.hero-swiper {
    width: 100%;
    height: 600px; /* Altura para escritorio */
    position: relative;
}

.banner-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%); /* Sombra degradada para legibilidad */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.banner-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 850px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.banner-desc {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 500px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.banner-btn {
    display: inline-block;
    background: #8cc63f !important; /* Verde característico */
    color: #1d2d0c !important; /* Texto verde oscuro / negro */
    text-decoration: none;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 12px !important; /* Esquinas ligeramente redondeadas en vez de píldora completa */
    transition: 0.3s;
    text-transform: none !important; /* Texto en minúsculas/normal, no todo mayúsculas */
    font-size: 1.1rem;
}

.banner-btn:hover {
    background: #7ab233 !important;
    transform: scale(1.03);
}

.banner-title span, .text-green {
    color: #8cc63f; /* Resaltar texto específico en verde */
}

/* Ajustes Responsive (Móviles y Tablets) */
@media (max-width: 900px) {
    .hero-swiper {
        height: 450px; 
    }
    .banner-overlay {
        background: rgba(0,0,0,0.5); /* Más uniforme en móvil para centrar textos */
    }
    .banner-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .banner-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .hero-swiper {
        height: 400px;
    }
    .banner-title {
        font-size: 2.2rem;
    }
    .banner-desc {
        font-size: 1.1rem;
    }
    .banner-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}



.product-card {
    background: rgba(255, 255, 255, 0.82); /* Fondo semi-translúcido premium */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px;
    transition: 0.4s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.product-card .img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-card img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--accent);
}

.product-card .cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-card .price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.product-card .sku {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px;
    }
    .product-card {
        padding: 6px;
        border-radius: 8px;
        min-width: 0;
        word-wrap: break-word;
        overflow: hidden;
    }
    .product-card .img-wrapper {
        height: 80px;
        margin-bottom: 6px;
        border-radius: 6px;
    }
    .product-card h3 {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-card .cat {
        font-size: 0.55rem;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-card .price {
        font-size: 0.8rem;
    }
    .product-card .sku {
        font-size: 0.55rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .product-card .price-row {
        padding-top: 6px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    height: 350px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.category-card span {
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Spinner / Loading Sentinel */
.loading-sentinel {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.spinner {
    border: 3px solid rgba(0,0,0,0.08);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border-left-color: var(--primary);
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sidebar & Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px auto;
    }
}

.sidebar {
    background: rgba(255, 255, 255, 0.75); /* Fondo semi-translúcido premium */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0,0,0,0.02);
}

.sidebar-header-mobile {
    display: none;
}

#sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        z-index: 1001;
        border-radius: 25px 25px 0 0;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
        padding: 0;
        transform: translateY(calc(100% - 60px)); /* Solo muestra el header de 60px */
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        max-height: 85vh;
        border: none;
        display: flex;
        flex-direction: column;
    }
    .sidebar.open {
        transform: translateY(0);
    }
    
    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
        height: 60px;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        font-weight: 800;
        font-size: 1.1rem;
        cursor: pointer;
        position: sticky;
        top: 0;
        z-index: 2;
        border-radius: 25px 25px 0 0;
        color: var(--text-main);
        flex-shrink: 0;
    }
    .sidebar-header-mobile .toggle-icon {
        transition: transform 0.4s ease;
    }
    .sidebar.open .sidebar-header-mobile .toggle-icon {
        transform: rotate(180deg);
    }
    
    .sidebar-content-mobile {
        padding: 25px;
        overflow-y: auto;
        flex-grow: 1;
    }
    
    .desktop-only {
        display: none !important;
    }
}

.sidebar h4 {
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--accent);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #444;
}

.custom-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 0.9rem;
    outline: none;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==========================================================================
   SECCIÓN DE CATEGORÍAS DESTACADAS PREMIUM (DINÁMICA Y RESPONSIVA)
   ========================================================================== */
.premium-categories-section {
    padding: 60px 0 40px 0;
    background-color: rgba(255, 255, 255, 0.45); /* Fondo premium translúcido */
    backdrop-filter: blur(12px); /* Efecto glassmorphic */
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    position: relative;
}

.premium-categories-wrapper {
    display: grid;
    /* La grilla se adapta automáticamente según el número de elementos y tamaño de pantalla */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0; /* Sin espacio directo para permitir separadores perfectos */
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 10px 0;
}

.premium-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    text-decoration: none;
    border-radius: 28px;
    border: 2px solid transparent; /* Evita saltos de maquetación en hover */
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
}

/* Separadores punteados rectos utilizando pseudo-elementos sin curvas */
.premium-cat-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 0;
    border-right: 1.5px dotted rgba(var(--cat-color-rgb), 0.55);
    transition: opacity 0.3s ease;
}

/* Efecto hover premium y elegante */
.premium-cat-card:hover {
    border-color: var(--cat-color);
    background-color: rgba(var(--cat-color-rgb), 0.08); /* Fondo pastel ultra suave */
    box-shadow: 0 15px 35px rgba(var(--cat-color-rgb), 0.12);
    transform: translateY(-8px);
}

/* Cuando se pasa el mouse, ocultamos el separador punteado propio y el adyacente */
.premium-cat-card:hover::after,
.premium-cat-card:hover + .premium-cat-card::after {
    opacity: 0;
}

.premium-cat-img-wrapper {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.premium-cat-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.03));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efecto de micro-animación en la imagen de la categoría al hacer hover */
.premium-cat-card:hover .premium-cat-img {
    transform: scale(1.12) rotate(3deg);
}

/* Icono fallback en caso de no contar con imagen */
.premium-cat-fallback-icon {
    font-size: 3.5rem;
    color: var(--cat-color);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.premium-cat-card:hover .premium-cat-fallback-icon {
    transform: scale(1.15) rotate(-5deg);
    opacity: 1;
}

/* Nombre de la categoría */
.premium-cat-name {
    font-family: 'Inter', 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cat-color);
    text-transform: lowercase; /* Mantiene la estética de la imagen de referencia */
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.2px;
}

.premium-cat-card:hover .premium-cat-name {
    font-weight: 700;
    transform: scale(1.05);
}

/* Slogan Area */
.slogan-area {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.floating-leaf-img {
    width: 38px;
    height: auto;
    animation: floatLeaf 3.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 5px rgba(140, 198, 63, 0.2));
}

.slogan-text {
    font-family: 'Square Peg', cursive;
    font-size: 3.2rem;
    font-weight: 400;
    color: #444;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Animación sutil de la hoja flotante */
@keyframes floatLeaf {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(6deg);
    }
}

/* ==========================================================================
   RESPONSIVIDAD Y ADAPTABILIDAD EN DISPOSITIVOS MÓVILES
   ========================================================================== */
@media (max-width: 991px) {
    .premium-categories-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .premium-cat-img-wrapper {
        width: 110px;
        height: 110px;
    }
    .slogan-text {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .premium-categories-section {
        padding: 40px 0;
    }
    .premium-categories-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0 10px;
    }
    
    .premium-cat-card {
        flex: 0 0 calc(33.333% - 7px);
        border-radius: 15px;
        padding: 20px 5px;
        border: 2px solid rgba(var(--cat-color-rgb), 0.15); /* Mostrar bordes suaves por defecto en móvil */
        background: rgba(var(--cat-color-rgb), 0.02);
    }
    
    /* Eliminar separadores horizontales en móvil y sustituirlos por la grilla */
    .premium-cat-card:not(:last-child) {
        border-right: 2px solid rgba(var(--cat-color-rgb), 0.15);
    }
    
    .premium-cat-img-wrapper {
        width: 55px;
        height: 55px;
        margin-bottom: 10px;
    }
    .premium-cat-name {
        font-size: 0.75rem;
        line-height: 1.2;
        text-align: center;
        margin-top: 5px;
    }
    .slogan-area {
        margin-top: 25px;
    }
    .floating-leaf-img {
        width: 30px;
    }
    .slogan-text {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .premium-categories-wrapper {
        gap: 8px;
        padding: 0 8px;
    }
    .premium-cat-card {
        flex: 0 0 calc(33.333% - 6px);
        padding: 15px 2px;
    }
}

/* Proforma Icon Styles */
.mobile-proforma-btn {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    z-index: 10;
}
.mobile-proforma-btn:hover {
    color: #8cc63f;
}
.desktop-proforma-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 1.4rem;
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}
.desktop-proforma-btn:hover {
    color: #8cc63f;
}
.quote-count-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
    min-width: 14px;
    text-align: center;
}
.header-actions-wrapper {
    display: flex;
    align-items: center;
}

@media (max-width: 900px) {
    .mobile-proforma-btn {
        display: block;
    }
    .desktop-proforma-btn {
        display: none !important;
    }
    .header-actions-wrapper {
        width: 100%;
        justify-content: center;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast-msg {
    background: #fff;
    border-left: 5px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s;
    opacity: 0;
    min-width: 250px;
}
.toast-msg.show {
    transform: translateX(0);
    opacity: 1;
}
.toast-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Badge Bounce Animation */
@keyframes badgeBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}
.badge-bounce {
    animation: badgeBounce 0.4s ease;
}

/* Mini Cart Dropdown */
.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 20px;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    cursor: default;
    text-align: left;
}
.proforma-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.proforma-btn-wrapper:hover .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    right: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}
.mini-cart-header {
    font-weight: 800;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: var(--accent);
    font-size: 0.9rem;
}
.mini-cart-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
}
.mini-cart-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.mini-cart-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    background: #fdfdfd;
    border: 1px solid #eee;
}
.mini-cart-item-details {
    flex: 1;
    overflow: hidden;
}
.mini-cart-item-name {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}
.mini-cart-item-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 800;
}
.mini-cart-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.mini-cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--accent);
}
.btn-mini-cart {
    display: block;
    text-align: center;
    background: var(--primary);
    color: #fff !important;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.btn-mini-cart:hover {
    background: var(--accent);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    border-radius: 50px;
    padding: 12px 25px 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(37,211,102,0.3);
    z-index: 9998;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37,211,102,0.4);
    color: white;
}
.whatsapp-float i {
    font-size: 1.8rem;
}
.whatsapp-text {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.3px;
}
@media (max-width: 768px) {
    .whatsapp-float {
        padding: 12px;
        bottom: 20px;
        left: 20px;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        justify-content: center;
    }
    .whatsapp-float i {
        font-size: 1.8rem;
        margin: 0;
    }
    .whatsapp-text {
        display: none;
    }
}

/* Live Search Dropdown */
.header-search {
    position: relative;
}
.live-search-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 450px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    border: 1px solid #eaeaea;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.live-search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.live-search-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}
.live-search-header {
    background: #fdfdfd;
    padding: 15px 25px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.live-search-results-list {
    max-height: 400px;
    overflow-y: auto;
}
.live-search-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #f9f9f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    gap: 15px;
}
.live-search-item:last-child {
    border-bottom: none;
}
.live-search-item:hover {
    background: #f4f6f8;
}
.live-search-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
}
.live-search-item-info {
    flex: 1;
}
.live-search-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.live-search-item-sku {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.live-search-item-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1rem;
    white-space: nowrap;
}
.live-search-footer {
    padding: 15px;
    text-align: center;
    background: #fdfdfd;
    border-top: 1px solid #eee;
}
.live-search-footer a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.live-search-footer a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .live-search-dropdown {
        width: 100%;
        left: 0;
        right: auto;
        box-sizing: border-box;
    }
}

/* Sticky Bottom Bar (Product Page) */
.sticky-bottom-bar {
    display: none;
}
.desktop-action-area {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.desktop-action-area .qty-selector {
    border: 1px solid #ddd;
    border-radius: 50px;
    background: #fff;
}
.desktop-action-area .qty-btn {
    padding: 16px 20px;
}
.desktop-action-area .qty-input {
    width: 80px;
    font-size: 1.2rem;
}
.btn-quote { margin-bottom: 0; }

.qty-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.qty-btn {
    background: transparent;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
    transition: 0.2s;
}
.qty-btn:hover { background: #e9e9e9; }
.qty-input {
    width: 80px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 800;
    font-size: 1.1rem;
    color: #333;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input[type=number] {
    -moz-appearance: textfield;
}
.qty-input:focus { outline: none; }

@media (max-width: 768px) {
    .sticky-bottom-bar {
        box-sizing: border-box;
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        padding: 15px 20px;
        align-items: center;
        justify-content: center;
        gap: 15px;
        z-index: 999;
    }
    .btn-cotizar-sticky {
        background: #343a40; /* Plomo tipo Falabella */
        color: #fff;
        border: none;
        padding: 12px 15px;
        border-radius: 8px;
        font-weight: 800;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: 0.3s;
        flex: 1;
        justify-content: center;
    }
    .btn-cotizar-sticky:hover {
        background: #23272b;
    }
    .desktop-action-area {
        display: none; /* Hide desktop action area on mobile */
    }
}

/* Customization Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.custom-modal {
    box-sizing: border-box;
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.custom-modal-overlay.active .custom-modal {
    transform: translateY(0) scale(1);
}
.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    color: #666;
    transition: 0.2s;
}
.custom-modal-close:hover { background: #e0e0e0; color: #333; }
.custom-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}
.custom-modal-title i { color: #ffb700; font-size: 1.5rem; }
.custom-modal-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}
.custom-modal textarea {
    box-sizing: border-box;
    width: 100%;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    padding: 15px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}
.custom-modal textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.btn-modal-confirm {
    box-sizing: border-box;
    width: 100%;
    background: #8cc63f; /* Verde de la empresa */
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(140, 198, 63, 0.3);
}
.btn-modal-confirm:hover {
    background: #7ab233;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .btn-cotizar-sticky { font-size: 1rem; padding: 12px 15px; max-width: none; }
    .whatsapp-float-new { bottom: 90px; } /* Evita tapar con la barra pegajosa */
}

/* Cotizar Button on Catalog Grid Cards */
.btn-cotizar-card {
    background: #8cc63f;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: auto;
    box-sizing: border-box;
}
.btn-cotizar-card:hover {
    background: #7ab233;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(140, 198, 63, 0.3);
}
.product-card .price-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #f5f5f5;
    padding-top: 10px;
    margin-top: auto;
}
.product-card .price-meta-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
}

@media (max-width: 600px) {
    .product-card .price-row {
        gap: 4px;
        padding-top: 6px;
        justify-content: space-between;
        align-items: center;
    }
    .product-card .price-meta-line {
        width: auto;
    }
    .btn-cotizar-card {
        padding: 4px 8px;
        font-size: 0.65rem;
        border-radius: 10px;
        gap: 3px;
    }
}

/* Premium Breadcrumbs Styling */
.breadcrumbs-container {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.breadcrumbs-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    gap: 8px;
}
.breadcrumbs-bar a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs-bar a:hover {
    color: var(--primary);
}
.breadcrumbs-separator {
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 400;
}
.breadcrumbs-current {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

/* Page Header Block with Breadcrumbs */
.premium-page-header {
    background: #f8f9fa; /* Soft premium grey */
    padding: 50px 20px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
}
.premium-page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    margin: 15px 0 0 0;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}
.premium-page-header .breadcrumbs-bar {
    justify-content: center;
}

/* Premium Hover Image Slider Styling */
.hover-slider-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 1;
    transition: opacity 0.2s ease;
    z-index: 5;
}
.hover-slider-bar {
    display: flex;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    position: absolute;
    bottom: 0;
    left: 0;
    gap: 2px;
    opacity: 1;
    transition: opacity 0.2s ease;
    z-index: 5;
}
.hover-slider-segment {
    flex: 1;
    background: rgba(0, 0, 0, 0.15);
    height: 100%;
    transition: background 0.2s ease;
}
.hover-slider-segment.active {
    background: #8cc63f; /* Green corporate brand color */
}

/* Floating WhatsApp Button Premium */
.whatsapp-float-new {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25d366;
    color: white !important;
    text-decoration: none !important;
    padding: 8px 8px 8px 16px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-float-new:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45);
    background: #20ba5a;
}
.whatsapp-text-container {
    display: flex;
    flex-direction: column;
    text-align: right;
    pointer-events: none;
}
.whatsapp-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}
.whatsapp-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
}
.whatsapp-icon-circle {
    width: 44px;
    height: 44px;
    background: white;
    color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
}
/* Pulse animation for the whatsapp circle */
.whatsapp-icon-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: wa-pulse 2s infinite;
    top: 0;
    left: 0;
    pointer-events: none;
    box-sizing: border-box;
}
@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Mobile responsive shift to avoid overlapping sticky bottom actions (e.g. Filtrar Catálogo) */
@media (max-width: 768px) {
    .whatsapp-float-new {
        bottom: 85px !important;
        padding: 8px !important; /* Perfect circle when collapsed */
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .whatsapp-text-container {
        max-width: 0;
        opacity: 0;
        margin-right: 0;
        white-space: nowrap;
        transition: max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, margin 0.3s ease;
    }
    
    /* Active expanded state when scrolling */
    .whatsapp-float-new.expanded {
        padding: 8px 8px 8px 16px !important;
    }
    .whatsapp-float-new.expanded .whatsapp-text-container {
        max-width: 200px;
        opacity: 1;
        margin-right: 12px;
    }
}

/* Skeleton Loading Premium Style */
.skeleton-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}
.skeleton-img {
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.skeleton-text {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}
.skeleton-cat {
    width: 30%;
    height: 10px;
}
.skeleton-title {
    width: 80%;
    height: 16px;
    margin-bottom: 15px;
}
.skeleton-price {
    width: 50%;
    height: 18px;
    margin-top: 10px;
}

/* Shimmer Light Sweep Keyframe Animation */
.skeleton-img::after,
.skeleton-text::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.6) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Live Search Suggestions Styling */
.live-search-suggestions {
    padding: 20px;
    text-align: left;
}
.suggestion-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.suggestion-tags a {
    background: #f5f5f5;
    color: #444 !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid #eaeaea;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.suggestion-tags a:hover {
    background: #8cc63f;
    color: white !important;
    border-color: #8cc63f;
    transform: translateY(-1px);
}
.suggestion-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.suggestion-categories a {
    color: #333 !important;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.suggestion-categories a:hover {
    background: rgba(140, 198, 63, 0.08);
    color: #7ab233 !important;
}


/* ==========================================================================
   SUBCATEGORIES VIEW
   ========================================================================== */
.subcategories-header {
    background: 
        radial-gradient(circle at 85% 50%, rgba(var(--cat-color-rgb, 0, 174, 239), 0.15) 0%, transparent 65%),
        linear-gradient(135deg, #0d0d0f 0%, #141417 100%) !important;
    border-bottom: 2px solid rgba(var(--cat-color-rgb, 0, 174, 239), 0.15);
    color: #fff;
    padding: 60px 0;
    position: relative;
}
.subcats-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.subcats-header-left h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}
.subcats-header-left p {
    font-size: 1.1rem;
    max-width: 500px;
    color: #ddd;
    line-height: 1.5;
}
.subcats-header-right {
    text-align: right;
}
.subcats-header-right h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--cat-color, #00aeef);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(var(--cat-color-rgb, 0, 174, 239), 0.35);
}
.subcats-breadcrumbs {
    font-size: 0.95rem;
    color: #aaa;
}
.subcats-breadcrumbs a {
    color: var(--cat-color, #00aeef);
    text-decoration: none;
    transition: 0.2s;
}
.subcats-breadcrumbs a:hover {
    text-decoration: underline;
}
.subcats-breadcrumb-current {
    color: #fff;
}

.subcategories-grid-section {
    padding: 60px 0;
    background: transparent;
}
.subcategory-grid-wrapper {
    overflow: hidden;
    padding: 0;
}
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0;
    margin-top: -1px;
    margin-left: -1px;
    border-top: none;
    border-left: none;
}

.subcategory-card {
    position: relative;
    height: 300px;
    background: transparent;
    border-top: 1px solid var(--cat-color, #eaeaea);
    border-left: 1px solid var(--cat-color, #eaeaea);
    border-right: none;
    border-bottom: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subcategory-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.subcat-content-normal {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.subcat-icon {
    width: clamp(80px, 12vw, 160px);
    height: clamp(80px, 12vw, 160px);
    color: var(--child-color, var(--hover-color, #00aeef));
    font-size: clamp(80px, 12vw, 160px);
    object-fit: contain;
    display: block;
}

.subcat-content-hover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-sizing: border-box;
    background: var(--hover-color, #00aeef);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.subcategory-card:hover .subcat-content-hover,
.subcategory-card.is-flipped .subcat-content-hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subcategory-card:hover .subcat-content-normal,
.subcategory-card.is-flipped .subcat-content-normal {
    opacity: 0;
    transform: scale(1.1);
}

.subcat-title {
    font-family: 'Montserrat', 'Poppins', 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.8rem);
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
}

.subcat-divider {
    width: 40px;
    height: 2px;
    background: #fff;
    margin: 10px auto;
    flex-shrink: 0;
}

.subcat-children-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.subcat-child-link {
    font-family: 'Montserrat', 'Poppins', 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: clamp(0.9rem, 1.1vw + 0.3rem, 1.1rem);
    font-weight: 500;
    text-transform: uppercase;
    transition: 0.2s;
    word-break: break-word;
    line-height: 1.3;
}

.subcat-child-link:hover {
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .subcategories-header {
        padding: 30px 0;
    }
    .subcats-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .subcats-header-left h2 {
        font-size: 2.2rem;
        word-wrap: break-word;
        word-break: break-word;
    }
    .subcats-header-left p {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    .subcats-header-right {
        text-align: center;
    }
    .subcats-header-right h1 {
        font-size: 2.2rem;
        margin-top: 10px;
    }
    .subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .subcategory-card {
        height: 200px;
    }
    .subcat-icon {
        max-width: 60px;
        max-height: 60px;
        font-size: 50px;
    }
    .subcat-title {
        font-size: 1.2rem;
    }
    .subcat-child-link {
        font-size: 0.85rem;
    }
}


/* ==========================================================================
   MARQUEE
   ========================================================================== */
.subcats-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: #fbfbfb;
    padding: 10px 0 20px;
}

.subcats-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 300s linear infinite;
    font-family: 'Montserrat', 'Poppins', 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2vw + 0.5rem, 2rem);
    font-weight: 400;
}

.subcats-marquee:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-block;
    padding: 0 5px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.marquee-item:hover {
    opacity: 0.7;
}

.marquee-separator {
    margin: 0 5px;
    font-weight: 300;
    opacity: 0.8;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* Mobile Layout for Subcategories */
@media (max-width: 768px) {
    .subcategory-card {
        height: 250px;
        padding: 0;
        display: block;
    }
    .subcat-content-normal {
        margin-bottom: 0;
    }
    .subcat-icon {
        width: clamp(100px, 25vw, 150px);
        height: clamp(100px, 25vw, 150px);
        font-size: clamp(100px, 25vw, 150px);
    }
    /* We keep the absolute positioning for hover content on mobile to allow the tap-to-reveal effect */
    .subcat-content-hover {
        padding: 15px;
    }
    .subcat-title {
        font-size: 1.1rem;
    }
    .subcat-child-link {
        font-size: 0.85rem;
    }
    
    .subcategory-card:hover .subcat-content-normal {
        opacity: 1;
        transform: scale(1);
    }
    .subcategory-card:hover .subcat-content-hover {
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
    }
    
    /* When tapped (is-flipped) */
    .subcategory-card.is-flipped .subcat-content-normal {
        opacity: 0;
        transform: scale(1.1);
    }
    .subcategory-card.is-flipped .subcat-content-hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        background: var(--hover-color) !important;
        color: #fff;
    }
    .subcategory-card.is-flipped .subcat-title {
        color: #fff;
    }
    .subcategory-card.is-flipped .subcat-divider {
        background: #fff;
    }
    .subcategory-card.is-flipped .subcat-child-link {
        color: rgba(255,255,255,0.9);
    }
}


/* ==========================================================================
   PLANTILLA 3: RECTÁNGULOS VERTICALES
   ========================================================================== */
.subcategory-grid.template-vertical-rectangles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px !important; /* Hermoso espacio entre las tarjetas */
    margin: 40px auto;
    padding: 0 10px;
    border: none;
    background: transparent;
}

/* Card layout */
.subcat-rect-card {
    position: relative;
    height: 380px; /* Rectángulos verticales más altos */
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.subcat-rect-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.subcat-rect-card-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.subcat-rect-card:hover .subcat-rect-card-inner {
    transform: scale(1.03);
}

/* Normal State style */
.subcat-rect-normal {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Título abajo */
    padding: 25px 20px;
    box-sizing: border-box;
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Gradiente negro de abajo hacia arriba para legibilidad del título */
.subcat-rect-normal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    z-index: -1;
}

.subcat-rect-title-normal {
    font-family: 'Poppins', 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

/* Hover State style */
.subcat-rect-hover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                visibility 0.4s;
    overflow-y: auto;
}

/* Activar hover */
.subcat-rect-card:hover .subcat-rect-hover,
.subcat-rect-card.is-flipped .subcat-rect-hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subcat-rect-card:hover .subcat-rect-normal,
.subcat-rect-card.is-flipped .subcat-rect-normal {
    opacity: 0;
}

/* Title on Hover */
.subcat-rect-title-hover {
    font-family: 'Poppins', 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Divider on Hover */
.subcat-rect-divider {
    width: 40px;
    height: 3px;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 2px;
}

/* Children List inside Hover */
.subcat-rect-children-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.subcat-rect-child-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    padding: 4px 10px;
}

.subcat-rect-child-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
    transform: scale(1.05);
}

/* Responsive adjustment for mobile viewports */
@media (max-width: 600px) {
    .subcategory-grid.template-vertical-rectangles {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .subcat-rect-card {
        height: 260px; /* Más bajo en móvil */
        border-radius: 12px;
    }
    .subcat-rect-title-normal {
        font-size: 1rem;
    }
    .subcat-rect-title-hover {
        font-size: 1.1rem;
    }
    .subcat-rect-child-link {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
    .subcat-rect-divider {
        margin-bottom: 12px;
    }
}

/* ==========================================
   PLANTILLA 3: GALERÍA DE IMÁGENES PREMIUM
   ========================================== */
.gallery-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.gallery-product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 2/3; /* vertical rectangles */
    cursor: pointer;
    background-color: #16161a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}
.gallery-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--cat-color-rgb, 0, 174, 239), 0.35);
    border-color: rgba(var(--cat-color-rgb, 0, 174, 239), 0.3);
}
.gallery-product-card:hover img {
    transform: scale(1.05);
}
.gallery-product-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-product-card:hover .gallery-product-card-overlay {
    opacity: 1;
}
.gallery-product-card-overlay i {
    color: #fff;
    font-size: 2rem;
    transform: scale(0.8);
    background: rgba(var(--cat-color-rgb, 0, 174, 239), 0.7);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-product-card:hover .gallery-product-card-overlay i {
    transform: scale(1);
}

/* Lightbox styles */
.gallery-lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(6, 6, 8, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-lightbox-overlay.active {
    opacity: 1;
}
.gallery-lightbox-close {
    position: absolute;
    top: 30px; right: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50px; height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    z-index: 100001;
}
.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 60px; height: 60px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    z-index: 100001;
}
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.1);
}
.gallery-lightbox-prev { left: 40px; }
.gallery-lightbox-next { right: 40px; }

.gallery-lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: zoomInLightbox 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes zoomInLightbox {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-lightbox-caption {
    margin-top: 25px;
    text-align: center;
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.gallery-lightbox-caption h4 {
    font-family: 'Poppins', 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}
.gallery-lightbox-btn-cotizar {
    background-color: var(--cat-color, var(--primary));
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
}
.gallery-lightbox-btn-cotizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(var(--cat-color-rgb, 0, 174, 239), 0.45);
    filter: brightness(1.15);
}

/* Responsive adjustment for mobile viewports */
@media (max-width: 768px) {
    .gallery-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .gallery-product-card {
        border-radius: 12px;
    }
    .gallery-lightbox-prev { left: 15px; width: 45px; height: 45px; font-size: 1.1rem; }
    .gallery-lightbox-next { right: 15px; width: 45px; height: 45px; font-size: 1.1rem; }
    .gallery-lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 1.1rem; }
    .gallery-lightbox-content { max-width: 95%; max-height: 90%; }
    .gallery-lightbox-content img { max-height: 55vh; }
    .gallery-lightbox-caption h4 { font-size: 1.1rem; }
    .gallery-lightbox-btn-cotizar { padding: 10px 20px; font-size: 0.85rem; }
}


