/* ==============================================================================
   EMIPISA INDUSTRIAL - DESIGN SYSTEM & STYLESHEET
   High-concurrency B2B/B2C Enterprise Platform
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,600;1,700;1,800;1,900&family=JetBrains+Mono:wght@400;500;600;700;800&family=Orbitron:wght@700;800;900&family=Outfit:wght@600;700;800;900&display=swap');

:root {
    --bg-dark-navy: #091322;
    --bg-dark-header: #070e18;
    --bg-admin-card: #111a2d;
    --bg-admin-card-hover: #16223b;
    --bg-light: #f4f6f9;
    --bg-white: #ffffff;
    
    --text-primary-dark: #f8fafc;
    --text-secondary-dark: #94a3b8;
    --text-muted-dark: #64748b;
    --text-primary-light: #0f172a;
    --text-secondary-light: #475569;
    
    --primary-blue: #0284c7;
    --primary-blue-hover: #0369a1;
    --primary-blue-dark: #075985;
    
    --accent-orange: #ea580c;
    --accent-orange-hover: #c2410c;
    --accent-gold: #f59e0b;
    
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-dark-highlight: rgba(255, 255, 255, 0.16);
    --border-light: #e2e8f0;
    
    /* =========================================================================
       SISTEMA TIPOGRÁFICO INDUSTRIAL CORPORATIVO (INTER + MONTSERRAT GLOBAL)
       ========================================================================= */
    --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Montserrat', 'Orbitron', system-ui, -apple-system, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;

    /* Pesos Tipográficos */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --fw-black: 900;

    /* Espaciado de Letras (Tracking Técnico) */
    --tracking-tight: -0.015em;
    --tracking-normal: 0em;
    --tracking-wide: 0.04em;
    --tracking-industrial: 0.05em;
    --tracking-expanded: 0.10em;

    /* Escala Modular Tipográfica Industrial */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.844rem;    /* 13.5px */
    --text-base: 0.938rem;  /* 15px */
    --text-md: 1.063rem;    /* 17px */
    --text-lg: 1.25rem;     /* 20px */
    --text-xl: 1.5rem;      /* 24px */
    --text-2xl: 2rem;       /* 32px */
    --text-3xl: 2.5rem;     /* 40px */

    /* Tokens de Contraste */
    --color-text-steel-dark: #0f172a;
    --color-text-industrial-body: #334155;
    --color-text-industrial-muted: #64748b;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.08);
    --shadow-glow-blue: 0 0 25px rgba(2, 132, 199, 0.35);
    --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.4);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   1. REGLA GLOBAL DE HERENCIA TIPOGRÁFICA (INCONDICIONAL EN TODO EL DOM)
   ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

html {
    scroll-behavior: auto !important;
    overflow-x: clip;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    color: var(--text-primary-light);
    background-color: var(--bg-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    width: 100%;
    margin: 0;
    padding: 0;
    overscroll-behavior-y: none;
}

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

/* ==============================================================================
   TÍTULOS GLOBALES (MONTSERRAT BLACK / EXTRABOLD AUTOMÁTICO)
   ============================================================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.heading-display-h1,
.pdp-product-h1,
.industrial-heading-h1,
.heading-category-h2,
.section-title,
.industrial-subheading-h2,
.heading-card-h3,
.product-card-title,
.industrial-card-h3,
.card-title,
.subview-title,
.product-name,
.product-title,
.product-model-name,
.model-name,
.sku-title,
.item-title,
.pdp-title {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--color-text-steel-dark);
    letter-spacing: var(--tracking-industrial);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* H1 / TÍTULOS DE PRODUCTO DESTACADOS (MONTSERRAT BLACK) */
h1, .h1, .heading-display-h1, .pdp-product-h1, .industrial-heading-h1 {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: var(--text-2xl);
    font-weight: 900 !important; /* Montserrat Black */
    text-transform: uppercase;
    letter-spacing: var(--tracking-industrial);
    line-height: 1.15;
    color: #0b192c;
}

/* H2 / SUBTÍTULOS DE CATEGORÍAS (MONTSERRAT EXTRABOLD) */
h2, .h2, .heading-category-h2, .section-title, .industrial-subheading-h2 {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: var(--text-xl);
    font-weight: 800 !important; /* Montserrat ExtraBold */
    text-transform: uppercase;
    letter-spacing: var(--tracking-expanded);
    line-height: 1.25;
    color: #1e293b;
}

/* H3 / TÍTULOS DE TARJETAS TÉCNICAS Y PRODUCTOS (MONTSERRAT EXTRABOLD) */
h3, .h3, .heading-card-h3, .product-card-title, .card-title, .product-model-name, .model-name, .industrial-card-h3 {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: var(--text-lg);
    font-weight: 800 !important; /* Montserrat ExtraBold */
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    line-height: 1.3;
    color: #0f172a;
}

h4, .h4, h5, .h5, h6, .h6 {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 800 !important; /* Montserrat ExtraBold */
}

/* PÁRRAFOS Y DESCRIPCIONES TÉCNICAS (ALTA LEGIBILIDAD EN PEQUEÑOS TAMAÑOS) */
p, .text-body-technical, .industrial-body-text {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: var(--color-text-industrial-body);
}

/* ETIQUETAS TÉCNICAS, ATRIBUTOS Y CÓDIGOS DE NORMA */
.tech-spec-label, .spec-key, .attr-name, .industrial-spec-label {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-industrial-muted);
}

/* SKUs, NORMAS TÉCNICAS (ASME, API, ASTM), TOLERANCIAS Y CÓDIGOS DE PARTE */
.tech-sku, .tech-code, .product-sku-badge, .industrial-sku-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.05em;
    color: #0f172a;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* PRECIOS INDUSTRIALES Y ESCALA MONETARIA B2B */
.product-price-industrial, .price-display-industrial {
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    letter-spacing: -0.01em;
    color: #0284c7;
}

.product-price-industrial .currency-symbol {
    font-size: 0.85em;
    font-weight: var(--fw-bold);
    margin-right: 2px;
}

