:root {
    /* Branding Colors - Midnight Gold Premium */
    --clr-gold: #FFCD00;
    --clr-gold-light: #FFD700;
    --clr-gold-dark: #B8860B;
    --clr-navy-deep: #00132E;
    --clr-navy-light: #08203E;
    --clr-navy-accent: #152A49;
    --clr-white: #FFFFFF;
    --clr-off-white: #D6E3FF;

    /* Functional Colors */
    --clr-gray-100: #F3F4F6;
    --clr-gray-200: #E5E7EB;
    --clr-gray-300: #D1D5DB;
    --clr-gray-600: #4B5563;
    --clr-gray-800: #1F2937;
    --clr-text: var(--clr-off-white);
    --clr-danger: #FFB4AB;
    --clr-success: #10B981;

    /* Legacy compatibility names */
    --clr-yellow: var(--clr-gold);
    --clr-dark-blue: var(--clr-navy-deep);

    /* Typography */
    --font-main: 'Montserrat', sans-serif;

    /* Spacing & Layout */
    --max-width: 1280px;
    --nav-height: 80px;

    /* Shadows & Transitions - More Premium */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Gradients */
    --grad-premium: linear-gradient(135deg, var(--clr-navy-deep) 0%, var(--clr-navy-light) 100%);
    --grad-gold: linear-gradient(135deg, var(--clr-gold) 0%, #E6B800 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text);
    background-color: var(--clr-navy-deep);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

.section {
    padding: 4rem 1.5rem;
}

.bg-light {
    background-color: var(--clr-gray-100);
}

.w-100 {
    width: 100%;
}

.mt-1 {
    margin-top: 1rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--clr-gold);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.center h2,
.center p {
    text-align: center;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--clr-off-white);
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--grad-gold);
    color: var(--clr-navy-deep);
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background: var(--clr-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 205, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-gold);
    color: var(--clr-gold);
}

.btn-outline:hover {
    background-color: var(--clr-gold);
    color: var(--clr-navy-deep);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--clr-gray-200);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--clr-yellow);
}

/* Header */


.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background-color: var(--clr-dark-blue);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo-mark .s-letter {
    color: var(--clr-yellow);
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
}

.logo-mark .slash {
    position: absolute;
    width: 120%;
    height: 2px;
    background-color: var(--clr-white);
    transform: rotate(-45deg);
}

.brand-name {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--clr-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Header Navigation Main (Desktop) */
.header-nav-main {
    transition: var(--transition);
}

.cat-link {
    color: var(--clr-dark-blue);
    position: relative;
    padding: 0.25rem 0;
    white-space: nowrap;
}

.cat-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-yellow);
    transition: var(--transition);
}

.cat-link:hover::after {
    width: 100%;
}

@media (max-width: 1024px) {
    .header-nav-main {
        display: none !important;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 1001;
}

.cart-icon {
    position: relative;
    font-size: 1.25rem;
    color: var(--clr-dark-blue);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--clr-yellow);
    color: var(--clr-dark-blue);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.bump {
    transform: scale(1.3);
}

/* Hamburger */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background-color: var(--clr-dark-blue);
    height: 2px;
    width: 100%;
    position: absolute;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-dark-blue);
    z-index: 999;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-height);
}

.mobile-menu.open {
    right: 0;
}

.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.nav-links li {
    margin-bottom: 1.5rem;
}

.nav-links a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--clr-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-yellow);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 1rem;
}

.submenu.open {
    max-height: 300px;
    margin-top: 1rem;
}

.submenu li {
    margin-bottom: 1rem;
}

.submenu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-gray-300);
}

.submenu a:hover {
    color: var(--clr-white);
}

.menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    color: var(--clr-white);
}

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

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

.social-links a:hover {
    background-color: var(--clr-yellow);
    color: var(--clr-dark-blue);
    transform: translateY(-3px);
}

/* Change header color when mobile menu is open */
.header.menu-open {
    background-color: transparent;
    box-shadow: none;
}

.header.menu-open .brand-name,
.header.menu-open .cart-icon,
.header.menu-open .hamburger,
.header.menu-open .hamburger::before,
.header.menu-open .hamburger::after {
    color: var(--clr-white);
    background-color: var(--clr-white);
}

.header.menu-open .cart-icon {
    background-color: transparent;
    color: var(--clr-white);
}

.header.menu-open .brand-name {
    background-color: transparent;
}

.header.menu-open .logo-mark {
    background-color: var(--clr-yellow);
}

.header.menu-open .logo-mark .s-letter {
    color: var(--clr-dark-blue);
}

.header.menu-open .logo-mark .slash {
    background-color: var(--clr-dark-blue);
}

.desktop-categories {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.cat-link {
    color: var(--clr-off-white);
    opacity: 0.8;
}

.cat-link:hover {
    color: var(--clr-gold);
    opacity: 1;
}

.cat-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-yellow);
    transition: width 0.3s;
}

.cat-link:hover::after {
    width: 100%;
}

.cat-link:hover {
    color: var(--clr-yellow);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.25rem 1rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-dark-blue);
    z-index: 999;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-height);
}

.mobile-menu.open {
    right: 0;
}

.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.nav-links li {
    margin-bottom: 1.5rem;
}

.nav-links a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--clr-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-yellow);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 1rem;
}

.submenu.open {
    max-height: 300px;
    margin-top: 1rem;
}

.submenu li {
    margin-bottom: 1rem;
}

.submenu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-gray-300);
}

.submenu a:hover {
    color: var(--clr-white);
}

.menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    color: var(--clr-white);
}

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

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clr-yellow);
    font-size: 1.2rem;
    transition: background-color 0.3s, color 0.3s;
}

.social-links a:hover {
    background-color: var(--clr-yellow);
    color: var(--clr-dark-blue);
    transform: translateY(-3px);
}

/* Change header color when mobile menu is open */
.header.menu-open {
    background-color: transparent;
    box-shadow: none;
}

