/* ==============================================================================
   NEOTEC ONLY - ESTILOS E-COMMERCE OFICIAL
   Tema: BLANCO CON VERDE NEÓN & ESTILO GAMER
   - Fondo Base: Blanco / Gris Técnico Claro (#FFFFFF / #F8FAFC) con sutil grid cyber
   - Acento Principal: Verde Neón (#00FF66 / #00CC52 / #00993D)
   - Contraste Cyber: Carbono Oscuro (#0B0F14 / #111827 / #1E293B)
   - Tarjetas y Paneles: Blanco Puro (#FFFFFF) con bordes precisos y sombras neón
   - Tipografía: 'Orbitron' (títulos gamer), 'Rajdhani' (tech/specs), 'Inter' (texto)
   - 100% Responsivo en Smartphones, Tablets y PC (Sin desbordamientos horizontales)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Paleta Verde Neón Gamer */
    --primary-neon: #00FF66;
    --primary-neon-hover: #05DF57;
    --primary-neon-dark: #00993D;
    --primary-neon-light: rgba(0, 255, 102, 0.12);
    --primary-neon-border: rgba(0, 255, 102, 0.45);
    --primary-neon-glow: 0 4px 18px rgba(0, 255, 102, 0.35);

    /* Fondos Claros de Alta Definición */
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F1F5F9;
    --border-color: #E2E8F0;
    --border-card: #E2E8F0;

    /* Elementos Cyber Carbono de Alto Contraste */
    --dark-carbon: #0B0F14;
    --dark-surface: #111827;
    --dark-border: #1E293B;

    /* Tipografía y Lectura */
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --pure-white: #FFFFFF;

    /* Estados y Servicios */
    --whatsapp-green: #25D366;
    --whatsapp-hover: #20BA5A;
    --danger-red: #EF4444;
    --warning-amber: #F59E0B;
    --info-blue: #3B82F6;

    /* Bordes y Sombras */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-neon: 0 0 16px rgba(0, 255, 102, 0.28);

    /* Tipografías */
    --font-gamer: 'Orbitron', -apple-system, sans-serif;
    --font-tech: 'Rajdhani', -apple-system, sans-serif;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --container-max: 1240px;
}

/* ==============================================================================
   RESET GLOBAL & RESTRICCIÓN DE VIEWPORT (CERO DESBORDAMIENTOS)
   ============================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip; /* clip previene scroll horizontal SIN romper position: sticky */
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 255, 102, 0.07) 0%, transparent 60%),
        linear-gradient(rgba(0, 255, 102, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 102, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button, input, select, textarea {
    font-family: inherit;
}

/* ==============================================================================
   1. TOP ANNOUNCEMENT BAR (BARRA NEGRA CYBER CON BORDE VERDE NEÓN)
   ============================================================================== */
.top-bar {
    background-color: var(--dark-carbon);
    color: var(--pure-white);
    font-size: 0.8rem;
    padding: 7px 1rem;
    border-bottom: 2px solid var(--primary-neon);
    width: 100%;
}

.top-bar .container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-tech);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.top-bar-notice .tag-yellow {
    background: var(--primary-neon);
    color: #04080F;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 900;
    font-family: var(--font-gamer);
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
}

.top-bar-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #CBD5E1;
    transition: color 0.2s ease;
}

.top-bar-links a:hover {
    color: var(--primary-neon);
}

.top-bar-links a strong {
    color: var(--primary-neon);
}

/* ==============================================================================
   2. CABECERA PRINCIPAL (BLANCA LIMPIA CON SOMBRA SUAVE & MODO COMPACTO)
   ============================================================================== */
.main-header {
    background: #FFFFFF;
    border-bottom: 1.5px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, padding 0.2s ease;
    width: 100%;
}

.main-header.header-compact {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 14px rgba(0, 255, 102, 0.2);
}

