/* ==============================================================================
   SOFNET GROUP - CATÁLOGO DIGITAL DE SOLUCIONES Y PEDIDOS
   Diseño Corporativo de Alta Fidelidad (UX/UI Premium & Mobile First)
   ============================================================================== */

:root {
    color-scheme: dark;
    --cat-bg: #030712;
    --cat-bg-surface: #0b132b;
    --cat-bg-card: rgba(15, 23, 42, 0.75);
    --cat-bg-card-hover: rgba(30, 41, 59, 0.85);
    --cat-border: rgba(51, 65, 85, 0.55);
    --cat-border-focus: #38bdf8;
    --cat-primary: #0284c7;
    --cat-primary-hover: #0369a1;
    --cat-accent: #0ea5e9;
    --cat-accent-glow: rgba(14, 165, 233, 0.28);
    --cat-emerald: #10b981;
    --cat-emerald-glow: rgba(16, 185, 129, 0.25);
    --cat-amber: #f59e0b;
    --cat-text-main: #f8fafc;
    --cat-text-muted: #94a3b8;
    --cat-text-dim: #64748b;
    --cat-font-sans: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
    --cat-font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --cat-font-mono: 'JetBrains Mono', monospace;
    --cat-radius-sm: 8px;
    --cat-radius-md: 14px;
    --cat-radius-lg: 20px;
    --cat-radius-full: 9999px;
    --cat-shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --cat-shadow-glow: 0 0 25px -5px rgba(14, 165, 233, 0.3);
}

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

/* ==============================================================================
   CUSTOM SCROLLBARS (DISEÑO CORPORATIVO SOFNET)
   ============================================================================== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.35) rgba(2, 6, 23, 0.6);
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.7);
}

::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.5);
    border-radius: 9999px;
    border: 2px solid rgba(2, 6, 23, 0.7);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: #0284c7;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body.cat-body {
    min-height: 100vh;
    background-color: var(--cat-bg);
    background-image: 
        radial-gradient(circle at 15% 5%, rgba(14, 165, 233, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(79, 70, 229, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 95%, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--cat-text-main);
    font-family: var(--cat-font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ------------------------------------------------------------------------------
   1. HEADER SUPERIOR (STICKY GLASS)
   ------------------------------------------------------------------------------ */
.cat-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    transition: all 0.2s ease;
}

.cat-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cat-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    user-select: none;
}

.cat-brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.35));
}

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

.cat-brand-title {
    font-family: var(--cat-font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
    line-height: 1.2;
}

.cat-brand-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--cat-accent);
}

.cat-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.6);
    padding: 8px 14px;
    border-radius: var(--cat-radius-full);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-btn-wa:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}

.cat-btn-wa i {
    font-size: 16px;
}

.cat-cart-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--cat-font-heading);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--cat-radius-full);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-cart-trigger:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-1px);
}

.cat-cart-trigger:active {
    transform: translateY(0);
}

.cat-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #ffffff;
    color: #0369a1;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: var(--cat-radius-full);
    transition: transform 0.2s ease;
}

.cat-cart-count.pulse {
    animation: cartBounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ------------------------------------------------------------------------------
   2. HERO CORPORATIVO
   ------------------------------------------------------------------------------ */
.cat-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 100px;
}

.cat-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(11, 19, 43, 0.7) 100%);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: var(--cat-radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cat-hero-glow {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
    border-radius: 50%;
}

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

.cat-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--cat-radius-full);
    margin-bottom: 12px;
}

.cat-hero-title {
    font-family: var(--cat-font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.cat-hero-subtitle {
    font-size: 14px;
    color: var(--cat-text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.cat-badges-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.cat-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.5);
    padding: 6px 12px;
    border-radius: var(--cat-radius-sm);
    border: 1px solid rgba(51, 65, 85, 0.4);
}

.cat-custom-link-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--cat-radius-md);
    padding: 10px 16px;
    margin-top: 16px;
    font-size: 13px;
    color: #ffffff;
}

/* ------------------------------------------------------------------------------
   3. LAYOUT PRINCIPAL (CATÁLOGO + DRAWER / PANEL)
   ------------------------------------------------------------------------------ */
