/* ==========================================================================
   BOGARTMX E-COMMERCE & MLM PLATFORM - DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* CSS Custom Properties (Theme Tokens) */
:root {
    /* Color Palette */
    --bg-primary: #050505;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #161616;
    --bg-card: rgba(22, 22, 22, 0.7);
    --bg-input: #1e1e1e;
    
    --accent-red: #E50914;
    --accent-red-hover: #ff1e27;
    --accent-red-glow: rgba(229, 9, 20, 0.5);
    
    --text-white: #ffffff;
    --text-muted: #a3a3a3;
    --text-dark: #666666;
    
    --success-green: #10b981;
    --success-green-glow: rgba(16, 185, 129, 0.3);
    --warning-yellow: #f59e0b;
    --info-blue: #3b82f6;
    
    /* Layout Tokens */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(229, 9, 20, 0.15);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transition & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-quick: all 0.15s ease;
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-red-glow: 0 0 20px rgba(229, 9, 20, 0.25);
    --glass-blur: blur(16px);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    color: var(--text-white);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Base Typography Elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

/* Helper Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-red {
    color: var(--accent-red);
}

.bg-gradient-red {
    background: linear-gradient(135deg, var(--accent-red), #9e060d);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-premium);
}

.glass-panel-glow {
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow-premium), var(--shadow-red-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}
.btn-primary:hover {
    background: var(--accent-red-hover);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6), var(--shadow-red-glow);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

.btn-outline-red {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--text-white);
}
.btn-outline-red:hover {
    background: var(--accent-red);
    box-shadow: var(--shadow-red-glow);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge-red {
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(229, 9, 20, 0.3);
}
.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}
header.scrolled {
    padding: 8px 0;
    background: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
header.scrolled .container {
    height: 65px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-text span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

/* Nav Menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}
nav ul li a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    position: relative;
    padding: 8px 0;
}
nav ul li a:hover, nav ul li a.active {
    color: var(--text-white);
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition-smooth);
}
nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-quick);
}
.cart-icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-red);
}
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-red);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,0.95) 40%, rgba(5,5,5,0.3) 100%),
                linear-gradient(to bottom, rgba(5,5,5,0.8) 0%, rgba(5,5,5,0.2) 20%, rgba(5,5,5,0.95) 90%);
    z-index: 2;
}
.hero-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    filter: brightness(0.65) contrast(1.1);
}

.hero-section .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}
.hero-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-tag::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--accent-red);
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 24px;
    font-weight: 900;
}
.hero-title span {
    display: block;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 550px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Stat Widgets in Hero */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.hero-stat-card {
    padding: 24px;
    border-radius: var(--border-radius-md);
    background: rgba(22, 22, 22, 0.45);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
}
.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 6px;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */
section {
    padding: 100px 0;
    position: relative;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}
.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-red);
    margin-bottom: 12px;
    display: block;
}
.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   MODULO A: TIENDA VIRTUAL (E-COMMERCE)
   ========================================================================== */
.shop-filters-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}
.tab-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
}
.tab-btn.active {
    color: var(--text-white);
    background: var(--accent-red);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-secondary);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.filter-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-quick);
}
.filter-select:focus {
    border-color: var(--accent-red);
}

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-premium), var(--shadow-red-glow);
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #1e1e1e;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.product-card:hover .product-img {
    transform: scale(1.08);
}
.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-cat {
    font-size: 0.75rem;
    color: var(--accent-red);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}
.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Card Bottom Options & Price */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}
.option-select-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
}
.option-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.option-item select {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    outline: none;
}

.product-price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.product-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
}
.product-price span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: -4px;
}

/* ==========================================================================
   SHOPPING CART DRAWER
   ========================================================================== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-quick);
}
.cart-close-btn:hover {
    color: var(--text-white);
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Empty Cart State */
.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.cart-empty i {
    font-size: 3rem;
    color: var(--bg-tertiary);
}

/* Cart Item Card */
.cart-item {
    display: flex;
    gap: 16px;
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    position: relative;
}
.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    background: #1e1e1e;
}
.cart-item-details {
    flex-grow: 1;
}
.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    padding-right: 20px;
}
.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.cart-item-meta span {
    margin-right: 12px;
}
.cart-item-qty-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
}
.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.qty-btn:hover {
    background: rgba(255,255,255,0.05);
}
.qty-val {
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}
.cart-item-price {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
}
.cart-item-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-quick);
}
.cart-item-remove:hover {
    color: var(--accent-red);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}