.main-header.header-compact .header-container {
    padding: 6px 1.5rem;
    gap: 1.25rem;
    align-items: center;
}

.main-header.header-compact .logo-image-placeholder {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 2px;
}

.main-header.header-compact .brand-text-block,
.main-header.header-compact .brand-title,
.main-header.header-compact .brand-subtitle {
    display: none !important;
}

.main-header.header-compact #header-btn-advisor-1,
.main-header.header-compact .header-actions a[href="pedidos.html"] {
    display: none !important;
}

.main-header.header-compact .header-search {
    flex: 1;
    max-width: 680px;
    margin: 0 auto;
}

.main-header.header-compact .search-input {
    padding: 8px 36px 8px 12px;
    font-size: 0.85rem;
    height: 38px;
}

.main-header.header-compact .cart-btn {
    padding: 7px 14px;
    height: 38px;
}

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

/* BRAND LOGO AREA */
.brand-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    flex-shrink: 0;
}

.logo-image-placeholder {
    width: 72px;
    height: 72px;
    min-width: 72px;
    background: #070a0e;
    border: 2px solid var(--primary-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    padding: 3px;
    box-shadow: 0 0 14px rgba(0, 255, 102, 0.35);
    transition: all 0.25s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-gamer);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--dark-carbon);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.brand-title span {
    color: var(--primary-neon-dark);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.35);
}

.brand-subtitle {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

/* BUSCADOR CENTRAL */
.header-search {
    flex: 1;
    max-width: 580px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input {
    width: 100%;
    background: #FFFFFF;
    border: 2px solid var(--border-color);
    padding: 9px 42px 9px 14px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--primary-neon-dark);
    box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.2);
}

.search-button {
    position: absolute;
    right: 4px;
    width: 34px;
    height: 34px;
    background: var(--dark-carbon);
    color: var(--primary-neon);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.search-button:hover {
    background: var(--primary-neon);
    color: #04080F;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

/* BOTONES DE ACCIÓN (WHATSAPP, PEDIDOS, CARRITO) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: var(--font-tech);
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    border-color: var(--dark-carbon);
    background: var(--bg-subtle);
}

.cart-btn {
    background: var(--dark-carbon);
    color: var(--pure-white);
    border-color: var(--dark-carbon);
    padding: 8px 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cart-btn i {
    color: var(--primary-neon);
}

.cart-btn:hover {
    background: #000000;
    border-color: var(--primary-neon);
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.35);
}

.cart-badge {
    background: var(--primary-neon);
    color: #04080F;
    font-family: var(--font-gamer);
    font-size: 0.72rem;
    font-weight: 900;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin-left: 3px;
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

/* ==============================================================================
   3. BARRA HORIZONTAL DE CATEGORÍAS (SWIPEABLE EN MÓVIL)
   ============================================================================== */
.category-nav {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 800;
    width: 100%;
}

.category-nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 8px 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav-container::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    padding: 6px 14px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cat-chip:hover {
    border-color: var(--dark-carbon);
    background: var(--bg-subtle);
}

.cat-chip.active {
    background: var(--dark-carbon);
    color: var(--primary-neon);
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.35);
}

/* ==============================================================================
   4. SLIDER DINÁMICO DE BANNERS (RESPONSIVO CON ALTURA ADAPTABLE)
   ============================================================================== */
.hero-section {
    max-width: var(--container-max);
    margin: 1rem auto;
    padding: 0 1rem;
    width: 100%;
}

.hero-slider-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark-carbon);
    border: 2px solid var(--dark-border);
    box-shadow: var(--shadow-md);
    min-height: 220px;
    max-height: 320px;
    aspect-ratio: 3.2 / 1;
}