.header.menu-open .brand-name,
.header.menu-open .cart-icon,
.header.menu-open .hamburger,
.header.menu-open .hamburger::before,
.header.menu-open .hamburger::after {
    color: var(--clr-white);
    background-color: var(--clr-white);
}

.header.menu-open .cart-icon {
    background-color: transparent;
    color: var(--clr-white);
}

.header.menu-open .brand-name {
    background-color: transparent;
}

.header.menu-open .logo-mark {
    background-color: var(--clr-yellow);
}

.header.menu-open .logo-mark .s-letter {
    color: var(--clr-dark-blue);
}

.header.menu-open .logo-mark .slash {
    background-color: var(--clr-dark-blue);
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--clr-white);
    z-index: 1006;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--clr-gray-200);
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-gray-600);
    transition: color 0.2s;
}

.close-cart:hover {
    color: var(--clr-danger);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart-message {
    text-align: center;
    color: var(--clr-gray-600);
    margin-top: 2rem;
    font-style: italic;
}

.cart-item {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--clr-gray-200);
    padding-bottom: 1rem;
    position: relative;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--clr-gray-100);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--clr-dark-blue);
}

.cart-item-price {
    font-weight: 700;
    color: var(--clr-dark-blue);
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background: var(--clr-gray-200);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.qty-btn:hover {
    background: var(--clr-gray-300);
}

.qty-display {
    font-size: 0.9rem;
    font-weight: 600;
    width: 20px;
    text-align: center;
}

.remove-item {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--clr-gray-300);
    cursor: pointer;
    transition: color 0.2s;
}

.remove-item:hover {
    color: var(--clr-danger);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--clr-gray-200);
    background-color: var(--clr-gray-100);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--clr-dark-blue);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    max-width: 750px;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--clr-dark-blue);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: rgba(10, 37, 64, 0.1);
    color: var(--clr-dark-blue);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

/* Carousel Specifics */
.carousel-item {
    scroll-snap-align: center;
    flex: 0 0 280px;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.02);
}

#new-arrivals-grid::-webkit-scrollbar {
    display: none;
}

/* Parallax Balls */
.scroll-ball {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    transition: transform 0.1s linear;
}

.ball-1 {
    width: 60px;
    height: 60px;
    background-color: var(--clr-yellow);
    top: 15%;
    left: 10%;
}

.ball-2 {
    width: 140px;
    height: 140px;
    background-color: rgba(10, 37, 64, 0.05);
    top: 50%;
    left: 80%;
}

.ball-3 {
    width: 45px;
    height: 45px;
    background-color: var(--clr-dark-blue);
    top: 75%;
    left: 20%;
    opacity: 0.8;
}

.ball-4 {
    width: 90px;
    height: 90px;
    border: 4px solid var(--clr-yellow);
    background-color: transparent;
    top: 20%;
    right: 15%;
}

.ball-5 {
    width: 110px;
    height: 110px;
    border: 2px solid var(--clr-dark-blue);
    background-color: transparent;
    top: 85%;
    right: 30%;
    opacity: 0.3;
}

.ball-6 {
    width: 30px;
    height: 30px;
    background-color: var(--clr-yellow);
    top: 40%;
    left: 5%;
}

/* Auto Image Slider */
.auto-slider-section {
    padding: 2rem 0 4rem;
    overflow: hidden;
    background-color: var(--clr-white);
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* the slider track is wide enough to hold all original + cloned items. We translate exactly half the width */
.slider-track {
    display: flex;
    width: max-content;
    animation: scroll-slider 25s linear infinite;
    gap: 1rem;
}

.slider-track img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

@keyframes scroll-slider {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-300px * 6 - 1rem * 6));
    }
}

/* Catalog Section */
.catalog-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--clr-gray-300);
    background: transparent;
    color: var(--clr-gray-800);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--clr-dark-blue);
}

.filter-btn.active {
    background-color: var(--clr-dark-blue);
    color: var(--clr-white);
    border-color: var(--clr-dark-blue);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Reducido para ver más productos */
    gap: 1.25rem;
}

.product-card {
    background-color: var(--clr-white);
    border-radius: 14px;
    padding: 0.5rem; /* Más compacto */
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Section header with icon */
.section-header-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: var(--clr-yellow);
    color: var(--clr-dark-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    z-index: 2;
}

.product-image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.4rem;
    background-color: #f8f9fa;
    cursor: pointer;
}