.cart-totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.cart-totals-row.total-row {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 8px;
    margin-bottom: 24px;
}
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   MODULO B: COTIZADOR AVANZADO ("Restaurant Soft" Style)
   ========================================================================== */
.quotation-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.quote-inputs-card {
    padding: 40px;
}
.quote-results-card {
    padding: 40px;
    position: sticky;
    top: 100px;
}

.quote-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.quote-form-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
}
.form-group label span.label-aside {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.form-select, .form-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-quick);
    width: 100%;
}
.form-select:focus, .form-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.1);
}

/* Range Slider Styling */
.range-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.range-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    transition: var(--transition-quick);
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-red);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-red);
    transition: var(--transition-quick);
}
.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.range-number-input {
    width: 90px;
    text-align: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 10px;
}

/* Options Selector Boxes */
.customization-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.custom-option-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.custom-option-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}
.custom-option-card.selected {
    border-color: var(--accent-red);
    background: rgba(229, 9, 20, 0.08);
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.15);
}
.custom-option-card i {
    font-size: 1.4rem;
    color: var(--text-muted);
}
.custom-option-card.selected i {
    color: var(--accent-red);
}
.custom-option-title {
    font-size: 0.8rem;
    font-weight: 600;
}
.custom-option-price {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Quote Results Breakdown */
.quote-result-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}
.quote-result-title {
    font-size: 1.5rem;
    font-weight: 800;
}
.quote-result-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-table-breakdown {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}
.pricing-row.muted {
    color: var(--text-muted);
}
.pricing-row.divider {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 6px;
}
.pricing-row.total-row {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    border-top: 1px solid var(--accent-red);
    padding-top: 16px;
    margin-top: 10px;
}

.volume-alert {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    font-size: 0.85rem;
    color: var(--warning-yellow);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}
.volume-alert i {
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Price Matriz Preview */
.matrix-preview-btn {
    width: 100%;
    margin-top: 16px;
    font-size: 0.8rem;
    padding: 10px;
    text-align: center;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255,255,255,0.01);
    border: 1px dashed var(--border-color);
    transition: var(--transition-quick);
}
.matrix-preview-btn:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.2);
}

/* Matrix Table Modal Content */
.matrix-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.85rem;
}
.matrix-modal-table th, .matrix-modal-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.matrix-modal-table th {
    background: var(--bg-tertiary);
    color: var(--accent-red);
    font-family: var(--font-heading);
    font-weight: 700;
}
.matrix-modal-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* ==========================================================================
   MODULO C: DASHBOARD DE REFERIDOS (MLM SYSTEM)
   ========================================================================== */
.mlm-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.kpi-cards-grid {
    grid-column: span 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.kpi-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-red);
}
.kpi-card.kpi-green::before {
    background: var(--success-green);
}
.kpi-card.kpi-blue::before {
    background: var(--info-blue);
}
.kpi-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.kpi-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
}
.kpi-trend {
    font-size: 0.75rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kpi-trend.up {
    color: var(--success-green);
}
.kpi-icon {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: rgba(255,255,255,0.04);
}

/* Affiliate Link Card */
.affiliate-link-card {
    grid-column: span 4;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.affiliate-link-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.affiliate-link-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.affiliate-link-widget {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 6px;
    width: 100%;
    max-width: 500px;
}
.affiliate-link-input {
    background: transparent;
    border: none;
    color: var(--text-white);
    padding: 8px 12px;
    font-family: monospace;
    font-size: 0.9rem;
    flex-grow: 1;
    outline: none;
}
.copy-btn {
    padding: 10px 18px;
    font-size: 0.8rem;
}

/* Simulator Control Panel */
.simulator-panel {
    grid-column: span 4;
    background: rgba(229, 9, 20, 0.05);
    border: 1px dashed var(--accent-red);
    padding: 24px;
    border-radius: var(--border-radius-md);
    margin-bottom: 12px;
}
.simulator-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.simulator-header i {
    color: var(--accent-red);
    font-size: 1.35rem;
}
.simulator-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
}
.simulator-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}
.sim-form-item {
    flex-grow: 1;
    min-width: 200px;
}
.sim-form-item label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.sim-select, .sim-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 10px 16px;
    border-radius: 6px;
    outline: none;
}
.sim-select:focus, .sim-input:focus {
    border-color: var(--accent-red);
}