.hero-slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 2.5rem 3rem;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 10, 14, 0.92) 0%, rgba(7, 10, 14, 0.75) 50%, rgba(7, 10, 14, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.hero-tag {
    display: inline-block;
    background: var(--primary-neon);
    color: #04080F;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-gamer);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.45);
}

.hero-title {
    font-family: var(--font-gamer);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    color: var(--pure-white);
}

.hero-title span {
    color: var(--primary-neon);
    text-shadow: 0 0 16px rgba(0, 255, 102, 0.5);
}

.hero-desc {
    font-family: var(--font-tech);
    color: #E2E8F0;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00FF66 0%, #00CC52 100%);
    color: #04080F;
    font-family: var(--font-tech);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    box-shadow: var(--primary-neon-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.85rem;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 102, 0.55);
}

.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 15, 20, 0.75);
    border: 1.5px solid var(--primary-neon-border);
    color: var(--primary-neon);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.slider-arrow-btn:hover {
    background: var(--primary-neon);
    color: #04080F;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.5);
}

.slider-arrow-btn.prev { left: 12px; }
.slider-arrow-btn.next { right: 12px; }

.slider-dots-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    width: 22px;
    background: var(--primary-neon);
    box-shadow: 0 0 8px var(--primary-neon);
}

/* ==============================================================================
   5. SECCIÓN PRINCIPAL DE CATÁLOGO & PRODUCTOS
   ============================================================================== */
.main-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.5rem 1rem 3rem 1rem;
    flex: 1;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid var(--border-color);
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--dark-carbon);
    color: var(--primary-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.25);
}

.section-title {
    font-family: var(--font-gamer);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-carbon);
    letter-spacing: 0.5px;
}

.sort-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-color);
}

.sort-tab-btn {
    border: none;
    background: transparent;
    padding: 6px 13px;
    font-family: var(--font-tech);
    font-size: 0.825rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sort-tab-btn.active {
    background: var(--dark-carbon);
    color: var(--primary-neon);
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.25);
}

/* ==============================================================================
   6. GRILLA DE PRODUCTOS (MULTI-COLUMNA PC, 2 COLUMNAS MÓVIL)
   ============================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    width: 100%;
}

@media (max-width: 1120px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.product-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -4px rgba(15, 23, 42, 0.12), 0 0 14px rgba(0, 255, 102, 0.2);
    border-color: var(--primary-neon-dark);
}

.card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.badge-status-chip {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.3px;
}

.badge-status-disponible {
    background: rgba(0, 204, 82, 0.12);
    color: #008736;
    border: 1px solid #00CC52;
}

.badge-status-agotado {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.badge-discount-chip {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FCD34D;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* CÍRCULOS DE COLOR EN LA TARJETA */
.card-color-swatches {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 4;
    backdrop-filter: blur(4px);
}

.card-color-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.card-color-dot:hover {
    transform: scale(1.3);
    border-color: #000000;
}

.card-color-dot.soldout {
    opacity: 0.35;
    border-color: var(--danger-red);
}

.card-color-more {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-neon-dark);
    font-family: var(--font-tech);
    margin-left: 1px;
}

