/* ==========================================================================
   DN Impresiones 3D - Estilos Principales
   Tema: Cyber Forge / Dark Titanium Luxury
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    /* Paleta Principal */
    --bg-dark: #080c14;
    --bg-surface: #0e1422;
    --bg-card: rgba(18, 26, 43, 0.75);
    --bg-card-hover: rgba(26, 37, 61, 0.9);
    --bg-elevated: #162035;
    --bg-input: #0b101c;

    /* Acentos Neón / Impresión 3D */
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-violet: #a855f7;
    --accent-magenta: #ec4899;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --accent-glow: rgba(0, 242, 254, 0.35);

    /* Degradados */
    --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8b5cf6 100%);
    --grad-accent: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    --grad-badge: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-dark: linear-gradient(180deg, rgba(14, 20, 34, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);

    /* Bordes y Vidrio */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 242, 254, 0.4);
    --border-card: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(18px);

    /* Textos */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #38bdf8;

    /* Tipografía */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Sombras */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-neon: 0 0 25px rgba(0, 242, 254, 0.25);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Radio de Bordes */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(79, 172, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Tipografía de Títulos */
h1, h2, h3, h4, .brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

/* Contenedor Universal - 100% de Ancho de Pantalla Fluido */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 clamp(1.25rem, 3.5vw, 4.5rem);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

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

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
    border: 1px solid rgba(0, 242, 254, 0.4);
    transition: var(--transition);
}

.brand-wrapper:hover .brand-logo-img {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.5);
}

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

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

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

.btn-header-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: var(--transition);
}

.btn-header-cart:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.cart-count {
    background: var(--grad-primary);
    color: #080c14;
    font-weight: 800;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.btn-admin-mode {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
    padding: 9px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-admin-mode:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: #c084fc;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulseGlow 2s infinite;
}

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

.hero-title {
    font-size: 3.25rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: #080c14;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    font-weight: 600;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Card Showcase Hero */
/* Card Showcase Hero - Carrusel Interactivo Multi-Slide */
.hero-card-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-card);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 430px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 6s ease;
}

.hero-slide.active .hero-banner-img {
    transform: scale(1.05);
}

.hero-slide-overlay {
    position: relative;
    z-index: 3;
    padding: 1.5rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, rgba(8, 12, 20, 0) 0%, rgba(8, 12, 20, 0.85) 45%, rgba(8, 12, 20, 0.98) 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.hero-slide-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.35);
}

.hero-slide-tag.tag-gaming {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.4);
}

.hero-slide-tag.tag-adornos {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border-color: rgba(236, 72, 153, 0.4);
}