.product-image-container img,
.product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Muestra el producto COMPLETO */
    display: block !important;
    transition: transform 0.5s;
    background-color: #f8f9fa; /* Fondo neutro para áreas vacías de la imagen */
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--clr-dark-blue);
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-image-container:hover .quick-view-btn {
    opacity: 1;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--clr-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-title {
    font-size: 0.85rem;
    margin: 0.15rem 0 0.3rem;
    color: var(--clr-dark-blue);
    flex: 1;
    cursor: pointer;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: var(--clr-yellow);
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: 700;
    color: var(--clr-dark-blue);
    font-size: 1.2rem;
}

.add-to-cart-btn {
    background-color: var(--clr-dark-blue);
    color: var(--clr-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background-color: var(--clr-yellow);
    color: var(--clr-dark-blue);
    transform: scale(1.1);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background-color: var(--clr-gray-100);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: var(--clr-white);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--clr-dark-blue);
    color: var(--clr-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

/* CTA Newsletter */
.cta-box {
    background-color: var(--clr-dark-blue);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--clr-white);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background-color: var(--clr-yellow);
    border-radius: 50%;
    opacity: 0.1;
}

.cta-box h2 {
    color: var(--clr-yellow);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: var(--clr-black);
    color: var(--clr-white);
    padding: 4rem 1.5rem 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-mark.light-mark {
    background-color: var(--clr-white);
}

.footer-brand .logo-mark.light-mark .s-letter {
    color: var(--clr-black);
}

.footer-brand .logo-mark.light-mark .slash {
    background-color: var(--clr-black);
}

.footer-brand .brand-name {
    color: var(--clr-white);
}

.footer-brand p {
    color: var(--clr-gray-300);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--clr-yellow);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: var(--clr-gray-300);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--clr-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-gray-600);
    font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 1010;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background-color: var(--clr-dark-blue);
    color: var(--clr-white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--clr-yellow);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    color: var(--clr-yellow);
    font-size: 1.2rem;
}

/* Quick View Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1020;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}

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

.modal-content {
    background-color: var(--clr-white);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--clr-gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--clr-gray-800);
    z-index: 2;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-modal:hover {
    background: var(--clr-danger);
    color: var(--clr-white);
}

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

.modal-img-container {
    border-radius: 12px;
    overflow: hidden;
    background: var(--clr-gray-100);
}

.modal-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-details h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--clr-yellow);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.modal-description {
    color: var(--clr-gray-800);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Media Queries */
@media (min-width: 768px) {
    .catalog-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .newsletter-form {
        flex-direction: row;
        max-width: 500px;
    }

    .newsletter-form .btn {
        flex-shrink: 0;
    }

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

@media (min-width: 1024px) {
    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: calc(var(--nav-height) + 4rem);
    }

    .hero-content {
        flex: none;
        max-width: 900px;
        padding-left: 0;
    }

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

    .section-header,
    .products-grid,
    .features-grid,
    .cta-box {
        max-width: var(--max-width);
        margin-left: auto;
        margin-right: auto;
    }

    .footer-top,
    .footer-bottom {
        max-width: var(--max-width);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Custom Animations and Overrides */
@keyframes pulse-bounce {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
    }

    50% {
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 0 0 12px rgba(255, 59, 59, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
    }
}

@keyframes point-up {

    0%,
    100% {
        transform: translateY(0) rotate(-15deg);
    }

    50% {
        transform: translateY(-20px) rotate(-15deg);
    }
}

.pulse-btn {
    animation: pulse-bounce 2s infinite ease-in-out;
}

.arrow-anim {
    animation: point-up 1.5s infinite ease-in-out;
}

/* Make featured products smaller and perfectly centered */
#featured-products-grid .product-card {
    max-width: 250px;
    /* Smaller size */
    flex: 1 1 220px;
    margin: 0;
}

/* Raffle Result Animations */
@keyframes win-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

@keyframes lose-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

.win-anim {
    animation: win-bounce 1s ease;
}

.lose-anim {
    animation: lose-shake 0.6s ease;
}

/* Top Bar */
.top-bar {
    background-color: var(--clr-gold);
    color: var(--clr-navy-deep);
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1002;
    position: fixed; /* CHANGED TO FIXED SO IT STAYS WITH SCROLL */
    top: 0;
    left: 0;
    width: 100%;
}
.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 24px;
}
#top-bar-text {
    transition: opacity 0.5s ease;
}

/* New Header Layout */
.header {
    position: fixed; /* CHANGED TO FIXED SO IT STAYS WITH SCROLL */
    top: 40px; /* Below top bar */
    left: 0;
    width: 100%;
    background-color: var(--clr-navy-deep);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: top 0.3s ease, background 0.3s ease, padding 0.3s ease;
    display: flex;
    flex-direction: column;
}

.header.sticky-header {
    position: fixed;
    top: 0;
    background-color: rgba(0, 19, 46, 0.98);
    backdrop-filter: blur(15px);
}

.header-container-top {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-container-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 0.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-container input {
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    width: 100%;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-off-white);
    opacity: 0.7;
}

.all-categories-btn {
    background: var(--clr-navy-light);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.all-categories-btn:hover {
    background: var(--clr-gold);
    color: var(--clr-navy-deep);
}

/* Mega Menu */
.mega-menu {
    position: fixed;
    top: 140px; /* Header height */
    left: 0;
    width: 100%;
    background: var(--clr-navy-deep);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.header.sticky-header ~ .mega-menu {
    top: 100px;
}

.mega-menu.active {
    max-height: 400px;
}

.mega-menu-content {
    padding: 2rem 1.5rem;
}

.mega-categories {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0;
}

.mega-categories li a {
    color: var(--clr-off-white);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 12px;
    transition: var(--transition);
    background: rgba(255,255,255,0.02);
}

.mega-categories li a:hover {
    background: var(--clr-navy-light);
    color: var(--clr-gold);
    transform: translateX(5px);
}

.mega-categories i {
    color: var(--clr-gold);
    font-size: 1.2rem;
}

/* Minimalist Catalog */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}
.category-filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
}
.filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    border-radius: 50px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--clr-off-white);
    white-space: nowrap;
}
.filter-btn.active {
    background: var(--clr-gold);
    color: var(--clr-navy-deep);
    border-color: var(--clr-gold);
}