.product-price-tax-label {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    color: var(--color-text-industrial-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ESTILO PLACA DE CARACTERÍSTICAS / GRABADO LÁSER INDUSTRIAL */
.industrial-nameplate-badge {
    font-family: var(--font-display);
    font-weight: var(--fw-black);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #091322;
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==============================================================================
   VIEW SWITCHER / TOP CONTROLLER BAR
   ============================================================================== */
.view-switcher-bar {
    background: #020617;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.view-switcher-bar-inner {
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.switcher-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #f8fafc;
}

.switcher-brand .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 2s infinite;
}

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

.switcher-pills {
    display: flex;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
}

.switch-pill {
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.switch-pill:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.switch-pill.active {
    background: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.switch-pill.admin-active {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.switcher-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-open-chat-global {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-open-chat-global:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
}

/* ==============================================================================
   VIEW 1: TIENDA PÚBLICA & CATÁLOGO B2B (EMIPISA INDUSTRIAL)
   ============================================================================== */
#view-store {
    background: #ffffff;
}

/* ==============================================================================
   CENTRALIZED STORE CONTAINER & ALIGNMENT
   ============================================================================== */
.store-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* Expanded Top Layout (Width: 100% with elegant side padding) */
.store-container-wide {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 48px;
    padding-right: 48px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .store-container-wide {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    .store-container {
        padding-left: 14px;
        padding-right: 14px;
    }
    .store-container-wide {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Top Mini Bar - Compacto, Fino y Detallado */
.top-micro-bar {
    background: #020617;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    line-height: 1.25;
}

.top-micro-bar-inner {
    color: #94a3b8;
    font-size: 0.67rem;
    padding-top: 2px;
    padding-bottom: 2px;
    min-height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.micro-ruc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.67rem;
}

.micro-ruc span {
    color: #94a3b8;
    font-weight: 400;
}

.micro-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.micro-link {
    color: #cbd5e1;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.micro-link:hover {
    color: #38bdf8;
}

.micro-badge-gold {
    background: #f59e0b;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Store Main Header */
.store-main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    width: 100%;
}

.store-main-header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(480px, 780px) minmax(240px, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Sector Izquierdo: Logo Corporativo Centrado en su Espacio */
.store-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.store-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-logo:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

/* Logo 30% más grande que el original (48px -> 64px de alto, max 68px, ancho proporcional) */
.brand-logo-main,
#store-header-logo-img {
    height: 64px;
    max-height: 68px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

.logo-gear-badge {
    background: #facc15;
    color: #0f172a;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border: 2px dashed #0f172a;
}

/* Ocultar cualquier texto redundante para que figure estrictamente SOLO el logo corporativo */
.store-logo .logo-text-box,
.buyer-brand-clickable .logo-text-box,
.store-logo h1,
.store-logo span,
.buyer-brand-clickable h2,
.buyer-brand-clickable span {
    display: none !important;
}

/* Sector Central: Buscador Maestro Centrado como Principal de Todo el Header */
.search-container-b2b {
    width: 100%;
    max-width: 780px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.btn-categories-dropdown {
    background: var(--primary-blue, #0284c7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.18);
}

.btn-categories-dropdown:hover {
    background: var(--primary-blue-hover, #0369a1);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.32);
}

.search-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1.5px solid #0284c7;
    border-radius: 30px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.search-input-box input {
    flex: 1;
    border: none;
    padding: 10px 18px;
    font-size: 0.88rem;
    outline: none;
    font-family: var(--font-sans);
}

.in-stock-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0284c7;
    background: #f0f9ff;
    padding: 6px 12px;
    border-left: 1px solid #e0f2fe;
    cursor: pointer;
    white-space: nowrap;
}

.btn-search-submit {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 11px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search-submit:hover {
    background: var(--primary-blue-hover);
}

/* Autocomplete Dropdown */
.store-search-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #0284c7;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
    z-index: 9999999 !important;
    max-height: 480px;
    overflow-y: auto;
    display: none;
}

.store-search-autocomplete-header {
    padding: 8px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-search-autocomplete-footer {
    padding: 10px 14px;
    background: #f0f9ff;
    border-top: 1px solid #bae6fd;
    font-size: 0.76rem;
    font-weight: 800;
    color: #0284c7;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.store-search-autocomplete-footer:hover {
    background: #e0f2fe;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
    gap: 12px;
}

.autocomplete-item:hover, .autocomplete-item.selected {
    background: #f0f9ff;
}

.autocomplete-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.autocomplete-info {
    flex: 1;
    min-width: 0;
}

.autocomplete-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-name mark {
    background: #fef08a;
    color: #0f172a;
    font-weight: 800;
    padding: 0 2px;
    border-radius: 2px;
}

.autocomplete-meta {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.autocomplete-sku {
    font-family: monospace;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.68rem;
}

.autocomplete-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: #059669;
    white-space: nowrap;
    text-align: right;
}

.autocomplete-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-ac-add {
    background: #f1f5f9;
    color: #0284c7;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-ac-add:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-ac-quote {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-ac-quote:hover {
    background: #0369a1;
}

/* Search Results Container Styling */
.search-results-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.search-results-banner h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.search-results-banner p {
    margin: 4px 0 0 0;
    font-size: 0.82rem;
    color: #94a3b8;
}

.btn-clear-search {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.btn-clear-search:hover {
    background: #dc2626;
}

.search-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Sector Derecho: User & Cart CTA */
.store-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    white-space: nowrap;
}

.btn-header-action {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-header-action:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-header-cart {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-header-cart:hover {
    background: #0369a1;
}

/* Responsive Rules para Header B2B Centrado */
@media (max-width: 1280px) {
    .store-main-header-inner {
        grid-template-columns: minmax(190px, 1fr) minmax(420px, 640px) minmax(190px, 1fr);
        gap: 12px;
    }
    .brand-logo-main,
    #store-header-logo-img {
        height: 56px;
        max-height: 60px;
        max-width: 240px;
    }
    .btn-header-action,
    .btn-header-cart {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 992px) {
    .store-main-header-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
    }
    .store-logo-wrapper {
        width: auto;
        justify-content: flex-start;
    }
    .store-header-actions {
        width: auto;
        justify-content: flex-end;
    }
    .search-container-b2b {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 4px;
    }
}

/* Primary Navigation Bar */
.store-nav-bar {
    background: var(--navbar-bg, #081220);
    width: 100%;
}

.store-nav-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    flex-wrap: wrap;
}

.nav-link-item {
    padding: 13px 20px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link-item:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}

.nav-link-item.active {
    background: var(--primary-blue);
    color: #ffffff;
    border-bottom: 3px solid #38bdf8;
}

.nav-link-b2b-portal {
    margin-left: 12px;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #ffffff !important;
    border-radius: 4px;
    padding: 8px 18px !important;
    margin-top: 4px;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

.nav-link-b2b-portal:hover {
    filter: brightness(1.15);
}

/* =============================================================================
   HERO BANNER & SLIDERS (ESTABILIDAD 100% FIJA - SIN DESPLAZAMIENTOS NI DISTORSIÓN)
   ============================================================================= */
.hero-industrial-banner {
    position: relative;
    width: 100%;
    height: 480px;
    min-height: 480px;
    max-height: 480px;
    display: flex;
    align-items: center;
    background: #071224;
    overflow: hidden;
    padding: 0;
    contain: layout paint;
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    min-height: 480px;
    max-height: 480px;
    overflow: hidden;
}

.hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    align-items: center;
    overflow: hidden;
}

.hero-slide.active {
    display: flex !important;
    opacity: 1 !important;
    z-index: 2;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 1024px) {
    .hero-industrial-banner,
    .hero-slides-wrapper {
        height: 440px;
        min-height: 440px;
        max-height: 440px;
    }
}

@media (max-width: 640px) {
    .hero-industrial-banner,
    .hero-slides-wrapper {
        height: 400px;
        min-height: 400px;
        max-height: 400px;
    }
}

/* Background Image Layer (Adapts height & width proportionally for desktop/laptop/mobile) */
.hero-slide-bg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: none !important;
    transition: none !important;
}

.hero-slide.active .hero-slide-bg-img {
    transform: none !important;
}

/* Dark Industrial Gradient Overlay (Softened for high image clarity + text legibility) */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 24, 46, 0.72) 0%, rgba(9, 34, 66, 0.60) 45%, rgba(12, 51, 99, 0.30) 75%, rgba(12, 51, 99, 0.10) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-slide.hero-slide-full-image {
    padding: 0 !important;
    cursor: pointer;
}

.hero-slide.hero-slide-full-image .hero-slide-overlay {
    display: none !important;
}

.hero-slide.hero-slide-full-image .hero-slide-bg-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Content Container & Grid */
.hero-slide-grid {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 3;
    padding: 40px 0;
    box-sizing: border-box;
}

.hero-content {
    max-width: 860px;
    margin-left: clamp(24px, 5.5vw, 70px);
    padding-right: 24px;
}

.hero-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-blue, #0284c7);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: clamp(1.8rem, 3.4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    color: #ffffff;
    letter-spacing: -0.5px;
    word-break: break-word;
}

.hero-content h2 span {
    color: #38bdf8;
}

.hero-content p {
    font-size: clamp(0.88rem, 1.2vw, 1.1rem);
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 26px;
    max-width: 740px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--primary-blue, #0284c7);
    color: white;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

.btn-hero-whatsapp {
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.65);
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

.btn-hero-whatsapp:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* =============================================================================
   CMS SLIDERS & BANNERS (ADMINISTRATION VIEW STYLES - SCREENSHOT 1)
   ============================================================================= */
.cms-hero-preview-card {
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid #1e293b;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.cms-hero-preview-topbar {
    background: #0b1324;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
}

.cms-hero-preview-topbar h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cms-preview-nav-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-preview-nav {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-preview-nav:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.cms-preview-viewport {
    position: relative;
    width: 100%;
    min-height: 280px;
    background: #071224;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 30px 40px;
}

.cms-preview-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.cms-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 24, 46, 0.96) 0%, rgba(9, 34, 66, 0.90) 45%, rgba(12, 51, 99, 0.55) 75%, rgba(12, 51, 99, 0.20) 100%);
    z-index: 2;
}

.cms-preview-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
}

.cms-preview-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin: 10px 0 8px 0;
    line-height: 1.2;
}

.cms-preview-content p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* CMS Slides Table */
.cms-slides-table {
    width: 100%;
    border-collapse: collapse;
}

.cms-slides-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.cms-slides-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.cms-slide-row:hover td {
    background: #f8fafc;
}

.cms-order-badge {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-cms-order {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.15s ease;
}

.btn-cms-order:hover:not(:disabled) {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-cms-order:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cms-slide-thumb-wrap {
    width: 100px;
    height: 58px;
    border-radius: 6px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.cms-slide-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cms-slide-info-cell {
    max-width: 420px;
}

.cms-slide-title-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 2px 0;
}

.cms-slide-desc-text {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
}

.cms-cta-badges-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cms-cta-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.cms-cta-pill.primary {
    background: #eff6ff;
    color: #0284c7;
    border-color: #bfdbfe;
}

.cms-cta-pill.secondary {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.cms-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #10b981;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 8px;
    border-radius: 4px;
}

.cms-status-badge.inactive {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* Hero Right Side: Technical Specs & Trust Card */
.hero-feature-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-feature-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-3px);
}

.hero-card-header {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 12px;
}

.card-badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.hero-card-header h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.hero-card-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-stat-item .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.hero-stat-item strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-stat-item span {
    font-size: 0.74rem;
    color: #94a3b8;
}

.btn-hero-card-quote {
    width: 100%;
    background: linear-gradient(135deg, #25d366, #16a34a);
    color: #ffffff;
    border: none;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-hero-card-quote:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Hero Carousel Floating Navigation Arrows (Clean Edge Chevrons - Screenshot 1) */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 70px;
    background: transparent;
    border: none;
    color: #0284c7;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    opacity: 0.85;
}

.hero-slider-arrow:hover {
    color: #38bdf8;
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
}

.hero-arrow-prev {
    left: 18px;
}

.hero-arrow-next {
    right: 18px;
}

@media (max-width: 1024px) {
    .hero-content {
        margin-left: 20px;
    }
    .hero-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        margin-left: 0;
    }
    .hero-slider-arrow {
        font-size: 1.8rem;
    }
}

/* Horizontal Industrial Category Carousel */
.categories-slider-section {
    background: #ffffff;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
}

.categories-pills-row {
    display: flex;
    gap: 14px;
    min-width: max-content;
}

.cat-pill-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 120px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.cat-pill-card:hover, .cat-pill-card.active {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cat-pill-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.cat-pill-card.active .cat-pill-icon {
    background: #0284c7;
    color: white;
}

.cat-pill-card span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
}

/* Product Catalog Grid Layout */
.catalog-main-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 36px 32px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.catalog-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.catalog-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 12px;
}

.catalog-spec-summary {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.catalog-spec-summary strong {
    color: #0f172a;
}

.sidebar-subcats-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin-bottom: 12px;
}

.subcat-list {
    list-style: none;
}

.subcat-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subcat-item:hover {
    background: #f1f5f9;
    color: #0284c7;
}

.subcat-item.active {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
}

/* Products Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.product-b2b-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-b2b-card:hover {
    border-color: #0284c7;
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-card-img-wrap {
    height: 190px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.badge-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.badge-sku {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
}

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

.product-brand {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ea580c;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 10px;
}

.product-specs-list {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 0.75rem;
    color: #475569;
    margin-bottom: 14px;
    flex: 1;
}

.product-specs-list div {
    margin-bottom: 4px;
}

.product-specs-list strong {
    color: #1e293b;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.product-price-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0284c7;
}

.product-price-val span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-card-quote {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-card-quote:hover {
    background: var(--primary-blue-hover);
}

.btn-card-chat {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-card-chat:hover {
    background: #e2e8f0;
}

/* Floating WhatsApp / Direct Contact Stack */
.floating-contacts-stack {
    position: fixed;
    right: 20px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 999;
}

.contact-pill-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-full);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: var(--transition);
}

.contact-pill-item:hover {
    transform: translateX(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #25d366;
}

.contact-pill-item i.fa-whatsapp {
    color: #25d366;
    font-size: 1.1rem;
}

.btn-floating-trade-messenger {
    background: #0284c7;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-floating-trade-messenger:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

/* ==============================================================================
   VIEW 2: TORRE DE CONTROL & GESTIÓN B2B (PANEL DE ADMINISTRACIÓN)
   ============================================================================== */
#view-admin {
    background: #090f1d;
    color: #f8fafc;
    min-height: calc(100vh - 50px);
}

.admin-header-strip {
    background: #0d1527;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.admin-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.admin-title-group h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.1;
    margin: 0;
}

.admin-title-group span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

.admin-status-indicators {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.status-badge-chip {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.admin-search-module-input {
    background: #15223a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #f8fafc;
    padding: 5px 12px;
    font-size: 0.78rem;
    outline: none;
    width: 240px;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-admin-nav-action {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-admin-nav-action:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.btn-admin-messenger {
    background: #0284c7;
    border: none;
    color: white;
}

.btn-admin-messenger:hover {
    background: #0369a1;
}

/* Control Tower Main Body */
.control-tower-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px;
}

.tower-headline-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


.tower-headline-box h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tower-headline-box p {
    color: #94a3b8;
    font-size: 0.82rem;
    margin-top: 2px;
    margin-bottom: 0;
}

.tower-headline-badges {
    display: flex;
    gap: 10px;
}

.badge-connected-modules {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-secure-access {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

/* 7 Modules Grid */
.control-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.control-module-card {
    background: #111a2d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.control-module-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.4);
}

.control-module-card.featured-purple {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-module-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #38bdf8;
}

.card-role-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.badge-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-orange {
    background: rgba(234, 88, 12, 0.15);
    color: #fb923c;
    border-color: rgba(234, 88, 12, 0.3);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    border-color: rgba(139, 92, 246, 0.4);
}

.badge-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
    border-color: rgba(20, 184, 166, 0.3);
}

.badge-blue {
    background: rgba(2, 132, 199, 0.15);
    color: #38bdf8;
    border-color: rgba(2, 132, 199, 0.3);
}

.card-module-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.card-module-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 18px;
}

.card-bullet-list {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-bullet-list li {
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-bullet-list li i {
    color: #38bdf8;
    font-size: 0.75rem;
}

.btn-enter-module {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-enter-module:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* Module Specific Button Colors */
.btn-ti { background: #0284c7; }
.btn-ventas { background: #ea580c; }
.btn-logistica { background: #059669; }
.btn-produccion { background: #7c3aed; }
.btn-compras { background: #d97706; }
.btn-admin-gral { background: #0d9488; }
.btn-portal-cli { background: #2563eb; }

/* Admin Footer */
.admin-footer-bar {
    padding: 24px 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #64748b;
}

.admin-footer-links {
    display: flex;
    gap: 16px;
}

.admin-footer-links a {
    color: #94a3b8;
    text-decoration: none;
}

.admin-footer-links a:hover {
    color: #38bdf8;
}

/* ==============================================================================
   VIEW 3: PORTAL DEL COMPRADOR B2B (WORKBENCH INDUSTRIAL - PETROPERÚ S.A.)
   ============================================================================== */
#view-buyer {
    background: #f1f5f9;
    min-height: calc(100vh - 50px);
}

/* Buyer Workbench Top Header */
.buyer-top-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.buyer-logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buyer-pill-tag {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
}

.buyer-search-box {
    flex: 1;
    max-width: 580px;
    position: relative;
}

.buyer-search-box input {
    width: 100%;
    padding: 9px 16px 9px 38px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
}

.buyer-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.buyer-user-dropdown-pill {
    background: #0284c7;
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    cursor: pointer;
}

.buyer-user-dropdown-pill .avatar-init {
    background: #0369a1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.buyer-header-nav-btns {
    display: flex;
    gap: 8px;
}

.btn-buyer-top {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-buyer-top:hover {
    background: #f1f5f9;
}

/* Buyer 2-Column Workbench Layout */
.buyer-layout-grid {
    display: grid;
    grid-template-columns: 315px 1fr;
    min-height: calc(100vh - 70px);
}

/* Buyer Left Sidebar (Fixed / Static on scroll) */
.buyer-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--border-light, #e2e8f0);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    max-height: calc(100vh - 65px);
    align-self: start;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    box-sizing: border-box;
}

.buyer-sidebar > * {
    flex-shrink: 0;
}

.buyer-profile-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border-radius: var(--radius-md, 8px);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.buyer-company-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.buyer-ruc-tag {
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: var(--font-mono, monospace);
}

.badge-verified-buyer {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
    font-size: 0.67rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.35;
}

.sidebar-menu-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-group-header {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 2px;
    padding-left: 6px;
}

.sidebar-nav-btn {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: all 0.15s ease;
    box-sizing: border-box;
    gap: 8px;
}

.sidebar-nav-btn-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    text-align: left;
    flex: 1 1 auto;
}

.sidebar-nav-btn-left i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.92rem;
    color: #64748b;
}

.sidebar-nav-btn-left span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
    line-height: 1.25;
}

.sidebar-nav-btn:hover {
    background: #f1f5f9;
    color: #0284c7;
}

.sidebar-nav-btn:hover .sidebar-nav-btn-left i {
    color: #0284c7;
}

.sidebar-nav-btn.active {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
}

.sidebar-nav-btn.active .sidebar-nav-btn-left i {
    color: #0284c7;
}

.nav-pill-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 6px;
}

.nav-pill-count.blue {
    background: #e0f2fe;
    color: #0369a1;
}

.nav-pill-count.green {
    background: #dcfce7;
    color: #15803d;
}

.nav-pill-count.red {
    background: #fee2e2;
    color: #dc2626;
    font-weight: 800;
}

.nav-pill-count.amber {
    background: #fef3c7;
    color: #b45309;
    font-weight: 700;
}

/* =========================================================================
   TRADE MESSENGER B2B EN VIVO (SUB-VIEW: CHAT & WORKBENCH COMERCIAL)
   ========================================================================= */
.buyer-advisor-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.advisor-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.advisor-avatar-box {
    position: relative;
    flex-shrink: 0;
}

.advisor-avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0284c7;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.advisor-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
}

.advisor-info-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.advisor-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    width: fit-content;
}

.advisor-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.advisor-role {
    margin: 0;
    font-size: 0.76rem;
    color: #64748b;
}

.advisor-contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.adv-chip {
    font-size: 0.72rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.adv-chip.online-chip {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
    font-weight: 700;
}

.advisor-card-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.btn-advisor-whatsapp {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}
.btn-advisor-whatsapp:hover {
    background: #16a34a;
}

.btn-advisor-call {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-advisor-call:hover {
    background: #f1f5f9;
}

/* Chat Workbench 2-Column Interface */
.buyer-chat-workbench-container {
    display: grid;
    grid-template-columns: 290px 1fr;
    flex: 1 1 auto;
    min-height: 380px;
    height: calc(100vh - 215px);
    max-height: calc(100vh - 215px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.chat-threads-sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.threads-header {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.threads-header h4 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.threads-count-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.threads-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.thread-item {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
    border-left: 3px solid transparent;
}

.thread-item:hover {
    background: #f8fafc;
}

.thread-item.active {
    background: #f0f9ff;
    border-left-color: #0284c7;
}

.thread-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.thread-code {
    font-size: 0.82rem;
    font-family: var(--font-mono, monospace);
    color: #0f172a;
    font-weight: 800;
}

.thread-status-pill {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}
.thread-status-pill.vigente { background: #dcfce7; color: #166534; }
.thread-status-pill.revision { background: #fef3c7; color: #92400e; }
.thread-status-pill.cerrada { background: #f1f5f9; color: #64748b; }

.thread-desc {
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thread-meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0284c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat Main Screen */
.chat-main-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}

.chat-main-header {
    flex-shrink: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.chat-active-code {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-header-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.chat-messages-container-full {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    scroll-behavior: smooth;
}

.chat-bubble-wrap {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: fadeIn 0.15s ease;
}

.chat-bubble-wrap.buyer-msg {
    align-self: flex-end;
}

.chat-bubble-wrap.seller-msg {
    align-self: flex-start;
}

.chat-sender-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 3px;
    padding: 0 4px;
}
.chat-bubble-wrap.buyer-msg .chat-sender-label {
    text-align: right;
    color: #0284c7;
}

.chat-bubble-body {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-bubble-wrap.buyer-msg .chat-bubble-body {
    background: #0284c7;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-bubble-wrap.seller-msg .chat-bubble-body {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 2px;
}

.chat-bubble-time {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 3px;
    padding: 0 4px;
}
.chat-bubble-wrap.buyer-msg .chat-bubble-time {
    text-align: right;
}

.chat-attachment-pill {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}
.chat-bubble-wrap.buyer-msg .chat-attachment-pill {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.chat-quick-suggestions {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.quick-chip-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quick-chip-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.quick-chip-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.chat-composer-bar {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.btn-composer-attach {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.15s;
}
.btn-composer-attach:hover {
    color: #0284c7;
}

.chat-composer-bar input[type="text"] {
    flex: 1;
    padding: 9px 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.82rem;
    outline: none;
}
.chat-composer-bar input[type="text"]:focus {
    border-color: #0284c7;
    background: #ffffff;
}

.btn-composer-send {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}
.btn-composer-send:hover {
    background: #0369a1;
}

.sidebar-bottom-support {
    margin-top: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.74rem;
    color: #64748b;
}

.sidebar-bottom-support strong {
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}

/* Buyer Main Content Area */
.buyer-main-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Top 3 Info Highlights Strip */
.buyer-info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-strip-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.info-strip-icon {
    font-size: 1.3rem;
    color: #0284c7;
    margin-top: 2px;
}

.info-strip-body h5 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.info-strip-body p {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

/* Panel Header */
.panel-exec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-exec-title h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
}

.panel-exec-title p {
    font-size: 0.82rem;
    color: #64748b;
}

.panel-exec-actions {
    display: flex;
    gap: 10px;
}

.btn-new-quote-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-new-quote-primary:hover {
    background: var(--primary-blue-hover);
}

/* 4 Executive KPI Cards */
.buyer-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.kpi-text-box h4 {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.kpi-val {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.kpi-subtext {
    font-size: 0.72rem;
    font-weight: 600;
    color: #10b981;
    margin-top: 4px;
}

.kpi-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0284c7;
}

.kpi-icon-box.green { background: #dcfce7; color: #16a34a; }
.kpi-icon-box.amber { background: #fef3c7; color: #d97706; }
.kpi-icon-box.purple { background: #f3e8ff; color: #9333ea; }

/* Policy & Freight Banner */
.policy-freight-banner {
    background: #0f172a;
    color: white;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-md);
}

.policy-freight-text {
    max-width: 820px;
}

.policy-freight-text h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ea580c;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.policy-freight-text p {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.btn-tracking-live {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-tracking-live:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
}

/* Cotizaciones Recientes Table Card */
.table-card-container {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-card-header a {
    color: #0284c7;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.b2b-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.b2b-data-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.b2b-data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.b2b-data-table tr:hover td {
    background: #f8fafc;
}

.col-solcot-code {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #0284c7;
}

.col-total-pen {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
}

.pill-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pill-status.vigente {
    background: #dcfce7;
    color: #15803d;
}

.pill-status.revision {
    background: #fef3c7;
    color: #b45309;
}

.pill-status.cerrada {
    background: #e2e8f0;
    color: #475569;
}

.pill-status.aprobada {
    background: #dbeafe;
    color: #1d4ed8;
}

.table-action-btns {
    display: flex;
    gap: 6px;
}

.btn-action-a4 {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.btn-action-a4:hover {
    background: #e2e8f0;
    color: #0284c7;
}

.btn-action-chat {
    background: #0284c7;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.btn-action-chat:hover {
    background: #0369a1;
}

/* ==============================================================================
   MODALS: PROFORMA A4, TRADE MESSENGER, TRACKING EN VIVO, NUEVA COTIZACIÓN
   ============================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-header-bar {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header-bar h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-modal-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
}

.btn-modal-close:hover {
    color: #0f172a;
}

.modal-body-padding {
    padding: 24px;
}

/* Proforma A4 Sheet Styling */
/* ==========================================================================
   SOLCOT STUDIO A4 PROFORMA - EXACT REPLICA OF PRUEBA 1.pdf
   ========================================================================== */
.a4-viewport-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: #475569;
    padding: 24px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 82vh;
    box-sizing: border-box;
}

#modal-a4 .modal-window {
    max-width: 920px;
    width: 95%;
}

.a4-physical-page {
    width: 210mm !important;
    min-width: 210mm !important;
    max-width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    padding: 5mm !important; /* Margen oficial de 5 mm */
    background: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    box-sizing: border-box !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    color: #1e293b !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* Respeta estrictamente los 297mm oficiales */
}

.a4-physical-page > * {
    flex-shrink: 0 !important; /* ¡PROTECCIÓN TOTAL: Ningún elemento de la hoja A4 se aplasta jamás! */
}

.a4-monto-letras-bar {
    font-size: 6.8pt;
    font-weight: 800;
    color: #1e3a8a;
    background: #f1f5f9;
    border-left: 3px solid #2b6cb0;
    padding: 3px 6px;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.a4-total-bar-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2b6cb0;
    color: #ffffff;
    font-weight: 800;
    font-size: 8.5pt;
    padding: 5px 10px;
    margin-bottom: 4px;
    border-radius: 2px;
}

.a4-physical-page *:not(i):not([class*="fa-"]):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

.a4-physical-page i,
.a4-physical-page [class*="fa-"],
.a4-physical-page .fa-solid,
.a4-physical-page .fa-regular,
.a4-physical-page .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.a4-physical-page .fa-solid {
    font-weight: 900 !important;
}

.a4-top-hero-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1.5px solid #2b6cb0 !important;
    margin-bottom: 6px !important;
    width: 100% !important;
    height: auto !important; /* ALTO DINÁMICO */
    min-height: 70px !important;
    background: #ffffff !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.a4-hero-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 8px !important;
    width: 58% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.a4-hero-logo {
    height: 48px !important;
    max-width: 65px !important;
    width: auto !important;
    object-fit: contain !important;
    border: none !important;
    flex-shrink: 0 !important;
}

.a4-hero-company-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 1 !important;
}

.a4-hero-title {
    font-size: 8pt !important;
    font-weight: 900 !important;
    color: #1e3a8a !important;
    letter-spacing: 0.2px !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.15 !important;
}

.a4-hero-lines {
    font-size: 5.2pt !important;
    color: #334155 !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

.a4-hero-right {
    width: 42% !important;
    min-height: 70px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.a4-hero-banner-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 80px !important;
    object-fit: contain !important; /* Adaptado al 100% sin recortar fotos */
    object-position: center !important;
    border: none !important;
}

/* Encabezado Completo Adaptativo: Ancho y Alto 100% DINÁMICOS según la hoja A4 y la proporción de la imagen */
.a4-top-hero-banner.has-full-banner {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; /* Alto 100% DINÁMICO */
    min-height: 0 !important;
    max-height: none !important; /* Sin límite artificial */
    background: #ffffff !important;
    border: 1.5px solid #2b6cb0 !important;
    margin-bottom: 6px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important; /* NUNCA APLASTAR */
}

.a4-full-header-img {
    width: 100% !important; /* Ancho dinámico al 100% del A4 */
    max-width: 100% !important;
    height: auto !important; /* Alto dinámico según la proporción natural */
    max-height: none !important; /* 100% visible sin ningún recorte */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    object-fit: contain !important;
}

.a4-header-grid-emipisa {
    display: grid;
    grid-template-columns: 1.4fr 1.8fr 1.8fr;
    border: 1.5px solid #2b6cb0;
    margin-bottom: 6px;
    font-size: 8pt;
    box-sizing: border-box;
}

.a4-header-cell {
    padding: 3px 6px;
    border-right: 1.5px solid #2b6cb0;
    box-sizing: border-box;
}
.a4-header-cell:last-child {
    border-right: none;
}

.a4-header-cell.cell-logistica {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5pt;
    font-weight: 900;
    color: #1e3a8a;
    letter-spacing: 0.5px;
    text-align: center;
}

.a4-header-cell.cell-company {
    font-size: 6.8pt;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left !important;
    word-break: normal;
}

.a4-meta-control-table {
    width: 100%;
    border-collapse: collapse;
}
.a4-meta-control-table td {
    padding: 1.5px 5px;
    border: 1px solid #2b6cb0;
    font-size: 7.2pt;
}
.a4-meta-control-table td.label-td {
    font-weight: 800;
    background: #f8fafc;
    color: #0f172a;
    width: 42%;
}
.a4-meta-control-table td.val-td {
    font-weight: 800;
    text-align: center;
    color: #1d4ed8;
}

.a4-client-info-block {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #2b6cb0;
    margin-bottom: 6px;
    font-size: 8pt;
    box-sizing: border-box;
}

.a4-client-row {
    display: flex;
    border-bottom: 1px solid #2b6cb0;
    width: 100%;
    box-sizing: border-box;
}
.a4-client-row:last-child {
    border-bottom: none;
}

.a4-client-split-row {
    display: flex;
    border-bottom: 1px solid #2b6cb0;
    width: 100%;
    box-sizing: border-box;
}
.a4-client-split-row:last-child {
    border-bottom: none;
}

.a4-client-half {
    display: flex;
    width: 50%;
    box-sizing: border-box;
}
.a4-client-half:first-child {
    border-right: 1.5px solid #2b6cb0;
}

.a4-client-lbl {
    width: 88px;
    font-weight: 800;
    background: #f8fafc;
    padding: 2.5px 6px;
    border-right: 1px solid #2b6cb0;
    color: #0f172a;
    box-sizing: border-box;
    font-size: 7.5pt;
}
.a4-client-val {
    flex: 1;
    padding: 2.5px 6px;
    color: #1d4ed8;
    font-weight: 800;
    box-sizing: border-box;
    text-align: left;
    font-size: 7.5pt;
}

.a4-oe-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin-bottom: 6px !important;
    font-size: 8pt;
    border: 1.5px solid #2b6cb0 !important;
    box-sizing: border-box !important;
}

.a4-oe-table th {
    background: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-align: center !important;
    padding: 3.5px 2px !important;
    border: 1px solid #2b6cb0 !important;
    font-size: 7.5pt !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.a4-oe-table td {
    border: 1px solid #2b6cb0 !important;
    padding: 2px 3px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-break: break-word;
}

.a4-oe-header-row td {
    background: #ffffff;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
}

.a4-item-desc-cell {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 1px;
}

.a4-item-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.a4-item-title-box {
    flex: 1;
}

.a4-item-title-box strong {
    font-size: 7.2pt;
    text-align: left;
}

/* Imágenes agregadas de manera compacta e integrada */
.a4-item-thumbs-box {
    display: flex;
    align-items: center;
    gap: 3px;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.a4-item-thumbs-box img {
    max-width: 22px;
    max-height: 22px;
    width: auto;
    height: auto;
    object-fit: contain;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 2px !important;
    display: block;
}

.a4-badge-work {
    display: inline-block;
    border: 1px solid #ea580c;
    color: #c2410c;
    background: #fff7ed;
    font-size: 5.5pt;
    font-weight: 800;
    padding: 0.5px 4px;
    border-radius: 2px;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.a4-badge-work.heavy {
    border-color: #ea580c;
    color: #c2410c;
    background: #fff7ed;
}

.a4-badge-work.light {
    border-color: #16a34a;
    color: #15803d;
    background: #f0fdf4;
}

.a4-specs-compact {
    font-size: 6.2pt;
    color: #475569;
    line-height: 1.2;
    text-align: left;
    margin-top: 1px;
}

.a4-specs-box-modern {
    margin-top: 1px;
    text-align: left;
}

.a4-specs-title-link {
    font-size: 6.5pt;
    font-weight: 800;
    color: #0f172a;
    display: block;
}

.a4-specs-dotted-line {
    border-bottom: 1px dashed #64748b;
    width: 60px;
    margin: 1px 0;
}

.a4-specs-lines {
    font-size: 6.2pt;
    color: #334155;
    line-height: 1.2;
    text-align: left;
}

.a4-oe-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 800;
    font-size: 9.5pt;
    padding: 6px 12px;
    margin-bottom: 8px;
    border-radius: 2px;
}

.a4-banking-box {
    display: grid;
    grid-template-columns: 2fr 1fr;
    border: 1.5px solid #2b6cb0;
    margin-bottom: 8px;
    font-size: 7.5pt;
}
.a4-banking-left {
    padding: 6px 8px;
    border-right: 1.5px solid #2b6cb0;
    text-align: justify;
    text-justify: inter-word;
}
.a4-banking-right {
    padding: 6px 8px;
    background: #f8fafc;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.a4-terms-box {
    border: 1.5px solid #2b6cb0;
    padding: 6px 8px;
    margin-bottom: 8px;
    font-size: 7.5pt;
    line-height: 1.35;
    text-align: justify;
    text-justify: inter-word;
}

.a4-commitments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1.5px solid #2b6cb0;
    font-size: 7.5pt;
}
.a4-commitments-col {
    padding: 6px 8px;
    border-right: 1.5px solid #2b6cb0;
    text-align: justify;
    text-justify: inter-word;
}
.a4-commitments-col p {
    text-align: justify;
    text-justify: inter-word;
}
.a4-commitments-col:last-child {
    border-right: none;
}

/* =========================================================================
   CONDICIONES COMERCIALES & LOGÍSTICAS (TÉRMINOS A4 - UI COMPONENT IMAGEN 2)
   ========================================================================= */
.a4-terms-editor-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.a4-terms-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.a4-terms-editor-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.a4-terms-editor-info {
    font-size: 0.76rem;
    color: #0284c7;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.a4-terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 900px) {
    .a4-terms-grid {
        grid-template-columns: 1fr;
    }
}

.a4-term-item {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.a4-term-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.1);
}

.a4-term-item.full-width {
    grid-column: 1 / -1;
}

.a4-term-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.a4-term-label {
    font-size: 0.77rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.a4-term-label.text-danger {
    color: #dc2626;
}

.a4-term-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-term-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1.5px solid #3b82f6;
    background: #ffffff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-term-icon:hover {
    background: #eff6ff;
    border-color: #1d4ed8;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-term-icon.danger {
    border-color: #ef4444;
    color: #dc2626;
}

.btn-term-icon.danger:hover {
    background: #fef2f2;
}

.btn-term-dropdown {
    height: 24px;
    border-radius: 4px;
    border: 1.5px solid #3b82f6;
    background: #ffffff;
    color: #2563eb;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.71rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.btn-term-dropdown:hover {
    background: #eff6ff;
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.btn-term-dropdown.danger {
    border-color: #ef4444;
    color: #dc2626;
}

.a4-term-quick-select {
    font-size: 0.71rem;
    font-weight: 700;
    color: #1e40af;
    background: #f8fafc;
    border: 1.5px solid #93c5fd;
    border-radius: 5px;
    padding: 2.5px 6px;
    cursor: pointer;
    outline: none;
    max-width: 210px;
    transition: all 0.2s ease;
}

.a4-term-quick-select:hover,
.a4-term-quick-select:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.a4-term-quick-select.danger {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fef2f2;
}

.a4-term-quick-select.danger:hover,
.a4-term-quick-select.danger:focus {
    border-color: #dc2626;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.a4-term-input {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #0f172a;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #ffffff;
}

.a4-term-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.a4-term-input.text-danger {
    color: #dc2626;
    font-weight: 700;
}

.term-options-dropdown-menu {
    position: absolute;
    top: 38px;
    right: 12px;
    background: #ffffff;
    border: 1.5px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    width: 320px;
    max-height: 230px;
    overflow-y: auto;
    padding: 6px 0;
}

.term-option-row {
    padding: 7px 12px;
    font-size: 0.75rem;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.term-option-row:last-child {
    border-bottom: none;
}

.term-option-row:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.term-option-row.danger {
    color: #dc2626;
    font-weight: 700;
}

/* Print styling A4 Exact Geometry - 0 Blank Pages & 100% Visual Fidelity */
@page {
    size: A4 portrait;
    margin: 0mm !important;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    body * {
        visibility: hidden !important;
    }

    #modal-a4,
    #modal-a4 .modal-window,
    #modal-a4 .modal-body-padding,
    #a4-content-area,
    .a4-viewport-container,
    .a4-physical-page,
    .a4-physical-page * {
        visibility: visible !important;
    }

    #modal-a4 {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .modal-window,
    .modal-body-padding,
    #a4-content-area,
    .a4-viewport-container {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        gap: 0 !important;
    }

    .modal-header-bar {
        display: none !important;
    }

    .a4-physical-page {
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
        width: 210mm !important;
        max-width: 210mm !important;
        min-width: 210mm !important;
        height: 296.8mm !important;
        max-height: 296.8mm !important;
        min-height: 296.8mm !important;
        padding: 5mm !important; /* Mismo padding exacto que la vista previa en pantalla */
        margin: 0 auto !important;
        overflow: hidden !important; /* Previene hojas en blanco */
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        page-break-after: always !important;
        break-after: page !important;
        background: #ffffff !important;
    }

    .a4-physical-page:last-child,
    .a4-physical-page:last-of-type {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }
}

/* Trade Messenger Chat Window */
.chat-window-modal {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-context-badge {
    background: #f0f9ff;
    border-bottom: 1px solid #e0f2fe;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.chat-context-badge strong {
    color: #0284c7;
}

.chat-messages-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f8fafc;
}

.chat-bubble-wrap {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.chat-bubble-wrap.buyer-msg {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-bubble-wrap.seller-msg {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-bubble-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 3px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
}

.buyer-msg .chat-bubble {
    background: #0284c7;
    color: white;
    border-bottom-right-radius: 2px;
}

.seller-msg .chat-bubble {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chat-bubble-time {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.chat-attachment-pill {
    margin-top: 8px;
    background: rgba(0,0,0,0.05);
    border: 1px dashed rgba(0,0,0,0.15);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.chat-input-bar {
    padding: 14px 20px;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-full);
    outline: none;
    font-size: 0.85rem;
}

.btn-chat-send {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-chat-send:hover {
    background: var(--primary-blue-hover);
}

/* Order Live Tracking Modal */
.tracking-timeline {
    position: relative;
    padding-left: 28px;
    margin: 20px 0;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-step-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-step-dot {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #ffffff;
}

.timeline-step-item.done .timeline-step-dot {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.timeline-step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.timeline-step-time {
    font-size: 0.72rem;
    color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .catalog-main-layout {
        grid-template-columns: 1fr;
    }
    .buyer-layout-grid {
        grid-template-columns: 1fr;
    }
    .buyer-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .buyer-info-strip {
        grid-template-columns: 1fr;
    }
}

/* ==============================================================================
   VIEW 4: STUDIO DE BASE DE DATOS EN VIVO (LIVE GRID EDITOR - MOCKUP 4)
   ============================================================================== */
#view-studio,
#view-sales,
#view-ti-backup,
#view-logistics,
#view-production,
#view-purchasing {
    background: #f8fafc;
    min-height: calc(100vh - 42px);
    color: #0f172a;
}

/* Studio ERP Layout: Left Sidebar + Main Studio Canvas (Full-Width Responsive) */
.studio-layout-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 42px);
    background: #f8fafc;
    width: 100%;
    max-width: 100vw;
    transition: grid-template-columns 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.studio-layout-grid.sidebar-collapsed {
    grid-template-columns: 54px 1fr;
}

/* Left Studio, Sales, Logistics, Production, Purchasing & TI Sidebars (Fixed / Sticky on scroll) */
.studio-sidebar,
.sales-sidebar,
.logistics-sidebar,
.production-sidebar,
.purchasing-sidebar,
.ti-sidebar {
    background: #091322;
    color: #94a3b8;
    padding: 14px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.78rem;
    position: sticky;
    top: 42px;
    height: calc(100vh - 42px);
    max-height: calc(100vh - 42px);
    align-self: start;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 950;
    box-sizing: border-box;
    transition: padding 0.2s ease, width 0.22s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.studio-sidebar > *,
.sales-sidebar > *,
.logistics-sidebar > *,
.production-sidebar > *,
.purchasing-sidebar > *,
.ti-sidebar > * {
    flex-shrink: 0;
}

.studio-sidebar::-webkit-scrollbar,
.sales-sidebar::-webkit-scrollbar,
.logistics-sidebar::-webkit-scrollbar,
.production-sidebar::-webkit-scrollbar,
.purchasing-sidebar::-webkit-scrollbar,
.ti-sidebar::-webkit-scrollbar {
    width: 4px;
}

.studio-sidebar::-webkit-scrollbar-track,
.sales-sidebar::-webkit-scrollbar-track,
.logistics-sidebar::-webkit-scrollbar-track,
.production-sidebar::-webkit-scrollbar-track,
.purchasing-sidebar::-webkit-scrollbar-track,
.ti-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.studio-sidebar::-webkit-scrollbar-thumb,
.sales-sidebar::-webkit-scrollbar-thumb,
.logistics-sidebar::-webkit-scrollbar-thumb,
.production-sidebar::-webkit-scrollbar-thumb,
.purchasing-sidebar::-webkit-scrollbar-thumb,
.ti-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

.studio-sidebar::-webkit-scrollbar-thumb:hover,
.sales-sidebar::-webkit-scrollbar-thumb:hover,
.logistics-sidebar::-webkit-scrollbar-thumb:hover,
.production-sidebar::-webkit-scrollbar-thumb:hover,
.purchasing-sidebar::-webkit-scrollbar-thumb:hover,
.ti-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.btn-sidebar-collapse {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #38bdf8;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.btn-sidebar-collapse:hover {
    background: #0284c7;
    color: #ffffff;
}

/* Collapsed Sidebar Rules for Maximum 100% Screen Grid Space */
.studio-layout-grid.sidebar-collapsed .studio-sidebar,
.studio-layout-grid.sidebar-collapsed .sales-sidebar,
.studio-layout-grid.sidebar-collapsed .logistics-sidebar,
.studio-layout-grid.sidebar-collapsed .production-sidebar,
.studio-layout-grid.sidebar-collapsed .purchasing-sidebar,
.studio-layout-grid.sidebar-collapsed .ti-sidebar {
    padding: 12px 6px;
    align-items: center;
}

.studio-layout-grid.sidebar-collapsed .studio-user-badge div,
.studio-layout-grid.sidebar-collapsed .btn-sidebar-tower span,
.studio-layout-grid.sidebar-collapsed .studio-menu-title,
.studio-layout-grid.sidebar-collapsed .studio-menu-item span,
.studio-layout-grid.sidebar-collapsed .studio-sidebar > div:last-child,
.studio-layout-grid.sidebar-collapsed .sales-sidebar > div:last-child,
.studio-layout-grid.sidebar-collapsed .logistics-sidebar > div:last-child,
.studio-layout-grid.sidebar-collapsed .production-sidebar > div:last-child,
.studio-layout-grid.sidebar-collapsed .purchasing-sidebar > div:last-child,
.studio-layout-grid.sidebar-collapsed .ti-sidebar > div:last-child {
    display: none !important;
}

.studio-layout-grid.sidebar-collapsed .studio-user-badge {
    padding: 6px;
    justify-content: center;
    width: 100%;
}

.studio-layout-grid.sidebar-collapsed .btn-sidebar-collapse {
    margin: 0;
}

.studio-layout-grid.sidebar-collapsed .btn-sidebar-tower {
    padding: 7px;
    justify-content: center;
    width: 100%;
}

.studio-layout-grid.sidebar-collapsed .studio-menu-item {
    justify-content: center;
    padding: 9px;
    font-size: 1rem;
    width: 100%;
}

.studio-user-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-user-badge i {
    font-size: 1.3rem;
    color: #38bdf8;
}

.studio-user-badge strong {
    color: #ffffff;
    font-size: 0.82rem;
    display: block;
}

.btn-sidebar-tower {
    background: #0284c7;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-sidebar-tower:hover {
    background: #0369a1;
}

.studio-menu-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.studio-menu-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.studio-menu-item {
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.76rem;
}

.studio-menu-item > span:first-child,
.studio-menu-item > div:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.studio-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.studio-menu-item:not(:has(.studio-item-badge)) {
    justify-content: flex-start;
}

.studio-menu-item:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

.studio-menu-item.active {
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
}

.studio-item-badge {
    background: rgba(255,255,255,0.12);
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

.studio-item-badge.sync {
    background: #10b981;
    color: white;
    font-weight: 800;
}

/* Studio Main Workspace (Full-Width Ultra-Ancho 100%) */
.studio-workspace {
    background: #f8fafc;
    padding: 10px 14px; /* Optimizado: reduce padding de 24px a 10px para dar 100% holgura visual */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

/* Studio Header Bar */
.studio-top-header {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 14px;
}

.studio-header-titles h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-header-titles p {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

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

.btn-studio-add-row {
    background: #0284c7;
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-studio-add-row:hover {
    background: #0369a1;
}

.btn-studio-save-changes {
    background: #10b981;
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    transition: var(--transition);
}

.btn-studio-save-changes:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-studio-publish-web {
    background: #0284c7;
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-studio-publish-web:hover {
    background: #0369a1;
}

/* Plantillas & Catálogo Toolbars */
.studio-tools-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-size: 0.78rem;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-group-label {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #64748b;
    margin-right: 4px;
}

.btn-tool-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-tool-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-tool-pill.emerald {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.btn-tool-pill.blue {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.btn-tool-pill.bot-active {
    background: #ecfdf5;
    border-color: #34d399;
    color: #065f46;
    font-weight: 700;
}
.btn-tool-pill.bot-active i {
    color: #10b981;
    animation: botPulse 2s infinite;
}
@keyframes botPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

.btn-tool-pill.bot-paused {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
    font-weight: 700;
}
.btn-tool-pill.bot-paused i {
    color: #f59e0b;
}

.btn-tool-pill.indigo {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}
.btn-tool-pill.indigo:hover {
    background: #e0e7ff;
    color: #3730a3;
}

.btn-tool-pill.purple {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
    font-weight: 600;
}
.btn-tool-pill.purple:hover {
    background: #ede9fe;
    color: #5b21b6;
}
.btn-tool-pill.purple i {
    color: #8b5cf6;
}

.btn-tool-pill.amber {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
    font-weight: 600;
}
.btn-tool-pill.amber:hover {
    background: #fef3c7;
    color: #92400e;
}
.btn-tool-pill.amber i {
    color: #f59e0b;
}

/* View & Hierarchy Level Selector Strip */
.studio-hierarchy-strip {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hierarchy-view-buttons {
    display: flex;
    gap: 6px;
}

.btn-view-toggle {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-view-toggle.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-add-level {
    background: #0284c7;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-add-level:hover {
    background: #0369a1;
}

.hierarchy-meta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-currency-select {
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 600;
    background: #ffffff;
    outline: none;
}

/* Search and Filters Bar */
.studio-filters-strip {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.studio-filter-select {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    outline: none;
}

.studio-search-box {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.studio-search-box input {
    width: 100%;
    padding: 7px 14px 7px 32px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    outline: none;
}

.studio-search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* ==============================================================================
   NIVEL 1: ACORDEÓN DE CATEGORÍA
   ============================================================================== */
.level-1-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #cbd5e1;
}

.level-1-header {
    background: #0b1a30;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    cursor: pointer;
}

.level-1-left-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-1-code-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.8rem;
    color: #38bdf8;
}

.level-1-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.level-1-counts-pill {
    background: rgba(255,255,255,0.08);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
}

.level-1-status-pill {
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.level-1-right-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
}

.stat-cost-text {
    color: #94a3b8;
}

.stat-cost-text strong {
    color: #f1f5f9;
    font-family: var(--font-mono);
}

.stat-sale-text {
    color: #38bdf8;
}

.stat-sale-text strong {
    color: #ffffff;
    font-family: var(--font-mono);
}

/* ==============================================================================
   NIVEL 2: TARJETA DE SUBFAMILIA / ESPECIFICACIÓN TÉCNICA
   ============================================================================== */
.level-2-subfamily-container {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.level-2-header-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.level-2-main-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 300px;
}

.drag-handle {
    color: #94a3b8;
    cursor: grab;
    font-size: 1rem;
}

.subfamily-prefix-badge {
    background: #0284c7;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
}

.subfamily-title-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.level-2-meta-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    margin-top: 4px;
}

.pill-meta-gray {
    background: #e2e8f0;
    color: #334155;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}

.pill-meta-brand {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}

.level-2-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-subfamily-gallery {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0284c7;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-subfamily-gallery:hover {
    background: #f0f9ff;
    border-color: #0284c7;
}

.btn-bulk-utility {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #ea580c;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.btn-bulk-utility:hover {
    background: #fff7ed;
    border-color: #ea580c;
}

/* ==============================================================================
   NIVEL 3: LIVE GRID TABLE (TABLA DE EDICIÓN EN VIVO) - ULTRA-WIDE SMART COLUMN SIZING
   ============================================================================== */
.live-grid-table-wrap {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.live-grid-table {
    width: 100%;
    min-width: 1850px; /* Ancho profesional que garantiza que todas las columnas de ERP respiren sin superposiciones */
    border-collapse: collapse;
    font-size: 0.76rem;
    table-layout: fixed;
}

.live-grid-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 800;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 8px 8px;
    border-bottom: 2px solid #cbd5e1;
    border-right: 1px solid #e2e8f0;
    text-align: left;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-grid-table td {
    padding: 4px 6px; /* Compact ERP density py-1 */
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    vertical-align: middle;
    white-space: normal;
}

.live-grid-table tr:hover td {
    background: #f8fafc;
}

/* SMART COLUMN WIDTHS (Dimensiones exactas sin superposiciones ni colisiones) */
.col-sku {
    width: 135px;
    min-width: 135px;
}

.col-title {
    width: 460px;
    min-width: 400px;
    white-space: normal !important;
}

.col-measure {
    width: 145px;
    min-width: 145px;
}

.col-cost {
    width: 105px;
    min-width: 105px;
}

.col-util {
    width: 80px;
    min-width: 80px;
}

.col-cash {
    width: 130px;
    min-width: 130px;
}

.col-wholesale {
    width: 140px;
    min-width: 140px;
}

.col-min-qty {
    width: 80px;
    min-width: 80px;
}

.col-profit {
    width: 155px;
    min-width: 155px;
}

.col-stock {
    width: 80px;
    min-width: 80px;
}

.col-status {
    width: 105px;
    min-width: 105px;
}

.col-actions {
    width: 155px;
    min-width: 155px;
}

/* Inputs celda por celda */
.grid-cell-sku {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
}

.sku-badge-pill {
    background: #0f172a;
    color: #38bdf8;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.grid-input-text {
    width: 100%;
    height: 26px;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.76rem;
    background: transparent;
    transition: var(--transition);
}

.grid-input-text:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.grid-input-text:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
    outline: none;
}

.grid-title-cell-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.grid-input-title {
    width: 100%;
    min-height: 40px;
    height: auto;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    background: transparent;
    resize: none;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
    transition: var(--transition);
}

.grid-input-title:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.grid-input-title:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
    outline: none;
}

.grid-select-size {
    padding: 3px 5px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #ffffff;
    color: #0284c7;
    outline: none;
}

.grid-select-measure {
    width: 100%;
    min-width: 140px;
    max-width: 155px;
    height: 26px;
    padding: 2px 4px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #0284c7;
    background-color: #f8fafc;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.grid-select-measure:focus, .grid-select-measure:hover {
    border-color: #0284c7;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.grid-select-measure optgroup {
    font-weight: 700;
    color: #0284c7;
    font-style: italic;
    background: #f0f9ff;
    padding: 4px 0;
}

.grid-select-measure option {
    font-weight: 500;
    color: #0f172a;
    background: #ffffff;
    padding: 2px 6px;
}

.grid-input-cost {
    width: 92px;
    height: 26px;
    padding: 2px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.76rem;
    font-family: var(--font-mono);
    text-align: right;
    font-weight: 600;
    background: #ffffff;
    outline: none;
}

.grid-input-cost:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.grid-input-utility {
    width: 60px;
    height: 26px;
    padding: 2px 4px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.76rem;
    font-family: var(--font-mono);
    text-align: center;
    font-weight: 700;
    background: #ffffff;
    outline: none;
}

.grid-cell-price-cash {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
    color: #ea580c;
    background: #fffbeb;
    padding: 3px 6px;
    border-radius: 4px;
    text-align: right;
    display: inline-block;
    min-width: 95px;
}

.grid-cell-price-wholesale {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: #059669;
    text-align: right;
    display: inline-block;
    min-width: 95px;
}

.grid-cell-profit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.grid-input-stock {
    width: 58px;
    height: 26px;
    padding: 2px 4px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.76rem;
    font-family: var(--font-mono);
    text-align: center;
    font-weight: 700;
    outline: none;
}

/* Indicador visual de auto-sync */
@keyframes cellSavedGlow {
    0% { background-color: #bbf7d0; box-shadow: 0 0 0 2px #22c55e; }
    100% { background-color: transparent; box-shadow: none; }
}

@keyframes cellErrorShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.cell-saved-flash {
    animation: cellSavedGlow 1.2s ease !important;
}

.cell-error-shake {
    animation: cellErrorShake 0.4s ease !important;
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3) !important;
}

/* Nivel 1: Inputs interactivos directos */
.grid-input-cat-code {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #38bdf8;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 3px 6px;
    width: 52px;
    text-align: center;
    transition: var(--transition);
}

.grid-input-cat-code:focus {
    background: #0f172a;
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.grid-input-cat-name {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    min-width: 220px;
    transition: var(--transition);
}

.grid-input-cat-name:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.grid-input-cat-name:focus {
    background: #0f172a;
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

/* Nivel 2: Inputs interactivos directos de Subfamilia */
.grid-input-sub-prefix {
    background: #0284c7;
    color: #ffffff;
    border: 1px solid #0369a1;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 8px;
    width: 140px;
    text-transform: uppercase;
    transition: var(--transition);
}

.grid-input-sub-prefix:focus {
    background: #0369a1;
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4);
}

.grid-input-sub-name {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    padding: 5px 10px;
    width: 100%;
    min-width: 320px;
    transition: var(--transition);
}

.grid-input-sub-name:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.grid-select-sub-brand {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    outline: none;
    cursor: pointer;
}

/* Nivel 3: SKU Cell Inputs */
.sku-prefix-part {
    background: #0f172a;
    color: #38bdf8;
    padding: 3px 6px;
    border-radius: 4px 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-mono);
    border: 1px solid #1e293b;
    border-right: none;
}

.grid-input-sku-suffix {
    width: 36px;
    padding: 3px 4px;
    border: 1px solid #cbd5e1;
    border-radius: 0 4px 4px 0;
    font-size: 0.74rem;
    font-family: var(--font-mono);
    font-weight: 800;
    color: #0284c7;
    text-align: center;
    background: #ffffff;
    outline: none;
    transition: var(--transition);
}

.grid-input-sku-suffix:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
    background: #f0f9ff;
}

.grid-input-measure {
    width: 105px;
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    background: #ffffff;
    outline: none;
    transition: var(--transition);
}

.grid-input-measure:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* Botones Rápidos debajo de cada Subfamilia */
.subfamily-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    background: #f8fafc;
    border-top: 1px dashed #cbd5e1;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.btn-subfamily-quick-row {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
    transition: var(--transition);
}

.btn-subfamily-quick-row:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

.btn-subfamily-modal-row {
    background: #ffffff;
    color: #0284c7;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-subfamily-modal-row:hover {
    background: #f0f9ff;
    border-color: #0284c7;
}

/* Floating Toast Notification */
.sync-floating-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: fadeInToast 0.3s ease;
    transition: opacity 0.3s ease;
}

.sync-floating-toast.success {
    background: #0f172a;
    color: #4ade80;
    border: 1px solid #22c55e;
}

.sync-floating-toast.error {
    background: #7f1d1d;
    color: #fecaca;
    border: 1px solid #ef4444;
}

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

/* Acciones en fila */
.grid-row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-grid-act {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: var(--transition);
}

.btn-grid-act:hover {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}

.btn-grid-act.delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* ==============================================================================
   VISTA 5: SOPORTE TI, SERVIDORES & BACKUPS MODULARES DINÁMICOS (MOCKUP 1)
   ============================================================================== */
.ti-layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 41px);
    background: #f8fafc;
}

.ti-sidebar {
    background: #091322;
    color: #e2e8f0;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 42px;
    height: calc(100vh - 42px);
    max-height: calc(100vh - 42px);
    align-self: start;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 950;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.ti-sidebar > * {
    flex-shrink: 0;
}

.ti-sidebar::-webkit-scrollbar {
    width: 4px;
}

.ti-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.ti-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

.ti-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.ti-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ti-user-badge i.crown-icon {
    font-size: 1.2rem;
    color: #f59e0b;
}

.ti-sidebar-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #38bdf8;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.ti-sidebar-back-btn:hover {
    background: #0284c7;
    color: white;
}

.ti-menu-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ti-menu-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 6px 8px 4px 8px;
    text-transform: uppercase;
}

.ti-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.ti-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.ti-menu-item.active {
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
}

.ti-item-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.ti-workspace {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* Big Banner: NÚCLEO BDD RELACIONAL EMIPISA (Executive Corporate Light Card) */
.ti-core-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 24px;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.ti-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ti-banner-icon {
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0284c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.ti-banner-title-box h2 {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.ti-engine-pill {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ti-banner-meta-line {
    display: flex;
    gap: 16px;
    font-size: 0.76rem;
    color: #64748b;
}

.ti-banner-meta-line span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ti-banner-meta-line span i {
    color: #0284c7;
}

.ti-banner-meta-line strong {
    color: #0f172a;
}

.ti-banner-capacity-box {
    text-align: right;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 8px;
}

.ti-banner-capacity-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.ti-banner-capacity-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    color: #0284c7;
}

/* Global Actions Toolbar */
.ti-global-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
}

.ti-global-actions-left {
    display: flex;
    gap: 10px;
}

.btn-ti-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-ti-action.global-zip {
    background: #0284c7;
    color: white;
}

.btn-ti-action.global-zip:hover {
    background: #0369a1;
}

.btn-ti-action.cleanup {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-ti-action.cleanup:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-ti-action.sync-all {
    background: #10b981;
    color: white;
}

.btn-ti-action.sync-all:hover {
    background: #059669;
}

/* 8 Module Cards Grid (4 Columns x 2 Rows) */
.ti-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1400px) {
    .ti-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ti-module-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.ti-module-card:hover {
    box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.ti-card-header {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ti-card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ti-card-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: white;
}

.ti-card-titles h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.ti-card-titles span {
    font-size: 0.68rem;
    color: #64748b;
}

.ti-card-reg-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0284c7;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    white-space: nowrap;
}

.ti-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.ti-card-block-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ti-table-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ti-table-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: #334155;
}

.ti-table-pill strong {
    color: #0284c7;
}

.ti-storage-paths {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: #475569;
}

.ti-storage-path-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ti-storage-path-item i {
    font-size: 0.72rem;
    color: #f59e0b;
}

.ti-concatenation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ti-concat-tag {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.64rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ti-card-footer {
    padding: 8px 14px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.btn-card-export {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0284c7;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.btn-card-export:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-card-sync {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-sync:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Modal Form Styles for Product Creator & Dimensions */
.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.form-group-ti {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.form-group-ti label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}

.form-group-ti input, .form-group-ti select, .form-group-ti textarea {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.8rem;
    outline: none;
    font-family: inherit;
}

.form-group-ti input:focus, .form-group-ti select:focus, .form-group-ti textarea:focus {
    border-color: #0284c7;
}

.form-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ==============================================================================
   SUB-MÓDULOS DE ADMINISTRACIÓN DE PRODUCTOS & PRECIOS (LIVE GRID BASED)
   ============================================================================== */
.studio-subview {
    animation: fadeIn 0.25s ease-in-out;
}

/* 1. Catálogo Maestro & Precios (Toolbar de Acciones Rápidas) */
.bulk-adjust-toolbar {
    background: #0f172a;
    color: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bulk-adjust-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

.bulk-adjust-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.bulk-adjust-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #1e293b;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #334155;
}

.bulk-adjust-input-group input {
    background: transparent;
    border: none !important;
    color: #38bdf8;
    font-size: 0.95rem;
    font-weight: 800;
    outline: none;
}

/* Master Catalog Filters & Metrics Strip */
.master-catalog-filter-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.master-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.master-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

.master-search-box input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.82rem;
    outline: none;
    transition: var(--transition);
}

.master-search-box input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.master-kpis {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.catalog-metric-pill {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.catalog-metric-pill.emerald {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.catalog-metric-pill.gold {
    background: #fefce8;
    border-color: #fef08a;
    color: #854d0e;
}

/* Master Catalog Table Container */
.master-catalog-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    max-height: calc(100vh - 280px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.master-catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.master-catalog-table thead {
    background: #0f172a;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.master-catalog-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.master-catalog-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    vertical-align: middle;
}

.master-catalog-table tr:hover {
    background: #f8fafc;
}

/* 2. Editor / Creador de Producto (3 Niveles) */
.creator-form-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.creator-card-level {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.creator-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.creator-card-header h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.level-indicator-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.level-indicator-badge.n1 {
    background: #0284c7;
    color: white;
}

.level-indicator-badge.n2 {
    background: #f59e0b;
    color: white;
}

.level-indicator-badge.n3 {
    background: #10b981;
    color: white;
}

.creator-card-body {
    padding: 16px 20px;
}

.preset-chips-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.preset-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.preset-chip:hover {
    background: #e2e8f0;
    border-color: #0284c7;
    color: #0284c7;
}

.preset-chip.red:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.matrix-preview-container {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.matrix-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.74rem;
}

.matrix-preview-table th {
    background: #1e293b;
    color: white;
    padding: 6px 10px;
    text-align: left;
    font-size: 0.68rem;
    position: sticky;
    top: 0;
}

.matrix-preview-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #e2e8f0;
}

/* 3. Carga Masiva Excel & Plantillas Inteligentes */
.import-templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.import-template-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.template-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.template-card-icon.emerald {
    background: #ecfdf5;
    color: #10b981;
}

.template-card-icon.blue {
    background: #f0f9ff;
    color: #0284c7;
}

.template-card-icon.gold {
    background: #fefce8;
    color: #eab308;
}

.template-card-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.template-card-info p {
    margin: 0 0 10px 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}

.import-workspace-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.import-workspace-card h3 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.import-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition);
}

.import-textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.import-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.validation-summary-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 0.78rem;
}

/* ==============================================================================
   PORTAL B2B DEL COMPRADOR (WORKBENCH INDUSTRIAL) - SUBVIEWS & SMART FREIGHT WIDGET
   ============================================================================== */

.buyer-subview {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

.buyer-subview.active {
    display: block;
}

/* Single-Screen Full View for Trade Messenger (Fixed & Sticky - No Hidden Inputs) */
#buyer-subview-chat.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    flex: 1 1 0;
    overflow: hidden;
}

.buyer-main-content.chat-mode-active,
.buyer-layout-grid:has(#buyer-subview-chat.active) .buyer-main-content {
    padding: 10px 18px !important;
    gap: 0 !important;
    height: calc(100vh - 65px) !important;
    max-height: calc(100vh - 65px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

#buyer-subview-chat .panel-exec-header {
    margin-bottom: 6px !important;
    flex-shrink: 0;
}
#buyer-subview-chat .panel-exec-header h2 {
    font-size: 1.05rem;
    margin: 0;
}
#buyer-subview-chat .panel-exec-header p {
    font-size: 0.72rem;
    margin: 2px 0 0 0;
}

#buyer-subview-chat .buyer-advisor-card {
    padding: 7px 14px !important;
    margin-bottom: 8px !important;
    flex-shrink: 0;
    border-radius: 8px;
}
#buyer-subview-chat .advisor-avatar-circle {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
}
#buyer-subview-chat .advisor-name {
    font-size: 0.86rem !important;
    margin: 0 0 1px 0 !important;
}
#buyer-subview-chat .advisor-role {
    font-size: 0.68rem !important;
    margin-bottom: 2px !important;
}
#buyer-subview-chat .advisor-contact-chips {
    gap: 6px !important;
}
#buyer-subview-chat .advisor-contact-chips .adv-chip {
    padding: 2px 7px !important;
    font-size: 0.66rem !important;
}
#buyer-subview-chat .btn-advisor-whatsapp,
#buyer-subview-chat .btn-advisor-call {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
}

#buyer-subview-chat .buyer-chat-workbench-container {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    overflow: hidden !important;
}

#buyer-subview-chat .chat-main-window {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

#buyer-subview-chat .chat-main-header {
    flex-shrink: 0 !important;
}

#buyer-subview-chat .chat-messages-container-full {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#buyer-subview-chat .chat-quick-suggestions {
    flex-shrink: 0 !important;
}

#buyer-subview-chat .chat-composer-bar {
    flex-shrink: 0 !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 20 !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 8px 14px !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06) !important;
}

/* Smart Free Freight & Cross-Selling Widget (Compact & Slim B2B Edition) */
.free-freight-widget {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 10px 16px;
    color: #f8fafc;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.35);
    margin-bottom: 14px;
}

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

.ffw-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ffw-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(2, 132, 199, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ffw-title-text h4 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.ffw-title-text p {
    margin: 1px 0 0 0;
    font-size: 0.67rem;
    color: #94a3b8;
    line-height: 1.2;
}

.ffw-currency-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ffw-currency-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.ffw-currency-btn.active {
    background: #0284c7;
    color: #ffffff;
}

.ffw-progress-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    height: 7px;
    overflow: hidden;
    margin: 6px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ffw-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b, #0284c7, #10b981);
    background-size: 200% 100%;
    animation: progressShine 3s linear infinite;
    border-radius: 6px;
    transition: width 0.35s ease;
}

.ffw-progress-bar.success {
    background: linear-gradient(90deg, #10b981, #34d399);
}

@keyframes progressShine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.ffw-status-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.74rem;
    flex-wrap: wrap;
    gap: 6px;
}

.ffw-message-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.74rem;
}

.ffw-message-alert.success {
    color: #34d399;
}

.ffw-target-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
}

/* Compact Cross-Selling Tray */
.ffw-cross-sell-tray {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    margin-top: 4px;
}

.ffw-cross-sell-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ffw-cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px;
}

.cross-sell-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.cross-sell-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #38bdf8;
}

.cross-sell-chip-info {
    overflow: hidden;
}

.cross-sell-chip-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cross-sell-chip-price {
    font-size: 0.68rem;
    color: #38bdf8;
    font-weight: 700;
}

.btn-add-cross-sell {
    background: #0284c7;
    border: none;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.btn-add-cross-sell:hover {
    background: #0369a1;
}

/* Quote Builder Tabs Bar */
.quote-builder-tab-bar {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 14px;
    padding-bottom: 2px;
}

.btn-qb-tab {
    background: transparent;
    border: none;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -4px;
}

.btn-qb-tab:hover {
    color: #0284c7;
    background: #f8fafc;
}

.btn-qb-tab.active {
    color: #0284c7;
    border-bottom-color: #0284c7;
    background: #f0f9ff;
}

/* Custom Special Fabrication Unified Tab ("Todo en Uno" con Efecto Destello Interactivo) */
.btn-qb-tab-special {
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.btn-qb-tab-special:hover {
    color: #b45309;
    background: #fffbeb;
}

.btn-qb-tab-special.active {
    color: #b45309;
    border-bottom-color: #f59e0b;
    background: #fefce8;
}

/* Shimmer Light Reflection (Efecto Destello Luminoso que recorre la pestaña) */
.btn-qb-tab-special::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), rgba(245, 158, 11, 0.4), transparent);
    transform: skewX(-25deg);
    animation: destelloShimmer 3.8s infinite ease-in-out;
    pointer-events: none;
}

@keyframes destelloShimmer {
    0% { left: -120%; }
    28% { left: 160%; }
    100% { left: 160%; }
}

.badge-todo-uno {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-weight: 800;
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.2px;
}

.btn-qb-tab-special.active .badge-todo-uno {
    background: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
}

/* Luminous Sparkle Icon (Destello Mágico Pulsante) */
.tab-destello-sparkle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 0.82rem;
    margin-left: 6px;
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.7));
    animation: sparklePulse 2.4s infinite ease-in-out;
}

@keyframes sparklePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.5));
    }
    50% {
        transform: scale(1.22) rotate(12deg);
        filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.95));
        color: #d97706;
    }
}

/* Cart Product Thumbnail Container (Anti-Vibration & Layout Lock) */
.cart-thumb-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    flex-shrink: 0;
}

.cart-product-thumb {
    width: 100%;
    height: 100%;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* Quote Builder Product Search & Library Button */
.btn-open-catalog-library {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: 1.5px solid #6366f1;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    letter-spacing: 0.2px;
}

.btn-open-catalog-library:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    border-color: #818cf8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-open-catalog-library .library-badge-pill {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Purchase Incentive & Cross-Selling Tray ("¿Está bien o necesitas agregar algo más?") */
.quote-incentive-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #eff6ff 100%);
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
    animation: fadeInSlideDown 0.3s ease;
}

.incentive-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.incentive-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

#incentive-main-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #065f46;
    margin: 2px 0 3px 0;
}

#incentive-sub-title {
    font-size: 0.76rem;
    color: #047857;
    margin: 0;
}

.incentive-actions-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-incentive-library {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    transition: all 0.2s;
}

.btn-incentive-library:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: translateY(-1px);
}

.btn-incentive-close {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-incentive-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.incentive-chips-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.incentive-item-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.incentive-item-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.incentive-item-thumb {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

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

.incentive-item-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.incentive-item-price {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0284c7;
    margin-top: 2px;
}

.btn-incentive-add {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-incentive-add:hover {
    background: #0369a1;
}

/* Split layout for Quote Builder */
.quote-builder-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 1100px) {
    .quote-builder-grid {
        grid-template-columns: 1fr;
    }
}

.quote-builder-main-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.quote-sidebar-totals-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 20px;
}

/* Custom Fabrication Styles */
.custom-fab-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.file-dropzone {
    border: 2px dashed #93c5fd;
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-dropzone:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.file-dropzone-icon {
    font-size: 2.2rem;
    color: #0284c7;
    margin-bottom: 8px;
}

.attachments-list-box {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* Technical Catalogs Grid */
.technical-catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.tech-catalog-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tech-catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #0284c7;
}

.tech-cat-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    align-self: flex-start;
}

/* Promotions & Lots Grid */
.promotions-lots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.promo-lot-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.promo-lot-card:hover {
    border-color: #f59e0b;
    box-shadow: var(--shadow-md);
}

.promo-lot-discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

/* Security Notice Box for PDF Restrictions */
.security-notice-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: #991b1b;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* ==============================================================================
   MÓDULO DE GESTIÓN DE VENTAS & SOLCOT STUDIO STYLES
   ============================================================================== */

/* Subnav Breadcrumbs Strip - DESACTIVADO para estandarizar en un único encabezado maestro */
.sales-subnav-strip,
.logistics-subnav-strip,
.admin-subnav-strip,
.studio-subnav-strip,
.ti-subnav-strip {
    display: none !important;
}

.btn-sales-nav-link {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sales-nav-link:hover {
    color: #fff;
}

.sales-nav-sep {
    color: rgba(255, 255, 255, 0.2);
}

.sales-nav-chip {
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    white-space: nowrap;
}

.sales-nav-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sales-nav-chip.active {
    color: #fff;
    background: #ea580c;
    font-weight: 700;
}

.sales-nav-chip.active.active-studio {
    background: #10b981;
}

.sales-nav-chip.active.active-ti {
    background: #0284c7;
}

.sales-nav-chip.active.active-tower {
    background: #0284c7;
}

.sales-subnav-right .badge-sales-team {
    background: rgba(234, 88, 12, 0.15);
    border: 1px solid #ea580c;
    color: #fdba74;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sales-subnav-right .badge-sales-team.badge-admin {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #6ee7b7;
}

.sales-subnav-right .badge-sales-team.badge-ti {
    background: rgba(2, 132, 199, 0.15);
    border-color: #0284c7;
    color: #7dd3fc;
}

.sales-subnav-right .badge-sales-team.badge-tower {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #bae6fd;
}

.sales-quick-search-input {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f8fafc;
    padding: 4px 10px;
    font-size: 0.75rem;
    width: 170px;
}

.sales-quick-search-input:focus {
    outline: none;
    border-color: #ea580c;
}

/* SolCot Studio Header Strip (Optimizado Compacto) */
.solcot-studio-header-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 8px 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.solcot-header-left {
    position: relative;
}

.solcot-brand-badge {
    background: #0284c7;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.solcot-header-left h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.solcot-header-left p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}

.solcot-nav-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
    overflow-x: auto;
}

.btn-solcot-tab {
    background: transparent;
    border: 1px solid transparent;
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-solcot-tab:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.btn-solcot-tab.active {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}

.solcot-pill-count {
    background: #0284c7;
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 800;
}

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

.btn-solcot-action {
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-solcot-action.primary {
    background: #10b981;
    color: white;
}

.btn-solcot-action.primary:hover {
    background: #059669;
}

.btn-solcot-action.outline {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn-solcot-action.outline:hover {
    background: #f1f5f9;
}

.btn-solcot-action.blue {
    background: #0284c7;
    color: white;
}

.btn-solcot-action.blue:hover {
    background: #0369a1;
}

/* 4 SolCot KPI Cards Grid */
.solcot-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.solcot-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px;
}

.kpi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-card-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #475569;
}

.kpi-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.kpi-card-icon.blue { background: #e0f2fe; color: #0284c7; }
.kpi-card-icon.amber { background: #fef3c7; color: #d97706; }
.kpi-card-icon.emerald { background: #dcfce7; color: #16a34a; }
.kpi-card-icon.sky { background: #e0f2fe; color: #0284c7; }

.kpi-card-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin: 8px 0 4px 0;
}

.kpi-card-footer {
    font-size: 0.72rem;
    color: #64748b;
}

/* Filter Strip */
.solcot-filter-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.filter-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #334155;
    margin-right: 4px;
}

.solcot-filter-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: var(--transition);
}

.solcot-filter-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.solcot-filter-pill.active {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}

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

.solcot-search-box {
    position: relative;
}

.solcot-search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #94a3b8;
}

.solcot-search-box input {
    padding: 7px 10px 7px 30px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.78rem;
    width: 230px;
}

.solcot-search-box input:focus {
    outline: none;
    border-color: #0284c7;
}

.btn-solcot-tool.danger-outline {
    background: #fff;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-solcot-tool.danger-outline:hover {
    background: #fee2e2;
}

/* SolCot Table */
.solcot-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.solcot-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.solcot-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.solcot-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.solcot-table tbody tr:hover {
    background: #f8fafc;
}

/* Badges for SolCot */
.badge-quote-code {
    font-weight: 800;
    color: #0284c7;
    font-family: monospace;
    font-size: 0.82rem;
}

.badge-rev {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.badge-type-pdr {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.badge-type-ser {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.badge-origin-seller {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-origin-web {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #cffafe;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-status-validated {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status-pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status-sent {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Action Icon Buttons */
.solcot-action-btn-group {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.btn-row-action {
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.72rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-row-action.review {
    background: #0284c7;
    color: white;
    font-weight: 700;
    gap: 4px;
}
.btn-row-action.review:hover { background: #0369a1; }

.btn-row-action.check { background: #10b981; color: white; }
.btn-row-action.check:hover { background: #059669; }

.btn-row-action.wa { background: #22c55e; color: white; }
.btn-row-action.wa:hover { background: #16a34a; }

.btn-row-action.mail { background: #38bdf8; color: white; }
.btn-row-action.mail:hover { background: #0284c7; }

.btn-row-action.pdf { background: #f1f5f9; border: 1px solid #cbd5e1; color: #475569; }
.btn-row-action.pdf:hover { background: #e2e8f0; color: #0f172a; }

.btn-row-action.del { background: #fee2e2; color: #dc2626; }
.btn-row-action.del:hover { background: #ef4444; color: white; }

/* Editor A4 Styling */
.sales-editor-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sales-editor-controls-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.client-project-info-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-project-info-card:hover {
    border-color: #94a3b8;
}

.client-project-info-card input:focus,
.client-project-info-card select:focus {
    border-color: #0284c7 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
}

.form-label-sm {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.form-input-sm, .form-select-sm {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.8rem;
}

.form-input-sm:focus, .form-select-sm:focus {
    outline: none;
    border-color: #0284c7;
}

.editor-items-table-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow-x: auto;
}

.editor-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.editor-items-table th {
    background: #0284c7 !important;
    padding: 10px 10px;
    border: 1px solid #0369a1;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

.editor-items-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
}

.badge-revision-active {
    background: #ede9fe;
    color: #6d28d9;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #ddd6fe;
}

/* Customers Grid */
.customers-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.b2b-customer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.b2b-customer-card:hover {
    border-color: #0284c7;
    box-shadow: var(--shadow-md);
}

.customer-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.customer-segment-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Kanban Pipeline */
.kanban-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    min-height: 480px;
}

.kanban-column {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid #cbd5e1;
    padding-bottom: 8px;
}

.kanban-col-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #334155;
}

.kanban-col-count {
    background: #fff;
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
}

.kanban-column-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.kanban-deal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.kanban-deal-card:hover {
    border-color: #8b5cf6;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.deal-card-code {
    font-family: monospace;
    font-weight: 800;
    color: #0284c7;
    font-size: 0.75rem;
}

.deal-card-value {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.88rem;
    margin: 4px 0;
}

/* Analytics Ranking */
.analytics-sellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.seller-rank-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.seller-rank-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.seller-avatar-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0284c7;
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

/* Quote Type Radio Card */
.quote-type-radio-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.quote-type-radio-card:hover {
    border-color: #0284c7;
}

.quote-type-radio-card input[type="radio"]:checked + div strong {
    color: #0284c7;
}

/* ==========================================================================
   TRADE MESSENGER B2B - MESA DEL VENDEDOR & BANDEJA MULTICLIENTE (ERP 360°)
   PANTALLA ÚNICA INTEGRAL (100% VISIBLE SIN SCROLL EXTERNO)
   ========================================================================== */
#view-sales.chat-no-scroll {
    height: calc(100vh - 38px);
    max-height: calc(100vh - 38px);
    overflow: hidden !important;
}

#sales-layout-grid.chat-layout-locked {
    height: calc(100vh - 42px);
    max-height: calc(100vh - 42px);
    overflow: hidden !important;
}

.sales-workspace.single-screen-chat {
    height: calc(100vh - 42px);
    max-height: calc(100vh - 42px);
    overflow: hidden !important;
    padding: 6px 12px;
    gap: 6px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.sales-workspace.single-screen-chat #sales-subview-chat {
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.seller-messenger-container {
    display: grid;
    grid-template-columns: 280px 1fr 310px;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Columna 1: Channels Sidebar */
.sm-channels-sidebar {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.sm-channels-header {
    flex-shrink: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.sm-status-live {
    font-size: 0.68rem;
    font-weight: 800;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sm-status-live i {
    font-size: 0.45rem;
    animation: pulse 1.8s infinite;
}

.sm-search-box {
    position: relative;
    margin-top: 6px;
}

.sm-search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: #94a3b8;
}

.sm-search-box input {
    width: 100%;
    padding: 5px 8px 5px 26px;
    font-size: 0.74rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    background: #f8fafc;
}

.sm-channels-list {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
}

.sm-channel-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.sm-channel-item:hover {
    background: #f1f5f9;
}

.sm-channel-item.active {
    background: #eff6ff;
    border-left: 3.5px solid #0284c7;
}

.sm-channel-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-channel-content {
    flex: 1;
    min-width: 0;
}

.sm-channel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.sm-channel-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-channel-time {
    font-size: 0.65rem;
    color: #94a3b8;
}

.sm-channel-topic {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-channel-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.sm-badge-ref {
    font-size: 0.65rem;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.sm-unread-pill {
    background: #22c55e;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
}

.sm-channels-footer {
    flex-shrink: 0;
    padding: 8px 10px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.btn-backup-sync-sm {
    width: 100%;
    padding: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-backup-sync-sm:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-commercial-a4-shortcut:hover {
    background: linear-gradient(135deg, #0284c7, #075985) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35) !important;
}

.btn-commercial-a4-shortcut:active {
    transform: translateY(0);
}

/* Columna 2: Chat Main Stream */
.sm-chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.sm-chat-header {
    flex-shrink: 0;
    padding: 8px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sm-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0b1a30;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-ruc-verified {
    font-size: 0.65rem;
    font-weight: 800;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 6px;
    border-radius: 4px;
}

.sm-messages-stream {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   ALINEACIÓN EXACTA WHATSAPP:
   1. VENDEDOR (YO / EMIPISA) -> A LA DERECHA (Verde WhatsApp suave)
   2. CLIENTE (COMPRADOR)    -> A LA IZQUIERDA (Blanco)
   ========================================================================== */
.sm-messages-stream .chat-bubble-wrap {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    margin-bottom: 4px;
}

/* Vendedor (Yo) -> A LA DERECHA */
.sm-messages-stream .chat-bubble-wrap.seller-msg {
    align-self: flex-end !important;
    align-items: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.sm-messages-stream .chat-bubble-wrap.seller-msg .chat-bubble-header {
    text-align: right;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 2px;
}

.sm-messages-stream .chat-bubble-wrap.seller-msg .chat-bubble {
    background: #d9fdd3 !important; /* Verde WhatsApp */
    color: #111b21 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 12px 12px 2px 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    padding: 9px 13px !important;
}

.sm-messages-stream .chat-bubble-wrap.seller-msg .chat-bubble-time {
    color: #15803d !important;
    font-weight: 600;
    text-align: right;
    font-size: 0.65rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.sm-messages-stream .chat-bubble-wrap.seller-msg .chat-bubble-time i {
    color: #0284c7; /* Doble check azul WhatsApp */
}

/* Cliente (Comprador) -> A LA IZQUIERDA */
.sm-messages-stream .chat-bubble-wrap.buyer-msg {
    align-self: flex-start !important;
    align-items: flex-start !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

.sm-messages-stream .chat-bubble-wrap.buyer-msg .chat-bubble-header {
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
}

.sm-messages-stream .chat-bubble-wrap.buyer-msg .chat-bubble {
    background: #ffffff !important;
    color: #111b21 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px 12px 12px 2px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    padding: 9px 13px !important;
}

.sm-messages-stream .chat-bubble-wrap.buyer-msg .chat-bubble-time {
    color: #94a3b8 !important;
    text-align: left;
    font-size: 0.65rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sm-quick-tray {
    flex-shrink: 0;
    padding: 8px 12px;
    background: #f8fafc;
    border-top: 1.5px solid #cbd5e1;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.sm-tray-title {
    font-size: 0.74rem;
    font-weight: 850;
    color: #1e293b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sm-quick-chips-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 2px 6px 2px;
    scroll-behavior: smooth;
}

/* Custom modern scrollbar for quick responses */
.sm-quick-chips-wrapper::-webkit-scrollbar {
    height: 5px;
}

.sm-quick-chips-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

.sm-quick-chips-wrapper::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.sm-quick-chips-wrapper::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

.btn-quick-scroll-nav {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-quick-scroll-nav:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: scale(1.08);
}

.btn-quick-chip {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    user-select: none;
}

.btn-quick-chip:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-1.5px);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.28);
}

.btn-quick-chip:active {
    transform: translateY(0);
}

.sm-input-bar {
    flex-shrink: 0;
    padding: 8px 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.sm-input-bar textarea {
    flex: 1;
    height: 44px;
    max-height: 60px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-family: inherit;
    resize: none;
    outline: none;
}

.sm-input-bar textarea:focus {
    border-color: #0284c7;
}

.sm-input-actions {
    display: flex;
    gap: 6px;
}

.btn-sm-attach {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-sm-attach:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-sm-send {
    padding: 0 14px;
    height: 36px;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sm-send:hover {
    background: #0369a1;
}

/* Columna 3: Context Panel Lateral */
.sm-context-panel {
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.sm-context-header {
    flex-shrink: 0;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.badge-rating-top {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #fde68a;
}

.sm-context-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sm-ctx-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sm-ctx-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-ctx-label {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.sm-ctx-val {
    font-size: 0.78rem;
    color: #0f172a;
}

.sm-ctx-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

.sm-ctx-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.sm-demanded-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sm-demanded-list li {
    font-size: 0.74rem;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-demanded-list li::before {
    content: "•";
    color: #ea580c;
    font-size: 1.1rem;
    line-height: 0;
}

.sm-smart-upsell-box {
    background: #fffbeb;
    border: 1.5px solid #fef3c7;
    border-radius: 6px;
    padding: 12px;
}

.btn-create-quote-from-upsell {
    width: 100%;
    margin-top: 8px;
    padding: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #f59e0b;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-create-quote-from-upsell:hover {
    background: #d97706;
}

/* ==========================================================================
   PERFIL DE EMPRESA & IDENTIDAD DE MARCA (WHITE-LABEL ENGINE)
   ========================================================================== */
.wl-top-header {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
}

.wl-title-box h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.wl-title-box p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 3px 0 0 0;
}

.wl-top-header .wl-action-buttons-strip {
    background: transparent;
    padding: 0;
    border-bottom: none;
}

.wl-brand-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.wl-ruc-badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.wl-sync-alert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 6px;
    margin-top: 4px;
}

.wl-action-buttons-strip {
    background: #ffffff;
    padding: 12px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-wl-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.btn-wl-action.primary {
    background: #0284c7;
    color: #ffffff;
}

.btn-wl-action.primary:hover {
    background: #0369a1;
}

.btn-wl-action.blue {
    background: #0ea5e9;
    color: #ffffff;
}

.btn-wl-action.blue:hover {
    background: #0284c7;
}

.btn-wl-action.outline {
    background: #ffffff;
    color: #334155;
    border-color: #cbd5e1;
}

.btn-wl-action.outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.wl-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 24px;
}

@media (max-width: 1024px) {
    .wl-main-grid {
        grid-template-columns: 1fr;
    }
}

.wl-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.wl-card-header {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.wl-card-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wl-card-body {
    padding: 18px;
}

.wl-form-row {
    margin-bottom: 14px;
}

.wl-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.wl-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.82rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s ease;
}

.wl-input:focus {
    border-color: #0284c7;
}

.wl-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.82rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
}

.wl-hint {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 3px;
    display: block;
}

/* Logos & Assets Uploaders */
.wl-logo-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 14px;
}

.btn-wl-reset-asset {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-wl-reset-asset:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wl-logo-preview-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.wl-logo-preview-box {
    width: 90px;
    height: 60px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 4px;
}

.wl-logo-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wl-file-input {
    width: 100%;
    font-size: 0.74rem;
    color: #475569;
    margin-bottom: 6px;
}

.wl-input-url {
    width: 100%;
    padding: 5px 8px;
    font-size: 0.7rem;
    font-family: monospace;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
}

/* Módulo 3: Colors Grid */
.wl-tag-pill {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.wl-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.wl-color-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 14px;
}

.wl-color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.wl-color-picker-wrap input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 44px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.wl-color-picker-wrap input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.wl-color-picker-wrap input[type="color"]::-webkit-color-swatch {
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
}

.wl-input-hex {
    flex: 1;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    text-transform: uppercase;
}

.wl-input-hex:focus {
    border-color: #0284c7;
}

/* =========================================================================
   CANALES DE ATENCIÓN & ASESORES DE VENTAS / WHATSAPP (MULTI-ASESOR)
   ========================================================================= */
.wl-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-top: 24px;
    overflow: hidden;
}

.wl-section-header-row {
    padding: 16px 22px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.wl-section-header-info h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wl-section-header-info p {
    margin: 3px 0 0 0;
    font-size: 0.74rem;
    color: #64748b;
}

.btn-wl-add-primary {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-wl-add-primary:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.wl-advisors-table-container {
    width: 100%;
    overflow-x: auto;
}

.wl-advisors-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.wl-advisors-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 1.5px solid #e2e8f0;
    white-space: nowrap;
}

.wl-advisors-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.78rem;
    color: #1e293b;
    vertical-align: middle;
}

.wl-advisors-table tr:hover td {
    background: #f8fafc;
}

.advisor-status-cell {
    text-align: center;
    width: 60px;
}

.advisor-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.advisor-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    overflow: hidden;
}

.advisor-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advisor-name-text {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.82rem;
    display: block;
}

.advisor-online-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.66rem;
    color: #16a34a;
    font-weight: 700;
}

.advisor-online-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
}

.advisor-specialty-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    border: 1px solid currentColor;
    white-space: nowrap;
}

.advisor-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
}

.advisor-phone-link:hover {
    text-decoration: underline;
}

.advisor-message-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.72rem;
    color: #475569;
    font-style: italic;
    max-width: 320px;
    line-height: 1.35;
}

.advisor-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-advisor-action {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-advisor-action:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
}

.btn-advisor-action.danger:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

/* =========================================================================
   CUENTAS BANCARIAS PARA COTIZACIONES OFICIALES
   ========================================================================= */
.wl-bank-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wl-bank-account-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wl-bank-account-card.is-primary {
    border-color: #0284c7;
    background: #fcfdfe;
}

.wl-bank-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wl-bank-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.wl-bank-card-badges {
    display: flex;
    gap: 6px;
}

.wl-bank-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wl-bank-badge.primary {
    background: #0284c7;
    color: #ffffff;
}

.wl-bank-badge.currency {
    background: #e0f2fe;
    color: #0369a1;
}

.wl-bank-badge.detraction {
    background: #fef3c7;
    color: #b45309;
}

.wl-bank-card-numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
}

.wl-bank-num-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.wl-bank-num-val {
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
}

.wl-bank-beneficiary-row {
    font-size: 0.70rem;
    color: #475569;
    line-height: 1.35;
}

.wl-bank-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.wl-bank-toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #16a34a;
    cursor: pointer;
}

/* =========================================================================
   CANAL SMTP & MODALS
   ========================================================================= */
.wl-smtp-banner-card {
    background: #f0f9ff;
    border: 1.5px dashed #0284c7;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.wl-smtp-banner-info h4 {
    margin: 0;
    font-size: 0.90rem;
    font-weight: 800;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wl-smtp-banner-info p {
    margin: 3px 0 0 0;
    font-size: 0.74rem;
    color: #475569;
}

/* Toggle Switch Styling */
.switch-wl {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.switch-wl input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-wl {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .2s;
    border-radius: 18px;
}

.slider-wl:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider-wl {
    background-color: #10b981;
}

input:checked + .slider-wl:before {
    transform: translateX(16px);
}

/* =========================================================================
   POP-UP MODAL DE CAMPAÑA PROMOCIONAL B2B (MOCKUP INDUSTRIAL DE ALTA CONVERSIÓN)
   ========================================================================= */
.b2b-promo-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 10, 24, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: promoFadeIn 0.3s ease-out forwards;
}

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

.b2b-promo-modal-container {
    position: relative;
    width: 100%;
    max-width: 680px;
    border-radius: 18px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    animation: promoScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.b2b-promo-modal-container.promo-container-square-mode {
    max-width: min(520px, 92vw, 82vh);
    border-radius: 18px;
    background: #0f172a;
    box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.85), 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.promo-square-flyer-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #000;
    transition: transform 0.3s ease;
}

.b2b-promo-image-body:hover .promo-square-flyer-img {
    transform: scale(1.02);
}

@keyframes promoScaleUp {
    from { transform: scale(0.92) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.promo-countdown-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 10;
    animation: promoFadeIn 0.3s ease-out;
}

.btn-close-promo-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-close-promo-modal:hover {
    transform: scale(1.1) rotate(90deg);
    background: #f1f5f9;
}

/* Card Body - Blueprint Industrial Background */
.b2b-promo-card-body,
.b2b-promo-card-embedded {
    position: relative;
    background: linear-gradient(135deg, #032b69 0%, #08439b 45%, #05265c 100%);
    padding: 24px 28px 20px 28px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.b2b-promo-card-embedded {
    border-radius: 16px;
    box-shadow: 0 12px 35px -8px rgba(3, 43, 105, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
    margin: 4px 0 12px 0;
}

.store-intro-promo-section {
    padding-top: 14px;
    padding-bottom: 6px;
    background: #f8fafc;
}

/* Blueprint Grid & Arc Curves Pattern */
.b2b-promo-card-body::before,
.b2b-promo-card-embedded::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 100% 20%, rgba(56, 189, 248, 0.18) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px, 24px 24px;
    pointer-events: none;
}

.b2b-promo-card-body::after,
.b2b-promo-card-embedded::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.b2b-promo-header-strip {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-right: 36px;
    font-size: 0.78rem;
}

.promo-company-brand {
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-divider {
    color: rgba(255, 255, 255, 0.4);
}

.promo-ruc-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 5px;
}

.promo-badge-container {
    position: relative;
    margin-bottom: 10px;
}

.promo-fire-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    text-transform: uppercase;
}

.promo-headline-box {
    position: relative;
    margin-bottom: 16px;
}

.promo-title-highlight {
    font-size: 2.1rem;
    font-weight: 950;
    color: #fbbf24;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.promo-title-main {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0 0 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* 4 Category Quick Access Buttons */
.promo-categories-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.promo-cat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 9px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.promo-cat-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.cat-pill-title {
    font-size: 0.78rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.cat-pill-sub {
    font-size: 0.65rem;
    color: #93c5fd;
    margin-top: 2px;
}

/* Value Proposition Checks */
.promo-features-row {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #e2e8f0;
}

.promo-check-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-check-item i {
    color: #4ade80;
    font-size: 0.85rem;
}

/* Glowing Emerald CTA */
.promo-cta-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.btn-promo-main-cta {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: promoCtaPulse 2.4s infinite;
}

@keyframes promoCtaPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45); }
    50% { box-shadow: 0 8px 30px rgba(16, 185, 129, 0.75); transform: translateY(-1px); }
}

.btn-promo-main-cta:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
}

.promo-contact-micro {
    position: relative;
    font-size: 0.68rem;
    color: #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.promo-contact-micro strong {
    color: #4ade80;
}

.micro-dot {
    color: rgba(255, 255, 255, 0.4);
}

/* Bottom Card Bar / White Footer */
.b2b-promo-footer-bar {
    background: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.75rem;
}

.promo-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 0.72rem;
    cursor: pointer;
    user-select: none;
}

.promo-terms-link {
    color: #0284c7;
    text-decoration: underline;
    font-size: 0.72rem;
}

.promo-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-promo-sub-blue {
    background: #0b1a30;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
}

.btn-promo-sub-blue:hover {
    background: #1e293b;
}

.btn-promo-sub-green {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
}

.btn-promo-sub-green:hover {
    background: #059669;
}

.btn-promo-sub-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-promo-sub-close:hover {
    color: #0f172a;
    text-decoration: underline;
}

/* Alternate View 2: Full Image Poster Body */
.b2b-promo-image-body {
    position: relative;
    overflow: hidden;
    background: #0b1a30;
    transition: transform 0.2s ease;
}

.b2b-promo-image-body img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.b2b-promo-image-body:hover img {
    transform: scale(1.015);
}

.promo-banner-hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(3, 10, 24, 0.88));
    padding: 20px 20px 14px 20px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.b2b-promo-image-body:hover .promo-banner-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.promo-banner-hover-overlay span {
    background: rgba(16, 185, 129, 0.9);
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
}

/* Floating Banner Trigger for Pop-up */
.floating-promo-trigger-pill {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    background: linear-gradient(135deg, #0b1a30 0%, #032b69 100%);
    color: #ffffff;
    border: 1px solid #38bdf8;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.floating-promo-trigger-pill:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

.floating-promo-trigger-pill .badge-discount {
    background: #fbbf24;
    color: #0f172a;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 900;
}

/* =========================================================================
   SEARCH AUTOCOMPLETE DROPDOWN
   ========================================================================= */
.search-input-box {
    position: relative;
}

.store-search-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border: 2px solid #0284c7;
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    z-index: 9999999 !important;
    max-height: 440px;
    overflow-y: auto;
    display: none;
}

.autocomplete-header-bar {
    padding: 8px 14px;
    background: #f0f9ff;
    border-bottom: 1px solid #bae6fd;
    font-size: 0.72rem;
    font-weight: 800;
    color: #0369a1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
}

.autocomplete-item:hover {
    background: #f8fafc;
}

.autocomplete-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    flex-shrink: 0;
}

.autocomplete-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.autocomplete-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-name mark {
    background: #fef08a;
    color: #0f172a;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 900;
}

.autocomplete-meta {
    font-size: 0.68rem;
    color: #64748b;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 3px;
    flex-wrap: wrap;
}

.autocomplete-sku {
    color: #0284c7;
    font-weight: 800;
    background: #e0f2fe;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.autocomplete-stock-badge {
    color: #16a34a;
    font-weight: 700;
}

.autocomplete-price-col {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.autocomplete-price {
    font-size: 0.84rem;
    font-weight: 900;
    color: #0284c7;
}

.autocomplete-footer-hint {
    padding: 8px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.68rem;
    color: #64748b;
    text-align: center;
}

/* =========================================================================
   AUDIT TELEMETRY PANEL (EN SOPORTE TI)
   ========================================================================= */
.audit-workspace-container {
    padding: 20px 24px;
    background: #f8fafc;
    min-height: calc(100vh - 120px);
}

.audit-top-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.audit-title-box h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.audit-title-box p {
    margin: 3px 0 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.audit-actions-strip {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.audit-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.audit-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.audit-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.audit-stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.audit-stat-icon.green { background: #dcfce7; color: #16a34a; }
.audit-stat-icon.amber { background: #fef3c7; color: #d97706; }
.audit-stat-icon.purple { background: #f3e8ff; color: #9333ea; }

.audit-stat-content strong {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    display: block;
    line-height: 1.1;
}

.audit-stat-content span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.audit-filters-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.audit-filter-input {
    padding: 6px 12px;
    font-size: 0.76rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    outline: none;
}

.audit-filter-input:focus {
    border-color: #0284c7;
}

.audit-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
    text-align: left;
}

.audit-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.audit-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.audit-table tr:hover td {
    background: #f8fafc;
}

.audit-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.audit-badge.INFO { background: #e0f2fe; color: #0369a1; }
.audit-badge.WARNING { background: #fef3c7; color: #b45309; }
.audit-badge.ERROR { background: #fee2e2; color: #b91c1c; }
.audit-badge.SECURITY { background: #f3e8ff; color: #7e22ce; }

.audit-module-tag {
    background: #f1f5f9;
    color: #334155;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}

/* =========================================================================
   MEGA MENÚ DESPLEGABLE INTERACTIVO (CATEGORÍAS & SUBFAMILIAS CON MEDIDAS)
   ========================================================================= */
.store-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    max-width: 1240px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
    z-index: 999999 !important;
    display: none;
    overflow: hidden;
}

.store-mega-menu.active {
    display: block !important;
    animation: megaMenuDrop 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes megaMenuDrop {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.mega-menu-content-matrix {
    display: flex;
    min-height: 420px;
    background: #ffffff;
}

/* Columna Izquierda: Lista de Categorías (Sin numeración, solo texto) */
.mega-categories-col {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 6px 0;
    overflow-y: auto;
    max-height: 520px;
    flex-shrink: 0;
}

.mega-cat-item {
    padding: 10px 18px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 4px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.mega-cat-item:hover {
    background: #f0f9ff;
    color: #0284c7;
}

.mega-cat-item.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-left-color: #38bdf8;
}

.mega-cat-item.active i {
    color: #ffffff !important;
}

.mega-cat-item i {
    font-size: 0.68rem;
    color: #94a3b8;
}

/* Panel Derecho Reactivo: Subfamilias y Medidas */
.mega-content-panel {
    flex: 1;
    padding: 20px 28px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 520px;
}

.mega-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.mega-panel-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    color: #0284c7;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mega-panel-header .subfamilies-count-label {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 2px;
    display: block;
}

.mega-view-all-link {
    font-size: 0.78rem;
    font-weight: 800;
    color: #ea580c;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.mega-view-all-link:hover {
    color: #c2410c;
    text-decoration: underline;
}

.mega-subfamilies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 20px;
    flex: 1;
}

.mega-subfamily-col {
    text-align: left;
}

.mega-subfamily-col h4 {
    font-size: 0.73rem;
    font-weight: 800;
    color: #0284c7;
    line-height: 1.3;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s ease;
}

.mega-subfamily-col h4:hover {
    color: #0369a1;
    text-decoration: underline;
}

.measures-chips-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
}

.measure-item {
    font-size: 0.72rem;
    color: #475569;
    cursor: pointer;
    padding: 1px 0;
    transition: all 0.15s ease;
}

.measure-item:hover {
    color: #0284c7;
    font-weight: 700;
    transform: translateX(2px);
}

.btn-more-measures {
    font-weight: 800;
    color: #0284c7;
    font-size: 0.7rem;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: color 0.15s ease;
}

.btn-more-measures:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Pie del Mega Menú con Badges de Confianza */
.mega-footer-badges {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mega-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mega-badge-item .badge-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.mega-badge-item strong {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.mega-badge-item span {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.2;
}

/* =========================================================================
   CARROUSEL INFINITO HORIZONTAL & NAVEGACIÓN STICKY DE FAMILIAS
   ========================================================================= */
.sticky-family-bar-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, background 0.2s ease;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.sticky-family-bar-wrapper.is-sticky {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.families-slider-strip {
    display: flex;
    gap: 12px;
    padding: 10px 32px;
    overflow-x: auto;
    scrollbar-width: thin;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: auto !important; /* CRITICAL: Must be auto to avoid conflict with JS autoScroll animation */
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.families-slider-strip::-webkit-scrollbar {
    height: 5px;
}

.families-slider-strip::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.family-chip-card {
    flex: 0 0 auto;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.family-chip-card:hover, .family-chip-card.active {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}

.family-chip-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0284c7;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.family-chip-card:hover .family-chip-icon, .family-chip-card.active .family-chip-icon {
    background: #0284c7;
    color: #ffffff;
}

.family-chip-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

/* =========================================================================
   BLOQUES DE PRODUCTOS POR FAMILIA (ESPECIFICACIONES + SUBGATS + GRID DE SKUS)
   ========================================================================= */
.family-catalog-section {
    padding: 34px 32px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    border-bottom: 1px solid #e2e8f0;
}

.family-catalog-section:last-of-type {
    border-bottom: none;
}

.family-layout-container {
    display: grid;
    grid-template-columns: 320px 220px 1fr;
    gap: 28px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .family-layout-container {
        grid-template-columns: 1fr;
    }
}

/* Columna 1: Especificaciones Técnicas */
.family-specs-column {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.family-heading-title, .family-title-heading {
    font-size: 1.4rem;
    font-weight: 950;
    color: #0284c7;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.family-specs-content, .family-specs-body {
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 16px;
}

.family-specs-content p, .spec-prop-item {
    margin: 0 0 9px 0;
    line-height: 1.45;
}

.family-specs-content strong, .spec-prop-item strong {
    color: #0f172a;
    font-weight: 800;
}

.family-action-buttons, .family-buttons-group {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn-family-pill {
    flex: 1;
    background: #ffffff;
    color: #0284c7;
    border: 1.5px solid #0284c7;
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-family-pill:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Columna 2: Lista de Subcategorías */
.family-subcats-column {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px;
}

.family-subcats-header, .subcats-header-label {
    font-size: 0.74rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    text-transform: uppercase;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.family-subcats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.family-subcat-link, .family-subcat-item {
    display: block;
    padding: 7px 6px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.76rem;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.family-subcat-link:last-child, .family-subcat-item:last-child {
    border-bottom: none;
}

.family-subcat-link:hover, .family-subcat-link.active, .family-subcat-item:hover {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
    transform: translateX(3px);
}

/* Columna 3: Parrilla de Productos / Cards de SKUs */
.family-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

@media (max-width: 640px) {
    .family-products-grid {
        grid-template-columns: 1fr;
    }
}

.sku-b2b-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sku-b2b-card:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.sku-card-img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.sku-card-img-wrap img {
    max-height: 140px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.sku-b2b-card:hover .sku-card-img-wrap img {
    transform: scale(1.06);
}

.sku-ref-label {
    position: absolute;
    bottom: 4px;
    font-size: 0.62rem;
    color: #94a3b8;
    font-style: italic;
}

.sku-card-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0284c7;
    line-height: 1.35;
    margin-bottom: 8px;
    min-height: 38px;
    text-transform: uppercase;
}

.sku-meta-tags-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 12px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

.sku-code-tag {
    font-weight: 700;
    color: #334155;
    font-family: monospace;
}

.sku-brand-badge {
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 800;
    color: #475569;
}

.sku-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.btn-sku-add {
    background: #0b1a30;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.15s ease;
}

.btn-sku-add:hover {
    background: #1e293b;
}

.btn-sku-quote {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.15s ease;
}

.btn-sku-quote:hover {
    background: #059669;
}

/* =========================================================================
   BANNER CTA AZUL B2B (SOLICITUD FORMAL DE COTIZACIÓN)
   ========================================================================= */
.b2b-formal-cta-banner {
    background: linear-gradient(135deg, #071e42 0%, #03408a 55%, #022352 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 34px 40px;
    color: #ffffff;
    width: 100%;
    max-width: 1440px;
    margin: 32px auto;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    box-shadow: 0 16px 40px rgba(2, 43, 100, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.b2b-formal-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 95% 10%, rgba(56, 189, 248, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(2, 132, 199, 0.18) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px;
    pointer-events: none;
}

.b2b-formal-cta-content,
.b2b-cta-left {
    position: relative;
    max-width: 720px;
    z-index: 2;
}

.cta-banner-pill-tag,
.b2b-cta-tag {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0b1e3b !important;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 5px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.cta-banner-pill-tag i,
.b2b-cta-tag i {
    color: #0b1e3b;
    font-size: 0.78rem;
}

.b2b-formal-cta-content h2,
.b2b-cta-left h3 {
    margin: 0 0 10px 0;
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.25;
    font-family: 'Outfit', 'Inter', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.b2b-formal-cta-content p,
.b2b-cta-left p {
    margin: 0;
    font-size: 0.94rem;
    color: #e2e8f0;
    line-height: 1.55;
    max-width: 650px;
}

.b2b-formal-cta-actions,
.b2b-cta-buttons {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    z-index: 2;
}

.btn-cta-quote-main,
.btn-cta-builder {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 35px;
    padding: 13px 26px;
    font-size: 0.88rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-decoration: none;
    outline: none;
    white-space: nowrap;
}

.btn-cta-quote-main:hover,
.btn-cta-builder:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.65);
    border-color: #ffffff;
}

.btn-cta-quote-main i,
.btn-cta-builder i {
    font-size: 1rem;
    color: #e0f2fe;
}

.btn-cta-whatsapp-alt,
.btn-cta-whatsapp {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 35px;
    padding: 13px 24px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    letter-spacing: 0.03em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-decoration: none;
    outline: none;
    white-space: nowrap;
}

.btn-cta-whatsapp-alt:hover,
.btn-cta-whatsapp:hover {
    background: linear-gradient(135deg, #4ade80 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.6);
    border-color: #ffffff;
}

.btn-cta-whatsapp-alt i,
.btn-cta-whatsapp i {
    font-size: 1.1rem;
    color: #ffffff;
}

@media (max-width: 992px) {
    .b2b-formal-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 26px;
    }
    .b2b-formal-cta-actions,
    .b2b-cta-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .b2b-formal-cta-banner {
        padding: 24px 18px;
        text-align: center;
        align-items: center;
    }
    .b2b-formal-cta-content h2,
    .b2b-cta-left h3 {
        font-size: 1.35rem;
    }
    .b2b-formal-cta-actions,
    .b2b-cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn-cta-quote-main,
    .btn-cta-builder,
    .btn-cta-whatsapp-alt,
    .btn-cta-whatsapp {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================================
   SEO & AUTORIDAD INDUSTRIAL B2B (HUB DE CONTENIDO & PREGUNTAS FRECUENTES)
   ========================================================================= */
.b2b-seo-authority-hub {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1.5px solid #e2e8f0;
    border-bottom: 1.5px solid #e2e8f0;
    padding: 50px 0;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.seo-hub-header {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 38px auto;
}

.seo-hub-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid #bae6fd;
}

.seo-hub-header h2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 14px 0;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.seo-hub-intro {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 auto;
}

.seo-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 38px;
}

.seo-pillar-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.seo-pillar-card:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}

.seo-pillar-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    border: 1px solid #7dd3fc;
}

.seo-pillar-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.seo-pillar-card p {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.seo-faq-accordion-block {
    max-width: 960px;
    margin: 0 auto 38px auto;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.seo-faq-heading {
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.seo-faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
}

.seo-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.seo-faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.94rem;
    font-weight: 800;
    color: #1e293b;
    cursor: pointer;
    padding: 4px 0;
    gap: 12px;
    transition: color 0.2s ease;
}

.seo-faq-question:hover {
    color: #0284c7;
}

.seo-faq-question i {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.seo-faq-item.active .seo-faq-question i {
    transform: rotate(180deg);
    color: #0284c7;
}

.seo-faq-answer {
    display: none;
    padding: 10px 0 4px 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}

.seo-faq-item.active .seo-faq-answer {
    display: block;
    animation: fadeInFaq 0.25s ease;
}

@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.seo-hub-cta-bar {
    background: linear-gradient(135deg, #071e42 0%, #03408a 60%, #022352 100%);
    border-radius: 14px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(2, 43, 100, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.seo-hub-cta-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.seo-hub-cta-text span {
    font-size: 0.86rem;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .seo-hub-header h2 {
        font-size: 1.35rem;
    }
    .seo-faq-accordion-block {
        padding: 20px 18px;
    }
    .seo-hub-cta-bar {
        flex-direction: column;
        text-align: center;
    }
    .seo-hub-cta-bar > div:last-child {
        width: 100%;
        flex-direction: column;
    }
}

/* =========================================================================
   EMPRESAS QUE CONFÍAN EN NOSOTROS (MARCAS & CLIENTES B2B)
   ========================================================================= */
/* =========================================================================
   EMPRESAS QUE CONFÍAN EN NOSOTROS (MARCAS & CLIENTES MARQUEE PASANTE)
   ========================================================================= */
.b2b-clients-trust-section {
    width: 100%;
    max-width: 100%;
    padding: 34px 0 28px 0;
    background: #ffffff;
    border-top: 1.5px solid #e2e8f0;
    border-bottom: 1.5px solid #e2e8f0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.clients-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.clients-section-header i {
    font-size: 1.25rem;
    color: #0284c7;
}

.clients-section-header h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 900;
    color: #0f2744;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marquee-container-infinite {
    display: flex;
    width: 100%;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

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

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

.client-chip {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    cursor: default;
}

.client-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.15);
    border-color: #0284c7;
    background: #ffffff;
    color: #0284c7;
}

/* =========================================================================
   SECCIÓN CORPORATIVA: PLANTA METALMECÁNICA & SHOWROOM COMERCIAL
   ========================================================================= */
.b2b-plant-showcase-section {
    width: 100%;
    max-width: 100%;
    background: #0b1526;
    color: #ffffff;
    padding: 50px 32px;
    border-top: 3px solid #0284c7;
    box-sizing: border-box;
}

.plant-showcase-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 36px auto;
}

.plant-showcase-tag {
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid #0284c7;
    color: #38bdf8;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.plant-showcase-header h3 {
    font-size: 1.55rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.plant-showcase-header p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}

.plant-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .plant-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .plant-capabilities-grid {
        grid-template-columns: 1fr;
    }
}

.plant-cap-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 24px 20px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.plant-cap-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: #38bdf8;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.15);
}

.plant-cap-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.plant-cap-card:hover .plant-cap-icon {
    background: #0284c7;
    color: #ffffff;
    transform: scale(1.08);
}

.plant-cap-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.plant-cap-card p {
    font-size: 0.77rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 14px 0;
    flex: 1;
}

.plant-cap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
}

/* =========================================================================
   PIE DE PÁGINA EMPRESARIAL (4 COLUMNAS & INTEGRADO A PANEL DE ADMINISTRADOR)
   ========================================================================= */
.promo-category-banner-red {
    background: #8b0000;
    color: #ffffff;
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: 1.15rem;
    font-weight: 900;
    text-align: center;
    padding: 10px 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(139, 0, 0, 0.4);
    border-bottom: 2px solid #660000;
    margin-bottom: 0;
}

.b2b-corporate-footer {
    background: #07152b;
    color: #ffffff;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Franja Superior de Contacto Rápido & Atención Nacional */
.footer-top-cta-banner {
    background: #024370;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 0;
}

.footer-cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-cta-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.footer-cta-callout strong {
    color: #38bdf8;
    font-size: 0.95rem;
}

.btn-footer-cta-quote {
    background: #ffffff;
    color: #024370;
    border: none;
    border-radius: 25px;
    padding: 8px 22px;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-footer-cta-quote:hover {
    background: #38bdf8;
    color: #07152b;
    transform: translateY(-2px);
}

/* 4 Column Main Grid */
.footer-main-grid-4col {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
    gap: 32px;
    padding: 44px 0 36px 0;
}

@media (max-width: 1024px) {
    .footer-main-grid-4col {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .footer-main-grid-4col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.footer-section-title {
    font-size: 0.92rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid #0284c7;
    width: fit-content;
}

.footer-branch-item {
    margin-bottom: 12px;
}

.branch-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 2px;
}

.branch-text {
    font-size: 0.72rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.45;
}

.footer-meta-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.73rem;
    color: #cbd5e1;
    margin-top: 10px;
    line-height: 1.4;
}

/* Links Lists */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 9px;
}

.footer-links-list a {
    color: #cbd5e1;
    font-size: 0.76rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.footer-links-list a i {
    font-size: 0.6rem;
    color: #38bdf8;
    transition: transform 0.15s ease;
}

.footer-links-list a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

.footer-links-list a:hover i {
    transform: translateX(2px);
}

/* RUC Quick Tool Card */
.footer-ruc-tool-card {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
}

.ruc-tool-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ruc-tool-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
}

.badge-active-sunat {
    background: rgba(16, 185, 129, 0.2);
    color: #4ade80;
    border: 1px solid #10b981;
    font-size: 0.62rem;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Social Icons */
.footer-social-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.social-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-circle-btn:hover {
    transform: translateY(-3px);
}

.social-circle-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-circle-btn.linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.social-circle-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.social-circle-btn.youtube:hover { background: #ff0000; border-color: #ff0000; }

/* Libro de Reclamaciones Official Button */
.btn-footer-reclamaciones-official {
    width: 100%;
    background: #111a2d;
    border: 1.5px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.btn-footer-reclamaciones-official:hover {
    background: #1a2744;
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
}

.btn-footer-reclamaciones-official i {
    font-size: 1.6rem;
    color: #f59e0b;
}

.btn-footer-reclamaciones-official strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    color: #ffffff;
}

.btn-footer-reclamaciones-official span {
    display: block;
    font-size: 0.65rem;
    color: #cbd5e1;
}

/* Bureau Veritas Badge Box */
.footer-cert-badge-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(185, 28, 28, 0.15);
    border: 1.5px solid #dc2626;
    border-radius: 8px;
    padding: 10px 14px;
}

.cert-bv-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #dc2626;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cert-bv-text strong {
    display: block;
    font-size: 0.76rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.cert-bv-text span {
    display: block;
    font-size: 0.68rem;
    color: #fca5a5;
    font-weight: 700;
}

.cert-bv-text small {
    display: block;
    font-size: 0.6rem;
    color: #94a3b8;
}

/* Bottom Copyright Bar */
.footer-bottom-copyright {
    background: #040c18;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
}

.footer-copyright-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.7rem;
    color: #64748b;
}

.staff-access-link {
    cursor: pointer;
    color: #64748b;
    font-size: 0.68rem;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.staff-access-link:hover {
    color: #38bdf8;
}

/* =========================================================================
   SEO KEYWORDS STRIP & FALABELLA ENTERPRISE FOOTER STYLING
   ========================================================================= */
.b2b-seo-keywords-strip {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
    padding: 40px 0 32px 0;
    color: #475569;
}

.b2b-seo-keywords-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .b2b-seo-keywords-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 576px) {
    .b2b-seo-keywords-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.seo-kw-col h4 {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}

.seo-kw-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-kw-list li {
    margin-bottom: 7px;
    font-size: 0.77rem;
    color: #64748b;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.seo-kw-list li::before {
    content: "•";
    color: #94a3b8;
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1;
}

.seo-kw-list a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s ease;
}

.seo-kw-list a:hover {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 600;
}

/* Libro de Reclamaciones Badge */
.libro-reclamaciones-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.libro-reclamaciones-badge:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Grid Completo de Clientes Homologados (Desplegable) */
.clients-full-grid-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.clients-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.client-full-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s ease;
}

.client-full-card:hover {
    border-color: #0284c7;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.client-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.client-card-info h5 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.client-card-info span {
    font-size: 0.68rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.client-card-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
}

/* =========================================================================
   MODAL DE INFORMACIÓN CORPORATIVA & LEGAL B2B (18 SUBPÁGINAS)
   ========================================================================= */
.corporate-modal-window {
    background: #ffffff;
    border-radius: 14px;
    width: 96%;
    max-width: 1080px;
    height: 88vh;
    max-height: 840px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.corporate-modal-header {
    background: linear-gradient(135deg, #07172c 0%, #0d2342 100%);
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0284c7;
    flex-shrink: 0;
}

.corporate-modal-body-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 860px) {
    .corporate-modal-body-layout {
        grid-template-columns: 1fr;
    }
    .corporate-sidebar-panel {
        display: none;
    }
    .corp-mobile-nav-selector {
        display: block !important;
    }
}

.corporate-sidebar-panel {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    padding: 14px 10px;
}

.corp-nav-group-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 10px 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.corp-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #334155;
    font-size: 0.77rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 2px;
    user-select: none;
}

.corp-nav-link i {
    width: 16px;
    color: #0284c7;
    text-align: center;
    font-size: 0.85rem;
}

.corp-nav-link:hover {
    background: #e2e8f0;
    color: #0284c7;
}

.corp-nav-link.active {
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
}

.corp-nav-link.active i {
    color: #ffffff;
}

.corporate-content-pane {
    padding: 26px 34px;
    overflow-y: auto;
    background: #ffffff;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.6;
}

.corp-breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.corp-page-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.corp-page-subtitle {
    font-size: 0.86rem;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.corp-card-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.corp-card-box h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.corp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin: 14px 0;
}

.corp-table th {
    background: #0f172a;
    color: #ffffff;
    text-align: left;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.75rem;
}

.corp-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.corp-table tr:hover td {
    background: #f1f5f9;
}

.corp-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.corp-badge-pill.blue {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.corp-badge-pill.green {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.corp-badge-pill.amber {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* =========================================================================
   MODAL: LIBRO DE RECLAMACIONES VIRTUAL (LEY N° 29571)
   ========================================================================= */
.reclamaciones-modal-window {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.reclamaciones-header {
    background: #071224;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f59e0b;
}

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

.reclamaciones-header-title i {
    font-size: 1.4rem;
    color: #f59e0b;
}

.reclamaciones-header-title h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.reclamaciones-header-title span {
    font-size: 0.68rem;
    color: #94a3b8;
}

.reclamaciones-body {
    padding: 20px;
    font-size: 0.76rem;
    color: #334155;
}

.reclamaciones-section-title {
    background: #f1f5f9;
    border-left: 3px solid #0284c7;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
    margin: 14px 0 10px 0;
    text-transform: uppercase;
}

.reclamaciones-section-title:first-of-type {
    margin-top: 0;
}

/* =========================================================================
   STICKY FAMILY HORIZONTAL NAVIGATION STRIP (MOCKUP 1 & REFERENCE FIORELLA)
   ========================================================================= */
.sticky-family-bar-wrapper {
    background: #ffffff;
    border-bottom: 1.5px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, background 0.2s ease;
    will-change: transform;
    transform: translateZ(0);
}

.sticky-family-bar-wrapper.is-sticky {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sticky-family-bar-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    box-sizing: border-box;
}

.slider-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
    flex-shrink: 0;
    z-index: 10;
    font-size: 0.85rem;
}

.slider-arrow-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: scale(1.08);
}

.families-slider-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: hidden;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 4px;
    flex: 1;
    width: 100%;
    cursor: grab;
}

.families-slider-strip::-webkit-scrollbar {
    display: none;
}

.family-chip-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    flex: 0 0 132px;
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    height: 104px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    flex-shrink: 0;
}

.family-chip-card:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.family-chip-card.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

.family-chip-card.active .chip-icon-circle {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.family-chip-card.active .chip-name {
    color: #ffffff !important;
    font-weight: 800;
}

.chip-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    overflow: hidden;
}

.chip-icon-circle img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.family-chip-card:hover .chip-icon-circle img {
    transform: scale(1.08);
}

.chip-name {
    font-size: 0.71rem;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.25;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    overflow: hidden;
    width: 100%;
}

/* =========================================================================
   SECCIONES DINÁMICAS POR FAMILIA
   ========================================================================= */
.family-catalog-sections-container {
    width: 100%;
    max-width: 100%;
}

.family-catalog-section {
    width: 100%;
    max-width: 100%;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 38px 0 44px 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: background-color 0.25s ease;
}

.family-catalog-section:nth-child(even) {
    background: #f1f5f9;
}

.family-layout-container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 280px 180px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .family-layout-container {
        grid-template-columns: 260px 160px minmax(0, 1fr);
        gap: 18px;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .family-layout-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }
}

/* Columna 1: Especificaciones Técnicas Oficiales */
.family-specs-column {
    background: transparent;
    padding-right: 12px;
}

.family-title-heading {
    font-size: 1.95rem;
    font-weight: 900;
    color: #004b87;
    margin: 0 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.family-specs-body {
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 0.81rem;
    color: #2d3748;
    line-height: 1.55;
}

.spec-prop-item {
    font-size: 0.80rem;
    color: #334155;
    line-height: 1.5;
}

.spec-prop-item strong {
    color: #0f172a;
    font-weight: 800;
    display: inline-block;
    margin-right: 4px;
}

.family-buttons-group {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

.btn-family-pill {
    background: #ffffff;
    color: #0066cc;
    border: 1.5px solid #0066cc;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.80rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-family-pill:hover {
    background: #0066cc;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
    transform: translateY(-1px);
}

/* Columna 2: Subcategorías Oficiales */
.family-subcats-column {
    background: transparent;
    padding: 0 8px;
}

.subcats-header-label {
    font-size: 0.84rem;
    font-weight: 900;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.family-subcats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.family-subcat-item {
    font-size: 0.83rem;
    color: #334155;
    cursor: pointer;
    padding: 7px 0;
    border-bottom: 1px solid #cbd5e1;
    transition: all 0.15s ease;
    text-decoration: none;
    display: block;
}

.family-subcat-item:hover {
    color: #0066cc;
    font-weight: 700;
    padding-left: 4px;
}

.family-subcat-item.active {
    color: #0284c7;
    font-weight: 800;
    padding-left: 8px;
    border-left: 3px solid #0284c7;
    background: #f0f9ff;
    border-radius: 0 4px 4px 0;
}

.family-subcat-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 3px solid #0284c7;
    border-radius: 6px;
    padding: 7px 14px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #334155;
    position: relative;
    z-index: 10;
}

.family-subcat-filter-bar .btn-clear-subcat {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 2px 6px;
    margin-right: 12px;
}

.family-subcat-filter-bar .btn-clear-subcat:hover {
    text-decoration: underline;
}

.family-subcat-filter-bar .link-cat-more {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.78rem;
}

.family-subcat-filter-bar .link-cat-more:hover {
    text-decoration: underline;
}
.family-products-column-wrap {
    position: relative;
    width: 100%;
    padding-top: 54px; /* Espacio superior para que el texto de fondo sobresalga visiblemente por encima de las tarjetas */
}

/* Marca de agua de fondo arquitectónica y altamente visible, idéntica a "ON FARM" */
.family-bg-watermark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: clamp(3.8rem, 7.8vw, 7.6rem);
    font-weight: 900;
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #cbd5e1; /* Gris sólido arquitectónico claro y altamente visible, idéntico a ON FARM */
    text-transform: uppercase;
    letter-spacing: 0.18em;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 1;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

/* Contenedor del Carrusel Automático */
.family-carousel-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
}

.family-carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 14px 4px 18px 4px;
}

.family-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.95s cubic-bezier(0.25, 1, 0.35, 1);
    will-change: transform;
    width: 100%;
}

.family-carousel-track .sku-b2b-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    box-sizing: border-box;
}

@media (max-width: 960px) {
    .family-carousel-track .sku-b2b-card {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .family-carousel-track .sku-b2b-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* Flechas de navegación del carrusel */
.family-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1e293b;
    font-size: 0.90rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.family-carousel-arrow:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.family-carousel-arrow.btn-prev {
    left: -16px;
}

.family-carousel-arrow.btn-next {
    right: -16px;
}

/* Indicadores de paginación / dots */
.family-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    position: relative;
    z-index: 2;
}

.family-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.family-dot.active {
    width: 24px;
    border-radius: 6px;
    background: #d90429;
}

/* Tarjeta B2B de Producto: Silueta curva superior derecha con Medidas 100% Fijas y Estables */
.sku-b2b-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 14px 44px 14px 14px;
    padding: 18px 16px 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 525px !important;
    min-height: 525px !important;
    max-height: 525px !important;
    position: relative;
    box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

/* Estado Elevado en Hover */
.sku-b2b-card:hover {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -8px rgba(2, 132, 199, 0.18), 0 6px 16px -4px rgba(15, 23, 42, 0.08) !important;
}

/* Estado Activo / Seleccionado (Estático, sin desplazamiento vertical) */
.sku-b2b-card.is-active {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 10px 28px -4px rgba(2, 132, 199, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
}

.sku-b2b-card:hover .sku-product-main-title {
    color: #0284c7 !important;
}

.sku-b2b-card:hover .sku-product-sub-spec {
    color: #334155 !important;
}

.sku-b2b-card:hover .sku-product-title {
    color: #0f172a !important;
}

.sku-b2b-card:hover .img-reference-note {
    color: #64748b !important;
}

.sku-b2b-card:hover .sku-card-meta-row {
    border-top-color: #cbd5e1 !important;
}

.sku-b2b-card:hover .sku-card-brand {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.sku-b2b-card:hover .sku-card-code {
    color: #475569 !important;
}

.sku-b2b-card:hover .sku-ver-mas-btn {
    color: #d90429 !important;
    font-weight: 800;
}

.sku-b2b-card:hover .sku-red-divider {
    width: 48px;
    background: #d90429 !important;
}

/* Contenedor de Imagen de Alto Impacto Visual con Medida Fija Estricta */
.sku-img-wrapper {
    width: 100%;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    position: relative;
    background: transparent;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
}

.sku-img-wrapper img {
    max-height: 215px !important;
    max-width: 90% !important;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.sku-b2b-card:hover .sku-img-wrapper img {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.16));
}

.img-reference-note {
    font-size: 0.65rem;
    color: #94a3b8;
    height: 16px;
    line-height: 16px;
    margin: 0 0 2px 0;
    overflow: hidden;
    display: block;
    font-style: italic;
    text-align: center;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

/* Barra roja horizontal distintiva estilo referencia */
.sku-red-divider {
    width: 36px;
    height: 3px;
    background: #d90429;
    border-radius: 2px;
    margin: 4px auto 8px auto;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.sku-card-info {
    width: 100%;
    text-align: center;
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Título principal en negrita con altura fija estricta */
.sku-product-main-title {
    font-size: 0.98rem;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 3px 0;
    line-height: 1.25;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    transition: color 0.25s ease;
}

/* Especificación técnica secundaria con altura fija estricta */
.sku-product-sub-spec {
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    line-height: 1.30;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    margin: 0;
    letter-spacing: 0.01em;
    transition: color 0.25s ease;
}

/* Fila de metadatos oficial con altura fija */
.sku-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 4px 2px 2px 2px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.72rem;
    box-sizing: border-box;
    transition: border-color 0.25s ease;
}

.sku-card-brand {
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.70rem;
    transition: all 0.25s ease;
}

.sku-card-code {
    color: #64748b;
    font-weight: 600;
    font-size: 0.71rem;
    letter-spacing: 0.3px;
    font-family: var(--font-mono, monospace);
    transition: color 0.25s ease;
}

/* Enlace "Ver más +" centrado */
.sku-card-cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 2px 0;
    cursor: pointer;
    box-sizing: border-box;
}

.sku-ver-mas-btn {
    color: #d90429;
    font-weight: 800;
    font-size: 0.80rem;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Botones rápidos: Espacio 100% pre-reservado con altura fija de 36px para eliminar saltos visuales */
.sku-quick-hover-actions {
    display: flex;
    gap: 6px;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    box-sizing: border-box;
    margin-top: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sku-b2b-card:hover .sku-quick-hover-actions,
.sku-b2b-card.is-active .sku-quick-hover-actions {
    opacity: 1;
    pointer-events: auto;
}

.btn-sku-add {
    flex: 1;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-sku-add:hover {
    background: #0369a1;
}

.btn-sku-quick-quote {
    flex: 1;
    background: #ffffff;
    color: #0284c7;
    border: 1.2px solid #0284c7;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-sku-quick-quote:hover {
    background: #f0f9ff;
    border-color: #0369a1;
    color: #0369a1;
}

.sku-b2b-card:hover .btn-sku-quick-quote,
.sku-b2b-card.is-active .btn-sku-quick-quote {
    background: #ffffff;
    border-color: #0284c7;
    color: #0284c7;
}

.sku-b2b-card:hover .btn-sku-quick-quote:hover,
.sku-b2b-card.is-active .btn-sku-quick-quote:hover {
    background: #0284c7;
    color: #ffffff;
}

/* =========================================================================
   6. MÓDULO DE CLIENTES & MARCAS CORPORATIVAS (MARQUEE PASANTE AUTOMÁTICO)
   ========================================================================= */
.b2b-clients-trust-section {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 28px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.clients-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 24px;
}

.clients-section-header i {
    color: #0284c7;
    font-size: 1.15rem;
}

.clients-section-header h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.marquee-container-infinite {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

/* =========================================================================
   6. MÓDULO DE LOGOS DE CLIENTES & MARCAS HOMOLOGADAS (SOLO LOGOS / 100% VISUAL)
   ========================================================================= */
.b2b-clients-trust-section {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 22px 0 24px 0;
    position: relative;
    overflow: hidden;
}

.clients-section-header-clean {
    text-align: center;
    margin-bottom: 14px;
    padding: 0 16px;
}

.clients-strip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #475569;
    background: #f8fafc;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.clients-strip-badge i {
    color: #0284c7;
    font-size: 0.8rem;
}

.marquee-container-infinite {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 4px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: marquee-scroll-infinite 38s linear infinite;
    padding: 4px 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.marquee-container-infinite:hover .marquee-track {
    animation-play-state: paused;
}

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

.client-logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 6px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.client-logo-item:hover {
    transform: translateY(-2px);
    border-color: #0284c7;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
    background: #ffffff;
}

.client-brand-logo-img {
    height: 30px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%) opacity(75%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.client-logo-item:hover .client-brand-logo-img {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.05);
}

/* =========================================================================
   6.1 PLANTA INDUSTRIAL METALMECÁNICA & SHOWROOM COMERCIAL
   ========================================================================= */
.b2b-plant-showcase-section {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    padding: 44px 32px;
    border-bottom: 1.5px solid #cbd5e1;
    box-sizing: border-box;
}

.plant-showcase-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 36px auto;
}

.plant-showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.plant-showcase-header h3 {
    font-size: 1.65rem;
    font-weight: 900;
    color: #0b1a30;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.plant-showcase-header p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.plant-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .plant-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .plant-capabilities-grid {
        grid-template-columns: 1fr;
    }
}

.plant-cap-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.plant-cap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.12);
    border-color: #0284c7;
}

.plant-cap-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.plant-cap-card:hover .plant-cap-icon {
    background: #0284c7;
    color: #ffffff;
}

.plant-cap-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.plant-cap-card p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex: 1;
}

.plant-cap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.70rem;
    font-weight: 800;
    color: #059669;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
}

/* =========================================================================
   MODAL DE MARCAS CERTIFICADAS POR FAMILIA
   ========================================================================= */
.b2b-brands-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.b2b-brands-modal-card {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: zoomModalIn 0.2s ease-out;
}

@keyframes zoomModalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.brands-modal-header {
    background: #003366;
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brands-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.brands-modal-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.brands-modal-close-btn:hover {
    opacity: 1;
}

.brands-modal-body {
    padding: 24px;
}

.brands-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 24px 0;
}

.brand-chip-item {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.brand-chip-item:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* =========================================================================
   WHITE-LABEL ENGINE: 8 PALETAS INDUSTRIALES RÁPIDAS
   ========================================================================= */
.wl-palettes-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #e2e8f0;
}

.wl-palettes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1400px) {
    .wl-palettes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wl-palettes-grid {
        grid-template-columns: 1fr;
    }
}

.wl-palette-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: relative;
}

.wl-palette-card:hover {
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
}

.wl-palette-card.active {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.pal-card-top {
    margin-bottom: 8px;
}

.pal-title {
    margin: 0 0 6px 0;
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.pal-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pal-desc {
    margin: 0 0 12px 0;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.45;
}

.pal-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.pal-swatches {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.pal-apply-link {
    font-size: 0.74rem;
    font-weight: 800;
    color: #0284c7;
    transition: transform 0.15s;
}

.wl-palette-card:hover .pal-apply-link {
    transform: translateX(3px);
}

/* =========================================================================
   TWO-COLUMN CUSTOMIZER SPLIT (SIMULADOR EN VIVO + ACORDEONES)
   ========================================================================= */
.wl-customizer-split {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 1200px) {
    .wl-customizer-split {
        grid-template-columns: 1fr;
    }
}

/* Simulador Web en Vivo */
.simulador-web-window {
    background: #090e17;
    border-radius: 12px;
    border: 1px solid #1e293b;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.sim-chrome-bar {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sim-chrome-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sim-dot.red { background: #ef4444; }
.sim-dot.yellow { background: #f59e0b; }
.sim-dot.green { background: #10b981; }

.sim-chrome-title {
    margin-left: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.sim-nav-pills {
    display: flex;
    gap: 6px;
}

.sim-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.sim-pill.active, .sim-pill:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.sim-viewport {
    background: #0a1628;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sim-micro-bar {
    background: #071224;
    color: #38bdf8;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.sim-header {
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.sim-brand-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sim-search-bar {
    flex: 1;
    display: flex;
    border: 1.5px solid #0284c7;
    border-radius: 4px;
    overflow: hidden;
    height: 24px;
}

.sim-search-bar input {
    flex: 1;
    border: none;
    padding: 0 6px;
    font-size: 0.65rem;
    background: #f8fafc;
    color: #64748b;
    outline: none;
}

.sim-search-bar button {
    background: #0284c7;
    color: #ffffff;
    border: none;
    width: 26px;
    cursor: pointer;
    font-size: 0.65rem;
}

.sim-header-actions {
    display: flex;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
}

.sim-btn-cat {
    background: #0284c7;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.sim-btn-cart {
    background: #0369a1;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.sim-navbar {
    background: #004085;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    gap: 16px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #ffffff;
    transition: all 0.2s ease;
}

.sim-nav-link {
    cursor: pointer;
    opacity: 0.85;
}

.sim-nav-link.active, .sim-nav-link:hover {
    opacity: 1;
    color: #fde047;
}

.sim-hero {
    background: linear-gradient(135deg, #0b2553 0%, #03408a 100%);
    color: #ffffff;
    padding: 18px 14px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transition: all 0.2s ease;
}

.sim-hero-tag {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.60rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sim-hero-title {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
}

.sim-hero-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 4px;
}

.sim-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.sim-prod-img-wrap {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.sim-prod-name {
    font-size: 0.70rem;
    font-weight: 800;
    color: #0f172a;
}

.sim-prod-price {
    font-size: 0.85rem;
    font-weight: 900;
    color: #059669;
}

.sim-prod-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
}

.sim-footer {
    background: #07162c;
    color: #94a3b8;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sim-contrast-bar {
    background: #090e17;
    border-top: 1px solid #1e293b;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-adjust-aaa {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid #10b981;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-adjust-aaa:hover {
    background: #10b981;
    color: #ffffff;
}

/* Accordions Column */
.wl-accordions-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wl-acc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.wl-acc-card.open {
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.wl-acc-header {
    background: #f8fafc;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.wl-acc-header:hover {
    background: #f1f5f9;
}

.wl-acc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wl-acc-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.72rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wl-acc-card.open .wl-acc-num {
    background: #0284c7;
    color: #ffffff;
}

.wl-acc-title {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
}

.wl-acc-sub {
    font-size: 0.68rem;
    color: #64748b;
    display: block;
    margin-top: 1px;
}

.wl-acc-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.wl-acc-card.open .wl-acc-arrow {
    transform: rotate(180deg);
    color: #0284c7;
}

.wl-acc-body {
    padding: 16px;
    display: none;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.wl-acc-card.open .wl-acc-body {
    display: block;
}

.wl-acc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wl-acc-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
}

.wl-color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wl-color-picker-wrap input[type="color"] {
    width: 38px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    background: #ffffff;
}

.wl-input-hex {
    width: 110px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-family: monospace;
    font-weight: 800;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    text-transform: uppercase;
}

.color-pills-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.color-pill-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.color-pill-btn:hover {
    background: #f1f5f9;
    border-color: #0284c7;
    color: #0284c7;
}

.color-pill-btn .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.wl-acc-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-ver-en-web {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #0284c7;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-ver-en-web:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.btn-ver-en-web.green {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
}

.btn-ver-en-web.green:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.btn-ver-en-web.yellow {
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.3);
    color: #d97706;
}

.btn-ver-en-web.yellow:hover {
    background: #d97706;
    color: #ffffff;
    border-color: #d97706;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.btn-ver-en-web.purple {
    background: rgba(147, 51, 234, 0.08);
    border-color: rgba(147, 51, 234, 0.3);
    color: #7e22ce;
}

.btn-ver-en-web.purple:hover {
    background: #7e22ce;
    color: #ffffff;
    border-color: #7e22ce;
    box-shadow: 0 2px 6px rgba(147, 51, 234, 0.35);
}

.btn-ver-en-web.pink {
    background: rgba(219, 39, 119, 0.08);
    border-color: rgba(219, 39, 119, 0.3);
    color: #db2777;
}

.btn-ver-en-web.pink:hover {
    background: #db2777;
    color: #ffffff;
    border-color: #db2777;
    box-shadow: 0 2px 6px rgba(219, 39, 119, 0.35);
}

/* Bottom Floating Sticky Bar */
.wl-sticky-bottom-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    margin-top: 24px;
    box-sizing: border-box;
}

.wl-sticky-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wl-sticky-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.78rem;
}

.wl-sticky-actions {
    display: flex;
    gap: 10px;
}

.btn-wl-sticky-reset {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-wl-sticky-reset:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-wl-sticky-save {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.80rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    transition: all 0.15s ease;
}

/* ==============================================================================
   REESTRUCTURACIÓN DE ARQUITECTURA: 3 ENTORNOS AISLADOS (STAFF BAR, AUTH & RBAC)
   ============================================================================== */

/* 1. Barra de Operaciones de Staff (Encabezado Maestro Único Estandarizado) */
.staff-operations-bar {
    background: #060d1a;
    border-bottom: 1px solid rgba(56, 189, 248, 0.22);
    position: sticky;
    top: 0;
    z-index: 100000;
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.staff-operations-bar-inner {
    padding: 0 10px;
    height: 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.staff-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.74rem;
    color: #f8fafc;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.staff-tower-header-btn {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.staff-tower-header-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.staff-role-badge {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3);
}

.staff-role-badge.superadmin {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 900;
}

.staff-role-badge.seller {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.staff-nav-pills {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 3px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 1;
}
.staff-nav-pills::-webkit-scrollbar {
    display: none;
}

.staff-pill-btn {
    padding: 3px 7px;
    font-size: 0.70rem;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.staff-pill-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
}

.staff-pill-btn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.45);
}

.seller-restricted-pill {
    font-size: 0.70rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 7px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.staff-actions-cluster {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.staff-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.69rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-staff-tool {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.69rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}

.btn-staff-tool:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

.btn-staff-logout {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.32);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.69rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}

.btn-staff-logout:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}


/* 2. Modales de Autenticación y RBAC */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    color: #f8fafc;
    animation: authModalFadeIn 0.2s ease-out;
}

.auth-modal-card.light {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

@keyframes authModalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.auth-modal-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-modal-card.light .auth-modal-header {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.auth-modal-header-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.auth-modal-icon-badge.amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.auth-modal-icon-badge.blue {
    background: rgba(2, 132, 199, 0.15);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.3);
}

.auth-modal-titles h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.auth-modal-titles p {
    margin: 3px 0 0;
    font-size: 0.74rem;
    color: #94a3b8;
}

.auth-modal-card.light .auth-modal-titles p {
    color: #64748b;
}

.auth-modal-close-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

.auth-modal-close-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

.auth-modal-card.light .auth-modal-close-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.auth-modal-body {
    padding: 24px;
}

.auth-field-group {
    margin-bottom: 16px;
}

.auth-field-group label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #cbd5e1;
}

.auth-modal-card.light .auth-field-group label {
    color: #334155;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #ffffff;
    transition: border-color 0.15s;
}

.auth-modal-card.light .auth-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.auth-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.btn-auth-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.btn-auth-submit.amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-auth-submit.amber:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
}

.btn-auth-submit.blue {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-auth-submit.blue:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
}

.auth-presets-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-modal-card.light .auth-presets-section {
    border-top: 1px solid #e2e8f0;
}

.auth-presets-title {
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-modal-card.light .auth-presets-title {
    color: #64748b;
}

.auth-preset-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-preset-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.auth-modal-card.light .auth-preset-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.auth-preset-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.auth-modal-card.light .auth-preset-card:hover {
    background: #f1f5f9;
    border-color: #0284c7;
}

.auth-preset-role {
    font-size: 0.68rem;
    font-weight: 800;
    color: #38bdf8;
    display: block;
    margin-bottom: 2px;
}

.auth-preset-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.auth-modal-card.light .auth-preset-name {
    color: #0f172a;
}

.auth-preset-hint {
    font-size: 0.66rem;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.auth-modal-card.light .auth-preset-hint {
    color: #64748b;
}

/* 3. Toast Industrial Notification */
.app-industrial-toast {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1000000;
    background: #0f172a;
    border-left: 3px solid #38bdf8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    max-width: 340px;
    animation: toastSlideIn 0.25s ease-out;
}

.app-industrial-toast.warning {
    border-left-color: #f59e0b;
}

.app-industrial-toast.error {
    border-left-color: #ef4444;
}

.app-industrial-toast.success {
    border-left-color: #10b981;
}

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

/* ==========================================================================
   B2B FULL CATALOG VIEW, GATEKEEPER & TECHNICAL PRODUCT CARDS
   ========================================================================== */
.catalog-breadcrumb-strip {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    margin-bottom: 20px;
}

.breadcrumb-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #64748b;
}

.crumb-link {
    color: #0284c7;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.crumb-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

.crumb-sep {
    color: #cbd5e1;
}

.crumb-active {
    color: #1e293b;
    font-weight: 700;
}

/* Main 2-column layout */
.catalog-split-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 60px;
}

/* Sidebar Styles */
.catalog-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   FALABELLA STYLE ACCORDION & PILL FILTERS (CATALOG SIDEBAR)
   ========================================================================== */
.sidebar-filter-header-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.filter-bar-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-main-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-all-filters {
    background: transparent;
    border: 1px solid #fecaca;
    color: #ef4444;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}

.btn-clear-all-filters:hover {
    background: #fee2e2;
    border-color: #f87171;
}

.active-filter-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.active-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #0369a1;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.active-tag-chip .remove-tag {
    cursor: pointer;
    font-weight: 900;
    color: #0284c7;
}

.active-tag-chip .remove-tag:hover {
    color: #ef4444;
}

.filter-accordion-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.filter-accordion-header {
    background: #f8fafc;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    border-bottom: 1px solid transparent;
}

.filter-accordion-header:hover {
    background: #f1f5f9;
}

.filter-accordion-card.open .filter-accordion-header {
    border-bottom: 1px solid #e2e8f0;
}

.accordion-title-text {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-chevron {
    font-size: 0.7rem;
    color: #64748b;
    transition: transform 0.2s ease;
}

.filter-accordion-card:not(.open) .filter-accordion-body {
    display: none;
}

.filter-accordion-card:not(.open) .accordion-chevron {
    transform: rotate(180deg);
}

.filter-accordion-body {
    padding: 12px 14px;
}

/* Tag Pills Grid like Falabella (Red Box) */
.filter-pills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1.25;
}

.filter-pill-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.filter-pill-btn.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.filter-measures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.filter-measure-btn {
    padding: 6px 4px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-measure-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.filter-measure-btn.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.sidebar-category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sidebar-card-title {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-all-categories-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0284c7;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s;
}

.sidebar-all-categories-item:hover,
.sidebar-all-categories-item.active {
    background: #f0f9ff;
    color: #0369a1;
    font-weight: 800;
}

.sidebar-categories-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: all 0.15s;
}

.cat-nav-item:last-child {
    border-bottom: none;
}

.cat-nav-item:hover {
    background: #f8fafc;
    color: #0284c7;
    padding-left: 18px;
}

.cat-nav-item.active {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
    border-left: 3px solid #0284c7;
}

.cat-count-pill {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
}

.cat-nav-item.active .cat-count-pill {
    color: #0284c7;
}

.sidebar-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sidebar-filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.sidebar-check-item input[type="checkbox"] {
    accent-color: #0284c7;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.sidebar-check-item:hover .check-label-text {
    color: #0284c7;
}

/* Right Main Catalog Grid Section */
.catalog-grid-panel {
    display: flex;
    flex-direction: column;
}

.catalog-title-strip {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-section-h2 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0056b3;
    letter-spacing: -0.3px;
    margin: 0;
}

.catalog-total-counter-text {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

/* 5-Column Grid Layout for Technical Cards */
.catalog-cards-grid-5cols {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1440px) {
    .catalog-cards-grid-5cols {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1150px) {
    .catalog-cards-grid-5cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .catalog-split-container {
        grid-template-columns: 1fr;
    }
    .catalog-cards-grid-5cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .catalog-cards-grid-5cols {
        grid-template-columns: 1fr;
    }
}

/* Technical Product Card */
.b2b-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    position: relative;
}

.b2b-product-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
    transform: translateY(-2px);
}

.card-img-wrapper {
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.card-product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

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

.card-body-content {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category-tag {
    font-size: 0.66rem;
    font-weight: 800;
    color: #0d9488;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-product-title {
    font-size: 0.77rem;
    font-weight: 700;
    color: #0369a1;
    line-height: 1.25;
    margin: 0 0 6px 0;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta-line {
    font-size: 0.69rem;
    color: #64748b;
    margin-bottom: 3px;
    display: flex;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-sku-parent-code {
    color: #0284c7;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
}

.card-brand-name {
    color: #0f172a;
    font-weight: 800;
}

.meta-pipe {
    color: #cbd5e1;
}

.card-material-line {
    font-size: 0.69rem;
    color: #64748b;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-bullet {
    color: #94a3b8;
    font-size: 0.6rem;
    vertical-align: middle;
}

.card-measure-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.69rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.measure-label {
    display: flex;
    align-items: center;
    gap: 3px;
}

.badge-child-sku {
    background: #f1f5f9;
    color: #0284c7;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.66rem;
    font-family: var(--font-mono, monospace);
    font-weight: 800;
}

.card-selector-container {
    position: relative;
    margin-bottom: 10px;
}

.card-variant-select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 5px 24px 5px 8px;
    font-size: 0.76rem;
    font-weight: 600;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    appearance: none;
    transition: border-color 0.15s;
}

.card-variant-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.select-chevron-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.65rem;
    color: #64748b;
}

/* Action Area */
.card-action-zone {
    margin-top: auto;
    padding-top: 4px;
}

/* Gatekeeper Lock Button */
.btn-gatekeeper-lock {
    background: #0056b3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 6px;
    font-size: 0.74rem;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    cursor: pointer;
    line-height: 1.25;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.25);
    transition: all 0.15s ease;
}

.btn-gatekeeper-lock:hover {
    background: #004494;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.35);
    transform: translateY(-1px);
}

.btn-gatekeeper-lock i {
    font-size: 0.85rem;
}

/* Unlocked State */
.unlocked-price-box {
    margin-bottom: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}

.unlocked-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #059669;
    font-weight: 900;
    font-size: 1.05rem;
}

.unlocked-tax-note {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
}

.unlocked-stock-badge {
    display: block;
    font-size: 0.68rem;
    color: #059669;
    font-weight: 700;
    margin-top: 2px;
}

.unlocked-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.btn-card-add-cart {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 7px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s;
}

.btn-card-add-cart:hover {
    background: #0369a1;
}

.btn-card-quick-order {
    background: #ea580c;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 7px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s;
}

.btn-card-quick-order:hover {
    background: #c2410c;
}

/* ==========================================================================
   CATALOG PAGINATION & EMPTY STATE (50 PRODUCTOS POR PÁGINA)
   ========================================================================== */
.catalog-empty-state-card {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 50px 24px;
    text-align: center;
    color: #475569;
    margin: 20px 0;
}
.catalog-empty-state-card i {
    font-size: 3rem;
    color: #0284c7;
    margin-bottom: 14px;
    opacity: 0.85;
}
.catalog-empty-state-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}
.catalog-empty-state-card p {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0 0 20px 0;
}

.catalog-pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    width: 100%;
}
.catalog-pagination-info {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}
.catalog-pagination-info strong {
    color: #0f172a;
}
.catalog-pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.catalog-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.catalog-page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #0284c7;
    color: #0284c7;
}
.catalog-page-btn.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}
.catalog-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
}
.catalog-page-dots {
    padding: 0 4px;
    color: #94a3b8;
    font-weight: 700;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (FICHA TÉCNICA EXTENDIDA B2B ESTILO ALIBABA / ALIEXPRESS)
   ========================================================================== */
.pdp-main-wrapper {
    padding-bottom: 60px;
}

.pdp-top-grid-3col {
    display: grid;
    grid-template-columns: 460px 1fr 340px;
    gap: 28px;
    margin-bottom: 40px;
    align-items: start;
}

@media (max-width: 1300px) {
    .pdp-top-grid-3col {
        grid-template-columns: 400px 1fr 310px;
        gap: 20px;
    }
}

@media (max-width: 1080px) {
    .pdp-top-grid-3col {
        grid-template-columns: 1fr 320px;
    }
    .pdp-col-gallery {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .pdp-top-grid-3col {
        grid-template-columns: 1fr;
    }
}

/* Gallery Column */
.pdp-gallery-card {
    display: flex;
    gap: 12px;
}

.pdp-thumbnails-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 64px;
    align-items: center;
}

.pdp-thumb-chevron {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    width: 100%;
    padding: 4px;
    cursor: pointer;
    color: #64748b;
    font-size: 0.75rem;
    transition: all 0.15s;
}

.pdp-thumb-chevron:hover {
    background: #e2e8f0;
    color: #0284c7;
}

.pdp-thumb-img-box {
    width: 60px;
    height: 60px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: all 0.15s;
}

.pdp-thumb-img-box:hover {
    border-color: #93c5fd;
}

.pdp-thumb-img-box.active {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.pdp-thumb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdp-main-image-box {
    flex-grow: 1;
    height: 380px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px;
    overflow: hidden;
}

.pdp-main-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pdp-main-image-box:hover .pdp-main-img {
    transform: scale(1.08);
}

.pdp-gallery-badge-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pdp-zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s;
}

.pdp-zoom-btn:hover {
    background: #0284c7;
}

.pdp-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    color: #334155;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.15s;
}

.pdp-nav-arrow:hover {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}

.pdp-nav-arrow.left { left: 8px; }
.pdp-nav-arrow.right { right: 8px; }

.pdp-trust-badges-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.pdp-trust-badge {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #ffffff;
}

.pdp-pdf-download-box {
    margin-top: 14px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.pdp-pdf-download-box:hover {
    background: #fee2e2;
    border-color: #f87171;
    transform: translateY(-1px);
}

.pdp-pdf-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdp-pdf-desc {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}

/* Center Content Column */
.pdp-center-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdp-top-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.pdp-official-cat-link {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pdp-recommended-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.68rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pdp-product-h1 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: var(--fw-black);
    color: #0b192c;
    line-height: 1.25;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: var(--tracking-industrial);
}

.pdp-ratings-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    flex-wrap: wrap;
}

.pdp-stars-rating {
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.pdp-units-supplied {
    color: #059669;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pdp-brand-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.pdp-brand-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    color: #334155;
}

.pdp-stock-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
}

.pdp-coating-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.pdp-coating-pill {
    border: 1.5px solid #0284c7;
    background: #f0f9ff;
    color: #0369a1;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.pdp-sizes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdp-sizes-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
}

.pdp-active-size-tag {
    font-size: 0.74rem;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
}

.pdp-sizes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin: 6px 0;
}

@media (max-width: 500px) {
    .pdp-sizes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pdp-size-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 6px;
    padding: 7px 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    color: #334155;
}

.pdp-size-btn:hover {
    border-color: #0284c7;
    color: #0284c7;
}

.pdp-size-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.pdp-variant-info-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.72rem;
    display: flex;
    gap: 14px;
    color: #475569;
    font-weight: 600;
    flex-wrap: wrap;
}

.pdp-specs-quick-card {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.pdp-specs-quick-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pdp-spec-quick-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    font-size: 0.76rem;
    padding: 5px 0;
    border-bottom: 1px solid #f8fafc;
}

.pdp-spec-quick-row dt {
    color: #64748b;
    font-weight: 600;
}

.pdp-spec-quick-row dd {
    color: #1e293b;
    font-weight: 700;
    margin: 0;
}

.pdp-about-article-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-top: 10px;
}

.pdp-about-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.pdp-about-bullet {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.76rem;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 8px;
}

.pdp-about-bullet:last-child {
    margin-bottom: 0;
}

.pdp-bullet-check {
    color: #059669;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Commercial Buy Box Column */
.pdp-commercial-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdp-corporate-tariff-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.pdp-price-gatekeeper-zone {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.pdp-masked-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

.pdp-btn-register-company {
    background: #065f46;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.pdp-btn-register-company:hover {
    background: #047857;
    transform: translateY(-1px);
}

.pdp-login-sublink {
    font-size: 0.72rem;
    color: #0284c7;
    margin-top: 6px;
    display: block;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
}

.pdp-login-sublink:hover {
    text-decoration: underline;
}

.pdp-unlocked-price-zone {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.pdp-unlocked-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #059669;
    font-weight: 900;
    font-size: 1.4rem;
}

.pdp-logistics-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.72rem;
    color: #334155;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdp-logistics-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.35;
}

.pdp-logistics-item i {
    font-size: 0.8rem;
    margin-top: 2px;
}

.pdp-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.pdp-qty-stepper {
    display: flex;
    align-items: center;
}

.pdp-qty-btn {
    width: 30px;
    height: 32px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-qty-btn:first-child { border-radius: 4px 0 0 4px; }
.pdp-qty-btn:last-child { border-radius: 0 4px 4px 0; }

.pdp-qty-input {
    width: 44px;
    height: 32px;
    text-align: center;
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    border-left: none;
    border-right: none;
    font-weight: 800;
    font-size: 0.82rem;
}

.pdp-actions-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdp-btn-cart {
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.pdp-btn-cart:hover {
    background: #004085;
}

.pdp-btn-buy-now {
    background: #ea580c;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.pdp-btn-buy-now:hover {
    background: #c2410c;
}

.pdp-btn-quote-portal {
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.pdp-btn-quote-portal:hover {
    background: #1e293b;
}

.pdp-btn-whatsapp {
    background: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.pdp-btn-whatsapp:hover {
    background: #047857;
}

.pdp-vendor-meta {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.5;
}

.pdp-vendor-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.pdp-vendor-row strong {
    color: #0f172a;
}

.pdp-aux-actions {
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #0284c7;
}

.pdp-aux-btn {
    background: none;
    border: none;
    color: #0284c7;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pdp-aux-btn:hover {
    text-decoration: underline;
}

/* Bottom Engineering Table */
.pdp-engineering-section {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.pdp-engineering-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0056b3;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-engineering-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.pdp-engineering-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.pdp-engineering-table tr:last-child {
    border-bottom: none;
}

.pdp-engineering-table tr:nth-child(even) {
    background: #fbfcfe;
}

.pdp-engineering-table th {
    padding: 10px 14px;
    font-weight: 700;
    color: #0f172a;
    width: 28%;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    text-align: left;
}

.pdp-engineering-table td {
    padding: 10px 14px;
    color: #334155;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   FALABELLA STYLE UTILITY DROPDOWNS & TOP BAR ENHANCEMENTS
   -------------------------------------------------------------------------- */
.micro-links .dropdown-wrapper {
    position: relative;
    user-select: none;
}

.micro-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 270px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
    z-index: 999999;
}

.micro-dropdown-menu .dropdown-header {
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.micro-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.76rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: background 0.15s ease;
}

.micro-dropdown-menu .dropdown-item:hover {
    background: #1e293b;
    color: #38bdf8;
}

.micro-dropdown-menu .dropdown-item.whatsapp:hover {
    color: #4ade80;
}

.micro-dropdown-menu .dropdown-footer {
    padding: 6px 14px 4px 14px;
    font-size: 0.65rem;
    color: #64748b;
    border-top: 1px solid #1e293b;
}

/* --------------------------------------------------------------------------
   B2B LEAD ACQUISITION & MASS MAILING BANNER
   -------------------------------------------------------------------------- */
.b2b-lead-capture-banner {
    background: linear-gradient(135deg, #091a2e 0%, #0f172a 100%);
    border-top: 2px solid #0284c7;
    border-bottom: 1px solid #1e293b;
    padding: 24px 0;
    color: white;
}

.b2b-lead-capture-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.lead-capture-info .lead-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.lead-capture-info h2 {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.25;
}

.lead-capture-info p {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.lead-capture-info strong {
    color: #38bdf8;
}

.quick-lead-form {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.quick-lead-row {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr auto;
    gap: 8px;
}

.quick-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.quick-input-wrap i {
    position: absolute;
    left: 10px;
    color: #64748b;
    font-size: 0.8rem;
    pointer-events: none;
}

.quick-input-wrap input {
    width: 100%;
    padding: 10px 10px 10px 30px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.quick-input-wrap input:focus {
    border-color: #0284c7;
}

.btn-quick-lead-submit {
    background: #0284c7;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.btn-quick-lead-submit:hover {
    background: #0369a1;
}

.quick-lead-footer {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.68rem;
    color: #94a3b8;
}

.quick-lead-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 900px) {
    .b2b-lead-capture-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .quick-lead-row {
        grid-template-columns: 1fr;
    }
    .btn-quick-lead-submit {
        padding: 12px;
        justify-content: center;
    }
}

/* ==========================================================================
   ALIBABA SMART AI BOT & RFQ PRE-ANALYSIS MESSAGES
   ========================================================================== */
.sm-messages-stream .chat-bubble-wrap.bot-msg {
    align-self: flex-end;
    align-items: flex-end;
    margin-left: auto;
    max-width: 84%;
}

.sm-messages-stream .chat-bubble-wrap.bot-msg .chat-bubble {
    background: #f0f7ff !important;
    border: 1.5px solid #93c5fd !important;
    color: #0f172a !important;
    border-radius: 12px 12px 2px 12px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.09) !important;
    font-size: 0.81rem;
    line-height: 1.55;
    padding: 10px 14px;
}

.sm-messages-stream .chat-bubble-wrap.bot-msg .chat-bubble strong {
    color: #1d4ed8;
    font-weight: 800;
}

.badge-bot-ai {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.btn-scenario-pick {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.btn-scenario-pick:hover {
    background: #f0f9ff;
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.12);
}

.btn-scenario-pick strong {
    font-size: 0.78rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-scenario-pick span {
    font-size: 0.73rem;
    color: #475569;
    font-style: italic;
    line-height: 1.35;
}

/* ==============================================================================
   SOLCOT STUDIO - REDISEÑO PROFESIONAL DE PARTIDAS TÉCNICAS (B2B ERP)
   ============================================================================== */
.product-combo-wrapper {
    position: relative;
    width: 100%;
}

.product-combo-input-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.product-combo-input-box:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.product-combo-search-icon {
    padding: 0 8px 0 10px;
    color: #64748b;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.product-combo-wrapper .item-desc-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 7px 4px !important;
    box-shadow: none !important;
    width: 100%;
}

.product-combo-wrapper .btn-clear-combo {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: color 0.15s;
}

.product-combo-wrapper .btn-clear-combo:hover {
    color: #ef4444;
}

.product-combo-wrapper .btn-dropdown-combo {
    background: transparent;
    border: none;
    border-left: 1px solid #e2e8f0;
    color: #64748b;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.15s;
}

.product-combo-wrapper .btn-dropdown-combo:hover {
    color: #0284c7;
    background: #f8fafc;
}

.product-live-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #0284c7;
    border-radius: 8px;
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
    z-index: 1050;
    max-height: 280px;
    overflow-y: auto;
}

.product-live-results.hidden {
    display: none !important;
}

.product-live-result-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.product-live-result-item:hover {
    background: #f0f9ff;
}

.product-live-result-item:last-child {
    border-bottom: none;
}

/* Technical Regime & Bullets Toolbar */
.item-specs-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 0 4px 0;
    flex-wrap: wrap;
}

.item-regime-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 250px;
}

.item-regime-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.item-regime-select {
    font-size: 0.7rem;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 3px 8px;
    outline: none;
    transition: all 0.15s;
    flex: 1;
    max-width: 320px;
}

.item-regime-select:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.item-specs-tools-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-specs-tool {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.btn-specs-tool:hover {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

/* Enlarged Auto-resizable Textarea */
.editor-items-table .item-specs-input {
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.74rem !important;
    line-height: 1.45 !important;
    color: #1e293b !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    resize: none !important;
    min-height: 72px !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

.editor-items-table .item-specs-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
    outline: none !important;
}

/* Clean Multimedia Trigger Button */
.btn-item-media-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.btn-item-media-trigger:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0284c7;
}

.btn-item-media-trigger.has-media {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.btn-item-media-trigger.has-media:hover {
    background: #dcfce7;
    border-color: #4ade80;
}

.btn-item-media-trigger .media-thumb {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
}

/* Operational Columns & Pricing */
.editor-items-table .item-unit-select {
    width: 100%;
    padding: 6px 4px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
}

.editor-items-table .item-qty-input {
    width: 100%;
    padding: 6px 4px;
    font-size: 0.76rem;
    font-weight: 800;
    font-family: ui-monospace, monospace;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    text-align: center;
}

.editor-items-table .item-price-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 0.76rem;
    font-weight: 800;
    font-family: ui-monospace, monospace;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    text-align: right;
    transition: all 0.15s;
}

.editor-items-table .item-price-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
    outline: none;
}

.editor-items-table .price-floor-warning {
    margin-top: 4px;
    padding: 3px 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #dc2626;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.1);
}

.editor-items-table .price-floor-warning.hidden {
    display: none !important;
}

.editor-items-table .editor-row-total {
    font-family: ui-monospace, monospace;
    font-weight: 800;
    font-size: 0.85rem;
    color: #0f172a;
    white-space: nowrap;
}

/* Drag and Drop Zone in Modal */
.modal-dropzone-box {
    border: 2px dashed #93c5fd;
    background: #f8fafc;
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-dropzone-box:hover, .modal-dropzone-box.drag-over {
    border-color: #0284c7;
    background: #eff6ff;
}

/* =========================================================================
   MODAL DE VALIDACIÓN DE COTIZACIÓN Y LÍNEA DE CRÉDITO B2B
   ========================================================================= */
.b2b-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 100000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.b2b-modal-overlay.active,
.b2b-modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.b2b-validation-modal-card {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
    margin: auto;
}

.b2b-validation-modal-card.credit-modal-card {
    max-width: 700px;
}

.b2b-validation-modal-card .val-modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 75px);
}

.val-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.val-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.solcot-badge-tag {
    display: inline-block;
    background: #0284c7;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 3px;
    font-family: var(--font-mono, monospace);
}

.val-modal-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease;
}
.val-modal-close:hover {
    color: #0f172a;
}

.val-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.val-alert-message-box {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.val-alert-message-box i {
    color: #16a34a !important;
}

.val-quote-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}

.val-sum-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.val-sum-item .label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.val-sum-item .value {
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 700;
}

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

.btn-val-chat {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}
.btn-val-chat:hover {
    background: #0369a1;
}

.btn-val-history {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}
.btn-val-history:hover {
    background: #e2e8f0;
}

.btn-val-a4 {
    background: transparent;
    color: #64748b;
    border: none;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-val-a4:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* =========================================================================
   LÍNEA DE CRÉDITO CORPORATIVO & CARRITO MULTIMEDIA
   ========================================================================= */
.kpi-badge-status {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}
.kpi-badge-status.approved {
    background: #dcfce7;
    color: #166534;
}

.kpi-card.kpi-credit-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.kpi-card.kpi-credit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
    border-color: #38bdf8;
}

.credit-file-upload-box:hover {
    border-color: #0284c7 !important;
    background: #eff6ff !important;
}

.cart-product-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 2px;
}

.cart-file-attachment-section {
    transition: border-color 0.15s ease;
}
.cart-file-attachment-section:hover {
    border-color: #0284c7 !important;
}

/* =========================================================================
   SUB-VISTA: MAESTRANZA & CALDERERÍA PESADA (#store-maestranza-view)
   ========================================================================= */
#store-maestranza-view {
    background: radial-gradient(circle at 50% 0%, #0d2038 0%, #060e1c 100%);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-y: visible !important;
    padding-bottom: 70px;
    position: relative;
}

#store-maestranza-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
}

.maestranza-hero {
    background: linear-gradient(135deg, #07162c 0%, #0b2244 50%, #081a33 100%);
    color: #ffffff;
    padding: 48px 0 42px 0;
    border-bottom: 2px solid #0284c7;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.maestranza-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 30%, rgba(2, 132, 199, 0.22) 0%, transparent 60%);
    pointer-events: none;
}

.maestranza-hero-inner {
    position: relative;
    z-index: 2;
}

.maestranza-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.maestranza-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 14px 0;
    color: #ffffff;
}

.maestranza-title span {
    color: #38bdf8;
}

.maestranza-desc {
    font-size: 1.02rem;
    color: #cbd5e1;
    max-width: 880px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.maestranza-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.maestranza-kpi-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px;
    backdrop-filter: blur(6px);
}

.maestranza-kpi-item .kpi-num {
    font-size: 1.45rem;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.maestranza-kpi-item .kpi-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Badges de Pipeline Rápido en ADN */
.dna-pipeline-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.dna-pipe-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #e2e8f0;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.dna-pipe-pill:hover {
    border-color: #38bdf8;
    background: rgba(2, 132, 199, 0.2);
    color: #ffffff;
}

/* Card Principal de Cotización & Recepción Técnica de Planos */
.maestranza-quote-card {
    background: linear-gradient(180deg, #0d1e38 0%, #071224 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.maestranza-quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.maestranza-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.maestranza-form-label i {
    color: #38bdf8;
    margin-right: 5px;
}

.maestranza-form-control {
    width: 100%;
    background: #050d1a !important;
    border: 1px solid #23354e !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 11px 14px !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.maestranza-form-control:focus {
    outline: none;
    border-color: #0284c7 !important;
    background: #081324 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25) !important;
}

.maestranza-form-control::placeholder {
    color: #64748b;
}

.maestranza-dropzone {
    border: 2px dashed rgba(56, 189, 248, 0.4);
    background: rgba(7, 16, 30, 0.85);
    border-radius: 12px;
    padding: 26px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.maestranza-dropzone:hover {
    border-color: #38bdf8;
    background: rgba(12, 25, 46, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.15);
}

/* Maquinaria Showcase Cards */
.machinery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.machinery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.machinery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(0,0,0,0.12);
}

.machinery-card-header {
    background: #0f172a;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.machinery-card-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.machinery-card-header h4 i {
    color: #38bdf8;
}

.machinery-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.machinery-card-body p {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.machinery-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    font-size: 0.8rem;
    color: #334155;
}

.machinery-specs-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #f1f5f9;
    display: flex;
    justify-content: space-between;
}

.machinery-specs-list li strong {
    color: #0f172a;
}

/* =========================================================================
   WIDGET FLOTANTE B2B: WHATSAPP MULTI-ÁREA & TRADE MESSENGER (ALIBABA STYLE)
   ========================================================================= */
.floating-b2b-hub-container {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99998;
    font-family: 'Inter', system-ui, sans-serif;
}

.floating-b2b-hub-trigger {
    background: linear-gradient(135deg, #07162c 0%, #0369a1 100%);
    color: #ffffff;
    border: 2px solid #38bdf8;
    border-radius: 9999px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.5), 0 0 0 1px rgba(255,255,255,0.2) inset;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    outline: none;
}

.floating-b2b-hub-trigger:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px -4px rgba(2, 132, 199, 0.65);
    background: linear-gradient(135deg, #0b2244 0%, #0284c7 100%);
}

.hub-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    border: 2px solid #38bdf8;
    top: -2px;
    left: -2px;
    animation: hubPulse 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0.6;
}

@keyframes hubPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 0; }
    100% { transform: scale(1.08); opacity: 0; }
}

.hub-trigger-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.25rem;
}

.hub-icon-wa {
    color: #22c55e;
}

.hub-icon-chat {
    color: #38bdf8;
}

.hub-trigger-label {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hub-trigger-title {
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.hub-trigger-sub {
    font-size: 0.68rem;
    font-weight: 700;
    color: #bae6fd;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hub-dot-online {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #22c55e;
}

/* Panel Desplegable */
.floating-b2b-hub-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 370px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px #e2e8f0;
    overflow: hidden;
    animation: hubPopIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 99999;
}

@keyframes hubPopIn {
    0% { transform: scale(0.92) translateY(16px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.b2b-hub-header {
    background: linear-gradient(135deg, #07162c 0%, #0c203b 100%);
    color: #ffffff;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0284c7;
}

.b2b-hub-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-avatar-cluster {
    position: relative;
    width: 36px;
    height: 36px;
    background: #0284c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
}

.hub-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #07162c;
    border-radius: 50%;
}

.b2b-hub-header h4 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.b2b-hub-header span {
    font-size: 0.7rem;
    color: #94a3b8;
}

.btn-hub-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.btn-hub-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.b2b-hub-body {
    padding: 16px;
    max-height: 520px;
    overflow-y: auto;
}

.b2b-hub-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.b2b-hub-whatsapp-channels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.b2b-hub-channel-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.b2b-hub-channel-card:hover {
    background: #ffffff;
    border-color: #22c55e;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.channel-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.channel-info {
    flex: 1;
    min-width: 0;
}

.channel-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.channel-name-row strong {
    font-size: 0.82rem;
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.channel-badge.badge-green { background: #dcfce7; color: #166534; }
.channel-badge.badge-amber { background: #fef3c7; color: #92400e; }
.channel-badge.badge-blue { background: #e0f2fe; color: #075985; }

.channel-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0 0 2px 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-phone {
    font-size: 0.72rem;
    font-weight: 700;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.channel-arrow {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Chat B2B Alibaba Section */
.b2b-hub-chat-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
}

.hub-chat-auth-box {
    background: #f0f9ff;
    border: 1px dashed #38bdf8;
    border-radius: 10px;
    padding: 14px;
}

.hub-chat-prompt {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.prompt-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.prompt-text h5 {
    margin: 0 0 3px 0;
    font-size: 0.84rem;
    font-weight: 800;
    color: #0369a1;
}

.prompt-text p {
    margin: 0;
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.4;
}

.hub-chat-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-hub-login {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}

.btn-hub-login:hover {
    background: #0369a1;
}

.btn-hub-register {
    background: #f8fafc;
    color: #0284c7;
    border: 1px solid #0284c7;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.btn-hub-register:hover {
    background: #e0f2fe;
}

.hub-chat-alibaba-note {
    font-size: 0.68rem;
    color: #0369a1;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hub-chat-logged-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 14px;
}

.logged-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.logged-icon {
    font-size: 1.3rem;
}

.logged-user-row h5 {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 800;
    color: #065f46;
}

.logged-user-row span {
    font-size: 0.72rem;
    color: #047857;
}

.btn-hub-open-chat {
    width: 100%;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transition: background 0.15s;
}

.btn-hub-open-chat:hover {
    background: #047857;
}

/* ==============================================================================
   NUEVO PIE DE PÁGINA: FRANJA SUPERIOR DE LOGOS DE EMPRESAS (SOLO LOGOS)
   ============================================================================== */
.footer-enterprise-logos-section {
    background: #15191f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 34px 0 28px 0;
    position: relative;
    z-index: 10;
}

.footer-logos-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-logos-eyebrow {
    font-size: 0.76rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logos-subtext {
    font-size: 0.72rem;
    color: #94a3b8;
}

.footer-logos-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.25s ease;
    cursor: default;
    height: 50px;
}

.footer-brand-logo-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.brand-logo-svg {
    height: 32px;
    width: auto;
    max-width: 150px;
    opacity: 0.82;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.footer-brand-logo-item:hover .brand-logo-svg {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

/* ==============================================================================
   MAPA DEL SITIO: FOOTER COMPLETO ESTILO IMAGEN 1
   ============================================================================== */
.emipisa-site-map-footer {
    background: #1e242b;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding-top: 48px;
    padding-bottom: 24px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-angled-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 6px;
    background: linear-gradient(90deg, transparent 0%, #0284c7 50%, #f59e0b 100%);
    opacity: 0.8;
}

.footer-content-wrap {
    position: relative;
    z-index: 2;
}

/* Malla de cubos isométricos (Arte izquierda como en la Imagen 1) */
.footer-isometric-cubes-art {
    position: absolute;
    left: -20px;
    top: -20px;
    width: 220px;
    height: 320px;
    pointer-events: none;
    opacity: 0.45;
    z-index: 1;
}

.footer-main-columns-grid {
    display: grid;
    grid-template-columns: 320px 1fr 340px;
    gap: 40px;
    position: relative;
    z-index: 2;
    margin-bottom: 36px;
}

@media (max-width: 1024px) {
    .footer-main-columns-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-main-columns-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Columna Izquierda: Redes y Dirección */
.footer-left-contact-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2b323c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-circle-btn:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.footer-contact-details {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.footer-contact-address {
    margin: 0 0 8px 0;
    color: #e2e8f0;
}

.footer-contact-email {
    display: inline-block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.15s;
}

.footer-contact-email:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-contact-phone {
    margin: 0;
    font-weight: 700;
    color: #ffffff;
}

/* Columna Central: MAPA DEL SITIO */
.footer-site-map-block {
    display: flex;
    flex-direction: column;
}

.footer-site-map-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 18px 0;
}

.footer-site-map-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.site-map-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.site-map-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.site-map-links-list a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.site-map-links-list .cookie-policy-menu-link {
    color: #f87171;
}

.site-map-links-list .cookie-policy-menu-link:hover {
    color: #ef4444;
}

/* Columna Derecha: Logo Grande y 4 Sellos Circulares (Imagen 1) */
.footer-brand-and-badges-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-main-brand-emblem {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-gear-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #1e242b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
}

.footer-brand-name-bold {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
}

.footer-certification-stamps-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.cert-stamp-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cert-stamp-circle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #38bdf8;
    transform: scale(1.08);
}

.cert-stamp-svg {
    width: 44px;
    height: 44px;
}

/* Barra Inferior del Footer */
.footer-site-map-bottom-bar {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.74rem;
    color: #94a3b8;
}

.footer-copyright-text {
    margin: 0;
}

.footer-bottom-badges {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==============================================================================
   REGLA ESTRICTA DE AISLAMIENTO: SISTEMA INTERNO / TORRE DE CONTROL & SUBFAMILIAS
   La Torre de Control, Administración, Studio, Ventas, Logística, Producción,
   Compras y Soporte TI NUNCA deben mostrar el banner de cookies, modal de cookies,
   botón de WhatsApp flotante ni el chat de clientes.
   ============================================================================== */
body.is-internal-system #cookie-consent-banner,
body.is-internal-system #modal-cookie-policy,
body.is-internal-system #floating-whatsapp-container,
body.is-internal-system #floating-b2b-chat-widget,
body.is-internal-system .cookie-consent-banner,
body.is-internal-system .cookie-modal-overlay,
body.is-internal-system .floating-whatsapp-container,
body.is-internal-system .floating-b2b-chat-widget,
body.is-internal-system .whatsapp-advisors-popover,
body.is-internal-system .b2b-chat-flyout-card {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* ==============================================================================
   BANNER INFERIOR DE CONSENTIMIENTO DE COOKIES (IMAGEN 1 & 2)
   ============================================================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #171a1f;
    border-top: 1.5px solid #2d333b;
    padding: 12px 24px;
    z-index: 999998;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
    font-family: 'Inter', system-ui, sans-serif;
    animation: cookieBannerSlideUp 0.35s ease-out;
}

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

.cookie-consent-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.cookie-link-highlight {
    color: #ef4444;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-link-highlight:hover {
    color: #f87171;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #dc2626;
    padding: 7px 22px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cookie-accept:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-cookie-config {
    background: transparent;
    color: #ffffff;
    border: 2px solid #dc2626;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cookie-config:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==============================================================================
   MODAL DE POLÍTICA DE COOKIES (ESTILO EXACTO IMAGEN 2)
   ============================================================================== */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 25, 0.78);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Inter', system-ui, sans-serif;
}

.cookie-modal-window {
    background: #ffffff;
    width: 100%;
    max-width: 860px;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: cookieModalScale 0.25s ease-out;
}

@keyframes cookieModalScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    transition: color 0.15s;
}

.cookie-modal-close-btn:hover {
    color: #0f172a;
}

.cookie-modal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 440px;
}

@media (max-width: 720px) {
    .cookie-modal-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar izquierda (Imagen 2) */
.cookie-modal-sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-tab-btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    text-align: left;
    background: #ffffff;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.cookie-tab-btn.active {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.cookie-tab-btn:hover:not(.active) {
    background: #fef2f2;
}

/* Área de Contenido */
.cookie-modal-content {
    padding: 28px 28px 24px 28px;
    background: #ffffff;
    overflow-y: auto;
    max-height: 80vh;
}

.cookie-panel-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

/* Tarjeta con Marco Rojo Característico (Imagen 2) */
.cookie-option-card {
    border: 2px solid #dc2626;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: #ffffff;
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-option-card:hover {
    background: #fffafa;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.cookie-option-card.cookie-option-required {
    border-color: #cbd5e1;
    background: #f8fafc;
    cursor: default;
}

.cookie-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 6px;
}

.cookie-custom-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc2626;
}

.cookie-option-heading {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.cookie-option-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 4px;
}

.cookie-tag-required {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0284c7;
    margin-left: 4px;
}

.cookie-option-desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #475569;
    padding-left: 28px;
}

.cookie-panel-footer {
    margin-top: 24px;
}

/* Botón Rojo Sólido (Imagen 2: ALTERAR MEUS COOKIES) */
.btn-cookie-save-preferences {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-cookie-save-preferences:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.cookie-privacy-body {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #334155;
}

.cookie-privacy-body h4 {
    margin: 14px 0 4px 0;
    font-size: 0.88rem;
    color: #0f172a;
}

.cookie-privacy-body p {
    margin: 0 0 10px 0;
}

/* ==============================================================================
   BOTÓN FLOTANTE DE WHATSAPP DIRECTO (ESTILO EXACTO IMAGEN 2)
   ============================================================================== */
.floating-whatsapp-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.btn-floating-whatsapp-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.25s ease;
    position: relative;
}

.btn-floating-whatsapp-trigger:hover {
    transform: scale(1.08);
    background: #20ba5a;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.wa-trigger-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.6);
    animation: waPulseAnim 2s infinite;
}

@keyframes waPulseAnim {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* Botón secundario para abrir el widget de Chat B2B */
.btn-floating-b2b-chat-trigger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
    position: relative;
}

.btn-floating-b2b-chat-trigger:hover {
    transform: scale(1.1);
    background: #0369a1;
}

.chat-trigger-online-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #ffffff;
}

/* Popover de WhatsApp Inteligente (Conectado a Admin) */
.whatsapp-advisors-popover {
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 8px;
    animation: popoverFadeIn 0.2s ease-out;
    font-family: 'Inter', system-ui, sans-serif;
}

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

.wa-popover-header {
    background: #075e54;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.wa-popover-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.wa-popover-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
}

.wa-popover-header span {
    font-size: 0.68rem;
    color: #e2e8f0;
    opacity: 0.85;
}

.wa-popover-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.wa-central-action-box {
    padding: 12px 14px;
    background: #f0fdf4;
    border-bottom: 1px solid #bbf7d0;
}

.btn-wa-central-direct {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #22c55e;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.btn-wa-central-direct:hover {
    background: #16a34a;
}

.btn-wa-central-direct i {
    font-size: 1.3rem;
}

.wa-popover-advisors-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-advisor-channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.wa-advisor-channel-row:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.wa-advisor-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.wa-advisor-info-mini {
    flex: 1;
    min-width: 0;
}

.wa-advisor-info-mini strong {
    display: block;
    font-size: 0.76rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-advisor-info-mini span {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-popover-footer {
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-wa-open-b2b-chat {
    width: 100%;
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-wa-open-b2b-chat:hover {
    background: #0369a1;
}

/* ==============================================================================
   WIDGET DE CHAT B2B (ESTILO JIVOCHAT EN IMAGEN 1)
   ============================================================================== */
.floating-b2b-chat-widget {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 999988;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.b2b-chat-flyout-card {
    width: 340px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
    animation: chatFlyoutAnim 0.25s ease-out;
}

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

.b2b-chat-flyout-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.b2b-chat-header-info h5 {
    margin: 0 0 3px 0;
    font-size: 0.95rem;
    font-weight: 800;
}

.b2b-chat-header-info span {
    font-size: 0.7rem;
    color: #ecfdf5;
    opacity: 0.9;
}

.b2b-chat-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.b2b-chat-close-btn:hover {
    opacity: 1;
}

.b2b-chat-flyout-body {
    padding: 16px;
    background: #f8fafc;
}

.b2b-chat-welcome-bubble {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
}

.b2b-chat-welcome-bubble p {
    margin: 0 0 6px 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #1e293b;
}

.bubble-time {
    font-size: 0.68rem;
    color: #10b981;
    font-weight: 700;
}

.b2b-chat-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-b2b-start-trade-chat {
    width: 100%;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

.btn-b2b-start-trade-chat:hover {
    background: #0369a1;
}

.btn-b2b-chat-wa-direct {
    width: 100%;
    background: #ffffff;
    color: #059669;
    border: 1px solid #059669;
    border-radius: 6px;
    padding: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
}

.btn-b2b-chat-wa-direct:hover {
    background: #ecfdf5;
}

.b2b-chat-flyout-footer {
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.b2b-chat-flyout-footer input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.8rem;
    outline: none;
}

.b2b-chat-flyout-footer input:focus {
    border-color: #0284c7;
}

.b2b-chat-flyout-footer button {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.b2b-chat-flyout-footer button:hover {
    background: #0369a1;
}

/* ==========================================================================
   ESTILO BESPOKE: SECCIÓN "ESTÁ EN NUESTRO ADN" (MAESTRANZA & CALDERERÍA)
   Inspirado fielmente en la referencia visual y tipografía Michroma
   ========================================================================== */

.dna-services-section {
    position: relative;
    padding: 50px 0 80px 0;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

/* Franja poligonal diagonal oscura en el fondo */
.dna-services-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -15vw;
    right: -15vw;
    height: 62%;
    background: #060e1a;
    transform: skewY(-3.5deg);
    z-index: 1;
    box-shadow: inset 0 10px 40px rgba(0,0,0,0.5), 0 20px 50px rgba(0,0,0,0.3);
}

.dna-services-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Cabecera ADN Centrada con Emblema Vectorial */
.dna-header-block {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
    z-index: 3;
}

.dna-header-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    text-align: left;
    background: #081426;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 14px 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.dna-helix-emblem {
    width: 48px;
    height: 64px;
    color: #38bdf8;
    flex-shrink: 0;
}

.dna-header-text {
    display: flex;
    flex-direction: column;
}

.dna-main-title {
    font-family: 'Michroma', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.dna-sub-title {
    font-family: 'Michroma', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* Grilla de 6 Tarjetas (3x2) */
.dna-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* Tarjeta Individual */
.dna-service-card {
    background: #0d1c33;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 30px 26px 22px 26px;
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.45);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    user-select: none;
}

/* Cabecera de la Tarjeta */
.dna-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.dna-card-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #38bdf8;
    flex-shrink: 0;
    transition: all 0.25s ease;
    background: #081222;
    box-shadow: inset 0 0 0 2px rgba(2, 132, 199, 0.1);
}

.dna-card-title-wrap {
    display: flex;
    flex-direction: column;
}

.dna-card-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
    transition: color 0.25s ease;
}

.dna-card-kpi-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 3px;
    transition: color 0.25s ease;
}

/* Párrafo Descriptivo Técnico */
.dna-card-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.835rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0 0 16px 0;
    flex: 1;
    transition: color 0.25s ease;
}

/* Micro Chips de Especificación */
.dna-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.dna-chip {
    background: #06101e;
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #1e3048;
    transition: all 0.25s ease;
}

/* Barra de Acción Inferior */
.dna-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.25s ease;
}

.dna-card-action i {
    transition: transform 0.25s ease;
}

.dna-service-card:hover .dna-card-action i,
.dna-service-card.is-active .dna-card-action i {
    transform: translateX(4px);
}

/* ESTADO ACTIVO / HOVER */
.dna-service-card:hover,
.dna-service-card.is-active {
    background: #122544 !important;
    border-color: #0284c7 !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 45px -10px rgba(2, 132, 199, 0.35), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dna-service-card:hover .dna-card-badge,
.dna-service-card.is-active .dna-card-badge {
    border-color: #38bdf8;
    color: #ffffff;
    background: #0284c7;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.dna-service-card:hover .dna-card-title,
.dna-service-card.is-active .dna-card-title {
    color: #ffffff;
}

.dna-service-card:hover .dna-card-kpi-badge,
.dna-service-card.is-active .dna-card-kpi-badge {
    color: #38bdf8;
}

.dna-service-card:hover .dna-card-desc,
.dna-service-card.is-active .dna-card-desc {
    color: #cbd5e1;
}

.dna-service-card:hover .dna-chip,
.dna-service-card.is-active .dna-chip {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.18);
}

.dna-service-card:hover .dna-card-action,
.dna-service-card.is-active .dna-card-action {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: #38bdf8;
}

/* Responsividad para móviles y tablets */
@media (max-width: 1080px) {
    .dna-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dna-services-section {
        padding: 45px 0 65px 0;
    }
    .dna-services-section::before {
        top: 20%;
        height: 65%;
        transform: skewY(-2deg);
    }
    .dna-cards-grid {
        grid-template-columns: 1fr;
    }
    .dna-header-brand-wrap {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 10px 16px;
    }
    .dna-main-title {
        font-size: 1.6rem;
    }
    .dna-sub-title {
        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }
}

/* ==============================================================================
   3. SISTEMA TIPOGRÁFICO GLOBAL INCONDICIONAL (OVERRIDE MAESTRO)
   Aplica de forma global e incondicional a TODA la web, subpáginas, pestañas,
   modales, tablas, componentes dinámicos y vistas cargadas mediante rutas.
   ============================================================================== */

/* --- 1. REGLA GLOBAL DE HERENCIA TIPOGRÁFICA UNIVERSAL --- */
html,
body,
#app,
#main-content,
.main-wrapper,
.view-container,
.site-wrapper {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

*,
*::before,
*::after {
    font-family: inherit;
}

/* Reseteo para controles nativos de formulario que el navegador aísla */
input,
button,
select,
textarea,
optgroup {
    font-family: inherit;
}

/* --- 2. FUENTE PRIMARIA PARA TÍTULOS (MONTSERRAT BLACK / EXTRABOLD) --- */
/* Aplica automáticamente a todas las etiquetas h1-h6, títulos de tarjetas,
   menús de navegación superior, pestañas secundarias y nombres de modelos de productos */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.card-title,
.heading-display-h1,
.pdp-product-h1,
.heading-category-h2,
.heading-card-h3,
.section-title,
.product-card-title,
.enterprise-card-title,
.subview-title,
.model-name,
.product-model-name,
.product-title,
.product-name,
.sku-title,
.item-title,
.livegrid-card-title,
.laser-card-title,
.laser-modal-titles h3,
.dropzone-title,
.livegrid-header-titles h3,
.industrial-heading-h1,
.industrial-subheading-h2,
.industrial-card-h3,
.erp-card-title {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}

/* h1: Montserrat Black (900) */
h1, .h1, .heading-display-h1, .pdp-product-h1, .industrial-heading-h1 {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
}

/* h2: Montserrat ExtraBold (800) */
h2, .h2, .heading-category-h2, .section-title, .industrial-subheading-h2 {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
}

/* h3, h4, h5, h6 y títulos de tarjetas: Montserrat ExtraBold (800) */
h3, .h3, h4, .h4, h5, .h5, h6, .h6,
.card-title,
.heading-card-h3,
.product-card-title,
.model-name,
.product-model-name,
.livegrid-card-title,
.laser-card-title {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 800 !important;
}

/* --- 3. MENÚ DE NAVEGACIÓN Y HEADER (MONTSERRAT BOLD UPPERCASE) --- */
/* Nombres de categorías, pestañas activas e inactivas en Montserrat Bold en mayúsculas */
.nav-link,
.nav-menu,
.main-nav-item,
.navbar-nav a,
.header-nav a,
.header-category-link,
.nav-category-item,
.mega-menu-cat-title,
.mega-menu-item,
.family-chip-card,
.family-chip-name,
.family-chip-title,
.sticky-family-chip,
.sticky-family-bar a,
.top-nav a,
.nav-tab,
.nav-tabs .nav-link,
.sub-tab,
.tab-btn,
.buyer-tab-btn,
.workbench-tab-btn,
.erp-tab-btn,
.category-tab-btn,
.subview-nav-btn,
.sidebar-nav-item,
.ti-menu-item,
.view-switcher-pill,
.header-nav-link {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important; /* Montserrat Bold */
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

/* --- 4. CATÁLOGOS, TABLAS Y FICHAS TÉCNICAS EN SUBPESTAÑAS --- */
/* Nombres de productos: 'Montserrat' ExtraBold */
.product-card-title,
.catalog-product-name,
.sku-item-name,
.pdp-product-h1,
.spec-sheet-product-title,
.table-product-name,
.catalog-table .product-col-name,
.product-title-link,
.product-grid-name,
.workbench-item-name,
.quote-item-title,
.table-product-cell strong,
.rfq-item-name,
.order-product-name,
.livegrid-card-title {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 800 !important; /* Montserrat ExtraBold */
}

/* Valores numéricos, listas de especificaciones, descripciones: 'Inter' Regular/Medium */
.tech-specs-table td,
.tech-spec-row td,
.spec-sheet-table td,
.catalog-table td,
.spec-value,
.spec-key,
.tech-val,
.tech-spec-label,
.product-description,
.sku-description,
.tech-spec-description,
.catalog-description,
.pdp-spec-value,
.pdp-spec-key,
.numeric-val,
.tech-numeric,
.sku-code-value,
.spec-item,
.spec-bullet,
.spec-list li,
.tech-data-row,
.fichas-tecnicas-content,
.pdp-technical-specs,
.workbench-table td,
.erp-table td,
.inventory-table td,
.logistics-table td,
.ti-table td {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important; /* Inter Regular */
    line-height: 1.55 !important;
}

/* Claves técnicas y encabezados de tabla: 'Inter' Medium */
.spec-key,
.tech-spec-label,
.catalog-table th,
.tech-specs-table th,
.spec-sheet-table th,
.numeric-val-medium,
.spec-value-strong {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 500 !important; /* Inter Medium */
}

/* Códigos SKU y normativas: Monoespaciado legible */
.tech-sku,
.product-sku-badge,
.industrial-sku-tag,
.spec-code-tag,
.sku-badge {
    font-family: 'JetBrains Mono', 'Inter', monospace !important;
    font-weight: 600 !important;
}

/* --- 5. BOTONES Y LLAMADOS A LA ACCIÓN (CTAs) --- */
/* Todo texto dentro de botones ('Agregar', 'Ver Más', 'Cotizar') debe usar
   'Montserrat' SemiBold/Bold con ligero espaciado de letras (letter-spacing: 0.05em) */
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-accent,
.btn-cta,
.btn-quote,
.btn-add-cart,
.btn-ver-mas,
.btn-cotizar,
.btn-cta-quote-main,
.btn-cta-whatsapp-alt,
.btn-floating-whatsapp-trigger,
.btn-wa-open-b2b-chat,
.btn-hero-cta,
.btn-laser-submit,
.pdp-btn-quote,
.pdp-btn-cart,
.buyer-action-btn,
.quote-builder-btn,
.erp-btn,
.action-btn,
.cart-action-btn,
.checkout-btn,
a.btn,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important; /* Montserrat Bold / SemiBold */
    letter-spacing: 0.05em !important;
}

/* --- 6. FORMULARIOS Y MODALES (INTER SEMIBOLD) --- */
/* Entradas de texto, etiquetas (labels) y ventanas emergentes deben heredar 'Inter' SemiBold */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="date"],
select,
textarea,
.form-control,
.form-input,
.form-select,
.form-textarea {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 600 !important; /* Inter SemiBold */
}

label,
.form-label,
.form-group label,
.input-label,
.field-label {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 600 !important; /* Inter SemiBold */
}

/* Modales y ventanas emergentes */
.modal,
.modal-dialog,
.modal-content,
.modal-body,
.modal-footer,
.modal-popup,
.popup-card,
.dialog-content,
.dialog-box,
.swal2-popup,
.sweet-alert,
.b2b-auth-modal,
.buyer-lead-modal,
.quote-modal-content,
.laser-modal-card,
.filter-dropdown,
.search-popup {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.modal-body,
.modal p,
.modal label,
.popup-card p,
.dialog-content p,
.swal2-content,
.b2b-auth-modal p,
.b2b-auth-modal span {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 600 !important; /* Inter SemiBold */
}

/* Títulos de ventanas emergentes y modales: Montserrat ExtraBold */
.modal-title,
.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.dialog-title,
.swal2-title {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
}

/* ==============================================================================
   CIRCULITO QUE GIRA UNIVERSAL - SPINNER DE CARGA PARA IMÁGENES EN TODAS LAS PÁGINAS
   ============================================================================== */
@keyframes universal-img-spinner-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 1. Contenedor universal para cualquier imagen cargando en todas las páginas */
.img-loader-parent {
    position: relative !important;
}

.img-loader-parent:not(.img-is-loaded)::before {
    content: '' !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 28px !important;
    height: 28px !important;
    margin-top: -14px !important;
    margin-left: -14px !important;
    border: 2.5px solid rgba(2, 132, 199, 0.16) !important;
    border-top-color: #0284c7 !important;
    border-radius: 50% !important;
    animation: universal-img-spinner-rotate 0.75s linear infinite !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.img-loader-parent.img-is-loaded::before,
.img-loader-parent.image-loaded::before {
    display: none !important;
}

/* 2. Tarjetas de productos en catálogo (B2B Product Cards) */
.card-img-wrapper {
    position: relative !important;
    background: #ffffff;
}

.card-img-wrapper:not(.image-loaded)::before {
    content: '' !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 28px !important;
    height: 28px !important;
    margin-top: -14px !important;
    margin-left: -14px !important;
    border: 2.5px solid rgba(2, 132, 199, 0.16) !important;
    border-top-color: #0284c7 !important;
    border-radius: 50% !important;
    animation: universal-img-spinner-rotate 0.75s linear infinite !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.card-img-wrapper.image-loaded::before {
    display: none !important;
}

/* 3. Ficha Técnica Oficial (PDP Main Image & Thumbnails) */
.pdp-main-image-box {
    position: relative !important;
    background: #f8fafc;
}

.pdp-main-image-box:not(.image-loaded)::before {
    content: '' !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 36px !important;
    height: 36px !important;
    margin-top: -18px !important;
    margin-left: -18px !important;
    border: 3px solid rgba(2, 132, 199, 0.18) !important;
    border-top-color: #0284c7 !important;
    border-radius: 50% !important;
    animation: universal-img-spinner-rotate 0.75s linear infinite !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.pdp-main-image-box.image-loaded::before {
    display: none !important;
}

.pdp-thumb-img-box {
    position: relative !important;
}

.pdp-thumb-img-box:not(.image-loaded)::before {
    content: '' !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: -9px !important;
    margin-left: -9px !important;
    border: 2px solid rgba(2, 132, 199, 0.18) !important;
    border-top-color: #0284c7 !important;
    border-radius: 50% !important;
    animation: universal-img-spinner-rotate 0.75s linear infinite !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.pdp-thumb-img-box.image-loaded::before {
    display: none !important;
}