.hero-slide-tag.tag-custom {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.hero-slide-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.hero-slide-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-slide-action {
    align-self: flex-start;
    margin-top: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #080c14;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.btn-slide-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

/* Controles del Carrusel Hero */
.hero-carousel-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 12, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    padding: 6px 10px;
    border-radius: var(--radius-full);
}

.hero-slider-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-arrow:hover {
    background: var(--accent-cyan);
    color: #080c14;
}

.hero-carousel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    width: 22px;
    border-radius: var(--radius-full);
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-card-badge {
    position: absolute;
    bottom: 16px;
    right: 20px;
    z-index: 6;
    background: rgba(14, 20, 34, 0.95);
    border: 1px solid var(--border-active);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
}

.hero-card-badge-icon {
    font-size: 1.25rem;
}

.hero-card-badge-text {
    display: flex;
    flex-direction: column;
}

.hero-badge-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.hero-badge-sub {
    font-size: 0.70rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   BARRA DE BÚSQUEDA Y CATEGORÍAS
   ========================================================================== */
.catalog-toolbar-section {
    position: sticky;
    top: 78px;
    z-index: 80;
    background: rgba(8, 12, 20, 0.92);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 0;
    margin-bottom: 2rem;
}

.toolbar-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-and-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 750px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 18px 12px 46px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
    background: var(--bg-elevated);
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus, .sort-select:hover {
    border-color: var(--accent-cyan);
}

/* ==========================================================================
   SLIDER DE CATEGORÍAS (CARROUSEL HORIZONTAL CON FLECHAS Y ARRASTRE)
   ========================================================================== */
.category-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.category-slider-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.category-slider-arrow:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
    transform: scale(1.08);
}

.category-slider-arrow:active {
    transform: scale(0.95);
}

.category-pills-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 2px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.category-pills-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-pills-row.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.category-pill {
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 0.90rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    flex-shrink: 0;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.category-pill.active {
    background: var(--grad-primary);
    color: #080c14;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(0, 242, 254, 0.45);
    font-weight: 700;
    transform: translateY(-1px);
}

.category-count {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.category-pill.active .category-count {
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

/* ==========================================================================
   GRID DE PRODUCTOS / CATÁLOGO
   ========================================================================== */
.catalog-section {
    padding-bottom: 5rem;
}

.catalog-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.catalog-title {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-badge-counter {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 1.75rem;
}

/* Tarjeta de Producto */
.product-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-active);
    box-shadow: 0 16px 36px -10px rgba(0, 242, 254, 0.2);
    background: var(--bg-card-hover);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: #090e18;
    overflow: hidden;
    cursor: pointer;
}

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

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--grad-primary);
    color: #080c14;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.product-category-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    top: auto;
    background: rgba(14, 20, 34, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.70rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.25;
    cursor: pointer;
}

.product-title:hover {
    color: var(--accent-cyan);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.spec-chip {
    font-size: 0.74rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon-action {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-action:hover {
    background: var(--accent-cyan);
    color: #080c14;
    border-color: var(--accent-cyan);
    transform: scale(1.08);
}

.btn-cotizar-card {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: var(--accent-cyan);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-cotizar-card:hover {
    background: var(--accent-cyan);
    color: #080c14;
    box-shadow: var(--shadow-neon);
}

/* ==========================================================================
   SECCIÓN: CALCULADORA 3D INTELIGENTE (3 MODOS)
   ========================================================================== */
.calculator-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 20, 34, 0.85) 50%, transparent 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.section-badge {
    display: inline-block;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Selector de Modos de la Calculadora */
.calc-mode-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
}

.calc-mode-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.calc-mode-tab:hover {
    background: var(--bg-elevated);
    border-color: rgba(0, 242, 254, 0.3);
}

.calc-mode-tab.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
}

.tab-mode-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.tab-mode-info {
    display: flex;
    flex-direction: column;
}

.tab-mode-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calc-mode-tab.active .tab-mode-title {
    color: var(--accent-cyan);
}

.tab-mode-sub {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.calc-card-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.calc-form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-mode-view {
    display: none;
    flex-direction: column;
}

.calc-mode-view.active {
    display: flex;
}

.calc-view-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tarjetas de Tipos de Objeto */
.object-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.object-preset-card {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    transition: var(--transition);
}

.object-preset-card:hover {
    border-color: rgba(0, 242, 254, 0.4);
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

.object-preset-card.active {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.preset-icon {
    font-size: 1.5rem;
}

.preset-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
}

.preset-desc {
    font-size: 0.70rem;
    color: var(--text-muted);
}

/* Sliders de Dimensiones */
.dimension-sliders-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.slider-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.slider-label-row b {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

.slider-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    cursor: pointer;
    transition: transform 0.15s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-number-input {
    width: 65px;
    padding: 6px 8px;
    text-align: center;
    font-family: var(--font-mono);
    font-weight: 700;
}

.dim-summary-badge {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 10px 16px;
    border-radius: var(--radius-md);
}

.dim-summary-icon {
    font-size: 1.5rem;
}

.dim-summary-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dim-summary-sub {
    font-size: 0.76rem;
    color: var(--text-accent);
}

/* Solidez */
.solidez-buttons-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.solidez-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.solidez-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-elevated);
}

.solidez-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-emerald);
    color: #ffffff;
}

.solidez-icon {
    font-size: 1.2rem;
}

.solidez-name {
    font-size: 0.82rem;
    font-weight: 700;
}

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

/* STL Dropzone */
.stl-dropzone {
    border: 2px dashed rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.03);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.stl-dropzone:hover, .stl-dropzone.dragover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.2);
}

.dropzone-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: floatAnim 3s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.dropzone-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.dropzone-sub {
    font-size: 0.84rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
}

.dropzone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
}

.stl-analysis-result {
    margin-top: 1.5rem;
    background: var(--bg-input);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stl-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}