.card-content {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.card-cat {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.card-title {
    font-family: var(--font-tech);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover .card-title {
    color: var(--primary-neon-dark);
}

.card-pricing-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

.card-price-main {
    font-family: var(--font-gamer);
    font-size: 1.18rem;
    font-weight: 900;
    color: var(--dark-carbon);
}

.card-price-old {
    font-size: 0.78rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.card-actions-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
    width: 100%;
    margin-top: 8px;
}

.btn-add-cart {
    flex: 1;
    min-width: 0;
    background: var(--dark-carbon);
    color: var(--primary-neon);
    border: 1.5px solid var(--dark-carbon);
    border-radius: var(--radius-sm);
    padding: 7px 8px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-add-cart:hover:not(:disabled) {
    background: #000000;
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.35);
    transform: translateY(-1px);
}

.btn-add-cart:disabled,
.btn-add-cart.disabled {
    background: #F1F5F9;
    color: var(--text-light);
    border-color: var(--border-color);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-buy-now-card {
    flex: 1;
    min-width: 0;
    background: linear-gradient(135deg, #00FF66 0%, #00CC52 100%);
    color: #04080F;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 8px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-buy-now-card:hover {
    background: linear-gradient(135deg, #15FF75 0%, #00FF66 100%);
    box-shadow: 0 0 16px rgba(0, 255, 102, 0.6);
    transform: translateY(-1px);
}

.card-add-btn {
    width: 100%;
    margin-top: 8px;
    padding: 7px;
    background: #FFFFFF;
    color: var(--dark-carbon);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-tech);
    font-size: 0.825rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-add-btn:hover {
    background: var(--dark-carbon);
    color: var(--primary-neon);
    border-color: var(--dark-carbon);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-add-btn.disabled {
    background: #F1F5F9;
    color: var(--text-light);
    border-color: var(--border-color);
    cursor: not-allowed;
    box-shadow: none;
}

/* ESTADO VACÍO ELEGANTE */
.catalog-empty-wrap {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    background: #FFFFFF;
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.catalog-empty-wrap i {
    width: 48px;
    height: 48px;
    color: var(--primary-neon-dark);
    margin-bottom: 0.75rem;
}

.catalog-empty-wrap h3 {
    font-family: var(--font-gamer);
    font-size: 1.25rem;
    color: var(--dark-carbon);
    margin-bottom: 0.5rem;
}

.catalog-empty-wrap p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 1.25rem auto;
}

/* ==============================================================================
   7. MODAL DE DETALLE DE PRODUCTO (BLANCO CON VERDE NEÓN)
   ============================================================================== */
.cart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 20, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cart-modal-overlay.open {
    display: flex;
}

.product-detail-modal {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 840px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.btn-close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    color: var(--danger-red);
    border-color: var(--danger-red);
}

.pdm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .pdm-grid {
        grid-template-columns: 1.1fr 1fr;
        padding: 2rem;
    }
}

.pdm-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdm-main-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F8FAFC;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pdm-main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pdm-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.pdm-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.pdm-thumb-btn {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    background: #F8FAFC;
    padding: 3px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.pdm-thumb-btn.active {
    border-color: var(--primary-neon-dark);
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

.pdm-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pdm-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdm-title {
    font-family: var(--font-gamer);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--dark-carbon);
    line-height: 1.25;
    margin-bottom: 8px;
}

.pdm-pricing-box {
    background: #F8FAFC;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
}

.pdm-price-large {
    font-family: var(--font-gamer);
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--dark-carbon);
}

/* SELECTOR DE COLORES CON CÍRCULOS EN MODAL */
.pdm-colors-block {
    margin-bottom: 12px;
}

.pdm-colors-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pdm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pdm-selected-color-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.pdm-selected-color-pill strong {
    color: var(--text-main);
    font-family: var(--font-tech);
    font-size: 0.825rem;
}

.pdm-colors-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pdm-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    font-family: var(--font-tech);
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdm-color-chip:hover {
    border-color: var(--dark-carbon);
    transform: translateY(-1px);
}

.pdm-color-chip.active {
    background: var(--dark-carbon);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.35);
}

.pdm-color-chip.soldout {
    opacity: 0.55;
    border-style: dashed;
    border-color: var(--danger-red);
}

.pdm-color-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
    flex-shrink: 0;
}

.pdm-desc {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-family: var(--font-family);
    font-size: 0.825rem;
    color: var(--text-main);
    line-height: 1.5;
    max-height: 140px;
    overflow-y: auto;
    white-space: pre-line;
    margin-bottom: 12px;
}

.pdm-actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pdm-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    overflow: hidden;
}

.pdm-qty-btn {
    background: none;
    border: none;
    width: 34px;
    height: 34px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
}

.pdm-qty-btn:hover {
    background: var(--bg-subtle);
    color: var(--primary-neon-dark);
}

.pdm-qty-wrap input {
    width: 40px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-gamer);
    font-weight: 800;
    text-align: center;
    outline: none;
}

.pdm-add-btn {
    flex: 1;
    background: linear-gradient(135deg, #00FF66 0%, #00CC52 100%);
    color: #04080F;
    border: none;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-tech);
    font-size: 0.925rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--primary-neon-glow);
    transition: all 0.2s;
}

.pdm-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 255, 102, 0.45);
}