.product-card {
    border-radius: 16px;
    padding: 1rem;
    background-color: #0b1a30 !important; /* Azul marino premium diferenciado del fondo */
    border: 1px solid rgba(255, 255, 255, 0.12) !important; /* Borde sutil y elegante de alta definición */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important; /* Sombra en 3D para darle relieve */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.product-card:hover {
    transform: translateY(-5px) !important;
    background-color: #0f2545 !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.15) !important;
}

/* Sugerencias Dinámicas Autocomplete de Búsqueda */
.search-container {
    position: relative !important;
}

.search-suggestions {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(0, 19, 46, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
    z-index: 1100 !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    margin-top: 6px !important;
    display: none;
    box-sizing: border-box !important;
}

.search-suggestions.active {
    display: block !important;
}

.suggestion-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    padding: 0.75rem 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.suggestion-item:last-child {
    border-bottom: none !important;
}

.suggestion-item:hover {
    background: rgba(255, 215, 0, 0.1) !important;
}

.suggestion-img {
    width: 42px !important;
    height: 42px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0 !important;
}

.suggestion-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex-grow: 1 !important;
}

.suggestion-title {
    color: white !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.suggestion-price {
    color: var(--clr-gold) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    margin-top: 2px !important;
}

.no-suggestions {
    padding: 1.25rem !important;
    text-align: center !important;
    color: var(--clr-off-white) !important;
    opacity: 0.6 !important;
    font-size: 0.85rem !important;
}
.product-image-container {
    height: 180px;
}
.product-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.product-price {
    font-size: 1.1rem;
}

/* Home Banners */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-slide-content {
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    z-index: 3;
}

/* Body adjustments */
body {
    padding-top: 140px; /* Make space for double header */
}

/* Dynamic Scroll Animation Background */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--clr-navy-deep);
}
.dynamic-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    transition: transform 0.1s linear;
}
.shape-1 { width: 40vw; height: 40vw; background: var(--clr-dark-blue); top: -10%; left: -10%; }
.shape-2 { width: 30vw; height: 30vw; background: rgba(255, 205, 0, 0.15); bottom: 10%; right: -5%; }
.shape-3 { width: 25vw; height: 25vw; background: #002a66; top: 40%; left: 30%; }

@media (max-width: 768px) {
    .header-container-bottom {
        display: none; /* Hide on mobile, use hamburger */
    }
    .header-container-top {
        padding: 0.5rem 1rem;
    }
    body {
        padding-top: 90px;
    }
    .hero-slider {
        height: 250px;
    }
}


/* Hero Intelec Grid Layout */
.hero-intelec-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    height: 400px;
}
.hero-slider {
    height: 100% !important;
}
.hero-banners-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}
.hero-banner-item {
    flex: 1;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a; /* Fondo de seguridad */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.hero-banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,19,46,0.9), transparent);
    z-index: 1;
}
.hero-banner-content {
    position: relative;
    z-index: 2;
    color: white;
}
.hero-banner-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}
.btn-ver-mas {
    background: var(--clr-gold);
    color: var(--clr-navy-deep);
    padding: 0.3rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-block;
}
@media (max-width: 900px) {
    .hero-intelec-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-slider {
        height: 300px !important;
    }
    .hero-banner-item {
        min-height: 180px;
    }
}

/* Background Animated Circles */
.dynamic-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--clr-navy-deep);
}
.dynamic-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.shape-1 { width: 50vw; height: 50vw; background: rgba(0, 153, 255, 0.1); top: -20%; left: -10%; }
.shape-2 { width: 40vw; height: 40vw; background: rgba(255, 205, 0, 0.15); bottom: -10%; right: -10%; }
.shape-3 { width: 30vw; height: 30vw; background: rgba(0, 42, 102, 0.5); top: 30%; left: 40%; }