/* Genealogy Tree Visualization */
.genealogy-card {
    grid-column: span 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.genealogy-tree-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.level-group {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}
.level-header {
    background: var(--bg-tertiary);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-quick);
}
.level-header:hover {
    background: rgba(255,255,255,0.02);
}
.level-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}
.level-badge {
    background: var(--accent-red);
    color: var(--text-white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}
.level-group:nth-child(2) .level-badge {
    background: var(--warning-yellow);
}
.level-group:nth-child(3) .level-badge {
    background: var(--info-blue);
}

.level-members-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    transition: var(--transition-smooth);
}
.level-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    transition: var(--transition-quick);
}
.level-member-item:hover {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}
.member-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    color: var(--text-white);
}
.member-name {
    font-size: 0.9rem;
    font-weight: 500;
}
.member-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.member-stats {
    text-align: right;
}
.member-sales {
    font-size: 0.85rem;
    font-weight: 600;
}
.member-commission-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* History Card */
.history-card {
    grid-column: span 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.history-table-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 480px;
    margin-top: 20px;
}
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.dashboard-table th, .dashboard-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.dashboard-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}
.dashboard-table tr:hover td {
    background: rgba(255,255,255,0.01);
}

/* ==========================================================================
   LANDING VIP RECRUITING SECTION
   ========================================================================== */
.vip-landing-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}
.vip-landing-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 1;
}

.vip-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.vip-content-wrapper {
    max-width: 600px;
}
.vip-heading-lead {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 16px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vip-title-hero {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    margin-bottom: 24px;
    line-height: 1.2;
}
.vip-quote-box {
    border-left: 3px solid var(--accent-red);
    padding-left: 20px;
    margin-bottom: 30px;
}
.vip-quote-box h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 700;
}
.vip-quote-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.vip-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}
.vip-bullet-item {
    display: flex;
    gap: 14px;
}
.vip-bullet-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 3px;
}
.vip-bullet-text h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.vip-bullet-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vip-form-card {
    padding: 40px;
}
.vip-form-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 700;
}
.vip-form-card .form-group {
    margin-bottom: 20px;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 550px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-container.modal-lg {
    max-width: 800px;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}
.modal-close-btn:hover {
    color: var(--text-white);
}

.modal-content {
    padding: 40px;
}

/* Stripe Form Mockup */
.stripe-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.credit-card-preview {
    height: 190px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, #1f1c2c, #928dab);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
}
.credit-card-preview::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    bottom: -100px;
    right: -100px;
}
.cc-chip-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cc-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #fce0ad, #dfac6c);
    border-radius: 6px;
    position: relative;
}
.cc-chip::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 6px;
    top: 0;
    left: 0;
}
.cc-brand-logo {
    font-weight: 800;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text-white);
}
.cc-number-display {
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 16px 0;
}
.cc-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.cc-meta-block {
    display: flex;
    flex-direction: column;
}
.cc-meta-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}
.cc-meta-value {
    font-size: 0.85rem;
    font-family: monospace;
    color: var(--text-white);
}

.stripe-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.stripe-fields-full {
    grid-column: span 2;
}

/* Custom Notifications (Toast) */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
}
.toast-item {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-red);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 6px;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-item.show {
    transform: translateX(0);
    opacity: 1;
}
.toast-item.toast-success {
    border-left-color: var(--success-green);
}
.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.toast-success .toast-icon {
    color: var(--success-green);
}
.toast-info .toast-icon {
    color: var(--accent-red);
}
.toast-content {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==========================================================================
   CONTACT CHANNELS (WHATSAPP FLOATING BUTTON & SOCIAL)
   ========================================================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.85rem;
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.whatsapp-float-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: float-pulse 2s infinite;
}