/* ==============================================================================
   3. LAYOUT PRINCIPAL (EXPANSIVO 100% ANCHO CON DRAWER FLOTANTE SLIDE-OVER)
   ============================================================================== */
.cat-main-layout {
    display: block;
    width: 100%;
}

/* ------------------------------------------------------------------------------
   4. BÚSQUEDA Y BARRA DE CATEGORÍAS
   ------------------------------------------------------------------------------ */
.cat-search-toolbar {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 29, 0.9) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

.cat-toolbar-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cat-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 260px;
    margin-bottom: 0;
}

.cat-search-icon {
    position: absolute;
    left: 18px;
    font-size: 19px;
    color: #38bdf8;
    pointer-events: none;
}

.cat-search-input-wrap input {
    width: 100%;
    height: 50px;
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(71, 85, 105, 0.7);
    border-radius: 14px;
    padding: 0 46px 0 48px;
    font-size: 14px;
    color: #ffffff;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.cat-search-input-wrap input:focus {
    border-color: #38bdf8;
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25), 0 0 20px rgba(14, 165, 233, 0.15);
}

.cat-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: 14px;
    padding: 4px 14px;
    height: 50px;
}

.cat-sort-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}

.cat-sort-select {
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    padding-right: 8px;
}

.cat-sort-select option {
    background: #0f172a;
    color: #ffffff;
}

.cat-search-clear {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(51, 65, 85, 0.6);
    border: none;
    border-radius: 50%;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.cat-search-clear:hover {
    background: #475569;
    color: #fff;
}

/* Categorías Horizontales con Scroll Suave y Contadores */
.cat-categories-wrapper {
    position: relative;
    overflow: hidden;
}

.cat-categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.cat-categories-scroll::-webkit-scrollbar {
    height: 4px;
}

.cat-categories-scroll::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.3);
    border-radius: 9999px;
}

.cat-categories-scroll::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
}

.cat-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 9999px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--cat-font-heading);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.cat-cat-pill:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}

.cat-cat-pill.active {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.cat-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.cat-cat-pill.active .cat-pill-count {
    background: #ffffff;
    color: #0369a1;
}

.cat-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 4px;
    font-size: 13px;
    color: var(--cat-text-muted);
}

.cat-count-info strong {
    color: #ffffff;
}

.cat-price-info {
    font-size: 12px;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ------------------------------------------------------------------------------
   5. CUADRÍCULA Y TARJETAS SHOWROOM ULTRA-PREMIUM
   ------------------------------------------------------------------------------ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.cat-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 29, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    position: relative;
}

.cat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.75), 0 0 25px -4px rgba(14, 165, 233, 0.3);
}

/* Escenario de Showroom de Imagen (Centrada, Nítida, Sin Cortes) */
.cat-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at center, #ffffff 45%, #f1f5f9 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.cat-card-media img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.14));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-card:hover .cat-card-media img {
    transform: scale(1.08) translateY(-2px);
}

/* Botón flotante de Vista Rápida en tarjeta */
.cat-card-quickview-btn {
    position: absolute;
    bottom: 10px;
    background: rgba(10, 15, 29, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 9999px;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
    cursor: pointer;
}

.cat-card:hover .cat-card-quickview-btn {
    opacity: 1;
    transform: translateY(0);
}

.cat-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #475569;
}

.cat-card-placeholder i {
    font-size: 42px;
    color: #0284c7;
    opacity: 0.8;
}

.cat-card-placeholder span {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
}

.cat-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.cat-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: var(--cat-radius-full);
    backdrop-filter: blur(8px);
}