/* Compact Product Cards */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 0.6rem !important;
}
.product-card {
    padding: 0.4rem !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
.product-title {
    font-size: 0.8rem !important;
    line-height: 1.25;
    height: 2.5em !important; /* Altura fija para 2 líneas */
    overflow: hidden !important;
}
.product-price {
    font-size: 0.95rem !important;
    margin-top: 0.25rem !important;
}

/* ==========================================================================
   PREMIUM MOBILE-FIRST RESPONSIVE DESIGN OVERRIDES
   Optimizado para celulares (portrait & landscape), espacioso, táctil y fluido.
   ========================================================================== */

/* Ajustes Globales para que los dibujos/tarjetas resalten del fondo oscuro */
.product-card {
    background-color: var(--clr-white) !important; /* Fondo blanco para que el texto oscuro sea legible */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.product-card:hover {
    background-color: #f8f9fa !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.2) !important;
    transform: translateY(-3px) !important;
}

/* Hacer el botón de hamburguesa blanco para que resalte */
.hamburger,
.hamburger::before,
.hamburger::after {
    background-color: var(--clr-white) !important;
}

/* Bloque responsivo móvil */
@media (max-width: 768px) {
    
    /* Evitar desborde horizontal (borde sobrante a la derecha) */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    main, section, .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* 1. Cabecera Fija Nativa en Móvil (100% Sticky y Fluido) */
    .top-bar {
        position: fixed !important; /* Fijar barra de anuncios arriba de todo */
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 32px !important;
        padding: 0.35rem 0.5rem !important;
        font-size: 0.65rem !important; /* Letras más pequeñas */
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1010 !important; /* Capa más alta */
    }

    .header {
        position: fixed !important; /* Cabecera fija exactamente abajo de la barra de anuncios */
        top: 32px !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background-color: rgba(0, 19, 46, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        transition: top 0.3s ease-in-out !important; /* Transición suave de posición */
    }

    .header.sticky-header {
        top: 0 !important; /* Subir al borde superior exacto cuando se activa sticky */
    }

    body {
        padding-top: 175px !important; /* Ajuste compensatorio perfecto para evitar que el banner se oculte bajo el header */
    }

    .header-container-bottom {
        display: flex !important; /* Mostrar en móvil */
        align-items: center !important;
        background-color: var(--clr-navy-deep) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-bottom: 2px solid rgba(255, 215, 0, 0.2) !important;
        padding: 0.45rem 0.5rem !important;
        gap: 0.4rem !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* Redimensionar "Todas las Categorías" a un botón circular compacto */
    .all-categories-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 215, 0, 0.1) !important;
        color: var(--clr-gold) !important;
        border: 1px solid rgba(255, 215, 0, 0.4) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        position: relative !important;
        text-indent: -9999px !important; /* Esconder el texto "Todas las Categorías" */
    }

    .all-categories-btn i {
        font-size: 1rem !important;
        margin: 0 !important;
        text-indent: 0 !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: inline-block !important;
    }

    /* Contenedor de links en scroll horizontal libre */
    .desktop-categories {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; /* Firefox hide */
        gap: 0.45rem !important;
        width: 100% !important;
        padding: 0 !important;
        margin-left: 0.25rem !important;
    }

    .desktop-categories::-webkit-scrollbar {
        display: none !important; /* Chrome/Safari hide scrollbar */
    }

    /* Estilo de los links de navegación más pequeños para que quepan más opciones */
    .cat-link {
        padding: 0.4rem 0.85rem !important;
        font-size: 0.82rem !important; /* Texto ligeramente más pequeño */
        font-weight: 700 !important;
        border-radius: 50px !important;
        background-color: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        color: var(--clr-off-white) !important;
        opacity: 0.9 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        flex-shrink: 0 !important;
        height: 34px !important;
    }

    /* Ocultar la línea inferior clásica de PC en móvil */
    .cat-link::after {
        display: none !important;
    }

    /* Estado Activo y de Selección en Móvil (Pestaña Resaltada) */
    .cat-link.active,
    .cat-link:active,
    .cat-link:hover {
        background: var(--clr-gold) !important;
        color: var(--clr-navy-deep) !important;
        border-color: var(--clr-gold) !important;
        opacity: 1 !important;
        box-shadow: 0 4px 10px rgba(255, 205, 0, 0.2) !important;
    }

    /* 2. Ajuste General de Espacios y Altura de Header en Móvil */
    .header-container-top {
        display: flex !important;
        flex-wrap: wrap !important; /* Habilitar flex-wrap para permitir segunda fila móvil */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 0.75rem !important;
        gap: 0.5rem 1rem !important; /* Espaciado entre filas y columnas */
        width: 100% !important;
    }

    /* Asegurar que el logo y el nombre del negocio nunca se encojan o rompan */
    .header-container-top > a {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        text-decoration: none !important;
        flex-shrink: 0 !important;
        order: 1 !important; /* Forzar orden 1 para el logo en flexbox */
    }

    /* Optimización de Logo en cabecera móvil */
    .header .brand-logo-img {
        height: 38px !important;
        width: 38px !important;
        flex-shrink: 0 !important;
    }

    .header .brand-name {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .header span[style*="font-size: 0.7rem"] {
        font-size: 0.6rem !important;
    }

    /* Mostrar barra de búsqueda de manera fluida y elegante debajo del logo en móvil */
    .search-container {
        display: block !important;
        flex: 0 0 100% !important; /* Forzar fila de ancho completo en flexbox móvil */
        max-width: 100% !important;
        width: 100% !important;
        padding: 0.25rem 0.75rem 0.5rem 0.75rem !important;
        background-color: transparent !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        order: 3 !important; /* Asegurar que se posicione en la segunda fila debajo del logo */
    }

    .search-container form {
        width: 100% !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
    }

    .search-container input {
        height: 38px !important;
        padding: 0.5rem 1rem 0.5rem 2.5rem !important;
        font-size: 0.85rem !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 50px !important;
        color: white !important;
        width: 100% !important;
        outline: none !important;
        transition: all 0.3s ease !important;
    }

    .search-container input:focus {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: var(--clr-gold) !important;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2) !important;
    }

    .search-container i {
        position: absolute !important;
        left: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 0.9rem !important;
        color: var(--clr-off-white) !important;
        opacity: 0.8 !important;
        pointer-events: none !important;
    }

    /* Redimensionar los botones de Ubicación y Regalía a círculos compactos en móvil */
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        flex-shrink: 0 !important;
        order: 2 !important; /* Asegurar que se posicione a la derecha del logo en la primera fila */
    }

    .header-actions .btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        font-size: 0 !important; /* Esconde el texto de los botones */
        overflow: hidden !important;
        position: relative !important;
        flex-shrink: 0 !important;
        text-indent: -9999px !important; /* Ocultar el texto */
    }

    .header-actions .btn i {
        font-size: 1.05rem !important;
        margin: 0 !important;
        text-indent: 0 !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: inline-block !important;
    }

    /* Especial para el botón de Regalía (pulse-btn) que tiene emoji directo */
    .header-actions .pulse-btn {
        background-color: #ff3b3b !important;
    }
    
    .header-actions .pulse-btn::before {
        content: '\f06b' !important; /* Icono de regalo de FontAwesome */
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        font-size: 1.05rem !important;
        color: white !important;
        display: inline-block !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-indent: 0 !important;
    }

    /* 3. Hero Banner / Slider Increíble en Móvil */
    .hero-intelec-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        height: auto !important;
        margin-top: 0.5rem !important;
    }

    .hero-slider {
        height: 250px !important; /* Altura más compacta y balanceada */
        border-radius: 12px !important;
    }

    /* Fondo oscuro y degradado para garantizar legibilidad del texto en móvil */
    .hero-slide {
        background-position: center center !important;
    }

    .hero-slide::before {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(to top, rgba(0, 19, 46, 0.95) 0%, rgba(0, 19, 46, 0.4) 100%) !important;
        z-index: 1;
    }

    .hero-slide-content {
        padding: 1.25rem !important;
        background: none !important;
        backdrop-filter: none !important;
        width: 100% !important;
        max-width: 100% !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        z-index: 2 !important;
    }

    .hero-slide-content h2 {
        font-size: 1.55rem !important; /* Letras grandes y legibles en móvil */
        font-weight: 800 !important;
        color: white !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.25 !important;
    }

    .hero-slide-content p {
        font-size: 0.88rem !important;
        color: var(--clr-off-white) !important;
        text-shadow: 0 1px 5px rgba(0,0,0,0.6) !important;
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
    }

    /* Banners de la derecha en formato swipe horizontal */
    .hero-banners-right {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 0.75rem !important;
        height: auto !important;
        padding-bottom: 0.5rem !important;
        overflow-y: hidden !important;
    }

    .hero-banners-right::-webkit-scrollbar {
        display: none !important;
    }

    .hero-banner-item {
        flex: 0 0 200px !important; /* Tamaño más compacto y balanceado */
        height: 110px !important;
        border-radius: 12px !important;
        padding: 1rem !important;
    }

    .hero-banner-content h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.25rem !important;
    }

    .btn-ver-mas {
        padding: 0.2rem 0.6rem !important;
        font-size: 0.7rem !important;
        border-radius: 4px !important;
    }

    /* 4. Espaciado y Secciones Generosas (Sección de Respiración) */
    .section {
        padding: 2.25rem 1rem !important; /* Espacio generoso y balanceado */
    }

    /* Títulos de sección más limpios y espaciados */
    .section h2 {
        font-size: 1.45rem !important;
        letter-spacing: 0.5px !important;
    }

    /* 5. Tarjetas de Productos en Slider (Lo Más Vendido, Ofertas, Nuevos, Útiles) - MÁS PEQUEÑOS Y FLUIDOS */
    #best-sellers-grid,
    #daily-deals-grid,
    #new-arrivals-grid,
    #useful-products-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 0.7rem !important;
        padding-bottom: 1rem !important;
        padding-left: 0.1rem !important;
        overflow-y: hidden !important;
    }

    #best-sellers-grid::-webkit-scrollbar,
    #daily-deals-grid::-webkit-scrollbar,
    #new-arrivals-grid::-webkit-scrollbar,
    #useful-products-grid::-webkit-scrollbar {
        display: none !important;
    }

    /* Tamaño ideal de tarjetas de producto para deslizar */
    #best-sellers-grid .product-card,
    #daily-deals-grid .product-card,
    #new-arrivals-grid .product-card,
    #useful-products-grid .product-card {
        width: 105px !important; /* Slightly smaller for better fit */
        flex-shrink: 0 !important;
        border-radius: 12px !important;
        padding: 0.4rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        gap: 0.2rem !important;
    }

    /* Contenedor de imágenes de tarjetas deslizables - AHORA CUADRADO PERFECTO */
    #best-sellers-grid .product-image-container,
    #daily-deals-grid .product-image-container,
    #new-arrivals-grid .product-image-container,
    #useful-products-grid .product-image-container {
        aspect-ratio: 1 / 1 !important; /* Fuerza a que sea un cuadrado */
        height: auto !important; /* Deja que el ancho dicte la altura */
        width: 100% !important;
        margin-bottom: 0.35rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f8f9fa !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    /* Asegurar que la imagen se vea COMPLETA y no cortada */
    #best-sellers-grid .product-image-container img,
    #daily-deals-grid .product-image-container img,
    #new-arrivals-grid .product-image-container img,
    #useful-products-grid .product-image-container img,
    .product-image {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important; /* NUNCA CORTAR LA IMAGEN */
        display: block !important;
        padding: 2px !important; /* Pequeño margen interno para que no toque los bordes */
    }

    /* Reducir espacio entre secciones en escritorio si es necesario */
    .section {
        padding: 3rem 1rem !important; /* Menos espacio vertical en escritorio */
    }

    .product-card .product-info h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.2rem !important;
    }

    .product-card .product-info .product-price {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        color: var(--clr-gold) !important;
        margin-bottom: 0.2rem !important;
    }

    #best-sellers-grid .product-title,
    #daily-deals-grid .product-title,
    #new-arrivals-grid .product-title {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        margin-bottom: 0.15rem !important;
        height: 2.4em !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    #best-sellers-grid .product-price,
    #daily-deals-grid .product-price,
    #new-arrivals-grid .product-price {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        color: var(--clr-gold) !important;
        margin-bottom: 0.2rem !important;
    }

    /* Ajustar badges de disponibilidad para que no se salgan */
    .product-card .product-info > div[style*="font-size:0.55rem"] {
        font-size: 0.52rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 6. Botones Táctiles Grandes de mínimo 48px en Móvil */
    .btn,
    .product-card button,
    .product-card .btn-primary,
    #best-sellers-grid button,
    #daily-deals-grid button {
        min-height: 44px !important; /* Tamaño táctil balanceado para tarjetas pequeñas */
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        border-radius: 50px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 7. Productos Útiles (Grilla de 2 Columnas Estética y Consistente) */
    #useful-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Cuadrícula de 2 columnas súper limpia */
        gap: 0.75rem !important;
        width: 100% !important;
    }

    #useful-products-grid .product-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 0.5rem !important;
        border-radius: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    #useful-products-grid .product-image-container {
        height: auto !important;
        margin-bottom: 0.3rem !important;
        border-radius: 8px !important;
    }

    #useful-products-grid .product-title {
        font-size: 0.82rem !important;
        line-height: 1.3 !important;
        height: 2.6em !important; /* Limitar altura para mantener uniformidad */
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        margin-bottom: 0.2rem !important;
    }

    #useful-products-grid .product-price {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }

    #useful-products-grid button {
        min-height: 40px !important;
        font-size: 0.8rem !important;
    }

    /* 8. Sección de Sobre Nosotros en Móvil */
    .about-section {
        padding: 3rem 1.25rem !important;
        text-align: center !important;
    }

    .about-section .container > div {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .about-section h2 {
        font-size: 1.75rem !important;
    }

    .about-section p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* 9. Botón Flotante de WhatsApp y Chatbot en Móvil */
    #chatbot-container {
        bottom: 15px !important;
        right: 15px !important;
    }

    #chatbot-toggle-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.5rem !important;
    }

    #chatbot-panel {
        width: 280px !important;
        bottom: 70px !important;
    }
}