@keyframes float-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #050505;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 0.8fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-desc {
    max-width: 300px;
}
.footer-logo-desc p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}
.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition-quick);
}
.social-icon-btn:hover {
    background: var(--accent-red);
    color: var(--text-white);
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-red);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links-list li a {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-links-list li a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-info-item {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.contact-info-item i {
    color: var(--accent-red);
    font-size: 1rem;
    margin-top: 2px;
}
.contact-info-item span strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-bottom-links {
    display: flex;
    gap: 24px;
}
.footer-bottom-links a:hover {
    color: var(--text-white);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */

/* Tablet (Medium screens) */
@media (max-width: 992px) {
    header .container {
        height: 70px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        border-right: 1px solid var(--border-color);
        padding: 40px;
        transition: var(--transition-smooth);
        z-index: 998;
    }
    nav.open {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 140px 0 80px 0;
    }
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    .hero-tag {
        justify-content: center;
    }
    .hero-tag::after {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background-color: var(--accent-red);
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    
    .quotation-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .quote-results-card {
        position: static;
    }
    
    .mlm-dashboard {
        grid-template-columns: 1fr;
    }
    .kpi-cards-grid {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .affiliate-link-card {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
    }
    .simulator-panel {
        grid-column: span 1;
    }
    .genealogy-card, .history-card {
        grid-column: span 1;
    }
    
    .vip-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .vip-content-wrapper {
        text-align: center;
        max-width: 100%;
    }
    .vip-quote-box {
        border-left: none;
        border-top: 2px solid var(--accent-red);
        border-bottom: 2px solid var(--accent-red);
        padding: 20px 0;
    }
    .vip-bullet-item {
        text-align: left;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Devices (Small screens) */
@media (max-width: 576px) {
    .btn {
        width: 100%;
    }
    
    .category-tabs {
        gap: 6px;
    }
    .tab-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
        flex-grow: 1;
        text-align: center;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        justify-content: space-between;
    }
    
    .quote-form-grid {
        grid-template-columns: 1fr;
    }
    .quote-form-full {
        grid-column: span 1;
    }
    .customization-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quote-inputs-card, .quote-results-card, .vip-form-card, .modal-content {
        padding: 24px 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   PRINT STYLES FOR PDF GENERATION
   ========================================================================== */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-quote-invoice, #printable-quote-invoice * {
        visibility: visible;
    }
    #printable-quote-invoice {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #000 !important;
        background: #fff !important;
        padding: 40px;
    }
    /* Set details in black for print visibility */
    .print-logo-text {
        color: #000 !important;
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 24px;
    }
    .print-heading-red {
        color: #E50914 !important;
    }
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 30px;
    }
    .print-table th, .print-table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
        color: #000;
    }
    .print-table th {
        background-color: #f5f5f5 !important;
    }
}

/* ==========================================================================
   4. NEW ARCHITECTURE ADDITIONS: DASHBOARDS, LOGIN & WIZARD
   ========================================================================== */

/* Dashboard Layout Wrapper */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: var(--bg-primary);
}

.dashboard-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.sidebar-user-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    flex-grow: 1;
}
.sidebar-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-quick);
}
.sidebar-nav-item a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.02);
}
.sidebar-nav-item.active a {
    color: var(--text-white);
    background: rgba(229, 9, 20, 0.08);
    border-left: 3px solid var(--accent-red);
}

.dashboard-main {
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

.dashboard-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.dashboard-section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Login Panel Portal */
.login-panel-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111111 0%, #050505 100%);
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 460px;
    padding: 40px;
}
.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    text-align: center;
}
.login-logo img {
    height: 64px;
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--accent-red);
}
.quick-access-box {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}
.quick-access-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 700;
}
.quick-access-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* B2B Customization Wizard Layout (Restaurant Soft Style) */
.wizard-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}

.wizard-card {
    padding: 30px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.wizard-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}
.wizard-steps-indicator::after {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}
.wizard-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    text-align: center;
}
.wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.wizard-step-node.active .wizard-step-circle {
    border-color: var(--accent-red);
    background: var(--accent-red);
    color: var(--text-white);
    box-shadow: 0 0 15px var(--accent-red-glow);
}
.wizard-step-node.completed .wizard-step-circle {
    border-color: var(--success-green);
    background: var(--success-green);
    color: var(--text-white);
}
.wizard-step-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.wizard-step-node.active .wizard-step-title {
    color: var(--text-white);
}
.wizard-step-node.completed .wizard-step-title {
    color: var(--success-green);
}

.wizard-step-panel {
    display: none;
    flex-grow: 1;
    flex-direction: column;
    animation: fadeIn 0.4s ease;
}
.wizard-step-panel.active {
    display: flex;
}

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