.cat-badge-status.in-stock {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.cat-badge-status.in-stock::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.cat-badge-status.on-order {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.cat-badge-sku {
    font-family: var(--cat-font-mono);
    font-size: 10px;
    font-weight: 700;
    color: #334155;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 8px;
    border-radius: var(--cat-radius-full);
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ==========================================================================
   TIEMPOS DE ENTREGA EN CATÁLOGO DIGITAL (DELIVERY BADGES & PILLS)
   ========================================================================== */
.cat-badge-delivery {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: var(--cat-radius-full);
    backdrop-filter: blur(8px);
}

.cat-badge-delivery.delivery-immediate {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.cat-badge-delivery.delivery-fast {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.cat-badge-delivery.delivery-days {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.cat-badge-delivery.delivery-order {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.cat-badge-delivery.delivery-custom {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Tira de tiempo de entrega en el cuerpo de la tarjeta */
.cat-card-delivery-bar {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.cat-delivery-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 8px;
    line-height: 1.3;
    font-weight: 500;
}

.cat-delivery-tag strong {
    font-weight: 700;
}

.cat-delivery-tag.delivery-immediate {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.cat-delivery-tag.delivery-fast {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.cat-delivery-tag.delivery-days {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.cat-delivery-tag.delivery-order {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.cat-delivery-tag.delivery-custom {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Bloque destacado en QuickView Modal */
.cat-qv-delivery-box {
    margin: 14px 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-qv-delivery-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cat-qv-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cat-qv-delivery-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.cat-qv-delivery-val {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
}

.cat-qv-delivery-hint {
    font-size: 11px;
    color: #64748b;
}

/* Badge de tiempo de entrega en el carrito / drawer */
.cat-cart-delivery-tag {
    display: inline-flex;
    align-items: center;
    gap: 3.5px;
    font-size: 10px;
    font-weight: 700;
    padding: 1.5px 6px;
    border-radius: 6px;
    margin-top: 3px;
    margin-right: 6px;
}

.cat-cart-delivery-tag.delivery-immediate {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cat-cart-delivery-tag.delivery-fast {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.cat-cart-delivery-tag.delivery-days {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.cat-cart-delivery-tag.delivery-order {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.cat-cart-delivery-tag.delivery-custom {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.cat-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cat-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.cat-card-category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #38bdf8;
}

.cat-card-brand-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1px 7px;
    border-radius: 4px;
}

.cat-card-title {
    font-family: var(--cat-font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.15s ease;
}

.cat-card-title:hover {
    color: #38bdf8;
}

.cat-card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--cat-accent);
    margin-bottom: 4px;
}

.cat-card-title {
    font-family: var(--cat-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-card-brand {
    font-size: 12px;
    color: var(--cat-text-muted);
    margin-bottom: 10px;
}

.cat-card-brand strong {
    color: #cbd5e1;
}

.cat-card-details {
    margin-top: auto;
    margin-bottom: 14px;
    font-size: 12px;
    border-top: 1px dashed rgba(51, 65, 85, 0.6);
    padding-top: 8px;
}

.cat-card-details summary {
    cursor: pointer;
    color: #38bdf8;
    font-weight: 600;
    user-select: none;
    outline: none;
}

.cat-card-details summary:hover {
    text-decoration: underline;
}

.cat-card-desc {
    padding: 8px 0 0;
    color: var(--cat-text-muted);
    line-height: 1.5;
    font-size: 12px;
}

.cat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(51, 65, 85, 0.4);
}

.cat-card-pricing {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cat-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.cat-card-price {
    font-family: var(--cat-font-heading);
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.cat-card-unit {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.cat-card-net-preview {
    font-size: 11px;
    color: #38bdf8;
    font-weight: 600;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 6px;
    padding: 2px 7px;
    display: inline-block;
    width: fit-content;
}

.cat-card-net-preview strong {
    color: #ffffff;
    font-weight: 800;
}

.cat-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    font-family: var(--cat-font-heading);
    border: none;
    border-radius: var(--cat-radius-full);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-add-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.5);
}

.cat-add-btn:active {
    transform: translateY(0);
}

/* Stepper de Cantidad Compacto en Tarjeta */
.cat-qty-controls {
    display: inline-flex;
    align-items: center;
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: var(--cat-radius-full);
    height: 36px;
    padding: 2px 4px;
}

.cat-qty-btn {
    width: 30px;
    height: 30px;
    background: rgba(30, 41, 59, 0.8);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.cat-qty-btn:hover {
    background: var(--cat-primary);
}

.cat-qty-val {
    min-width: 28px;
    text-align: center;
    font-family: var(--cat-font-mono);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

/* Estado Vacío */
.cat-empty-state {
    background: var(--cat-bg-card);
    border: 1px solid var(--cat-border);
    border-radius: var(--cat-radius-lg);
    padding: 60px 24px;
    text-align: center;
    margin-top: 20px;
}

.cat-empty-state i {
    font-size: 48px;
    color: #475569;
    margin-bottom: 14px;
    display: block;
}

.cat-empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.cat-empty-state p {
    font-size: 13.5px;
    color: var(--cat-text-muted);
}

/* ------------------------------------------------------------------------------
   6. DRAWER / PANEL DE PEDIDO (DESKTOP STICKY & MOBILE SLIDE-OVER)
   ------------------------------------------------------------------------------ */
.cat-order-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    max-height: 100vh;
    height: 100vh;
    z-index: 90;
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(56, 189, 248, 0.3);
    background: linear-gradient(180deg, #090e1a 0%, #050811 100%);
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cat-order-drawer.open {
    transform: translateX(0);
}

.cat-drawer-inner {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cat-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    margin-bottom: 18px;
}

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

.cat-drawer-title-wrap h2 {
    font-family: var(--cat-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.cat-drawer-badge {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--cat-radius-full);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.cat-drawer-close {
    display: flex;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.4);
    color: #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.cat-drawer-close:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Lista de Partidas en Carrito */
.cat-cart-list-wrapper {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.cat-drawer-inner::-webkit-scrollbar,
.cat-cart-list-wrapper::-webkit-scrollbar {
    width: 5px;
}

.cat-drawer-inner::-webkit-scrollbar-track,
.cat-cart-list-wrapper::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.4);
    border-radius: 9999px;
}

.cat-drawer-inner::-webkit-scrollbar-thumb,
.cat-cart-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
}

.cat-drawer-inner::-webkit-scrollbar-thumb:hover,
.cat-cart-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

.cat-cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-empty-cart {
    padding: 30px 16px;
    text-align: center;
    background: rgba(2, 6, 23, 0.4);
    border: 1px dashed rgba(51, 65, 85, 0.6);
    border-radius: var(--cat-radius-md);
}

.cat-empty-cart-icon {
    font-size: 36px;
    color: #475569;
    margin-bottom: 8px;
}

/* Item de Carrito Individual */
.cat-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: var(--cat-radius-md);
    padding: 10px 12px;
    transition: all 0.15s ease;
}

.cat-cart-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(2, 6, 23, 0.85);
}

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

.cat-cart-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 2px;
}

.cat-cart-item-price {
    font-size: 11.5px;
    color: var(--cat-text-muted);
}

.cat-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-cart-item-stepper {
    display: inline-flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: var(--cat-radius-full);
    height: 28px;
    padding: 2px;
}

.cat-cart-item-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    border-radius: 50%;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.15s;
}

.cat-cart-item-btn:hover {
    background: var(--cat-primary);
    color: #fff;
}

.cat-cart-item-qty {
    min-width: 22px;
    text-align: center;
    font-family: var(--cat-font-mono);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.cat-cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.cat-cart-item-remove:hover {
    opacity: 1;
}

/* Desglose de Totales */
.cat-totals-box {
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: var(--cat-radius-md);
    padding: 14px 16px;
    margin-bottom: 18px;
}

.cat-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--cat-text-muted);
    margin-bottom: 6px;
}

.cat-total-row strong {
    color: #ffffff;
    font-family: var(--cat-font-mono);
}

.cat-total-row.grand-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(51, 65, 85, 0.6);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
}

.cat-total-row .total-number {
    font-family: var(--cat-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #38bdf8;
}

/* Formulario de Checkout */
.cat-order-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cat-form-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #38bdf8;
    margin-top: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.cat-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cat-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.cat-form-group input, .cat-form-group textarea {
    width: 100%;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: var(--cat-radius-sm);
    padding: 10px 14px;
    color: #ffffff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.cat-form-group input:focus, .cat-form-group textarea:focus {
    border-color: var(--cat-border-focus);
    background: rgba(2, 6, 23, 1);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

.cat-form-group textarea {
    resize: vertical;
    min-height: 54px;
}

.cat-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cat-form-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
    color: var(--cat-text-muted);
    line-height: 1.45;
    background: rgba(15, 23, 42, 0.5);
    padding: 10px 12px;
    border-radius: var(--cat-radius-sm);
    border: 1px solid rgba(51, 65, 85, 0.4);
    margin: 4px 0;
}

.cat-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    font-family: var(--cat-font-heading);
    border: none;
    border-radius: var(--cat-radius-md);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 6px;
}

.cat-submit-btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.5);
}

.cat-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
    box-shadow: none;
}

.cat-feedback-message {
    padding: 12px 14px;
    border-radius: var(--cat-radius-sm);
    font-size: 13px;
    margin-top: 14px;
    line-height: 1.4;
}

.cat-feedback-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.cat-feedback-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

/* ------------------------------------------------------------------------------
   7. BARRA INFERIOR FLOTANTE MÓVIL
   ------------------------------------------------------------------------------ */
.cat-mobile-bottom-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 35;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: var(--cat-radius-full);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(14, 165, 233, 0.25);
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cat-mobile-bar-info {
    display: flex;
    flex-direction: column;
}

.cat-mobile-bar-count {
    font-size: 11px;
    color: var(--cat-text-muted);
}

.cat-mobile-bar-total {
    font-family: var(--cat-font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.cat-mobile-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--cat-font-heading);
    border: none;
    border-radius: var(--cat-radius-full);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.cat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 85;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    display: block;
}

.cat-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ==============================================================================
   QUICK VIEW MODAL (VISTA RÁPIDA DE PRODUCTO)
   ============================================================================== */
.cat-quickview-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: qvFadeIn 0.2s ease;
}

@keyframes qvFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cat-quickview-dialog {
    position: relative;
    width: 100%;
    max-width: 840px;
    max-height: 90vh;
    background: linear-gradient(160deg, #0f172a 0%, #090e1a 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 24px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(14, 165, 233, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cat-quickview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.6);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-quickview-close:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.cat-quickview-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    overflow-y: auto;
    max-height: 90vh;
}

.cat-quickview-media {
    background: radial-gradient(circle at center, #ffffff 45%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    min-height: 380px;
    position: relative;
    user-select: none;
}

.cat-qv-stage {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.cat-qv-stage img {
    max-width: 90%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.16));
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cat-qv-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-qv-nav-btn:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.cat-qv-nav-btn.prev {
    left: 8px;
}

.cat-qv-nav-btn.next {
    right: 8px;
}

.cat-qv-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--cat-font-mono, monospace);
    padding: 3px 9px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

/* Tira de Miniaturas (Thumbnails) */
.cat-qv-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid rgba(203, 213, 225, 0.6);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
}

.cat-qv-thumb-btn {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid rgba(203, 213, 225, 0.8);
    padding: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.cat-qv-thumb-btn img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cat-qv-thumb-btn:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
}

.cat-qv-thumb-btn.active {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35), 0 4px 12px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px) scale(1.04);
}

/* Badge en la tarjeta cuando hay múltiples fotos */
.cat-card-gallery-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #e2e8f0;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cat-card-gallery-pill i {
    color: #38bdf8;
    font-size: 12px;
}

/* Carrusel Interactivo en Tarjetas de Productos */
.cat-card-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    z-index: 4;
}

.cat-card:hover .cat-card-carousel-btn {
    opacity: 0.95;
}

.cat-card-carousel-btn:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.5);
}

.cat-card-carousel-btn.prev {
    left: 8px;
}

.cat-card-carousel-btn.next {
    right: 8px;
}

/* En dispositivos táctiles, mostrar las flechas de carrusel siempre visibles para máxima accesibilidad */
@media (hover: none) and (pointer: coarse) {
    .cat-card-carousel-btn {
        opacity: 0.9;
        width: 34px;
        height: 34px;
    }
}

/* Indicadores de Puntos (Dots) del Carrusel */
.cat-card-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    padding: 3px 8px;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 9999px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: opacity 0.2s ease;
}

.cat-card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}

.cat-card-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cat-card-dot.active {
    width: 14px;
    border-radius: 9999px;
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.75);
}

.cat-quickview-content {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.cat-quickview-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cat-qv-cat {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 10px;
    border-radius: 9999px;
}

.cat-qv-sku {
    font-family: var(--cat-font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.6);
    padding: 3px 10px;
    border-radius: 9999px;
}

.cat-quickview-title {
    font-family: var(--cat-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.cat-quickview-brand {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 18px;
}

.cat-quickview-brand strong {
    color: #e2e8f0;
}

.cat-quickview-pricing {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.cat-qv-price-block {
    display: flex;
    flex-direction: column;
}

.cat-qv-price-label, .cat-qv-net-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.cat-qv-price-val {
    font-family: var(--cat-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.cat-qv-tax-note {
    font-size: 10.5px;
    color: #64748b;
}

.cat-qv-net-block {
    display: flex;
    flex-direction: column;
    padding-left: 18px;
    border-left: 1px solid rgba(51, 65, 85, 0.5);
}

.cat-qv-net-val {
    font-family: var(--cat-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #38bdf8;
}

.cat-qv-net-sub {
    font-size: 10.5px;
    color: #38bdf8;
    font-weight: 600;
}

.cat-quickview-desc-wrap {
    margin-bottom: 24px;
    flex: 1;
}

.cat-qv-desc-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.cat-quickview-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    max-height: 140px;
    overflow-y: auto;
    background: rgba(2, 6, 23, 0.4);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(51, 65, 85, 0.3);
}

.cat-quickview-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.cat-qv-add-btn {
    flex: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-family: var(--cat-font-heading);
    font-size: 13.5px;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
    transition: all 0.2s;
}

.cat-qv-add-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.cat-qv-wa-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    font-family: var(--cat-font-heading);
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.cat-qv-wa-btn:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

/* ==============================================================================
   FLOATING CART PILL (STICKY BOTTOM-RIGHT TRIGGER)
   ============================================================================== */
.cat-floating-cart-pill {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 55;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 9999px;
    padding: 8px 12px 8px 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(14, 165, 233, 0.35);
    animation: pillBounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
}

.cat-floating-cart-pill:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 35px rgba(14, 165, 233, 0.5);
}

.cat-floating-cart-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cat-floating-cart-icon {
    position: relative;
    width: 36px;
    height: 36px;
    background: rgba(14, 165, 233, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #38bdf8;
}

.cat-floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #0284c7;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
}

.cat-floating-cart-text {
    display: flex;
    flex-direction: column;
}

.cat-floating-cart-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.cat-floating-cart-total {
    font-family: var(--cat-font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.cat-floating-cart-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-family: var(--cat-font-heading);
    font-size: 12.5px;
    font-weight: 800;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
    transition: filter 0.15s;
}

.cat-floating-cart-action:hover {
    filter: brightness(1.15);
}

@keyframes pillBounce {
    from { transform: translateY(40px) scale(0.8); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .cat-quickview-grid {
        grid-template-columns: 1fr;
    }
    .cat-quickview-media {
        min-height: 220px;
        padding: 20px;
    }
    .cat-quickview-content {
        padding: 20px;
    }
    .cat-quickview-actions {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .cat-floating-cart-pill {
        display: none !important;
    }
}

/* ------------------------------------------------------------------------------
   8. FOOTER
   ------------------------------------------------------------------------------ */
.cat-footer {
    margin-top: 50px;
    padding: 30px 20px 24px;
    border-top: 1px solid rgba(51, 65, 85, 0.45);
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--cat-radius-lg);
    backdrop-filter: blur(8px);
}

.cat-footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.cat-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cat-footer-logo {
    height: 26px;
    max-height: 26px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(14, 165, 233, 0.3));
}

.cat-footer-brand-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cat-footer-brand-info strong {
    font-family: var(--cat-font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.cat-footer-brand-info span {
    font-size: 11px;
    color: var(--cat-text-muted);
}

.cat-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12.5px;
    color: var(--cat-text-dim);
}

.cat-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cat-footer-links a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.cat-footer-copy {
    font-size: 11.5px;
    color: var(--cat-text-dim);
    margin-top: 2px;
}

/* Helper para accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS (MOBILE FIRST & TABLETS)
   ------------------------------------------------------------------------------ */

/* PANTALLAS MENORES A 1024PX (TABLETS & SMARTPHONES) */
@media (max-width: 1024px) {
    .cat-order-drawer {
        max-width: 440px;
    }
}

/* SMARTPHONES (HASTA 640PX) */
@media (max-width: 640px) {
    .cat-container {
        padding: 14px 14px 90px;
    }

    .cat-header-inner {
        padding: 10px 14px;
    }

    .cat-brand-title {
        font-size: 16px;
    }

    .cat-brand-badge {
        font-size: 9px;
    }

    .cat-btn-wa-text {
        display: none;
    }

    .cat-btn-wa {
        padding: 8px 10px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .cat-cart-trigger {
        padding: 7px 12px;
        font-size: 12px;
    }

    .cat-cart-trigger-label {
        display: none;
    }

    .cat-hero {
        padding: 20px 16px;
        margin-bottom: 16px;
    }

    .cat-hero-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .cat-hero-subtitle {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .cat-badges-strip {
        gap: 6px;
    }

    .cat-badge-item {
        font-size: 11px;
        padding: 5px 9px;
    }

    .cat-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cat-card-media {
        aspect-ratio: 16 / 9;
    }

    .cat-form-row {
        grid-template-columns: 1fr;
    }

    .cat-order-drawer {
        max-width: 100%;
    }
}

/* SMARTPHONES PEQUEÑOS A MEDIANOS EN DOS COLUMNAS (380PX A 640PX) */
@media (min-width: 480px) and (max-width: 640px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cat-card-body {
        padding: 12px;
    }

    .cat-card-title {
        font-size: 13.5px;
    }

    .cat-card-price {
        font-size: 16px;
    }

    .cat-add-btn {
        padding: 0 12px;
        font-size: 11.5px;
    }
}


/* ==============================================================================
   ADMIN PANEL: MÓDULO DE PEDIDOS (MANTENIDO PARA COMPATIBILIDAD Y RENDERING)
   ============================================================================== */
.orders-admin, .age-admin {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 32px;
    color: #e2e8f0;
}

.orders-admin h1, .age-admin h1 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.age-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.age-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #38bdf8;
    display: block;
    margin-bottom: 4px;
}

.age-muted {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.age-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.age-stat {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 14px;
    padding: 18px 22px;
    backdrop-filter: blur(8px);
}

.age-stat strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--cat-font-mono);
    line-height: 1.1;
    margin-bottom: 4px;
}

.age-stat span {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 600;
}

.age-toolbar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.age-grow {
    flex: 1;
    min-width: 240px;
}

.age-toolbar label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.age-toolbar input, .age-toolbar select {
    height: 42px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: 10px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.age-toolbar input:focus, .age-toolbar select:focus {
    border-color: #38bdf8;
}

.age-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.age-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.age-secondary {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(71, 85, 105, 0.6);
    color: #cbd5e1;
}

.age-secondary:hover {
    background: rgba(51, 65, 85, 0.6);
    color: #ffffff;
}

.age-panel {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.age-table-wrap {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 16px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.age-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.age-table th {
    background: rgba(2, 6, 23, 0.6);
    color: #94a3b8;
    text-align: left;
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.age-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    vertical-align: middle;
}

.age-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.4);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.age-badge.nuevo { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.age-badge.en_revision { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.age-badge.confirmado { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.age-badge.entregado { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.age-badge.cancelado { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.age-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    background: rgba(2, 6, 23, 0.5);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.4);
}

.age-totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 320px;
    margin-left: auto;
    margin-top: 16px;
}

.age-totals div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
}

.age-totals .age-total {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    padding-top: 8px;
    border-top: 1px solid rgba(51, 65, 85, 0.6);
}

.age-totals .age-total dd {
    color: #38bdf8;
}

.age-pages {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================================================
   CONFIRMATION RECEIPT VIEW (COMPROBANTE DETALLADO DE PEDIDO)
   ========================================================================== */
.cat-confirmation-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0;
}

.cat-confirm-header {
    text-align: center;
    padding: 8px 0 4px;
}

.cat-confirm-icon {
    font-size: 50px;
    color: #34d399;
    line-height: 1;
    margin-bottom: 8px;
    display: inline-block;
    filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.45));
}

.cat-confirm-title {
    font-family: var(--cat-font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
}

.cat-confirm-subtitle {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

.cat-confirm-folio-box {
    background: rgba(2, 6, 23, 0.9);
    border: 1px dashed rgba(56, 189, 248, 0.6);
    border-radius: var(--cat-radius-md);
    padding: 12px 14px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.cat-confirm-folio-label {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 3px;
}

.cat-confirm-folio-val {
    font-family: var(--cat-font-mono);
    font-size: 20px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

.cat-confirm-items-box,
.cat-confirm-customer-box,
.cat-confirm-totals-box {
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: var(--cat-radius-md);
    padding: 12px 14px;
}

.cat-confirm-box-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #38bdf8;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-confirm-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.cat-confirm-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.cat-confirm-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-confirm-item-name {
    color: #f1f5f9;
    font-weight: 600;
    display: block;
    line-height: 1.35;
}

.cat-confirm-item-meta {
    font-size: 10.5px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.cat-confirm-item-total {
    font-family: var(--cat-font-mono);
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
}

.cat-confirm-customer-box p {
    margin: 0 0 5px;
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.35;
}

.cat-confirm-customer-box p:last-child {
    margin-bottom: 0;
}

.cat-confirm-customer-box strong {
    color: #94a3b8;
    font-weight: 600;
}

.cat-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.cat-btn-whatsapp {
    background: #16a34a !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35) !important;
    padding: 12px 16px !important;
    font-size: 13.5px !important;
}

.cat-btn-whatsapp:hover {
    background: #15803d !important;
}

.cat-btn-new-order {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.6);
    color: #cbd5e1;
    font-family: var(--cat-font-heading);
    font-weight: 700;
    font-size: 12px;
    padding: 9px 14px;
    border-radius: var(--cat-radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.cat-btn-new-order:hover {
    background: rgba(51, 65, 85, 0.9);
    color: #ffffff;
    border-color: #38bdf8;
}

/* ==============================================================================
   SOFNET ACTION DIALOGS & CONFIRM MODALS (DISEÑO CORPORATIVO INTEGRADO)
   ============================================================================== */
.sofnet-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.sofnet-dialog-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.sofnet-dialog-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(11, 19, 43, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    padding: 26px 24px 22px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 40px -10px rgba(14, 165, 233, 0.25);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f8fafc;
    font-family: var(--cat-font-sans, system-ui);
    box-sizing: border-box;
}

.sofnet-dialog-backdrop.active .sofnet-dialog-card {
    transform: scale(1) translateY(0);
}

.sofnet-dialog-card.danger {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px -5px rgba(239, 68, 68, 0.25);
}

.sofnet-dialog-card.warning {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px -5px rgba(245, 158, 11, 0.25);
}

.sofnet-dialog-card.success {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px -5px rgba(16, 185, 129, 0.25);
}

.sofnet-dialog-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.sofnet-dialog-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.sofnet-dialog-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.sofnet-dialog-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.sofnet-dialog-icon.info {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.sofnet-dialog-icon.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.sofnet-dialog-titles {
    flex: 1;
    min-width: 0;
}

.sofnet-dialog-title {
    font-family: var(--cat-font-heading, system-ui);
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 6px 0;
}

.sofnet-dialog-msg {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.sofnet-dialog-details {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
}

.sofnet-dialog-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.sofnet-dialog-btn {
    appearance: none;
    border: none;
    outline: none;
    font-family: var(--cat-font-heading, system-ui);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sofnet-dialog-btn-cancel {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.6);
    color: #cbd5e1;
}

.sofnet-dialog-btn-cancel:hover {
    background: rgba(51, 65, 85, 0.9);
    color: #ffffff;
    border-color: #64748b;
}

.sofnet-dialog-btn-confirm {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.sofnet-dialog-btn-confirm:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    transform: translateY(-1px);
}

.sofnet-dialog-btn-confirm.danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 1px solid rgba(239, 68, 68, 0.6);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
}

.sofnet-dialog-btn-confirm.danger:hover {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.55);
}

.sofnet-dialog-btn-confirm.warning {
    background: linear-gradient(135deg, #d97706, #b45309);
    border: 1px solid rgba(245, 158, 11, 0.6);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.sofnet-dialog-btn-confirm.warning:hover {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.55);
}

.sofnet-dialog-btn-confirm.success {
    background: linear-gradient(135deg, #059669, #047857);
    border: 1px solid rgba(16, 185, 129, 0.6);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.sofnet-dialog-btn-confirm.success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

/* ==========================================================================
   Protección Anti-Bot Cloudflare Turnstile en Drawer de Pedidos
   ========================================================================== */
.cat-turnstile-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 14px 0 10px;
    width: 100%;
    min-height: 65px;
    overflow: hidden;
}
.cat-turnstile-wrap .cf-turnstile {
    max-width: 100%;
    transform-origin: center center;
}