.stl-badge-ok {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

.stl-file-name {
    font-size: 0.84rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stl-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stl-metric-card {
    background: var(--bg-card);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stl-metric-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.stl-metric-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

.calc-common-fields {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.quantity-control-calc {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: fit-content;
}

.qty-input-calc {
    width: 60px;
    text-align: center;
    border: none;
    font-weight: 700;
    padding: 10px;
}

.calc-guarantee-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 1rem 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.form-input, .form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.2);
}

.calc-result-column {
    background: var(--bg-elevated);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.breakdown-row.total-row {
    border-bottom: none;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.total-price-large {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   SECCIÓN PERSONALIZADOS / ENCARGOS
   ========================================================================== */
.custom-order-section {
    padding: 5rem 0;
}

.custom-order-box {
    background: linear-gradient(135deg, rgba(22, 32, 53, 0.8) 0%, rgba(14, 20, 34, 0.9) 100%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.custom-order-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.custom-order-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    color: var(--text-secondary);
}

.feature-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

/* ==========================================================================
   MODAL DE DETALLE Y PERSONALIZACIÓN DE PRODUCTO
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 7, 14, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
}

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

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

.modal-img-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-preview-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: #090e18;
    border: 1px solid var(--border-subtle);
}

.modal-details-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Selector de Colores de Filamento */
.color-picker-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 8px;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.18);
}

.color-swatch.active {
    transform: scale(1.22);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 14px var(--accent-cyan);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.color-selected-name {
    font-size: 0.85rem;
    color: var(--text-accent);
    font-weight: 600;
}

/* Selector de Escala y Relleno */
.option-pills-group {
    display: flex;
    gap: 8px;
}

.option-pill-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.option-pill-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.option-pill-btn.active {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Selector de Cantidad */
.quantity-control {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

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

.qty-input {
    width: 48px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

/* Modal Actions */
.modal-actions-footer {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.btn-whatsapp-direct {
    background: #25D366;
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.btn-whatsapp-direct:hover {
    background: #1ebd56;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   DRAWER DE COTIZACIÓN (CARRITO)
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 7, 14, 0.75);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quote-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 460px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-card);
    z-index: 1010;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.open .quote-drawer {
    transform: translateX(0);
}

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

.drawer-title {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

.cart-item-img {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #090e18;
}

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

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.cart-item-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.cart-item-price {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-cyan);
    font-size: 1rem;
    margin-top: 4px;
}

.btn-remove-cart {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-remove-cart:hover {
    background: #ef4444;
    color: #fff;
}

.drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
}

/* ==========================================================================
   CONTROL PANEL (CP) INTEGRAL - MODO ADMINISTRADOR COMPLETO
   ========================================================================== */
.cp-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 7, 14, 0.96);
    backdrop-filter: blur(20px);
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cp-fullscreen-overlay.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cp-dashboard-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #070b13;
}

/* Header del CP */
.cp-header {
    height: 72px;
    background: rgba(14, 20, 34, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cp-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cp-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.cp-brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.cp-badge-pro {
    font-size: 0.70rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.cp-system-status {
    font-size: 0.76rem;
    color: var(--accent-emerald);
    display: block;
}

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

.btn-cp-store {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cp-store:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.cp-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.cp-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Layout del CP */
.cp-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.cp-sidebar {
    width: 270px;
    background: rgba(11, 16, 28, 0.95);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
}

.cp-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cp-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    position: relative;
}

.cp-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.cp-nav-item.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    color: var(--accent-cyan);
    border-left: 3px solid var(--accent-cyan);
}

.cp-nav-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cp-nav-text {
    flex: 1;
}

.cp-pill-count {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.cp-pill-pedidos {
    background: rgba(168, 85, 247, 0.25);
    color: #c084fc;
}

.cp-sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

/* Área Principal */
.cp-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.25rem 2.75rem;
    background: #080c14;
}

.cp-tab-pane {
    display: none;
    animation: fadeInPane 0.25s ease;
}

.cp-tab-pane.active {
    display: block;
}

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

.cp-pane-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cp-pane-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cp-pane-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Grid de KPIs */
.cp-kpis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.cp-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cp-kpi-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.kpi-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.kpi-body {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 3px 0;
}

.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Two col grid en CP */
.cp-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.cp-card-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.cp-box-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.cp-cat-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cp-distribution-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cp-dist-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
}

.cp-dist-bar-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.cp-dist-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--grad-primary);
    transition: width 0.6s ease;
}

.cp-quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cp-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.cp-action-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-cyan);
    transform: translateX(4px);
}

.cp-action-btn span {
    font-size: 1.6rem;
}

.cp-action-btn b {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.cp-action-btn p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Toolbar de Tablas */
.cp-table-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.cp-table-counter {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cp-table-scroll-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cp-datatable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.cp-datatable th, .cp-datatable td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.cp-datatable th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cp-datatable tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.cp-datatable tr:last-child td {
    border-bottom: none;
}

.cp-table-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #080c14;
    border: 1px solid var(--border-subtle);
}

/* Status Badges */
.cp-badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
}

.status-pendiente {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-impresion {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-despacho {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-entregado {
    background: rgba(107, 114, 128, 0.2);
    color: #d1d5db;
}

.status-cancelado {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Formularios de CP */
.cp-form-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    max-width: 860px;
}

.cp-image-uploader-box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.cp-img-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cp-img-preview-box img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.preview-caption {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Filtro de pedidos */
.cp-order-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.order-filter-btn {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.order-filter-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.order-filter-btn.active {
    background: var(--accent-cyan);
    color: #080c14;
    border-color: var(--accent-cyan);
    font-weight: 700;
}

/* Filamentos Grid */
.cp-filamentos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 960px;
}

.cp-bobina-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bobina-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bobina-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.bobina-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.bobina-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--grad-primary);
}

.bobina-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.bobina-footer-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.bobina-footer-stats b {
    color: var(--text-primary);
}

.cp-backup-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.admin-tab-btn {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab-btn:hover {
    color: var(--text-primary);
}

.admin-tab-btn.active {
    color: var(--accent-violet);
    border-bottom-color: var(--accent-violet);
}

.admin-panel-content {
    display: none;
}

.admin-panel-content.active {
    display: block;
}

.admin-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-list-table th, .admin-list-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-list-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-table-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.admin-actions-cell {
    display: flex;
    gap: 6px;
}

.btn-admin-small {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
}

.btn-admin-edit {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(0, 242, 254, 0.25);
}

.btn-admin-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    color: var(--text-secondary);
}

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

.footer-col-title {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.92rem;
}

.footer-links-list a:hover {
    color: var(--accent-cyan);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVIDAD INTEGRAL Y OPTIMIZACIÓN MÓVIL PROFESIONAL (SMARTPHONES Y TABLETS)
   ========================================================================== */

/* Reglas Globales para Evitar Desbordamiento Horizontal en Celulares */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* TABLETS Y PANTALLAS MEDIANAS (Hasta 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .calc-card-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .custom-order-box {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .cp-layout {
        flex-direction: column;
    }
    .cp-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 1rem;
    }
    .cp-nav-menu {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
    }
    .cp-nav-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* SMARTPHONES Y DISPOSITIVOS MÓVILES (Hasta 768px) */
@media (max-width: 768px) {
    /* Espacio inferior para la barra de navegación móvil nativa */
    body {
        padding-bottom: 74px;
    }

    .container {
        padding: 0 1rem;
    }

    /* 1. HEADER MÓVIL ELEGANTE Y COMPACTO */
    .site-header {
        height: 62px;
    }
    .header-container {
        height: 62px;
        padding: 0 0.85rem;
    }
    .brand-logo-img {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .brand-wrapper {
        gap: 8px;
    }
    .brand-name {
        font-size: 1.02rem;
    }
    .brand-tagline {
        display: none; /* Ocultar eslogan en celular para dejar espacio limpio */
    }
    .nav-menu {
        display: none; /* Reemplazado por barra inferior táctil */
    }
    .nav-actions {
        gap: 6px;
    }
    .btn-header-cart {
        padding: 7px 11px;
        font-size: 0.82rem;
        gap: 5px;
    }
    .btn-header-cart span:first-child {
        display: none;
    }
    .btn-header-cart::before {
        content: "📋";
        font-size: 0.95rem;
    }
    .btn-admin-mode {
        padding: 7px 11px;
        font-size: 0.82rem;
        gap: 4px;
    }

    /* 2. HERO SECTION EN CELULARES */
    .hero-section {
        padding: 1.5rem 0 1.25rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hero-pill {
        margin-bottom: 0.8rem;
        font-size: 0.78rem;
        padding: 5px 11px;
    }
    .hero-title {
        font-size: clamp(1.85rem, 8.2vw, 2.45rem);
        line-height: 1.15;
        margin-bottom: 0.85rem;
    }
    .hero-desc {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.92rem;
    }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 1.25rem;
        padding-top: 1rem;
    }
    .stat-number {
        font-size: 1.35rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
    .hero-card-showcase {
        padding: 0.65rem;
        border-radius: var(--radius-md);
    }
    .hero-slides-wrapper {
        height: 280px;
    }
    .hero-slide-content {
        padding: 1rem;
    }
    .hero-slide-badge {
        font-size: 0.65rem;
        padding: 2px 7px;
    }
    .hero-slide-title {
        font-size: 1.12rem;
    }
    .hero-slide-desc {
        font-size: 0.78rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-slide-actions {
        gap: 6px;
        flex-wrap: wrap;
    }
    .hero-slide-actions .btn-primary,
    .hero-slide-actions .btn-secondary {
        padding: 8px 12px;
        font-size: 0.78rem;
        width: auto;
        flex: 1;
    }

    /* 3. BARRA Y SLIDER DE CATEGORÍAS */
    .catalog-toolbar {
        padding: 1rem 0 0.5rem;
        gap: 0.9rem;
    }
    .search-and-controls {
        flex-direction: column;
        gap: 9px;
        width: 100%;
    }
    .search-bar {
        width: 100%;
    }
    .search-input {
        font-size: 0.9rem;
        padding: 10px 14px 10px 40px;
    }
    .controls-group {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }
    .sort-select {
        flex: 1;
        padding: 9px 12px;
        font-size: 0.82rem;
    }
    .category-slider-wrapper {
        gap: 4px;
    }
    .category-slider-arrow {
        display: none; /* En celular el scroll táctil nativo es superior y ahorra espacio */
    }
    .category-slider-track {
        padding: 4px 0;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .category-pill {
        padding: 7px 13px;
        font-size: 0.8rem;
        gap: 5px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* 4. GRILLA DE PRODUCTOS ESTILO APP DE COMPRAS (2 COLUMNAS) */
    .catalog-section {
        padding: 1.5rem 0 2.5rem;
    }
    .catalog-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 1rem;
    }
    .catalog-title {
        font-size: 1.45rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .product-card {
        border-radius: var(--radius-md);
    }
    .product-image-container {
        height: 150px;
    }
    .product-badge {
        top: 7px;
        left: 7px;
        padding: 2px 7px;
        font-size: 0.65rem;
    }
    .product-info {
        padding: 9px 9px 12px;
        gap: 5px;
    }
    .product-title {
        font-size: 0.86rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.2em;
    }
    .product-meta-tags {
        display: none;
    }
    .product-specs-summary {
        font-size: 0.70rem;
        gap: 4px;
    }
    .product-price-row {
        padding-top: 5px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .product-price-val {
        font-size: 1.05rem;
    }
    .product-card-actions {
        width: 100%;
        display: flex;
        gap: 5px;
        margin-top: 4px;
    }
    .btn-card-quote {
        flex: 1;
        padding: 7px 4px;
        font-size: 0.75rem;
        justify-content: center;
        gap: 4px;
    }
    .btn-card-detail {
        padding: 7px 9px;
    }

    /* 5. CALCULADORA 3D EN CELULARES */
    .calc-section {
        padding: 2rem 0;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
    }
    .calc-mode-nav {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 1.25rem;
    }
    .calc-mode-tab {
        padding: 10px 14px;
    }
    .tab-mode-icon {
        font-size: 1.3rem;
    }
    .tab-mode-title {
        font-size: 0.9rem;
    }
    .calc-card-grid {
        grid-template-columns: 1fr;
        padding: 1.25rem 1rem;
        gap: 1.5rem;
        border-radius: var(--radius-md);
    }
    .object-presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .object-preset-card {
        padding: 10px 8px;
    }
    .preset-icon {
        font-size: 1.3rem;
    }
    .preset-name {
        font-size: 0.78rem;
    }
    .dimension-slider-item {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .slider-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .calc-summary-card {
        padding: 1.25rem 1rem;
    }
    .price-hero-amount {
        font-size: 1.85rem;
    }
    .calc-breakdown-row {
        font-size: 0.82rem;
    }
    .btn-calc-whatsapp {
        padding: 12px;
        font-size: 0.92rem;
    }

    /* 6. MODAL DETALLE DE PRODUCTO (ESTILO BOTTOM SHEET EN MÓVIL) */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .modal-card {
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
        width: 100%;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    .modal-preview-img {
        height: 210px;
        border-radius: var(--radius-sm);
    }
    .modal-title {
        font-size: 1.35rem;
    }
    .modal-price-hero {
        font-size: 1.45rem;
    }
    .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    /* 7. CAJÓN DE COTIZACIÓN (CHECKOUT MÓVIL) */
    .quote-drawer {
        max-width: 100%;
        width: 100%;
    }
    .drawer-header {
        padding: 1.1rem 1.25rem;
    }
    .drawer-body {
        padding: 1rem;
    }
    .drawer-footer {
        padding: 1.1rem 1.25rem;
    }
    .multichannel-btn-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* 8. CONTROL PANEL (CP) RESPONSIVO PARA SMARTPHONES */
    .cp-fullscreen-overlay {
        padding: 0;
    }
    .cp-dashboard-container {
        height: 100vh;
        border-radius: 0;
    }
    .cp-header {
        height: auto;
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .cp-brand {
        gap: 8px;
    }
    .cp-brand-logo {
        width: 32px;
        height: 32px;
    }
    .cp-brand-name {
        font-size: 0.95rem;
    }
    .cp-badge-pro {
        font-size: 0.62rem;
    }
    .cp-system-status {
        display: none;
    }
    .cp-user-badge .cp-user-email {
        display: none;
    }
    .cp-layout {
        flex-direction: column;
    }
    .cp-sidebar {
        width: 100%;
        padding: 8px 10px;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        background: rgba(11, 16, 28, 0.98);
        overflow-x: auto;
    }
    .cp-nav-menu {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 2px;
    }
    .cp-nav-menu::-webkit-scrollbar {
        display: none;
    }
    .cp-nav-item {
        padding: 7px 11px;
        font-size: 0.78rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-left: none !important;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
    }
    .cp-nav-item.active {
        border-bottom-color: var(--accent-cyan) !important;
        background: rgba(0, 242, 254, 0.12);
    }
    .cp-nav-icon {
        font-size: 1rem;
    }
    .cp-sidebar-footer {
        display: none;
    }
    .cp-main-content {
        padding: 1rem 0.75rem 5rem;
    }
    .cp-pane-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 1.25rem;
    }
    .cp-pane-title {
        font-size: 1.25rem;
    }
    .cp-dashboard-kpis,
    .cp-filamentos-kpis,
    .cp-usuarios-kpis {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .cp-kpi-card {
        padding: 12px;
    }
    .cp-kpi-val {
        font-size: 1.3rem;
    }
    .cp-table-scroll-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cp-datatable, .cp-table {
        min-width: 580px;
    }
    .cp-form-layout {
        padding: 1rem;
        grid-template-columns: 1fr;
    }
    .cp-form-row {
        grid-template-columns: 1fr !important;
    }
    .cp-backup-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* 9. FOOTER MÓVIL */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* 10. BOTÓN FLOTANTE WHATSAPP EN CELULAR */
    .floating-whatsapp {
        bottom: 84px; /* Elevado sobre la barra de navegación móvil */
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}

/* SMARTPHONES PEQUEÑOS (Hasta 380px) */
@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr !important; /* 1 columna cómoda en pantallas muy angostas */
    }
    .product-image-container {
        height: 190px;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .calc-card-grid {
        padding: 1rem 0.75rem;
    }
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN MÓVIL NATIVA INFERIOR
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(8, 12, 20, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid var(--border-subtle);
        z-index: 999;
        align-items: center;
        justify-content: space-around;
        padding: 0 4px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
    .mobile-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 600;
        padding: 6px 6px;
        border-radius: 8px;
        text-decoration: none;
        cursor: pointer;
        flex: 1;
        max-width: 75px;
        transition: var(--transition);
        border: none;
        background: transparent;
    }
    .mobile-nav-btn:hover,
    .mobile-nav-btn.active {
        color: var(--accent-cyan);
    }
    .mobile-nav-icon {
        font-size: 1.25rem;
        line-height: 1;
    }
    .mobile-nav-icon-wrapper {
        position: relative;
        display: inline-flex;
    }
    .mobile-cart-count {
        position: absolute;
        top: -6px;
        right: -10px;
        min-width: 17px;
        height: 17px;
        font-size: 0.65rem;
    }
}

/* ==========================================================================
   MODAL DE LOGIN ADMIN (GOOGLE SIGN-IN & MASTER PIN)
   ========================================================================== */
.admin-login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-login-overlay.open {
    display: flex;
    opacity: 1;
}

.admin-login-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.97), rgba(11, 17, 32, 0.99));
    border: 1px solid rgba(0, 242, 254, 0.28);
    border-radius: 22px;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 
                0 0 50px rgba(0, 242, 254, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 440px;
    padding: 2.25rem 2rem;
    position: relative;
    animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.login-logo-aura {
    display: inline-block;
    position: relative;
    margin-bottom: 0.65rem;
}

.login-logo-img {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
    display: block;
}

.login-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
}

.security-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseSecurityDot 2s infinite;
}

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

.login-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.login-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Tabs Nav / Segmented Control */
.login-tabs-nav {
    display: flex;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.25rem;
    gap: 4px;
}

.login-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    min-height: 40px;
}

.login-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.login-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(121, 40, 202, 0.25));
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.login-tab-btn.active .tab-icon {
    transform: scale(1.1);
}

/* Inputs con Icono y Toggle de Ojo */
.input-with-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-leading-icon {
    position: absolute;
    left: 12px;
    font-size: 1rem;
    pointer-events: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.login-input-with-icon {
    padding-left: 38px !important;
    padding-right: 42px !important;
    height: 44px;
    font-size: 0.92rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transition: all 0.2s ease;
    width: 100%;
}

.login-input-with-icon:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.18);
    background: rgba(15, 23, 42, 0.95);
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    z-index: 3;
    padding: 0;
}

.btn-toggle-password:hover {
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.08);
}

/* PIN Field */
.pin-input-field {
    text-align: center;
    letter-spacing: 0.25em;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: monospace;
}

.pin-input-field::placeholder {
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.25);
}

.login-pin-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(0, 242, 254, 0.05);
    border: 1px dashed rgba(0, 242, 254, 0.22);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.login-pin-info-box span {
    font-size: 1rem;
    flex-shrink: 0;
}

.login-pin-info-box p {
    margin: 0;
}

/* Opciones de Login */
.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    gap: 8px;
}

.login-remember-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.login-remember-label input[type="checkbox"] {
    accent-color: var(--accent-cyan);
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.login-help-link {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.76rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.login-help-link:hover {
    opacity: 0.8;
}

.login-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    height: 46px;
    font-size: 0.95rem;
    border-radius: 11px;
    gap: 8px;
    font-weight: 700;
}

/* Error Alert */
.login-error-alert {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: none;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

.login-error-alert.visible {
    display: flex;
}

.shake-error {
    animation: loginShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes loginShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

.login-footer-info {
    margin-top: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-align: center;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    display: inline-block;
}

.google-signin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #1f2937;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.google-signin-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.google-signin-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-divider:not(:empty)::before {
    margin-right: 0.75em;
}

.login-divider:not(:empty)::after {
    margin-left: 0.75em;
}

/* ==========================================================================
   BOTONES DE COTIZACIÓN MULTICANAL (WHATSAPP, CORREO, AMBOS)
   ========================================================================== */
.btn-email-direct {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    width: 100%;
}

.btn-email-direct:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-both-channels {
    background: linear-gradient(135deg, #7928ca, #ff0080);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 13px 18px;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(255, 0, 128, 0.35);
    transition: all 0.2s ease;
    width: 100%;
}

.btn-both-channels:hover {
    background: linear-gradient(135deg, #6b21a8, #ec4899);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 0, 128, 0.5);
}

/* CP Header User Status */
.cp-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 12px 5px 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-cyan);
}

.cp-user-email {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-cp-logout {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-cp-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    border-color: #ef4444;
}

/* ==========================================================================
   CONTROL DE INVENTARIO DE FILAMENTOS AVANZADO
   ========================================================================== */
.cp-filamentos-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.cp-filament-kpi-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.cp-filament-kpi-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.cp-filament-kpi-lbl {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cp-filament-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cp-filament-card:hover {
    border-color: rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.12);
}

.filament-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.filament-title-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.filament-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    margin-top: 3px;
}

.filament-material-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    margin-top: 3px;
}

.filament-stock-manual-row {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.filament-stock-manual-input {
    width: 110px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 10px;
    text-align: right;
    transition: var(--transition);
}

.filament-stock-manual-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
    outline: none;
}

.filament-quick-deltas {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-filament-delta {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filament-delta:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.filament-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    gap: 8px;
}

.btn-filament-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filament-edit {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
}

.btn-filament-edit:hover {
    background: rgba(0, 242, 254, 0.25);
    color: #ffffff;
}

.btn-filament-delete {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-filament-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

@media (max-width: 900px) {
    .cp-filamentos-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
    .cp-filamentos-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GESTIÓN DE USUARIOS & PERMISOS DE ACCESO
   ========================================================================== */
.user-perm-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    border: 1px solid transparent;
}
.perm-catalog { background: rgba(0, 242, 254, 0.12); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.perm-edit { background: rgba(168, 85, 247, 0.12); color: #c084fc; border-color: rgba(192, 132, 252, 0.3); }
.perm-delete { background: rgba(239, 68, 68, 0.12); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
.perm-stock { background: rgba(16, 185, 129, 0.12); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.perm-filament { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
.perm-orders { background: rgba(99, 102, 241, 0.12); color: #818cf8; border-color: rgba(129, 140, 248, 0.3); }
.perm-users { background: rgba(236, 72, 153, 0.12); color: #f472b6; border-color: rgba(244, 114, 182, 0.3); }
.perm-config { background: rgba(100, 116, 139, 0.15); color: #94a3b8; border-color: rgba(148, 163, 184, 0.3); }

.cp-user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    color: #0b0f19;
    font-weight: 800;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   SISTEMA DE ADAPTACIÓN MÓVIL PROFESIONAL Y RESPONSIVE (SMARTPHONES Y TABLETS)
   Optimizaciones para pantallas de 320px a 992px
   ========================================================================== */

/* 1. Protección de Viewport y Touch */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Espacio en body para la barra de navegación móvil */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* 2. Barra de Navegación Móvil Inferior (Estilo App Nativa) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(62px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(8, 12, 20, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 242, 254, 0.25);
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.7);
        z-index: 1000;
        align-items: center;
        justify-content: space-around;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 600;
        cursor: pointer;
        background: none;
        border: none;
        padding: 6px 4px;
        position: relative;
        flex: 1;
        transition: color 0.2s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item:active, .mobile-nav-item.active {
        color: var(--accent-cyan);
    }

    .mobile-nav-icon {
        font-size: 1.25rem;
        line-height: 1;
    }

    .mobile-nav-item:active .mobile-nav-icon {
        transform: scale(1.15);
    }

    .mobile-nav-badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 18px);
        background: var(--grad-primary);
        color: #080c14;
        font-size: 0.65rem;
        font-weight: 900;
        min-width: 17px;
        height: 17px;
        border-radius: 999px;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 1px solid #080c14;
    }
}

/* 3. Header y Top Navbar en Pantallas Pequeñas */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem !important;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 500;
    }

    .header-container {
        height: 60px;
    }

    .brand-wrapper {
        gap: 8px;
    }

    .brand-logo-img {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-sm);
    }

    .brand-name {
        font-size: 1.05rem;
        letter-spacing: -0.01em;
    }

    .brand-tagline {
        display: none;
    }

    /* Ocultamos links de texto en header ya que están en la barra inferior nativa */
    .nav-menu {
        display: none !important;
    }

    .nav-actions {
        gap: 8px;
    }

    .btn-text-desktop {
        display: none !important;
    }

    .btn-header-cart {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
        min-width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        gap: 4px !important;
    }

    .btn-admin-mode {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
        min-width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        gap: 4px !important;
    }
}

/* 4. Hero Section en Móviles */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.25rem 0 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-pill {
        font-size: 0.74rem;
        padding: 5px 12px;
        margin: 0 auto 0.8rem;
        width: fit-content;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }

    .hero-desc {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-ctas a, .hero-ctas button {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.92rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        padding: 0.9rem;
        margin-top: 1.25rem;
        border-radius: var(--radius-md);
    }

    .stat-item {
        padding: 4px;
        text-align: center;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .hero-card-showcase {
        width: 100%;
        height: auto;
        min-height: 220px;
        max-height: 280px;
        border-radius: var(--radius-md);
    }

    .hero-banner-img {
        height: 240px;
        object-fit: cover;
    }

    .hero-slide-overlay {
        padding: 1rem 0.85rem;
    }

    .hero-slide-heading {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .hero-slide-text {
        display: none;
    }

    .btn-slide-action {
        padding: 7px 12px;
        font-size: 0.76rem;
    }
}

/* 5. Barra de Búsqueda y Filtros de Categoría */
@media (max-width: 768px) {
    .filter-bar-sticky {
        top: 60px;
        padding: 0.65rem 0;
    }

    .catalog-search-row {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .search-input-group {
        width: 100%;
    }

    .catalog-sort-select {
        width: 100%;
    }

    .category-slider-wrapper {
        padding: 0;
    }

    /* Ocultamos flechas en móvil para que el usuario deslice fluidamente con el dedo */
    .category-slider-arrow {
        display: none !important;
    }

    .category-pills-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding: 4px 2px 6px;
    }

    .category-pills-row::-webkit-scrollbar {
        display: none;
    }

    .category-pill {
        flex-shrink: 0;
        padding: 7px 13px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

/* 6. Grid de Productos (2 Columnas en Celulares - Estilo Tienda App Moderna) */
@media (max-width: 680px) {
    .catalog-section {
        padding: 1.5rem 0;
    }

    .catalog-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 1.25rem;
    }

    .catalog-title {
        font-size: 1.25rem;
    }

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

    .product-card {
        padding: 0;
        border-radius: var(--radius-md);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-width: 0;
    }

    .product-image-container {
        height: 140px !important;
        width: 100%;
        position: relative;
    }

    .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-badge {
        font-size: 0.60rem;
        padding: 2px 6px;
        top: 6px;
        left: 6px;
    }

    .product-category-tag {
        font-size: 0.58rem;
        padding: 2px 6px;
        bottom: 6px;
        right: 6px;
        top: auto;
        max-width: 75%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        z-index: 2;
    }

    .product-body {
        padding: 8px !important;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .product-title {
        font-size: 0.85rem !important;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.5em;
    }

    .product-desc {
        font-size: 0.72rem;
        line-height: 1.35;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.7em;
    }

    .product-specs-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 8px;
    }

    .spec-chip {
        font-size: 0.65rem;
        padding: 2px 5px;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .product-footer {
        margin-top: auto;
        padding-top: 6px;
        border-top: 1px solid var(--border-subtle);
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .price-box {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        width: 100%;
    }

    .price-label {
        font-size: 0.62rem;
        color: var(--text-muted);
    }

    .price-value {
        font-size: 1.12rem;
        font-weight: 900;
        color: var(--accent-cyan);
    }

    .product-actions {
        display: flex;
        align-items: center;
        gap: 5px;
        width: 100%;
        box-sizing: border-box;
    }

    .btn-icon-action {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .btn-cotizar-card {
        flex: 1;
        height: 34px;
        padding: 0 8px;
        font-size: 0.76rem;
        font-weight: 700;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        white-space: nowrap;
        min-width: 0;
        box-sizing: border-box;
    }

    .btn-cotizar-card span {
        font-size: 0.85rem;
        line-height: 1;
    }
}

@media (max-width: 350px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    .product-img-wrapper {
        height: 180px !important;
    }
}

/* 7. Calculadora 3D Adaptada a Móvil */
@media (max-width: 850px) {
    .calculator-section {
        padding: 2.5rem 0;
    }

    .section-head {
        margin-bottom: 1.5rem;
    }

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

    .section-subtitle {
        font-size: 0.88rem;
    }

    .calc-mode-nav {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 1.25rem;
    }

    .calc-mode-tab {
        padding: 10px 14px;
        gap: 10px;
    }

    .tab-mode-icon {
        font-size: 1.3rem;
    }

    .tab-mode-title {
        font-size: 0.88rem;
    }

    .tab-mode-sub {
        font-size: 0.72rem;
    }

    .calc-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem 1rem;
    }

    .object-presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .object-preset-card {
        padding: 10px 6px;
    }

    .dimension-sliders-box {
        padding: 1rem;
    }

    .slider-control-group {
        gap: 8px;
    }

    .slider-number-input {
        width: 55px;
        font-size: 0.88rem;
        padding: 4px 6px;
    }

    .solidez-buttons-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stl-dropzone {
        padding: 1.75rem 1rem;
    }

    .dropzone-icon {
        font-size: 2.2rem;
    }

    .dropzone-title {
        font-size: 1rem;
    }

    .dropzone-sub {
        font-size: 0.8rem;
    }

    .calc-result-column {
        padding: 1.25rem 1rem;
    }

    .total-price-large {
        font-size: 1.75rem;
    }

    .btn-calc-add {
        width: 100%;
        padding: 12px;
        justify-content: center;
    }
}

/* 8. Sección Personalizados / Encargos */
@media (max-width: 768px) {
    .custom-order-section {
        padding: 2.5rem 0;
    }

    .custom-order-box {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .custom-order-box::before {
        display: none;
    }

    .custom-order-features {
        margin: 1.25rem 0;
        gap: 0.85rem;
    }

    .feature-item {
        font-size: 0.88rem;
    }
}

/* 9. Modal de Detalle de Producto (Estilo Bottom Sheet en Celular) */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-card {
        max-height: 88vh;
        width: 100%;
        border-radius: 20px 20px 0 0;
        margin: 0;
    }

    .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem 1rem calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .modal-preview-img {
        height: 220px;
        object-fit: contain;
        background: #060a12;
    }

    .modal-actions-footer {
        flex-direction: column;
        gap: 8px;
    }

    .btn-whatsapp-direct, .btn-modal-add {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

/* 10. Drawer de Cotización / Carrito en Móvil */
@media (max-width: 500px) {
    .quote-drawer {
        width: 100%;
        max-width: 100%;
    }

    .drawer-header {
        padding: 1rem;
    }

    .drawer-body {
        padding: 1rem;
    }

    .drawer-footer {
        padding: 1rem;
    }

    .cart-item-card {
        padding: 8px;
        gap: 8px;
    }

    .cart-item-img {
        width: 50px;
        height: 50px;
    }

    .cart-item-title {
        font-size: 0.86rem;
    }

    .btn-checkout-whatsapp, .btn-checkout-email {
        padding: 12px;
        font-size: 0.92rem;
        justify-content: center;
    }
}

/* 11. Control Panel / Modo Administrador en Pantallas Móviles */
@media (max-width: 900px) {
    .cp-dashboard-container {
        height: 100vh;
        height: 100dvh;
    }

    .cp-header {
        height: auto;
        min-height: 56px;
        padding: 8px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .cp-brand-name {
        font-size: 0.98rem;
    }

    .cp-brand-logo {
        width: 32px;
        height: 32px;
    }

    .cp-system-status {
        display: none;
    }

    .cp-header-actions {
        gap: 6px;
    }

    .btn-cp-store {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .cp-close-btn {
        width: 32px;
        height: 32px;
    }

    .cp-layout {
        flex-direction: column;
        overflow-y: auto;
    }

    .cp-sidebar {
        width: 100%;
        padding: 8px 10px;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        flex-shrink: 0;
    }

    .cp-nav-menu {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .cp-nav-menu::-webkit-scrollbar {
        display: none;
    }

    .cp-nav-item {
        white-space: nowrap;
        padding: 7px 12px;
        font-size: 0.78rem;
        gap: 6px;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: var(--radius-sm);
    }

    .cp-nav-item.active {
        border-left: none;
        border-bottom: 2px solid var(--accent-cyan);
    }

    .cp-sidebar-footer {
        display: none;
    }

    .cp-main-content {
        padding: 1rem 0.75rem calc(60px + env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
    }

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

    .cp-kpi-card {
        padding: 12px 10px;
    }

    .cp-kpi-num {
        font-size: 1.4rem;
    }

    .cp-table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cp-table {
        min-width: 580px;
        font-size: 0.8rem;
    }

    .cp-product-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cp-modal-card {
        width: 95%;
        max-height: 90vh;
        padding: 1.25rem 1rem;
    }
}

/* 12. Footer en Móvil */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding-top: 1.5rem;
    }
}

/* 13. Botón Flotante WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 998;
    cursor: pointer;
    border: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 50px;
        height: 50px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}