.wizard-step-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.wizard-step-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.wizard-step-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Wizard Grid Cards (Step 1) */
.wizard-garments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.garment-select-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 20px;
}
.garment-select-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-red-glow);
}
.garment-select-card.selected {
    border-color: var(--accent-red);
    background: rgba(229, 9, 20, 0.05);
}
.garment-card-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}
.garment-card-info h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.garment-card-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.garment-card-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-top: 6px;
    display: block;
}

/* Quantity Tallas Grid (Step 2) */
.size-quantity-matrix {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.size-quantity-input-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    text-align: center;
}
.size-label-tag {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
    display: block;
}
.size-input-field {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    outline: none;
    font-size: 1rem;
}
.size-input-field:focus {
    border-color: var(--accent-red);
}

/* Color Dot Picker */
.color-picker-wrapper {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}
.color-picker-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
}
.color-picker-dot:hover {
    transform: scale(1.1);
}
.color-picker-dot.selected {
    border-color: var(--text-white);
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
    transform: scale(1.15);
    color: var(--text-white);
}
.color-picker-dot i {
    font-size: 0.95rem;
}
.color-picker-dot.color-dot-rojo { background-color: #E50914; }
.color-picker-dot.color-dot-negro { background-color: #121212; border: 2px solid rgba(255,255,255,0.15); }
.color-picker-dot.color-dot-negro.selected { border-color: var(--text-white); }
.color-picker-dot.color-dot-blanco { background-color: #FFFFFF; color: #000; }
.color-picker-dot.color-dot-blanco.selected { color: #000; }
.color-picker-dot.color-dot-gris { background-color: #7f8c8d; }
.color-picker-dot.color-dot-azul { background-color: #0b3c5d; }

/* Customization Details Layout (Step 3) */
.custom-positions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.position-checkbox-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-quick);
}
.position-checkbox-box:hover {
    background: rgba(255,255,255,0.02);
}
.position-checkbox-box.selected {
    border-color: var(--accent-red);
    background: rgba(229, 9, 20, 0.04);
}
.position-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}
.position-checkbox-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-red);
    cursor: pointer;
}

.logo-drag-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.logo-drag-dropzone:hover {
    border-color: var(--accent-red);
    background: rgba(229, 9, 20, 0.02);
}
.logo-drag-dropzone.has-file {
    border-color: var(--success-green);
    background: rgba(16, 185, 129, 0.02);
}
.logo-drag-dropzone i {
    font-size: 2.2rem;
    color: var(--text-muted);
}
.logo-drag-dropzone.has-file i {
    color: var(--success-green);
}

.wizard-navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

/* Restaurant Soft Summary sticky card (Wizard right side) */
.wizard-summary-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    position: sticky;
    top: 40px;
    box-shadow: var(--shadow-premium);
}
.wizard-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.wizard-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.wizard-summary-item strong {
    color: var(--text-white);
}
.wizard-summary-item.divider {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 4px;
}
.wizard-summary-total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-white);
    border-top: 1px solid var(--accent-red);
    padding-top: 14px;
    margin-top: 12px;
    margin-bottom: 20px;
}

.ally-commission-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed var(--success-green);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.ally-commission-box i {
    font-size: 1.5rem;
    color: var(--success-green);
}
.ally-commission-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.ally-commission-text strong {
    color: var(--success-green);
    font-size: 0.95rem;
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Admin Orders Management CSS */
.admin-badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.admin-badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.admin-badge-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.admin-actions-cell {
    display: flex;
    gap: 8px;
}

/* Responsive Overrides for Dashboards */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        height: auto;
        position: static;
        padding: 20px;
    }
    .sidebar-logo {
        padding-bottom: 12px;
    }
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }
    .sidebar-nav-item a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .dashboard-main {
        padding: 24px 16px;
        height: auto;
    }
    .wizard-wrapper {
        grid-template-columns: 1fr;
    }
    .wizard-summary-panel {
        position: static;
    }
}

@media (max-width: 576px) {
    .wizard-garments-grid {
        grid-template-columns: 1fr;
    }
    .size-quantity-matrix {
        grid-template-columns: repeat(3, 1fr);
    }
    .custom-positions-grid {
        grid-template-columns: 1fr;
    }
    .quick-access-buttons {
        grid-template-columns: 1fr;
    }
}