.pdm-add-btn:disabled {
    background: #CBD5E1;
    color: #64748B;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==============================================================================
   8. CARRITO Y CHECKOUT DRAWER
   ============================================================================== */
/* ==============================================================================
   8. CARRITO DE COMPRAS Y CHECKOUT (ESTILO ELCOMERCIANTE.NET EN BLANCO & VERDE NEÓN)
   ============================================================================== */
.cart-modal-overlay,
.cart-overlay,
#cartOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 20, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal-overlay.open,
.cart-overlay.open,
#cartOverlay.open {
    display: block;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 460px;
    height: 100%;
    background: #FFFFFF;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-modal-overlay.open .cart-drawer,
.cart-overlay.open .cart-drawer,
#cartOverlay.open .cart-drawer {
    transform: translateX(0);
}

/* CABECERA DEL CARRITO */
.cart-header {
    background: #0B0F14;
    color: #FFFFFF;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3.5px solid var(--primary-neon);
    flex-shrink: 0;
}

.cart-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header-title-wrap h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #FFFFFF;
    margin: 0;
}

.cart-header-count {
    background: var(--primary-neon);
    color: #04080F;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.btn-close-cart {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1.2rem;
    line-height: 1;
}

.btn-close-cart:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* ÁREA UNIFICADA CON SCROLL NATURAL (TODO VISIBLE SIN CORTAR) */
.cart-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
}

/* AVISO DE ENVÍOS EN SANTA CRUZ */
.cart-promo-pill {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LISTA DE ÍTEMS DEL CARRITO */
.cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-card, .cart-item-row {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: border-color 0.2s, background 0.2s;
}

.cart-item-card:hover, .cart-item-row:hover {
    border-color: #CBD5E1;
    background: #FFFFFF;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    padding: 2px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0B0F14;
    line-height: 1.25;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-color-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    color: #334155;
    margin-bottom: 2px;
}

.cart-color-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.25);
    display: inline-block;
}