/* ==========================================================================
   PRODUCT DETAIL PAGE STYLES
   ========================================================================== */

.product-detail-section {
    padding-bottom: 4rem;
}

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

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: 45% 55%;
        gap: 4rem;
    }
}

/* Gallery Styles */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-wrapper {
    background-color: var(--clr-dark-blue);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.zoom-cursor {
    cursor: zoom-in;
}

.main-image.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

.thumbnails-container {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-gold) rgba(255, 255, 255, 0.1);
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--clr-gold);
    border-radius: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: var(--clr-gold);
    transform: translateY(-2px);
}

/* Product Info Styles */
.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.product-title-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-off-white);
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 768px) {
    .product-title-large {
        font-size: 1.6rem;
    }
}

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.rating-number {
    font-weight: 700;
    color: var(--clr-white);
}

.stars {
    color: var(--clr-gold);
    font-size: 1rem;
}

.rating-count {
    color: var(--clr-gray-400);
    font-size: 0.9rem;
}

.product-badge-ruta19 {
    display: inline-block;
    align-self: flex-start;
    background-color: rgba(37, 211, 102, 0.15); /* Subtle green */
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Price Block */
.product-price-container {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-old-large {
    color: var(--clr-gray-500);
    text-decoration: line-through;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.price-current-large {
    color: var(--clr-off-white);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stock-alert {
    color: #ff5252; /* Vivid red/orange */
    font-size: 0.9rem;
    font-weight: 600;
}

/* Shipping Info */
.product-shipping-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background-color: var(--clr-navy-light);
    border-radius: 16px;
    padding: 1.5rem;
}

.shipping-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--clr-gray-300);
    font-size: 1rem;
    font-weight: 500;
}

.shipping-line i {
    color: var(--clr-gold);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Action Buttons */
.product-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem; /* minimum 48px height */
    min-height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

.buy-now-btn {
    background-color: var(--clr-gold);
    color: var(--clr-navy-deep);
    box-shadow: 0 4px 15px rgba(255, 205, 0, 0.3);
}

.buy-now-btn:hover {
    background-color: var(--clr-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 205, 0, 0.4);
}

.add-cart-btn {
    background-color: transparent;
    color: var(--clr-gold);
    border: 2px solid var(--clr-gold);
}

.add-cart-btn:hover {
    background-color: rgba(255, 205, 0, 0.1);
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-2px);
}

.secure-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--clr-gray-500);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   FEATURED GRID CARD (INLINE CATALOG PRODUCT DETAIL)
   ========================================================================== */