.cart-item-unit-price {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cart-item-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.qty-capsule {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.qty-step-btn {
    background: none;
    border: none;
    width: 26px;
    height: 26px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0F14;
    transition: background 0.15s;
}

.qty-step-btn:hover {
    background: #F0FDF4;
    color: #166534;
}

.qty-number {
    width: 28px;
    text-align: center;
    font-size: 0.825rem;
    font-weight: 800;
    color: #0B0F14;
}

.cart-item-subtotal {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0B0F14;
}

.btn-item-delete {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-item-delete:hover {
    background: #FEE2E2;
    color: #DC2626;
}

/* SECCIONES DEL CHECKOUT EN EL CARRITO */
.cart-checkout-block {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.block-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0B0F14;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.block-title-number {
    background: #0B0F14;
    color: var(--primary-neon);
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

/* SELECTORES TIPO TARJETA / RADIO TILES */
.checkout-tiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.checkout-tile {
    position: relative;
    border: 1.5px solid #E2E8F0;
    background: #FAFAFA;
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.checkout-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-tile:hover {
    border-color: #CBD5E1;
}

.checkout-tile:has(input:checked) {
    border-color: #0B0F14;
    background: #F0FDF4;
    box-shadow: 0 0 0 2px var(--primary-neon);
}

.checkout-tile.disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(1);
}

.checkout-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0F14;
    transition: all 0.2s;
}

.checkout-tile:has(input:checked) .checkout-tile-icon {
    background: var(--primary-neon);
    color: #04080F;
}

.checkout-tile-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0B0F14;
    line-height: 1.2;
}

.checkout-tile-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* CAMPOS DE FORMULARIO */
.cart-field {
    margin-bottom: 10px;
}

.cart-field label {
    display: block;
    font-size: 0.775rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.cart-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    background: #FFFFFF;
    color: #0B0F14;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.cart-input:focus {
    border-color: #0B0F14;
    box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.35);
}

/* STICKY FOOTER DEL CARRITO */
.cart-sticky-footer {
    padding: 16px 20px 20px;
    background: #FFFFFF;
    border-top: 1.5px solid var(--border-color);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.cart-totals-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.cart-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-breakdown-row.total-row {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0B0F14;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    margin-top: 2px;
}

.cart-breakdown-row.total-row .total-price-large {
    font-size: 1.55rem;
    color: #0B0F14;
    font-weight: 900;
}

.cart-whatsapp-btn {
    width: 100%;
    background: linear-gradient(135deg, #00FF66 0%, #00CC52 100%);
    color: #04080F;
    border: none;
    border-radius: var(--radius-full);
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 255, 102, 0.4);
    transition: all 0.2s;
}

.cart-whatsapp-btn:hover {
    background: linear-gradient(135deg, #00FF66 0%, #00B347 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 255, 102, 0.55);
}

.cart-whatsapp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cart-guarantee-note {
    text-align: center;
    font-size: 0.725rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==============================================================================
   9. MODAL DE CONFIRMACIÓN QR & RECIBOS DIGITALES
   ============================================================================== */
.qr-modal,
.order-success-modal {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-height: 92vh;
    overflow-y: auto;
    margin: 20px auto;
}

#qrModalOverlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-icon-badge {
    width: 58px;
    height: 58px;
    background: var(--dark-carbon);
    border: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 0 16px rgba(0, 255, 102, 0.4);
}

.order-code-display {
    font-family: var(--font-gamer);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--dark-carbon);
    background: #F8FAFC;
    border: 1px dashed var(--border-color);
    padding: 8px;
    border-radius: var(--radius-sm);
    margin: 10px 0;
    letter-spacing: 1px;
}

.receipt-actions-box {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.btn-receipt-pdf {
    flex: 1;
    background: var(--dark-carbon);
    color: var(--primary-neon);
    border: 1.5px solid var(--primary-neon);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-receipt-pdf:hover {
    background: var(--primary-neon);
    color: #04080F;
}

.btn-receipt-wa {
    flex: 1;
    background: #25D366;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-receipt-wa:hover {
    background: #20BA5A;
}

/* ==============================================================================
   10. PIE DE PÁGINA (ESTILO CYBER CARBON CON TEXTOS CLAROS Y VERDE NEÓN)
   ============================================================================== */
.main-footer {
    background: var(--dark-carbon);
    color: #E2E8F0;
    border-top: 3px solid var(--primary-neon);
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem 1rem 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.footer-col h4 {
    font-family: var(--font-gamer);
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-neon);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.6;
}

.footer-local-card {
    background: #111827;
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 10px;
}

.local-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-gamer);
    font-weight: 800;
    color: var(--pure-white);
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.local-address {
    font-size: 0.8rem;
    color: #CBD5E1;
    line-height: 1.4;
}

.local-hours {
    font-size: 0.78rem;
    color: var(--primary-neon);
    font-family: var(--font-tech);
    font-weight: 600;
}

.btn-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    background: rgba(0, 255, 102, 0.12);
    color: var(--primary-neon);
    border: 1px solid var(--primary-neon-border);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-tech);
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.2s;
}

.footer-wa-number-pill,
.footer-wa-link {
    background: rgba(0, 255, 102, 0.15);
    color: var(--primary-neon);
    border: 1px solid var(--primary-neon-border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-gamer);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.footer-wa-number-pill:hover,
.footer-wa-link:hover,
.footer-wa-number-pill:active,
.footer-wa-link:active {
    background: var(--primary-neon);
    color: #04080F;
    box-shadow: 0 0 14px rgba(0, 255, 102, 0.6);
    transform: translateY(-1px);
}

.btn-maps-link:hover {
    background: var(--primary-neon);
    color: #04080F;
}

.exterior-store-box {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid var(--dark-border);
    background: #000000;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.78rem;
    color: #64748B;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sn-tech-credit {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: #94A3B8;
}

.sn-tech-link {
    color: var(--primary-neon);
    font-weight: 700;
}

/* ==============================================================================
   11. WIDGET FLOTANTE DE WHATSAPP CON PROTECCIÓN ANTI-OBSTRUCCIÓN
   ============================================================================== */
.floating-whatsapp-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 920;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-bubble {
    background: #FFFFFF;
    color: var(--dark-carbon);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1.5px solid var(--primary-neon-dark);
    max-width: 260px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    animation: fadeInBubble 0.3s ease-out;
}

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

.whatsapp-bubble-close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.floating-whatsapp-btn {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==============================================================================
   13. MEDIA QUERIES ULTRA OPTIMIZADAS PARA CELULARES (<= 768px, <= 640px, <= 480px)
   ============================================================================== */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* TOP BAR RESPONSIVA */
    .top-bar {
        padding: 5px 10px;
    }
    .top-bar .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3px;
    }
    .top-bar-notice {
        font-size: 0.72rem;
    }
    .top-bar-links {
        font-size: 0.72rem;
        gap: 8px;
    }

    /* CABECERA OPTIMIZADA EN MÓVILES (ESTRUCTURA IDÉNTICA A EL COMERCIANTE) */
    .header-container {
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
    }

    .brand-container {
        gap: 8px;
    }

    .logo-image-placeholder {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    /* Ocultar botones de asesor redundantes en la cabecera móvil (ya están en topbar) */
    .header-actions > a {
        display: none !important;
    }

    .header-actions {
        display: flex !important;
        align-items: center;
        margin-left: auto;
    }

    .cart-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.825rem;
        height: 38px;
    }

    /* BUSCADOR A ANCHO COMPLETO EN FILA 2 (ESTADO NORMAL EN EL TOPE) */
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-top: 4px;
    }

    .search-input {
        padding: 8px 38px 8px 12px;
        font-size: 0.825rem;
    }

    /* CABECERA COMPACTA EN MÓVIL: EN 1 SOLA FILA FLUIDA AL HACER SCROLL */
    /* LOGO (PEQUEÑO) + BARRA DE BÚSQUEDA + BOTÓN DEL CARRITO EN 1 FILA */
    .main-header.header-compact .header-container {
        padding: 6px 10px;
        gap: 8px;
        flex-wrap: nowrap !important;
        align-items: center;
    }

    .main-header.header-compact .brand-container {
        flex: 0 0 auto;
        gap: 0;
    }

    .main-header.header-compact .brand-text-block {
        display: none !important;
    }

    .main-header.header-compact .logo-image-placeholder {
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 2px;
    }

    .main-header.header-compact .header-search {
        order: unset !important;
        flex: 1 !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .main-header.header-compact .search-input {
        padding: 7px 32px 7px 10px;
        font-size: 0.8rem;
        height: 34px;
    }

    .main-header.header-compact .header-actions {
        order: unset !important;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .main-header.header-compact .cart-btn {
        padding: 6px 10px;
        height: 34px;
        font-size: 0.78rem;
    }
        font-size: 0.825rem;
    }

    /* SLIDER ELEGANTE Y PROPORCIONAL EN MÓVIL (~180px - 220px) */
    .hero-section {
        margin: 8px auto;
        padding: 0 10px;
    }

    .hero-slider-wrap {
        aspect-ratio: 2.2 / 1 !important;
        height: auto !important;
        min-height: 160px !important;
        max-height: 200px !important;
        border-radius: var(--radius-md);
    }

    .hero-slides-container {
        height: 100% !important;
        min-height: 160px !important;
    }

    .hero-slide {
        min-height: 160px !important;
        padding: 0.75rem 1rem !important;
    }

    .hero-content {
        max-width: 90% !important;
    }

    .hero-tag {
        font-size: 0.6rem !important;
        padding: 2px 7px !important;
        margin-bottom: 4px !important;
    }

    .hero-title {
        font-size: 1.15rem !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
    }

    .hero-desc {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-btn {
        padding: 5px 12px !important;
        font-size: 0.72rem !important;
    }

    .slider-arrow-btn {
        display: none !important;
    }

    /* NAVEGACIÓN DE CATEGORÍAS */
    .category-nav-container {
        padding: 6px 10px;
        gap: 6px;
    }
    .cat-chip {
        padding: 5px 11px;
        font-size: 0.78rem;
    }

    /* EN MÓVIL: OCULTAR EL GLOBO DE TEXTO PESADO DE WHATSAPP (EVITA TAPAR CONTENIDO) */
    .whatsapp-bubble {
        display: none !important;
    }

    .floating-whatsapp-wrap {
        bottom: 18px;
        right: 14px;
    }

    .floating-whatsapp-btn {
        width: 48px;
        height: 48px;
    }

    /* CARRITO DRAWER FULL WIDTH EN MÓVIL */
    .cart-drawer {
        max-width: 100vw;
        border-left: none;
    }

    /* MODAL DE DETALLE BOTTOM SHEET */
    .product-detail-modal {
        max-width: 100vw;
        border-radius: 18px 18px 0 0;
        max-height: 94vh;
    }
}

/* GRILLA DE 2 COLUMNAS EN CELULARES */
@media (max-width: 640px) {
    .main-layout {
        padding: 0.25rem 10px 3rem 10px;
    }

    .section-header {
        margin-bottom: 0.75rem;
    }

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

    .sort-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .sort-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-card {
        border-radius: 10px;
    }

    .card-img-wrap {
        padding: 0.5rem;
    }

    .card-content {
        padding: 8px 10px;
    }

    .card-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .card-price-main {
        font-size: 1.05rem;
    }

    .card-actions-row {
        flex-direction: column !important;
        gap: 5px !important;
        width: 100% !important;
        margin-top: 6px !important;
    }

    .btn-add-cart,
    .btn-buy-now-card,
    .card-add-btn {
        width: 100% !important;
        height: 32px !important;
        padding: 0 6px !important;
        font-size: 0.72rem !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        box-sizing: border-box !important;
    }

    .btn-add-cart span,
    .btn-buy-now-card span,
    .card-add-btn span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-color-dot {
        width: 11px;
        height: 11px;
    }

    /* CARRITO MÓVIL FULLSCREEN / FLUIDO */
    .cart-drawer {
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }

    .cart-scroll-area {
        padding: 12px 14px 20px !important;
        gap: 12px !important;
    }

    .cart-item-card, .cart-item-row {
        padding: 8px 10px !important;
        gap: 10px !important;
    }

    .cart-item-img {
        width: 52px !important;
        height: 52px !important;
    }

    .cart-item-title {
        font-size: 0.82rem !important;
    }

    .checkout-tile {
        padding: 8px 6px !important;
    }

    .checkout-tile-label {
        font-size: 0.72rem !important;
    }

    .checkout-tile-sub {
        font-size: 0.62rem !important;
    }

    .cart-field {
        margin-bottom: 8px !important;
    }

    .cart-field label {
        font-size: 0.72rem !important;
        margin-bottom: 3px !important;
    }

    .cart-input {
        padding: 7px 10px !important;
        font-size: 0.8rem !important;
    }

    .cart-sticky-footer {
        padding: 12px 14px 16px !important;
    }
}

/* PANTALLAS ULTRA PEQUEÑAS (iPhone SE 1ra Gen, etc.) */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
}