.featured-grid-card {
    grid-column: 1 / -1; /* Spans full width of the grid */
    background-color: #ffffff; /* High contrast white like other cards */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .featured-grid-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 2rem;
    }
}

/* Featured Gallery */
.fgc-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

@media (min-width: 768px) {
    .fgc-gallery {
        max-width: 45%;
    }
}

.fgc-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f5;
    border: 1px solid #eaeaea;
}

.fgc-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fgc-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.fgc-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.fgc-thumb:hover, .fgc-thumb.active {
    opacity: 1;
    border-color: var(--clr-gold);
}

/* Featured Info */
.fgc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fgc-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-navy-deep); /* Dark text for contrast on white card */
    margin: 0;
    line-height: 1.2;
}

.fgc-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.fgc-rating-num {
    font-weight: 700;
    color: var(--clr-navy-deep);
}

.fgc-stars {
    color: #fadb14; /* Standard star gold */
}

.fgc-reviews {
    color: var(--clr-gray-500);
}

.fgc-badge {
    align-self: flex-start;
    background-color: rgba(37, 211, 102, 0.1);
    color: #128c7e;
    border: 1px solid rgba(37, 211, 102, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.fgc-pricing {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.fgc-price-old {
    color: var(--clr-gray-400);
    text-decoration: line-through;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.fgc-price-current {
    color: var(--clr-navy-deep);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.fgc-shipping {
    background-color: transparent;
    padding: 0;
    border: none;
    color: var(--clr-gray-600);
    font-size: 0.9rem;
}

.fgc-shipping .shipping-line {
    color: var(--clr-gray-600);
}

.fgc-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

@media (min-width: 500px) {
    .fgc-actions {
        flex-direction: row;
    }
}

.fgc-btn {
    flex: 1;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
    text-align: center;
}

.fgc-btn.btn-primary {
    background-color: var(--clr-gold);
    color: var(--clr-navy-deep);
}

.fgc-btn.btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.fgc-btn.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.fgc-btn.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE SPECIFICS (producto-camara.html)
   ========================================================================== */

/* Specs List */
.product-specs-list {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.product-specs-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.product-specs-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--clr-gray-300);
    font-size: 0.95rem;
}

.product-specs-list li i {
    color: var(--clr-gold);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Quantity & Discounts */
.quantity-discount-section {
    background-color: #1a1a1a;
    border: 1px solid var(--clr-gold);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.qty-control-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qty-label {
    color: var(--clr-white);
    font-weight: 600;
}

.qty-selector {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background-color: transparent;
    border: none;
    color: var(--clr-gold);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.qty-btn:hover {
    background-color: rgba(255, 205, 0, 0.1);
}

.qty-input {
    width: 50px;
    height: 40px;
    background-color: transparent;
    border: none;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.discount-badge {
    background-color: rgba(255, 59, 59, 0.1);
    color: #ff3b3b;
    border: 1px solid rgba(255, 59, 59, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.discount-info-text {
    font-size: 0.8rem;
    color: var(--clr-gray-400);
    margin-bottom: 1rem;
}

.discount-info-text strong {
    color: var(--clr-gold);
}

.total-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 1.2rem;
    color: var(--clr-white);
}

.total-price-display #total-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-gold);
}

/* Payment Info Box */
.payment-info-box {
    background-color: rgba(37, 211, 102, 0.05);
    border: 1px dashed rgba(37, 211, 102, 0.3);
    border-radius: 8px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.payment-info-box i {
    color: #25D366;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.payment-info-box p {
    margin: 0;
    color: var(--clr-gray-300);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Ruta 19 Accordion */
.ruta19-accordion {
    background-color: #ffffff;
    border-radius: 8px;
    margin-top: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ruta19-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    cursor: pointer;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.ruta19-title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ruta19-content {
    padding: 1.2rem;
    color: var(--clr-gray-600);
    font-size: 0.95rem;
}

.ruta19-detail {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.ruta19-detail i {
    color: var(--clr-gold);
    width: 20px;
}

.ruta19-alert {
    margin-top: 1rem;
    background-color: rgba(255, 205, 0, 0.1);
    color: #b38f00;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Guarantee Button */
.guarantee-btn {
    background-color: transparent;
    color: var(--clr-white);
    border: 1px solid var(--clr-gray-500);
}

.guarantee-btn:hover {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
}

/* === Scroll Reveal Animation === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.product-card.reveal.visible {
    animation: fadeInUp 0.5s ease forwards;
}

/* Stagger delays for cards */
.product-card.reveal.visible:nth-child(1) { animation-delay: 0.05s; }
.product-card.reveal.visible:nth-child(2) { animation-delay: 0.1s; }
.product-card.reveal.visible:nth-child(3) { animation-delay: 0.15s; }
.product-card.reveal.visible:nth-child(4) { animation-delay: 0.2s; }
.product-card.reveal.visible:nth-child(5) { animation-delay: 0.25s; }
.product-card.reveal.visible:nth-child(6) { animation-delay: 0.3s; }
.product-card.reveal.visible:nth-child(7) { animation-delay: 0.35s; }
.product-card.reveal.visible:nth-child(8) { animation-delay: 0.4s; }

/* Desktop: compact product cards in home grids */
@media (min-width: 769px) {
    #new-arrivals-grid,
    #best-sellers-grid,
    #daily-deals-grid,
    #useful-products-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.8rem;
        padding-bottom: 0.5rem;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    #new-arrivals-grid::-webkit-scrollbar,
    #best-sellers-grid::-webkit-scrollbar,
    #daily-deals-grid::-webkit-scrollbar,
    #useful-products-grid::-webkit-scrollbar {
        height: 4px;
    }

    #new-arrivals-grid::-webkit-scrollbar-thumb,
    #best-sellers-grid::-webkit-scrollbar-thumb,
    #daily-deals-grid::-webkit-scrollbar-thumb,
    #useful-products-grid::-webkit-scrollbar-thumb {
        background: rgba(255,215,0,0.3);
        border-radius: 10px;
    }

    #new-arrivals-grid .product-card,
    #best-sellers-grid .product-card,
    #daily-deals-grid .product-card,
    #useful-products-grid .product-card {
        min-width: 160px;
        max-width: 160px;
        flex-shrink: 0;
        padding: 0.5rem;
        border-radius: 12px;
    }

    #new-arrivals-grid .product-image-container,
    #best-sellers-grid .product-image-container,
    #daily-deals-grid .product-image-container,
    #useful-products-grid .product-image-container {
        height: auto;
    }

    #new-arrivals-grid .product-title,
    #best-sellers-grid .product-title,
    #daily-deals-grid .product-title,
    #useful-products-grid .product-title {
        font-size: 0.75rem;
        line-height: 1.25;
    }

    #new-arrivals-grid .product-price,
    #best-sellers-grid .product-price,
    #daily-deals-grid .product-price,
    #useful-products-grid .product-price {
        font-size: 0.9rem;
    }
}

/* --- Estilos para Sección Bajo Pedido --- */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.filter-btn-pedido {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid #8b5cf6;
    background: transparent;
    color: #8b5cf6;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    animation: glow 2s infinite ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.5); }
}

.filter-btn-pedido:hover .special-msg {
    background: #7c3aed !important;
}

#bajo-pedido-banner div {
    transition: transform 0.2s ease;
}
#bajo-pedido-banner div:hover {
    transform: translateY(-2px);
}

/* Nube de pensamiento (Tooltip) para Bajo Pedido */
.thought-bubble {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #8b5cf6;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thought-bubble.visible {
    opacity: 1;
    visibility: visible;
    top: -45px;
}

.thought-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #8b5cf6 transparent;
    display: block;
    width: 0;
}

.thought-bubble .close-bubble {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.thought-bubble .close-bubble:hover {
    opacity: 1;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .thought-bubble {
        font-size: 0.65rem;
        padding: 4px 8px;
        top: -30px;
    }
    .thought-bubble.visible {
        top: -35px;
    }
}

/* --- Rediseño Sección Bajo Pedido (Compacto) --- */
#bajo-pedido-container {
    background-color: #0a1428;
    color: #e2e8f0;
    font-family: 'Montserrat', sans-serif;
    padding: 0.8rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.pedido-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.8) 0%, rgba(21, 42, 73, 0.8) 100%);
    border-radius: 12px;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.pedido-header h2 {
    color: #facc15;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.pedido-header p {
    color: #94a3b8;
    font-size: 0.85rem;
}

.pedido-section {
    margin-bottom: 2rem;
}

.pedido-section h3 {
    color: #facc15;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.pedido-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.pedido-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pedido-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.05);
    border-color: rgba(250, 204, 21, 0.3);
}

.step-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pedido-step h4 {
    color: #facc15;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.pedido-step p {
    color: #cbd5e1;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Menú de subcategorías */
.pedido-menu {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.3rem;
}

.menu-item {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0 !important;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.menu-item i {
    font-size: 0.9rem;
    color: #facc15;
}

.menu-item:hover {
    background: #facc15;
    color: #0a1428 !important;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
    transform: translateY(-1px);
}

.menu-item:hover i {
    color: #0a1428;
}

/* Bloques de productos (Dos por fila en desktop) */
.pedido-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pedido-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pedido-block h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.block-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.placeholder-img {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.7rem;
    transition: background 0.3s ease;
}

.pedido-block:hover .placeholder-img {
    background: rgba(255, 255, 255, 0.05);
}

.btn-ver-mas-pedido {
    background: #facc15;
    color: #0a1428;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-self: center;
}

.btn-ver-mas-pedido:hover {
    background: #eab308;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(250, 204, 21, 0.2);
}

/* Responsivo */
@media (max-width: 768px) {
    .pedido-blocks {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .pedido-header h2 {
        font-size: 1.3rem;
    }
    .pedido-menu {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    .menu-item {
        flex-shrink: 0;
    }
    
    /* Hacer los pasos más pequeños y horizontales en móvil */
    .pedido-steps {
        gap: 0.6rem;
    }
    .pedido-step {
        padding: 0.8rem;
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
        text-align: left;
    }
    .step-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-top: 0.2rem;
    }
    .pedido-step h4 {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }
    .pedido-step p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    /* Compactar botón de carrito en móvil */
    .add-to-cart-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .block-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .placeholder-img {
        height: 80px;
    }
}
