/* --- VARIABLES Y BASE --- */
:root {
/* TEMA OSCURO (Por defecto) */
--panel-bg: #0b0f19;
--panel-header-bg: #121829;
--panel-border: var(--neon-blue, #00f3ff);
--panel-text: #ffffff;
--panel-text-muted: #888888;
--panel-text-hover: var(--neon-purple, #bc13fe);
--panel-hover-bg: rgba(188, 19, 254, 0.1);
--panel-item-border: rgba(0, 243, 255, 0.15);
--panel-active-indicator: var(--neon-blue, #00f3ff);
--scrollbar-thumb: var(--neon-blue, #00f3ff);
--silver-bg: #ffffff;
--silver-card-bg: #f8f9fa;
--silver-border: #d1d5db;
--silver-border-glow: #9ca3af;
--silver-text-main: #1f2937;
--silver-text-muted: #6b7280;
--silver-input-bg: #ffffff;
--silver-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
--silver-accent: #374151;

/* TEMA OSCURO: Tono ciberpunk / Neón */
  --btn-grad-start: #00f3ff;
  --btn-grad-end: #00a8ff;
  --btn-grad-hover-start: #1ae8ff;
  --btn-grad-hover-end: #0088ff;
  --btn-shadow: rgba(0, 243, 255, 0.35);
  --btn-shadow-hover: rgba(0, 243, 255, 0.55);

  /* Variables internas del panel de carrito */
  --panel-carrito-bg: linear-gradient(180deg, rgba(7, 11, 22, 0.98) 0%, rgba(13, 20, 38, 0.98) 100%);
  --panel-carrito-card-bg: rgba(18, 26, 47, 0.6);
  --cart-input-bg: rgba(0, 0, 0, 0.6);
  --cart-stepper-bg: #1a1c23;
  --cart-shadow: -15px 0 35px rgba(0, 0, 0, 0.5);
--chk-bg-overlay: rgba(0, 0, 0, 0.75);
    --chk-bg-card: #ffffff;
    --chk-text-main: #1f2937;
    --chk-text-muted: #6b7280;
    --chk-border: #e5e7eb;
    --chk-primary: #0d6efd;
    --chk-shadow: rgba(0, 0, 0, 0.15);
}

/* Detecta si la web o el usuario está en Modo Oscuro */
@media (prefers-color-scheme: dark), [data-theme="dark"], body.dark-mode {
    :root {
        --chk-bg-overlay: rgba(0, 0, 0, 0.88);
        --chk-bg-card: #0d0d1a;
        --chk-text-main: #f3f4f6;
        --chk-text-muted: #9ca3af;
        --chk-border: #00f3ff;
        --chk-primary: #00f3ff;
        --chk-shadow: rgba(0, 243, 255, 0.2);
    }
}

/* 1. Overlay Principal */
.pcrep-modal-overlay {
    display: flex; /* JS lo cambia a flex */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    background-color: var(--chk-bg-overlay) !important;
    backdrop-filter: blur(6px);
    align-items: center !important;
    justify-content: center !important;
    padding: 15px;
    box-sizing: border-box;
}



.modal-checkout {
    /* Eliminado el 'display: flex !important;' directo */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 2. Contenedor Interno de la Ventana */
.modal-checkout-content {
    display: flex !important;
    flex-direction: column !important;
    width: 90vw !important;
    max-width: 650px !important;
    min-width: 320px !important;
    min-height: 400px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: var(--chk-bg-card, #0d0d1a) !important;
    border: 1px solid var(--chk-border, #00f3ff) !important;
    border-radius: 10px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    margin: auto !important;
}

.btn-cyan-action {
    background: #00f2fe !important;
    color: #000000 !important;
    font-weight: bold !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.btn-cyan-action:hover {
    background: #00c8d4 !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5) !important;
}

/* Efecto hover y estado seleccionado en las cards de dirección */
.card-direccion-item:hover {
    border-color: #00f2fe !important;
    background: rgba(0, 242, 254, 0.08) !important;
}

.card-direccion-item:has(input[type="radio"]:checked) {
    border-color: #00f2fe !important;
    background: rgba(0, 242, 254, 0.12) !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

#modal-checkout-form {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 3. Escenarios del Modal */
.pcrep-step-view {
    width: 100 % !important;
    height: auto !important;
    min-height: 250px !important;
    display: none;
    box-sizing: border-box !important;
}

.pcrep-step-view.active {
    display: block !important;
}

/* Reglas de formulario para asegurar flujo vertical */
.pcrep-step-view form,
.pcrep-step-view .row {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100 % !important;
    height: auto !important;
}

/* Modales Overlay Neón One-Click */
.one-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.one-neon-card-modal {
    background: linear-gradient(145deg, #0b0f19 0%, #060911 100%);
    border: 1px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.15), inset 0 0 15px rgba(0, 242, 254, 0.05);
    border-radius: 16px;
    padding: 28px;
    width: 92%;
    max-width: 620px;
    color: #f8fafc;
}

.one-text-neon-cyan {
    color: #00f2fe !important;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

.one-border-neon-bottom { 
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    border-bottom: 1px solid transparent;
    box-sizing: border-box;
}
.one-border-neon-top { border-top: 1px solid rgba(0, 242, 254, 0.18); }

.one-btn-close-neon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
}
.one-btn-close-neon:hover {
    background: #ff4d4d;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.6);
    transform: rotate(90deg);
}

.one-scroll-container {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
    margin: 15px 0;
}
.one-scroll-container::-webkit-scrollbar { width: 4px; }
.one-scroll-container::-webkit-scrollbar-thumb { background: #00f2fe; border-radius: 10px; }
.one-scroll-container::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.6); }

.one-card-direccion-item {
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.one-card-direccion-item:hover {
    border-color: rgba(0, 242, 254, 0.6);
    background: #131d33;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.one-card-direccion-item.one-selected-card {
    border-color: #00f2fe !important;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.25), inset 0 0 10px rgba(0, 242, 254, 0.1) !important;
}

.one-card-direccion-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.2s;
}
.one-card-direccion-item.one-selected-card::before {
    background: #00f2fe;
    box-shadow: 0 0 10px #00f2fe;
}

.one-radio-hidden { display: none; }

.one-custom-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}
.one-selected-card .one-custom-radio {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.15);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}
.one-custom-radio-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s;
}
.one-selected-card .one-custom-radio-inner {
    background: #00f2fe;
    box-shadow: 0 0 6px #00f2fe;
}

.one-badge-alias {
    background: rgba(0, 242, 254, 0.12);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.3);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.one-badge-active-status {
    display: none;
    background: #00f2fe;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}
.one-selected-card .one-badge-active-status {
    display: inline-block;
}

.one-input-neon {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
}
.one-input-neon:focus {
    border-color: #00f2fe !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3) !important;
}

.one-btn-neon-action {
    background: linear-gradient(135deg, #00f2fe 0%, #00b4d8 100%);
    color: #030712 !important;
    font-weight: 800;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.one-btn-neon-action:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
    transform: translateY(-2px);
}

.one-btn-outline-cyan {
    border: 1px solid rgba(0, 242, 254, 0.5);
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.05);
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.2s;
}
.one-btn-outline-cyan:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: #00f2fe;
    color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Overlay del modal de resumen */
#modal-checkout-resumen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#modal-checkout-resumen.active,
#modal-checkout-resumen.show,
#modal-checkout-resumen.open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Card contenedor interior */
#modal-checkout-resumen .modal-checkout-container {
    position: relative;
    z-index: 10000000;
    display: block;
    background: #111827;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    max-width: 480px;
    width: 90%;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

/* Contenedor Base */
 .checkout-card-option {
    background: #151922;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 110px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
}

/* Hover suave */
.checkout-card-option:hover {
    border-color: rgba(0, 242, 254, 0.4);
    background: #1a202c;
}

/* Card Seleccionada (Sombra y borde neón cyan) */
.checkout-card-option:has(input[type="radio"]:checked) {
    background: #13221b !important;
    border: 1.5px solid #28a745 !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

/* Radio button personalizado */
.checkout-card-option input[type="radio"]:checked {
    background-color: #00f2fe;
    border-color: #00f2fe;
}

/* Caja principal de la tarjeta con sufijo -one */
.card-option-box-one {
    display: block;
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

/* Hover */
.card-option-box-one:hover {
    border-color: rgba(40, 167, 69, 0.5);
    background: #142032;
}

/* Estado Seleccionado (Borde Neón Verde + Fondo Destacado) */
.card-option-box-one:has(input[type="radio"]:checked) {
    background: #091c15 !important;
    border: 1.5px solid #28a745 !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.25);
}

/* Radio button interior */
.card-option-box-one input[type="radio"] {
    position: absolute;
    top: 10px;
    left: 10px;
    accent-color: #28a745;
    cursor: pointer;
}

/* Elementos internos */
.card-option-content-one {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.card-option-icon-one {
    font-size: 1.5rem;
    margin-bottom: 6px;
    line-height: 1;
}

.card-option-title-one {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.card-option-sub-one {
    color: #94a3b8;
    font-size: 0.72rem;
    margin-top: 3px;
}

/* Contenedor de campo en disposición Horizontal (Label 40% - Input 60%) */
#modal-checkout-form .form-group-horizontal {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem;
    width: 100%;
}

/* Label al 40% en la misma línea */
#modal-checkout-form .form-group-horizontal .form-label {
    width: 30% !important;
    flex-shrink: 0;
    display: inline-block !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    margin-bottom: 0 !important; /* Elimina el margen inferior para alinear */
    line-height: 1.2;
    white-space: normal; /* Permite salto de línea si el label es largo */
    color: #cbd5e1;
}

/* Input al 60% en la misma línea */
.one-input-neon {
    width: 70% !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(0, 242, 254, 0.25) !important;
    color: #f8fafc !important;
    border-radius: 6px !important;
    padding: 0.4rem 0.6rem !important;
    font-size: 0.85rem !important;
    height: 38px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box !important;
}

/* Focus y Placeholder */
.one-input-neon:focus {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: #00f2fe !important;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.4) !important;
    outline: none !important;
    color: #ffffff !important;
}

.one-input-neon::placeholder {
    color: #64748b !important;
    font-size: 0.8rem;
}
/*fin modal one-click css*/

@media (prefers-color-scheme: dark), body.dark-mode {
    :root {
        --silver-bg: #111827;
        --silver-card-bg: #1f2937;
        --silver-border: #374151;
        --silver-border-glow: #6b7280;
        --silver-text-main: #f3f4f6;
        --silver-text-muted: #9ca3af;
        --silver-input-bg: #111827;
        --silver-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        --silver-accent: #e5e7eb;
    }
}

/* TEMA CLARO */
body.light-mode {
  --panel-bg: #ffffff;
  --panel-header-bg: #f1f5f9;
  --panel-border: #2563eb;           /* Azul sobrio en claro */
  --panel-text: #0f172a;             /* Texto oscuro para alto contraste */
  --panel-text-muted: #64748b;       /* Subtítulos y etiquetas secundarias */
  --panel-text-hover: #7c3aed;       /* Violeta visible en fondo claro */
  --panel-hover-bg: rgba(124, 58, 237, 0.08);
  --panel-item-border: rgba(0, 0, 0, 0.08);
  --panel-active-indicator: #2563eb;
  --scrollbar-thumb: #94a3b8;

  /* TEMA CLARO: Azul corporativo sobrio */
  --btn-grad-start: #2563eb;
  --btn-grad-end: #1d4ed8;
  --btn-grad-hover-start: #1d4ed8;
  --btn-grad-hover-end: #1e40af;
  --btn-shadow: rgba(37, 99, 235, 0.3);
  --btn-shadow-hover: rgba(37, 99, 235, 0.45);

  /* Variables internas del panel de carrito */
  --panel-carrito-bg: #ffffff;
  --panel-carrito-card-bg: #f8fafc;
  --cart-input-bg: #ffffff;
  --cart-stepper-bg: #e2e8f0;
  --cart-shadow: -15px 0 35px rgba(0, 0, 0, 0.08);
}

body {
    margin: 0; 
    background-color: var(--dark-bg); 
    color: #fff;
    font-family: 'Rajdhani', sans-serif; 
    overflow-x: hidden;
}

/* 1. ESTRUCTURA Y NIVELES DEL MODAL */
#modal-checkout-neon {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
}

.panel-control-box {
    position: relative;
    z-index: 2; /* Contenido por encima del overlay */
    background: #1a202c; /* Color sólido base */
    color: #f7fafc;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

/* 2. INPUTS Y FORMULARIO (Sencillo y legible) */
#form-nueva-dir label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #a0aec0;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

#form-nueva-dir .form-control {
    width: 40%; /* Ancho proporcional que pediste */
    min-width: 260px; /* Seguridad para pantallas pequeñas */
    background-color: #2d3748;
    border: 1px solid #4a5568;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-family: monospace;
}

#form-nueva-dir .form-control:focus {
    background-color: #1a202c;
    border-color: #cbd5e0;
    color: #ffffff;
    outline: none;
}



/* 1. Fondo sólido para la tarjeta del Modal */
.panel-control-box,
.silver-card-panel {
    background-color: #1f2937 !important; /* Gris oscuro sólido (en dark mode) o #ffffff en light mode */
    border: 1px solid #374151 !important;
    color: #f3f4f6 !important;
    opacity: 1 !important;
    z-index: 1050;
}

/* 2. Visibilidad absoluta de los inputs */
#form-nueva-dir .form-control {
    background-color: #111827 !important; /* Fondo casi negro para destacar sobre la tarjeta */
    border: 1px solid #4b5563 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* 3. Asegurar que el contenedor del formulario no tenga display:none al probar */
#escenario-formulario {
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 300px !important;
}

/* Oscurecedor de fondo (Overlay) */
.modal-neon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}
/* Tarjeta principal del modal */
.modal-checkout-container {
    position: relative;
    z-index: 10; /* Eleva la tarjeta sobre el fondo */
}

/* Caja de contenido / Panel del formulario */
.panel-control-box,
.silver-card-panel {
    position: relative;
    z-index: 10; /* Se coloca jerárquicamente por ENCIMA del overlay */
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}


/* CSS RECOGIDA DIRECCIONES */

.silver-card-panel {
    background: var(--silver-card-bg);
    border: 1px solid var(--silver-border);
    border-radius: 12px;
    box-shadow: var(--silver-shadow);
    color: var(--silver-text-main);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.border-silver {
    border-color: var(--silver-border) !important;
}

.silver-title {
    color: var(--silver-text-main);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.silver-subtitle {
    color: var(--silver-accent);
}

.text-silver-muted {
    color: var(--silver-text-muted);
}

.silver-body-text {
    color: var(--silver-text-main);
}

/* Inputs y Selects */
.silver-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--silver-text-muted);
    margin-bottom: 0.25rem;
    display: block;
}

.silver-input {
    background-color: var(--silver-input-bg) !important;
    border: 1px solid var(--silver-border) !important;
    color: var(--silver-text-main) !important;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.silver-input:focus {
    border-color: var(--silver-border-glow) !important;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2) !important;
    outline: none;
}

/* Tarjetas de Dirección y Contenedores */
.address-card-silver {
    background: var(--silver-bg);
    border: 1px solid var(--silver-border);
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.address-card-silver.active, .payment-method-card.active {
    border-color: var(--silver-border-glow);
    background: linear-gradient(135deg, var(--silver-bg) 0%, var(--silver-card-bg) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Botones con acabado metálico neutro */
.btn-silver {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--silver-border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-silver-primary {
    background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
    color: #ffffff;
    border-color: #374151;
}

.btn-silver-primary:hover {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    color: #ffffff;
}

.btn-silver-success {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #059669;
}

.btn-silver-success:hover {
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
}

.btn-silver-danger {
    background: transparent;
    color: var(--silver-text-muted);
    border-color: var(--silver-border);
}

.btn-silver-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.silver-price {
    color: var(--silver-text-main);
    font-family: 'Courier New', monospace;
}

/* ===================================================================
   2. REGLAS EXACTAS PARA EL PANEL DEL CARRITO (#panel-carrito)
   =================================================================== */

/* Contenedor principal del Panel */
#panel-carrito.neon-panel.panel-right {
  background: var(--panel-carrito-bg) !important;
  border-left: 1px solid var(--panel-border) !important;
  box-shadow: var(--cart-shadow) !important;
  color: var(--panel-text) !important;
}

/* Cabecera del Panel */
#panel-carrito .panel-header {
  background: var(--panel-header-bg) !important;
  border-bottom: 1px solid var(--panel-item-border) !important;
}

#panel-carrito .panel-header h2,
#panel-carrito .panel-header .close-icon {
  color: var(--panel-text) !important;
}

#panel-carrito .panel-header .close-icon:hover {
  color: var(--panel-text-hover) !important;
}

/* Barra de meta de envío gratis */
#panel-carrito .shipping-goal-wrapper {
  background: var(--panel-header-bg) !important;
  border-bottom: 1px solid var(--panel-item-border) !important;
  color: var(--panel-text) !important;
}

/* Lista de productos e ítems individuales */
#carrito-items-list.panel-body {
  background: transparent !important;
}

#carrito-items-list .cart-item-card {
  background: var(--panel-carrito-card-bg) !important;
  border-left: 3px solid var(--panel-border) !important;
  border-bottom: 1px solid var(--panel-item-border) !important;
  color: var(--panel-text) !important;
}

#carrito-items-list .cart-item-card .item-name {
  color: var(--panel-text) !important;
}

#carrito-items-list .cart-item-card .item-tag {
  color: var(--panel-text-muted) !important;
}

/* Selector de cantidad (Stepper) e Inputs */
#carrito-items-list .qty-stepper {
  background: var(--cart-stepper-bg) !important;
  border: 1px solid var(--panel-item-border) !important;
}

#carrito-items-list .qty-stepper button {
  color: var(--panel-border) !important;
}

#carrito-items-list .qty-stepper .item-qty {
  color: var(--panel-text) !important;
}

#panel-carrito .neon-input-xs {
  background: var(--cart-input-bg) !important;
  border: 1px solid var(--panel-border) !important;
  color: var(--panel-text) !important;
}

#panel-carrito .neon-input-xs::placeholder {
  color: var(--panel-text-muted) !important;
}

/* Resumen del carrito y Pie del panel */
#panel-carrito .cart-summary {
  background: var(--panel-header-bg) !important;
  border-top: 1px solid var(--panel-item-border) !important;
  color: var(--panel-text) !important;
}

#panel-carrito .cart-summary .total-highlight {
  color: var(--panel-border) !important;
}

#panel-carrito .cart-summary .btn-primary {
  background: var(--panel-border) !important;
  border-color: var(--panel-border) !important;
  color: #ffffff !important;
}

/* ===================================================================
   BOTÓN "FINALIZAR PEDIDO" ADAPTATIVO (MORA / MODO OSCURO Y CLARO)
   =================================================================== */
#panel-carrito .cart-summary .btn-primary {
  background: linear-gradient(135deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 15px var(--btn-shadow) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

#panel-carrito .cart-summary .btn-primary:hover {
  background: linear-gradient(135deg, var(--btn-grad-hover-start) 0%, var(--btn-grad-hover-end) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px var(--btn-shadow-hover) !important;
}

#panel-carrito .cart-summary .btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px var(--btn-shadow) !important;
}

/* ===================================================================
   ESTÉTICA BLINDADA DE TARJETA OSCURA (INDEPENDIENTE DEL MODO DE TEMA)
   =================================================================== */

.product-card-neon {
    background-color: #050505;
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
}

.product-card-neon:hover {
    background-color: #0a0a0a;
    border-color: var(--neon-blue, #00f3ff);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* Elementos internos de la tarjeta */
.product-card-neon .img-container {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card-neon .title-line {
    color: #ffffff;
}

.product-card-neon .price-line {
    color: var(--neon-blue, #00f3ff);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

.product-card-neon .add-to-cart-btn {
    border: 1px solid var(--neon-blue, #00f3ff);
    color: var(--neon-blue, #00f3ff);
    background: transparent;
}

.product-card-neon .add-to-cart-btn:hover {
    background: var(--neon-blue, #00f3ff);
    color: #000000;
    box-shadow: 0 0 15px var(--neon-blue, #00f3ff);
}

/* --- 1. NAVBAR (100% REAL) --- */
.navbar-main {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 30px; 
    height: 75px;
    background: #000; 
    border-bottom: 1px solid rgba(0,209,255,0.2);
    position: fixed; /* CAMBIADO: De sticky a fixed para control total */
    top: 0; 
    left: 0;
    width: 100%; 
    z-index: 2000;
    box-sizing: border-box;
}

.modal-custom-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none; /* Se cambia a 'flex' por JS */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.panel-control-box {
    position: relative; /* Importante para que el z-index funcione */
    z-index: 2; /* Por encima del overlay (1) */
    width: 40%;
    max-width: 1200px;
    background: rgb(131 126 126 / 46%);
    border: 1px solid #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    padding: 2.5rem;
}

.checkout-grid-system {
    display: grid;
    /* Forzamos exactamente 2 columnas de ancho idéntico */
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; /* Espaciado entre tarjetas */
    max-height: 60vh; 
    overflow-y: auto;
    padding: 10px;
    width: 100%;
}

.neon-blue-border { border-left: 4px solid #00d4ff !important; }
.neon-text-blue { color: #00d4ff; text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); font-family: monospace; }

.address-card-neon {
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* Card seleccionada (ACTIVA) */
.address-card-neon.active {
    border-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    background: rgba(0, 243, 255, 0.05);
}

/* El icono de check con un poco de brillo */
.check-icon {
    filter: drop-shadow(0 0 5px #198754);
}
.address-card-neon.active { 
    border-color: #00d4ff;
    box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.2);
}
.address-card-neon.active .status-dot { background: #00d4ff; box-shadow: 0 0 8px #00d4ff; }
.status-dot { width: 8px; height: 8px; background: #333; border-radius: 50%; }

.btn-cyber-success {
    background: #00ff7f;
    color: #000;
    border: none;
    padding: 10px 25px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-cyber-success:disabled {
    background: #1a1a1a;
    color: #444;
    cursor: not-allowed;
    border: 1px solid #333;
}

.btn-cyber-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #444;
    padding: 10px 25px;
    transition: 0.3s;
}

.btn-cyber-outline:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.panel-resumen-flex {
    flex: 1 1 300px; /* Crece, se encoge y tiene un mínimo de 300px antes de envolver */
    max-width: 100%;
}

.payment-option-neon {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-option-neon:hover {
    border-color: #00f3ff;
    color: #fff;
}

.payment-option-neon.active {
    border-color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
    color: #00f3ff;
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.2);
}

.payment-method-card {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-method-card:hover {
    border-color: rgba(0, 243, 255, 0.5);
    color: #fff;
}

.payment-method-card.active {
    border-color: #00f3ff;
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.2);
}

/* El botón final solo se activa visualmente con el check */
#btn-finalizar-orden:not([disabled]) {
    opacity: 1 !important;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.price-total-scene-3{font-size: 50px;}

#contenedor-direcciones-checkout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 10px;
    width: 90%;
    align-content: center;
}

#contenedor-direcciones-checkout::-webkit-scrollbar {
    width: 6px;
}

#contenedor-direcciones-checkout::-webkit-scrollbar-thumb {
    background: #00d4ff;
    box-shadow: 0 0 5px #00d4ff;
}

/* Botón Base con Estética de Consola */
.btn-cyber {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Corte angular en las esquinas */
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    color: #fff;
    cursor: pointer;
}

/* Variante Info / Añadir */
.btn-cyber-info {
    border-color: #0dcaf0;
    color: #0dcaf0;
}
.btn-cyber-info:hover {
    background: #0dcaf0;
    color: #000;
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.5);
}

/* Variante Éxito / Guardar / Ejecutar */
.btn-cyber-success {
    border-color: #00d4ff; /* Azul neón para seguir tu tema */
    color: #00d4ff;
    text-shadow: 0 0 5px #00d4ff;
}
.btn-cyber-success:hover {
    background: #00d4ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

/* Variante Peligro / Cancelar */
.btn-cyber-danger {
    border-color: #ff3e3e;
    color: #ff3e3e;
}
.btn-cyber-danger:hover {
    background: #ff3e3e;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.5);
}

/* Ajuste para iconos dentro de los botones */
.btn-cyber i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Inputs estilo Terminal de Datos en tono Plateado Neutro */
#form-nueva-dir .form-control {
    background-color: var(--silver-input-bg, #f8f9fa) !important;
    border: 1px solid var(--silver-border, #d1d5db) !important;
    color: var(--silver-text-muted, #9ca3af);
    width: 40% !important; /* Proporcional al 40% del panel */
    min-width: 250px; /* Evita que en móviles pequeños se vuelva ilegible */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    padding: 10px 12px;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

#form-nueva-dir .form-control:focus {
    background-color: var(--silver-card-bg, #000000) !important;
    box-shadow: 0 0 10px rgba(156, 163, 175, 0.4);
    border-color: var(--silver-border-glow, #6b7280) !important;
    outline: none;
}

/* Estilo para los Labels */
#form-nueva-dir label {
    color: var(--silver-text-muted, #4b5563);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 5px;
    display: block;
}

/* Placeholder Neutro */
#form-nueva-dir .form-control::placeholder {
    color: var(--silver-text-muted, #000000);
    opacity: 0.6;
}

/* 1. Forzar el color de texto e icono de inserción (caret) en estado Focus */
#form-nueva-dir .form-control:focus,
#form-nueva-dir .form-control:active {
    color: var(--silver-text-main, #1f2937) !important;
    caret-color: var(--silver-text-main, #1f2937) !important;
}

/* 2. Solución para el Autocompletado del Navegador (Chrome/Edge/Safari) */
/* Evita que el navegador ponga texto blanco o fondos extraños al escribir o auto-completar */
#form-nueva-dir .form-control:-webkit-autofill,
#form-nueva-dir .form-control:-webkit-autofill:hover, 
#form-nueva-dir .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--silver-text-main, #1f2937) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--silver-input-bg, #f8f9fa) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Modo oscuro: ajusta la visibilidad del texto al escribir si la página está en dark mode */
@media (prefers-color-scheme: dark), body.dark-mode {
    #form-nueva-dir .form-control:focus,
    #form-nueva-dir .form-control:active {
        color: #f3f4f6 !important;
        caret-color: #f3f4f6 !important;
    }
    
    #form-nueva-dir .form-control:-webkit-autofill,
    #form-nueva-dir .form-control:-webkit-autofill:hover, 
    #form-nueva-dir .form-control:-webkit-autofill:focus {
        -webkit-text-fill-color: #f3f4f6 !important;
        -webkit-box-shadow: 0 0 0px 1000px #111827 inset !important;
    }
}

/* --- 2. CONTENEDOR PRINCIPAL (80% CENTRADO) --- */
#main-wrapper { 
    margin-top: 90px;
    padding: 20px; 
    width: 80%; 
    max-width: 1400px; 
    margin-left: auto;
    margin-right: auto; 
    min-height: 80vh; 
}



/* ==========================================================================
   🛸 ARQUITECTURA DE HEADER DOBLE UNIFICADO (TABLETS Y MÓVILES)
   ========================================================================== */

/* Estilos base de escritorio para asegurar compatibilidad */
.functional-cyber-header .nav-center {
    flex-grow: 1; 
    display: flex; 
    justify-content: center;
}

/* ==========================================================================
   🛸 ARQUITECTURA DE HEADER DOBLE UNIFICADO (REFUERZO TEXTO MÓVIL)
   ========================================================================== */

/* Aseguramos que en escritorio el buscador central mantenga su espacio estándar */
.navbar-main .nav-center {
    flex-grow: 1; 
    display: flex; 
    justify-content: center;
}



/* --- 3. PANELES (OPTIMIZADOS PARA ANIMACIÓN) --- */
.neon-panel {
    display: flex; /* Siempre es flex para que la estructura interna no se rompa */
    position: fixed; 
    top: 0; 
    width: 380px; 
    height: 100vh;
    background: var(--panel-bg); 
    z-index: 3000;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
    
    /* ESTADO INICIAL (OCULTO) */
    visibility: hidden;
    opacity: 0;
    transition: transform 0.5s var(--bezier-curve), opacity 0.3s ease;
}

/* Panel de Categorías (Viene de la izquierda) */
#panel-categorias {
    left: 0;
    transform: translateX(-100%); /* Escondido a la izquierda */
    border-right: 2px solid var(--panel-border); 
    background-color: var(--panel-bg);
    color: var(--panel-text);
    z-index: 9999; 
}

/* Panel de Filtros y Carrito (Escondido a la izquierda) */
#panel-filtros {
    right: 0;
    transform: translateX(-100%); /* Escondido a la izquierda */
    border-left: 2px solid var(--neon-blue);
}

/* CLASE ACTIVA (Cuando el JS añade .active) */
.neon-panel.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0); /* Vuelve a su posición original */
}

#panel-categorias.active, #panel-filtros.active { transform: translateX(0); }

#cart-panel { right: 0; transform: translateX(100%); }
#cart-panel.active { transform: translateX(0); }

/* --- 4. MODALES (ESTILO CYBER-DARK UNIFICADO) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: center; z-index: 9999;
}

.modal-wrapper {
    background: #121212; /* Fondo oscuro, no blanco */
    color: #ffffff; padding: 40px; border-radius: 12px;
    width: 90%; max-width: 400px; position: relative;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.2);
}

        #panel-filtros { left: -380px; border-right: 1px solid rgba(0,209,255,0.3); }
        #panel-filtros.active { left: 0; }
        #cart-panel { right: -380px; border-left: 1px solid rgba(0,209,255,0.3); }
        #cart-panel.active { right: 0; }

.panel-top-bar {
    display: flex;             /* Activa el modo flexible */
    justify-content: space-between; /* Separa el título del icono a los extremos */
    align-items: center;       /* Alinea ambos verticalmente al centro exacto */
    width: 100%;               /* Asegura que ocupe todo el ancho del panel */
    padding: 15px 20px;        /* Ajusta el espaciado interno a tu gusto */
    box-sizing: border-box;    /* Evita que el padding rompa el ancho */
    
    /* ADAPTACIÓN MODO CLARO/OSCURO */
    background-color: var(--panel-header-bg);
    border-bottom: 1px solid var(--panel-item-border);
    color: var(--panel-text);
}

.panel-top-bar h3 {
    margin: 0;                 /* CRÍTICO: Elimina el margen por defecto del h2 */
    padding: 0;                /* Elimina padding residual */
    line-height: 1;            /* Fuerza que la altura de línea sea igual al tamaño de fuente */
    display: flex;             /* Ayuda a la alineación interna si hay iconos dentro */
    align-items: center;
    
    /* COLOR DINÁMICO */
    color: var(--panel-text);
}

.panel-top-bar .close-icon {
  color: var(--panel-text);
  transition: color 0.3s ease, transform 0.3s ease;
}

.panel-top-bar .close-icon:hover {
  color: var(--panel-text-hover);
}

        .backdrop-side, .backdrop-cart {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(6px);
            z-index: 2500; display: none; opacity: 0; transition: opacity 0.4s ease;
        }
        .backdrop-side.show, .backdrop-cart.show { display: block; opacity: 1; }

        /* --- NAVBAR --- */
        

        /* --- GRID PRODUCTOS --- */
        
        #grid-productos {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px; padding: 20px; transition: opacity 0.3s ease;
        }

        /* --- CARTELERA / TARJETAS DE PRODUCTO (PRODUCT-CARD-NEON) --- */


.product-filter-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding-bottom: 30px;
    transition: transform 0.3s ease;
}



/* Contenedor del enlace del producto */
.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 15;
    transition: transform 0.3s ease;
}

.card-link-wrapper:hover {
    transform: scale(1.02);
}

/* --- TARJETA DE PRODUCTO CARTELERA (.product-card-neon) --- */

.product-card-neon {
    /* Fondo y texto adaptativos mediante las variables de tema */
    background-color: var(--panel-header-bg);
    border: 1px solid var(--panel-item-border);
    border-radius: 10px; 
    padding: 20px; 
    position: relative;
    z-index: 10;
    cursor: pointer !important;
    display: flex;
    flex-direction: column; 
    height: 100%; 
    text-decoration: none; 
    color: var(--panel-text);
    /* Transición suave para movimiento y resplandor del aura */
    transition: transform 0.4s var(--bezier-curve), 
                box-shadow 0.4s var(--bezier-curve), 
                border-color 0.4s ease, 
                background-color 0.4s ease;
}

/* Efecto Hover base con Aura Neón Resplandeciente (Modo Ciberpunk / Oscuro) */
.product-card-neon:hover {
    transform: translateY(-5px); 
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 209, 255, 0.4), 
                0 0 10px var(--neon-blue);
}

/* Prioridad e interacciones de enlaces y botones internos */
.product-card-neon a, 
.product-card-neon button {
    pointer-events: auto !important;
    z-index: 20;
}

/* Imagen del producto */
.img-container { 
    aspect-ratio: 1 / 1; /* Cuadrado perfecto */
    background: var(--panel-bg);
    border: 1px solid var(--panel-item-border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.img-container img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}

/* Marca */
.brand-line { 
    display: flex;
    /*justify-content: center;*/
    align-items: left;
    width: 100%;
    text-align: left;
    font-size: clamp(1rem, 4vw, 1.4rem); /* Escala suavemente entre 1.5rem y 1.8rem/2rem */
    font-weight: 700;
    margin: 12px 0;
    color: #00f3ff; /* Color cian neón acorde al diseño */
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4); /* Resplandor neón opcional */
}

/* Título (forzado a 2 líneas con tus fuentes originales) */
.title-line { 
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: var(--panel-text); /* Se vuelve oscuro en modo claro */
    margin: 8px 0;
    height: 1rem; /* Forzamos altura de 2 líneas */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Corta el texto a la 2ª línea con puntos suspensivos */
    -webkit-box-orient: vertical;
    line-height: 1.4rem; 
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
}

/* Precio */
.price-line { 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 1.8rem); /* Escala suavemente entre 1.5rem y 1.8rem/2rem */
    font-weight: 700;
    margin: 12px 0;
    color: #00f3ff; /* Color cian neón acorde al diseño */
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4); /* Resplandor neón opcional */
}

/* Botón Añadir al Carrito */
.add-to-cart-btn {
    background: transparent; 
    border: 1px solid var(--panel-border);
    color: var(--panel-text); 
    padding: 10px; 
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    width: 100%;
    border-radius: 4px;
    margin-top: auto; /* Empuja el botón al final de la tarjeta */
}

.add-to-cart-btn:hover { 
    background: var(--panel-hover-bg); 
    color: var(--panel-text-hover); 
    border-color: var(--panel-hover-bg);
}

        /* --- TABS LATERALES --- */
.side-tabs-container {
    position: fixed; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%);
    z-index: 4000; /* Asegúrate de que sea mayor que el del banner (que es 10-20) */
    display: flex; 
    flex-direction: column; 
    gap: 5px;
}


        .tab-filter { color: var(--neon-blue); border-color: rgba(157, 0, 255, 0.3); }

        /* --- FILTROS --- */
        .filter-section { margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; }
        
        input[type="range"] { width: 100%; accent-color: var(--neon-blue); cursor: pointer; }
        .range-labels { display: flex; justify-content: space-between; font-family: 'Orbitron'; font-size: 0.7rem; margin-top: 10px; }
        select.neon-select {
            background: #000; border: 1px solid var(--neon-blue); color: #fff;
            padding: 8px; width: 100%; font-family: 'Rajdhani'; outline: none;
        }

   #btn-trigger-filter {
    display: none; 
    visibility: visible !important;   /* Por si tiene algún visibility:hidden */
    opacity: 1 !important;            /* Por si tiene opacidad 0 */
    width: 40px !important;           /* Tamaño fijo para asegurar que se vea */
    height: 40px !important;
    margin: 0 10px !important;
    background: none !important;      /* Quitamos el fondo rojo de la prueba */
    border: none !important;
    cursor: pointer !important;
    position: relative !important;    /* Lo sacamos del flujo normal si hace falta */
    z-index: 9999 !important;         /* Por encima de todo */
}

#btn-trigger-filter i {
    color: #00f7ff !important;        /* Tu azul neón */
    font-size: 1.5rem !important;     /* Tamaño de icono visible */
    text-shadow: 0 0 10px #00f7ff;    /* Efecto neón */
}

#btn-trigger-filter[style*="display: none"] {
    display: none !important;
}

        #filter-marcas-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.marca-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    transition: 0.3s;
}

.marca-item:hover {
    color: #0ff;
}

.marca-check {
    accent-color: #0ff;
    cursor: pointer;
}

/* Scrollbar personalizada para el panel */
#filter-marcas-list::-webkit-scrollbar { width: 3px; }
#filter-marcas-list::-webkit-scrollbar-thumb { background: #0ff; }
        .marca-item input { accent-color: var(--neon-blue); }
        .btn-success-neon { background-color: #00ff88 !important; color: #000 !important; border-color: #00ff88 !important; }

        .fa-chevron-down { transition: transform 0.3s ease; }
        /* 1. Fondo oscurecido (Overlay) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Un negro profundo con transparencia */
    backdrop-filter: blur(5px);      /* Efecto de desenfoque moderno */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 2. Contenedor del Modal */
.modal-wrapper {
    background: #1a1a1a;            /* Fondo gris muy oscuro, estilo tech */
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 123, 255, 0.2);
    border: 1px solid #333;
}

/* 3. Botón de cerrar */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
}
.close-modal:hover { color: #fff; }

/* 4. Estilo de Google Login */
.social-login {
    margin-bottom: 20px;
    min-height: 40px; /* Espacio para que el botón quepa */
    display: flex;
    justify-content: center;
}

/* 5. Separador "o usa tu cuenta" */
.separator {
    text-align: center;
    border-bottom: 1px solid #333;
    line-height: 0.1em;
    margin: 20px 0 30px;
}
.separator span {
    background: #1a1a1a;
    padding: 0 15px;
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
}

/* 6. Formulario Local (Argon2id) */
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #aaa;
}
.input-group input {
    width: 100%;
    padding: 12px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    transition: border 0.3s;
}
.input-group input:focus {
    outline: none;
    border-color: #007bff; /* Azul eléctrico para destacar */
}

/* 7. Botón Principal */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.2s, background 0.3s;
}
.btn-auth:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}
.modal-footer a { color: #007bff; text-decoration: none; }
#userBtn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

#userBtn:hover {
    background: #007bff;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

#userBtn i {
    font-size: 1.2em;
}
.user-logged {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 123, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #007bff;
    color: #fff;
}

.btn-logout {
    color: #ff4d4d;
    text-decoration: none;
    font-size: 1.2em;
    transition: transform 0.2s;
}

.btn-logout:hover {
    transform: scale(1.2);
    color: #ff0000;
}
/* Contenedor del nombre y el botón de salir */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #00d4ff; /* Un azul neón que resalte, o usa el color de tu web */
}

.btn-logout {
    color: #ff4b2b; /* Rojo para indicar salida */
    font-size: 1.1rem;
    transition: transform 0.2s, color 0.2s;
    text-decoration: none;
}

.btn-logout:hover {
    color: #ff0000;
    transform: scale(1.2);
}

/* Ocultar el botón de login original cuando no se necesite */
#userBtn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}
.cart-icon { position: relative; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
}
/* Contenedor principal del Carrusel */
#pcr-ultra-carousel {
    position: relative;
    width: 100%;
    height: 450px; /* Ajusta según prefieras */
    overflow: hidden;
    background: #000;
}

/* Estilo de cada Diapositiva */
.pcr-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pcr-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Imagen de fondo */
.pcr-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Contenido de texto sobre la imagen */
.pcr-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.4); /* Fondo semi-transparente para leer mejor */
    margin-left: 5%;
}

.pcr-sub {
    font-family: 'Orbitron', sans-serif;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.pcr-text {
    border-left: 3px solid;
    padding-left: 15px;
    color: #ccc;
    margin-bottom: 25px;
}

.pcr-btn {
    display: inline-block;
    padding: 12px 30px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    transition: transform 0.3s;
}

.pcr-btn:hover {
    transform: scale(1.05);
}




/* Y que los paneles cerrados no intercepten clics */
.neon-panel:not(.active) {
    pointer-events: none;
    display: none; /* Forzamos el ocultado total si no está activo */
}



.boton_add_street {
            background: transparent; border: 1px solid var(--neon-blue);
            color: var(--neon-blue); padding: 10px; font-family: 'Orbitron';
            font-size: 0.7rem; cursor: pointer; transition: 0.3s; width: 100%;
        }
.boton_add_street:hover { background: var(--neon-blue); color: #000; }
.boton-delete-street{font-size: 18px; margin-left: 91%;background-color: transparent;}
.boton-delete-street:hover { background: var(--neon-red); color: #000; }

.btn-delete-neon {
    background: transparent;
    border: none;
    color: #ff4d4d; /* Rojo neón */
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 90%;
}

.btn-delete-neon:hover {
    color: #ff0000;
    text-shadow: 0 0 8px #ff4d4d;
    transform: scale(1.4);
}

.btn-street-select-neon {
    background: transparent;
    border: none;
    color: #14B814;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 90%;
}

.btn-street-select-neon:hover {
    color: #00FF00;
    text-shadow: 0 0 8px #ff4d4d;
    transform: scale(1.4);
}



/* Animación para cuando se borra */
.checkout-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Forzamos que el footer use el 100% del ancho del modal */
.panel-footer-action {
    width: 100%;
    text-align: end;
    display: block;
    clear: both;
}

.input-caps {
    text-transform: uppercase;
}

/* Opcional: Estilo para que el placeholder también se vea acorde */
.input-caps::placeholder {
    text-transform: uppercase;
    opacity: 0.5;
}

/* Botones con ancho mínimo para que no se encojan */
.btn-cyber {
    min-width: 180px; /* Evita que el texto se amontone */
    margin: 0 10px;   /* Pequeño margen de seguridad */
}

/* Mejora de los Inputs para que ocupen su sección del "tripartito" */
#form-nueva-dir .form-control {
    background: rgba(0, 5, 10, 0.9) !important;
    border: 1px solid #00d4ff !important;
    color: #fff !important;
    padding: 12px !important;
    border-radius: 2px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

#form-nueva-dir .form-control:focus {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6) !important;
    outline: none;
}

/* Contenedor oscuro de fondo */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(5px);    /* Efecto de desenfoque moderno */
    display: none;                  /* Se activa con JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;                  /* Siempre por encima de todo */
}

/* Caja blanca del modal */
.modal-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: center;
    animation: modalEntrada 0.3s ease-out;
}



/* Botón de cerrar (X) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Estilos para el input de Alias */
#nuevoAlias {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 16px;
    box-sizing: border-box; /* Evita que el padding ensanche el input */
}

#nuevoAlias:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.2);
}

/* Botón de acción */
.btn-auth {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.btn-auth:hover {
    background: #0056b3;
}
.user-nav-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-logged {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-logout {
    color: #ff4d4d;
    text-decoration: none;
    font-size: 0.9em;
    transition: transform 0.2s;
}

.btn-logout:hover {
    transform: scale(1.1);
}
.nav-right {
    display: flex;          /* Alinea hijos en horizontal */
    flex-direction: row;    /* Dirección de fila */
    align-items: center;    /* Centra verticalmente iconos y texto */
    justify-content: flex-end; /* Los pega a la derecha */
    gap: 15px;             /* Espacio real entre usuario y carrito */
}

/* Para que el nombre y el logout también estén en línea */
.user-logged {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;    /* Evita que el nombre se parta en dos líneas */
}
/* Contenedor del pie del modal */
.modal-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 209, 255, 0.3); /* Línea discontinua neon */
    text-align: center;
}

.modal-footer p {
    color: #888;
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif; /* Si usas esta fuente para el estilo gamer */
}

/* El enlace de registro */
.link-registro {
    color: #00d1ff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 2px 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Efecto de subrayado animado */
.link-registro::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #bc13fe; /* Morado neon */
    box-shadow: 0 0 10px #bc13fe;
    transition: width 0.3s ease;
}

/* Hover: Brillo y expansión del subrayado */
.link-registro:hover {
    color: #fff;
    text-shadow: 0 0 8px #00d1ff, 0 0 15px #00d1ff;
}

.link-registro:hover::after {
    width: 100%;
}

/* --- ESTILOS DE PANELES --- */
.header-status {
    display: flex;             /* Activa el modo flexible */
    justify-content: space-between; /* Separa el título del icono a los extremos */
    align-items: center;      /* Alinea ambos verticalmente al centro exacto */
    width: 100%;               /* Asegura que ocupe todo el ancho del panel */
    padding: 15px 20px;       /* Ajusta el espaciado interno a tu gusto */
    box-sizing: border-box;    /* Evita que el padding rompa el ancho */
}

.header-status h2 {
    margin: 0;                 /* CRÍTICO: Elimina el margen por defecto del h2 */
    padding: 0;                /* Elimina padding residual */
    line-height: 1;            /* Fuerza que la altura de línea sea igual al tamaño de fuente */
    display: flex;             /* Ayuda a la alineación interna si hay iconos dentro */
    align-items: center;
}

.close-icon {
    margin: 0;                 /* Elimina márgenes del icono */
    display: flex;             /* Convierte el icono en bloque flexible para centrarlo */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;         /* Ajusta el tamaño para que sea proporcional al h2 */
}
.panel-title { margin-left: 10px; font-family: 'Orbitron'; font-size: 0.9rem; letter-spacing: 2px; }
.close-icon { cursor: pointer; color: var(--neon-blue); transition: 0.3s; font-size: 1.2rem;}
.close-icon:hover { color: var(--neon-blue); transform: rotate(90deg); }

/* Acordeón */
.accordion-container { overflow-y: auto; flex-grow: 1; padding-bottom: 50px; }

.accordion-header {
    width: 100%; 
    padding: 18px 25px; 
    background: none; 
    border: none; 
    border-bottom: 1px solid var(--panel-item-border); /* Delimita cada categoría */
    color: var(--panel-text);                          /* Texto adaptable según tema */
    text-align: left; 
    cursor: pointer; 
    font-family: 'Orbitron'; 
    font-size: 0.75rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Efecto al pasar el ratón */
.accordion-header:hover {
    background-color: var(--panel-hover-bg);
    color: var(--panel-text-hover);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header i.rotated { 
    transform: rotate(180deg); 
}

/* Subcategorías / Enlaces base */
.category-link,
.accordion-content a {
    display: block; 
    padding: 12px 45px; 
    color: var(--panel-text); 
    text-decoration: none; 
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem !important; 
    letter-spacing: 1px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

/* Efecto Hover */
.category-link:hover,
.accordion-content a:hover {
    padding-left: 55px !important; 
    background: var(--panel-hover-bg) !important;
    color: var(--panel-text-hover) !important;
}

/* Categoría Activa / Seleccionada */
.category-link.active,
.accordion-content a.active {
    color: var(--panel-text-hover); 
    border-left: 3px solid var(--panel-active-indicator); 
    background: var(--panel-hover-bg);
}

/* Contenedor desplegable del acordeón */
.accordion-content { 
    overflow: hidden; 
    transition: all 0.4s ease; 
    background: var(--panel-header-bg); 
}



/* Filtros */
.filter-body { padding: 25px; overflow-y: auto; }
.highlight { color: var(--neon-blue); font-weight: bold; }
.loading-text { font-size: 0.8rem; color: #555; font-style: italic; }

/* Ajustes para el acordeón de categorías */
.accordion-item {
    border-bottom: 1px solid rgba(0, 209, 255, 0.1) !important;
}

.accordion-item button:hover {
    background: rgba(0, 209, 255, 0.05) !important;
    color: var(--neon-purple) !important;
    text-shadow: 0 0 8px var(--neon-purple);
}





/* Ajuste para el grid de la tienda */
#grid-productos-shop {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Espacio entre productos */
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}



/* Estado sin stock */
.btn-no-stock {
    background: #222 !important;
    color: #555 !important;
    border-color: #333 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}




.filter-section h4 {
    color: var(--neon-blue);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-left: 3px solid var(--neon-blue);
    padding-left: 10px;
}

.cyber-checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.cyber-checkbox-label:hover {
    color: var(--neon-pink);
}

.marca-check {
    margin-right: 10px;
    accent-color: var(--neon-blue); /* Color del check en navegadores modernos */
}

/* Botón Base del Header */
.neon-btn-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 209, 255, 0.3);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* El Hover que unifica el estilo */
.neon-btn-icon:hover {
    background: rgba(0, 209, 255, 0.1);
    border-color: #00d1ff;
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.4);
    color: #00d1ff;
}

/* Efecto de pulso en el icono al hacer hover */
.neon-btn-icon:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px #00d1ff);
}

/* Variante para cuando el botón está "activo" (panel abierto) */
.neon-btn-icon.active {
    background: #00d1ff;
    color: #000;
    box-shadow: 0 0 20px #00d1ff;
}

/* --- PIE DE CONFIANZA EN EL MODAL --- */
.auth-trust-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 209, 255, 0.2); /* Línea de corte técnica */
    text-align: center;
}

.trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--neon-cyan); /* Usando tu variable de azul neón */
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(0, 247, 255, 0.4);
}

.auth-trust-footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    text-transform: uppercase;
    line-height: 1.4;
    max-width: 250px;
    margin: 0 auto;
}

/* Animación sutil de "pulso" para el icono de escudo */
.trust-line i {
    animation: shield-pulse 2s infinite ease-in-out;
}


/****************************************************/
/* Estado Base: Standby Legible */
.btn-reset {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 209, 255, 0.2);
    color: rgba(0, 209, 255, 0.6);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    outline: none;
}

/* El Hover: Sobrecarga Neon */
.btn-reset:hover {
    background: rgba(0, 209, 255, 0.1);
    border-color: #00d1ff;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.4), 
                inset 0 0 10px rgba(0, 209, 255, 0.2);
    text-shadow: 0 0 8px #00d1ff;
}

/* Efecto de "Click" o Active */
.btn-reset:active {
    transform: scale(0.98);
    background: #00d1ff;
    color: #000;
    box-shadow: 0 0 40px #00d1ff;
}

/* El detalle: Línea de escaneo (Opcional) */
.btn-reset::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.btn-reset:hover::after {
    left: 120%;
}
/****************************************************/

/* Botón Registro: Identidad Púrpura Neón */
.btn-reg {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: rgba(157, 0, 255, 0.03); /* Fondo púrpura sutil */
    border: 1px solid rgba(157, 0, 255, 0.3); /* Borde púrpura */
    color: rgba(157, 0, 255, 0.7);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    outline: none;
    text-transform: uppercase;
}

/* El Hover: Sobrecarga Púrpura */
.btn-reg:hover {
    background: rgba(157, 0, 255, 0.1);
    border-color: var(--neon-purple); /* Usando tu variable #9d00ff */
    color: #fff;
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.4), 
                inset 0 0 10px rgba(157, 0, 255, 0.2);
    text-shadow: 0 0 8px var(--neon-purple);
}

/* Efecto de "Click" en Púrpura Sólido */
.btn-reg:active {
    transform: scale(0.98);
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 40px var(--neon-purple);
}

/* El detalle: Línea de escaneo Púrpura */
.btn-reg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                transparent, 
                rgba(157, 0, 255, 0.2), 
                transparent);
    transform: rotate(45deg);
    transition: 0.8s;
}

.btn-reg:hover::after {
    left: 120%;
}

/****************************************************/

/* Botón Login: Identidad Cian Neón */
.btn-log {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: rgba(0, 209, 255, 0.03); /* Fondo cian sutil */
    border: 1px solid rgba(0, 209, 255, 0.3); /* Borde cian */
    color: rgba(0, 209, 255, 0.7);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    outline: none;
    text-transform: uppercase;
}

/* El Hover: Sobrecarga Cian */
.btn-log:hover {
    background: rgba(0, 209, 255, 0.1);
    border-color: var(--neon-blue); /* Usando tu variable #00d1ff */
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.4), 
                inset 0 0 10px rgba(0, 209, 255, 0.2);
    text-shadow: 0 0 8px var(--neon-blue);
}

/* Efecto de "Click" en Cian Sólido */
.btn-log:active {
    transform: scale(0.98);
    background: var(--neon-blue);
    color: #000; /* Texto negro para mejor contraste sobre cian brillante */
    box-shadow: 0 0 40px var(--neon-blue);
}

/* El detalle: Línea de escaneo Cian */
.btn-log::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                transparent, 
                rgba(0, 209, 255, 0.2), 
                transparent);
    transform: rotate(45deg);
    transition: 0.8s;
}

.btn-log:hover::after {
    left: 120%;
}

/****************************************************/
/* Brillo Neón para iconos de acción */
.btn-neon-nav i {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(180, 0, 255, 0.5)); /* Sombra base púrpura */
}

.btn-neon-nav:hover i {
    color: #fff !important;
    text-shadow: 
        0 0 5px var(--neon-purple),
        0 0 10px var(--neon-purple),
        0 0 20px var(--neon-purple);
    transform: translateY(-2px);
}

/* Forzar el color azul neón en el icono de usuario logueado */
#user-nav-profile i.fa-user-circle,
#user-nav-profile .fa-user-circle {
    color: var(--neon-blue) !important;
}

/* Mantener el texto del nombre en blanco neón */
#user-nav-profile .js-user-name-text {
    color: #ffffff !important;
    font-family: 'Orbitron', sans-serif;
}


/* Efecto para el wrapper del buscador */
.neon-input-wrapper:focus-within {
    box-shadow: 0 0 10px var(--neon-blue);
    border-color: #fff !important;
}

/* Animación de entrada del modal */
.neon-modal.active .modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}



/* Inputs "Vivos" */
.input-box {
    position: relative;
    margin-bottom: 25px;
}

.input-box input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--neon-cyan);
    padding: 10px 5px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.input-box label {
    position: absolute;
    left: 5px;
    top: 10px;
    color: rgba(0, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s;
    font-size: 0.8rem;
}

/* Efecto al escribir: la etiqueta sube y brilla */
.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label {
    top: -15px;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* Contenedor del formulario */
.neon-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio entre campos */
}

/* Cajas de entrada */
.input-box {
    position: relative;
    width: 100%;
}

.input-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03); /* Fondo casi invisible */
    border: 1px solid rgba(0, 255, 255, 0.2); /* Borde sutil */
    padding: 12px 15px;
    border-radius: 4px;
    color: #fff;
    font-family: 'JetBrains Mono', 'Fira Code', monospace; /* Tipografía tech */
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
}

/* Efecto al hacer clic (Focus) */
.input-box input:focus {
    background: rgba(0, 255, 255, 0.05);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    text-align: center;
}

/* Etiquetas flotantes más elegantes */
.input-box label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- USER PANEL SPECIFIC --- */
.user-panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 209, 255, 0.2);
}

.user-avatar-neon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
}

.user-status-tag {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--neon-green);
}

.blink { animation: blinker 1.5s linear infinite; }


.panel-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-left: 3px solid var(--neon-purple);
    margin-bottom: 20px;
}

.panel-section h3 {
    font-size: 0.7rem;
    margin-bottom: 10px;
    color: var(--neon-purple);
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.info-row .label { color: rgba(255,255,255,0.4); }

/* Botones de Acción del Panel */
.btn-panel-opt, .btn-panel-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-family: 'Orbitron';
    font-size: 0.7rem;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.3s;
}

.btn-panel-opt:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 209, 255, 0.05);
}

.btn-panel-logout {
    border-color: rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
    margin-top: 20px;
}

.btn-panel-logout:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: #ff4d4d;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.2);
}

/* Contenedor Principal */
.promo-container {
    margin-top: 25px;
    padding: 15px;
    background: rgba(188, 0, 255, 0.05); /* Fondo lila muy tenue */
    border: 1px solid rgba(188, 0, 255, 0.2);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.promo-header {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #bc00ff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 2px;
}

.promo-wrapper {
    position: relative;
}

/* Grupo de Input y Botón */
.promo-input-group {
    display: flex;
    gap: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.input-scanner {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    animation: scanPromo 3s infinite;
    pointer-events: none;
}


#input-promo {
    flex-grow: 1;
    background: #000;
    border: none;
    color: #00f3ff;
    padding: 10px 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    outline: none;
}

#input-promo::placeholder {
    color: rgba(0, 243, 255, 0.3);
}

#btn-apply-promo {
    background: #bc00ff;
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
    text-transform: uppercase;
    position: relative;
}

#btn-apply-promo:hover {
    background: #d400ff;
    box-shadow: 0 0 15px rgba(188, 0, 255, 0.6);
}

/* Feedback de Mensajes */
.promo-msg {
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    min-height: 15px;
    transition: all 0.3s;
}

.promo-msg.success {
    color: #00ff95;
    text-shadow: 0 0 8px #00ff95;
}

.promo-msg.error {
    color: #ff0055;
    text-shadow: 0 0 8px #ff0055;
}

/* Ocultar si no está activo */
.hidden-admin {
    display: none;
}

/* --- IDENTIDAD ÚNICA: PANEL DE USUARIO --- */
.user-profile-matrix {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) scale(0.95);
    width: 95%;
    max-width: 650px; /* Un poco más ancho para ver datos de pedidos/perfil */
    background: rgba(10, 10, 15, 1);
    border: 1px solid var(--neon-purple); /* Cambiamos el color de acento a púrpura */
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.15);
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: none;
    flex-direction: column;
    border-radius: 4px;
}

.user-profile-matrix.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    display: flex;
}

/* Contenedor interno específico */
.profile-core-container {
    padding: 30px;
    color: #fff;
}

.profile-header-cyan {
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.profile-header-cyan h2 {
    margin: 0;
}

/* El fondo oscuro */
#modal-backdrop, #backdropSide, #backdropCart {
    z-index: 2000; /* Capa base del bloqueo */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#modal-backdrop.active, .backdrop-blur.show {
    display: block;
    opacity: 1;
}

/* El Modal de Usuario (Estilo Único) */
.user-profile-matrix {
    z-index: 3000 !important; /* CAPA SUPERIOR: Siempre por encima de 2000 */
    /* ... resto de tu estilo ... */
}

/* El Modal de Login/Auth */
.neon-modal {
    z-index: 3000 !important; /* CAPA SUPERIOR: Igual que el de usuario */
    /* ... resto de tu estilo ... */
}

.user-matrix-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 10px;
}

.matrix-section {
    border-left: 2px solid var(--neon-purple);
    padding-left: 15px;
}

.section-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--neon-purple);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.matrix-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.matrix-item i {
    font-size: 1.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.matrix-item span {
    font-size: 0.75rem;
    color: #ccc;
    text-transform: uppercase;
}

/* Efecto Hover Cyberpunk */
.matrix-item:hover {
    background: rgba(188, 19, 254, 0.1);
    border-color: var(--neon-purple);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(188, 19, 254, 0.2);
}

.matrix-item:hover i {
    color: #fff;
    text-shadow: 0 0 15px var(--neon-purple);
}


.bump-animation {
    animation: bump 0.3s ease-out;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.quantity-selector button {
    background: none;
    border: none;
    color: var(--neon-blue);
    cursor: pointer;
    font-family: 'Orbitron';
    font-weight: bold;
    padding: 0 5px;
}

.qty-number {
    font-family: 'Orbitron';
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

.btn-del-mini {
    color: var(--neon-purple);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.3s;
}

.btn-del-mini:hover { color: #ff4444; }

aside.neon-panel.panel-right {
    position: fixed;
    top: 0;
    right: -420px; /* Un poco más para ocultar la sombra al inicio */
    width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(5, 5, 10, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--neon-blue);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.5);
}

aside.neon-panel.panel-right.active {
    right: 0;
}

/* Contenedor del Resumen */
.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3); /* Fondo un poco más oscuro para separar */
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}

/* Líneas de información */
.summary-line {
    display: flex;
    justify-content: space-between;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    color: white;
}

/* Descuento: Magenta Neon */
.discount-line {
    color: #ff00ff;
    font-size: 0.8rem;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

/* Total: Azul Neon imponente */
.total-highlight {
    font-size: 1.2rem;
    color: #00f3ff;
    border-top: 1px dashed rgba(0, 243, 255, 0.3);
    margin-top: 5px;
    padding-top: 10px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Botón y Seguridad */
.btn-neon-buy {
    margin-top: 10px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.secure-tag {
    text-align: center;
    font-size: 0.6rem;
    opacity: 0.4;
    text-transform: uppercase;
    margin-top: 8px;
}

.promo-container {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    background: rgba(0, 243, 255, 0.05);
}

.promo-input-group {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.neon-input-xs {
    background: #000;
    border: 1px solid #00f3ff;
    color: #00f3ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    padding: 5px 10px;
    flex-grow: 1;
    outline: none;
}

.btn-neon-s {
    background: #00f3ff;
    color: #000;
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    padding: 5px 15px;
    cursor: pointer;
    font-weight: bold;
}

/* Contenedor principal del inyector */
.promo-container {
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.15);
    padding: 12px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

/* Cabecera estilo consola */
.promo-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: #00f3ff;
    opacity: 0.8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Grupo de entrada */
.promo-input-group {
    display: flex;
    gap: 8px;
}

/* Input estilo Cyberpunk */
.neon-input-xs {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    padding: 8px 12px;
    flex-grow: 1;
    outline: none;
    transition: all 0.3s ease;
}

.neon-input-xs:focus {
    border-color: #00f3ff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Botón de validación */
.btn-neon-s {
    background: #00f3ff;
    color: #000;
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 0 15px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-neon-s:hover {
    background: #fff;
    box-shadow: 0 0 15px #fff;
}

/* Mensajes de feedback */
.promo-msg {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    margin-top: 8px;
    min-height: 12px;
}

.promo-msg.success { color: #00f3ff; }
.promo-msg.error { color: #ff0055; }




/* Contenedor de la tarjeta */
.cart-item-card {
    background: rgba(10, 11, 14, 0.7);
    border-left: 3px solid #00f3ff; /* Color Neón principal */
    margin-bottom: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.cart-item-card:hover {
    background: rgba(0, 243, 255, 0.05);
    transform: translateX(5px);
    box-shadow: -5px 0 15px rgba(0, 243, 255, 0.2);
}

/* Información del producto */
.item-tag {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #00f3ff;
    opacity: 0.6;
    display: block;
    margin-bottom: 4px;
}

.item-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.secure-tag { text-align: center; }

.unit-price { color: #00f3ff; font-weight: bold; }
.price-separator { margin: 0 8px; color: #444; }
.item-qty { color: #888; font-size: 0.8rem; }

/* Controles de cantidad (Stepper) */
.qty-stepper {
    display: flex;
    align-items: center;
    background: #1a1c23;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 8px;
}

.qty-stepper button {
    background: transparent;
    border: none;
    color: #00f3ff;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-stepper button:hover { background: rgba(0, 243, 255, 0.1); }

.qty-stepper input {
    width: 30px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Botón eliminar */
.item-remove-btn {
    background: transparent;
    border: none;
    color: #ff0055; /* Rojo neón para peligro */
    cursor: pointer;
    float: right;
    font-size: 1rem;
    transition: transform 0.2s;
    opacity: 0.7;
}

.item-remove-btn:hover {
    transform: scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 5px #ff0055);
}

/* Contenedor de la miniatura */
.item-thumb-container {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(0, 0, 0, 0.2); /* Fondo sutil */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde neutro y fino */
    position: relative;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px; /* Un poco más suave */
}

/* El efecto de "escaneo" sobre la imagen
.item-thumb-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 243, 255, 0.1) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    pointer-events: none;
} */

.item-thumb {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Asegura que la imagen no se deforme */
    filter: none; /* Eliminamos cualquier filtro previo */
    transition: transform 0.3s ease;
}

/* Efecto hover suave y limpio */
.cart-item-card:hover .item-thumb {
    transform: scale(1.05); /* Zoom muy sutil */
}

.qty-disabled {
    opacity: 0.3;
    cursor: not-allowed !important;
    filter: grayscale(1);
}

/* Opcional: que el número de cantidad brille en rojo si llega al tope */
.qty-stepper span.at-max {
    color: #ff0055;
    text-shadow: 0 0 5px #ff0055;
}

/* Ajuste del layout lateral */
.item-actions-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* --- CONTENEDOR DE ENVÍO GRATIS (LOGÍSTICA) --- */
.shipping-goal-wrapper {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    margin-bottom: 20px;
    border-radius: 4px;
}

.goal-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.progress-track {
    height: 8px;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 5px #000;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f3ff, #bc00ff);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto cuando los portes son gratis */
.glow-purple {
    background: #bc00ff !important;
    box-shadow: 0 0 20px #bc00ff, 0 0 40px rgba(188, 0, 255, 0.4) !important;
    animation: neonPulse 1.5s infinite alternate;
}

.neon-purple {
    color: #bc00ff;
    text-shadow: 0 0 8px #bc00ff;
    font-weight: bold;
}

.neon-blue {
    color: #00f3ff;
    text-shadow: 0 0 8px #00f3ff;
}

/* --- TARJETAS DE PRODUCTO EN EL CARRITO --- */
.item-thumb-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-main-info {
    flex-grow: 1;
}

.item-tag {
    font-size: 0.65rem;
    color: rgba(0, 243, 255, 0.6);
    display: block;
    margin-bottom: 4px;
}

.item-name {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.item-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
}

.unit-price {
    color: #00f3ff;
    font-weight: bold;
}

/* --- STEPPER (CONTROL DE CANTIDAD) --- */
.qty-stepper {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
}

.qty-stepper button {
    background: transparent;
    border: none;
    color: #00f3ff;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-stepper button:hover:not(:disabled) {
    background: rgba(0, 243, 255, 0.1);
}

.item-qty {
    padding: 0 10px;
    min-width: 30px;
    text-align: center;
    border-left: 1px solid rgba(0, 243, 255, 0.3);
    border-right: 1px solid rgba(0, 243, 255, 0.3);
}

/* Bloqueo de Stock */
.qty-disabled {
    color: #555 !important;
    cursor: not-allowed !important;
    opacity: 0.5;
}



.bump-animation {
    animation: bump 0.3s ease-out;
}



.cart-item-card {
    animation: scanline 0.4s ease forwards;
}

/* Ajuste del Header */
.panel-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 8px var(--neon-blue);
    animation: pulse-neon 2s infinite;
}

/* Área de Contenido con Scroll (Unificado) */
.panel-body,
.panel-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 15px 25px;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

/* Personalización del Scrollbar para navegadores WebKit (Chrome, Edge, Safari) */
.panel-body::-webkit-scrollbar,
.panel-body-scroll::-webkit-scrollbar {
    width: 4px;
}

.panel-body::-webkit-scrollbar-thumb,
.panel-body-scroll::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    /* En modo oscuro mantiene el destello neón; en modo claro la variable lo atenúa */
    box-shadow: 0 0 8px var(--scrollbar-thumb);
}

.side-tab {
    background-color: var(--panel-header-bg); 
    padding: 15px 8px; 
    cursor: pointer;
    writing-mode: vertical-rl; 
    text-orientation: mixed; 
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif; 
    font-size: 0.65rem; 
    letter-spacing: 2px;
    border-radius: 0 5px 5px 0; 
    border: 1px solid var(--panel-border);
    color: var(--panel-text);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Efecto al pasar el ratón */
.side-tab:hover,
.tab-cat:hover { 
    color: var(--panel-text-hover); 
}

.tab-cat { 
    color: var(--panel-text); 
}


/* Botón de Compra con estética 2026 */
.btn-neon-buy {
    width: 100%;
    height: 60px;
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: 'Orbitron';
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.btn-neon-buy:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 25px var(--neon-blue);
}




/* Comportamiento de la etiqueta al escribir */
.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    background: #0b0b0b; /* Color de fondo del modal para "tapar" el borde */
    padding: 0 5px;
}

/* Espaciado del contenedor del formulario */
.neon-form {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Mayor separación para que respire */
    margin-top: 50px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 12px; /* Alineado con tu label actual */
    color: rgba(0, 0, 0); /* Color cian tenue */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--neon-blue); /* Brillo al pasar el ratón */
    text-shadow: 0 0 8px var(--neon-blue);
}

/* Clase que aplicaremos con JS cuando la pass sea visible */
.toggle-password.active {
    color: black; /* Cambia a púrpura cuando "revela" */
    text-shadow: 0 0 10px var(--neon-purple);
}

/* El contenedor de cada input */
.input-box {
    position: relative;
    width: 100%;
}

/* Diseño del input: Minimalismo puro */
.input-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02); /* Fondo casi imperceptible */
    border: none;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3); /* Línea sutil */
    padding: 12px 10px 8px 5px;
    color: #fff;
    font-family: 'Courier New', Courier, monospace; /* Toque técnico */
    font-size: 0.95rem;
    outline: none;
    transition: all 0.4s ease;
}

/* Efecto al enfocar (Focus) */
.input-box input:focus {
    background: rgba(0, 255, 255, 0.05);
    border-bottom: 1px solid var(--neon-cyan);
    box-shadow: 0 4px 10px -5px rgba(0, 255, 255, 0.3);
}

/* La etiqueta (Label): El alma del diseño */
.input-box label {
    position: absolute;
    left: 5px;
    top: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

/* Animación de la etiqueta al escribir o enfocar */
.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 1rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
}

/* Botón Maestro */
.btn-neon-main {
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 14px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.btn-neon-main:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 25px var(--neon-cyan);
}

/* Pequeño ajuste para que los formularios se vean limpios al cambiar */
.auth-section {
    padding: 10px 20px;
}

/* Botón de envío estilizado */
.btn-neon-main {
    margin-top: 10px;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s;
}

.btn-neon-main:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* Botón con pulso de energía */
.btn-neon-main {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 12px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.btn-neon-main:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
}

.auth-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    text-align: center;
}

/* Estado inicial cuando se ocultan para el efecto "vivo" */
#auth-register {
    opacity: 0;
    transform: translateY(10px); /* Viene un poco desde abajo */
}

/* Contenedor universal para las vistas */
.spa-section {
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-out;
    transform: translateY(10px);
    display: none;
}

/* Cuando la sección está activa */
.spa-section.is-active {
    display: block; /* O grid/flex según corresponda */
    opacity: 1;
    transform: translateY(0);
}

/* Efecto Neon para la ficha de detalle */
.container-neon-detail {
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 30px;
}

/* Estado base: oculto y preparado para la animación */
#home-view, #shop-view, #product-detail-view {
    display: none; 
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

/* Clase de activación que pondrá el JS */
.view-active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}





/* Aseguramos que las vistas SPA tengan un comportamiento base */
.spa-view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
    min-height: 100vh;
}

/* Esta clase DEBE ser así de fuerte para ganar al display:none */
.view-active {
    display: block !important; 
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Si es el shop, usamos grid */
#shop-view.view-active {
    display: grid !important;
}

/* Estilos Base del Modal */
.modal-system {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-system.active { display: flex; }

.modal-backdrop {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

#google-auth-wrapper {
    position: relative !important;
    /*z-index: 999999 !important;  Por encima de todo */
    pointer-events: auto !important; /* Permite clics */
    cursor: pointer !important;
    min-height: 44px;
}

/* Evita que el contenedor del modal interfiera con el puntero */
.auth-container, .modal-content {
    pointer-events: auto; /* Asegura que el contenido sea sólido */
}

#modal-backdrop {
    z-index: 900 !important; /* Lo bajamos un poco */
    pointer-events: auto;
}

/* El modal de autenticación (el que debe recibir el clic) */
#modal-auth {
    z-index: 1000 !important; /* Lo subimos por encima de 900 */
}

/* El botón de Google (doble seguridad) */
#google-auth-wrapper {
    position: relative;
    z-index: 1001 !important; 
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #050505;
    border: 1px solid var(--neon-blue); /* Usa tu variable de azul neon */
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    padding: 30px;
    animation: modalSlideUp 0.3s ease-out;
}



.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none; border: none;
    color: var(--neon-blue);
    font-size: 2rem; cursor: pointer;
}

/* Backdrop (Fondo oscurecido) */
.modal-blur-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9000;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
}
.modal-blur-bg.active { display: block; opacity: 1; }

/* Contenedor del Modal */
.neon-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -40%); /* Empieza un poco más abajo */
    z-index: 9001;
    opacity: 0;
    display: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90%;
    max-width: 450px;
}

.neon-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%); /* Se centra perfectamente */
}

.modal-container {
    background: #050505;
    border: 2px solid var(--neon-blue); /* Tu color cian */
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), inset 0 0 15px rgba(0, 255, 255, 0.1);
    padding: 40px;
    position: relative;
    clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%); /* Esquinas cortadas estilo tech */
}

/* Título y Botón cerrar */
.modal-title {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 10px var(--neon-blue);
}

.close-modal-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    color: var(--neon-blue);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal-btn:hover { color: #fff; transform: rotate(90deg); }

/* Inputs dentro del modal */
.manual-auth input {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Orbitron';
    outline: none;
}

.manual-auth input:focus { border-color: var(--neon-blue); }

.btn-auth-submit {
    width: 100%;
    padding: 15px;
    background: var(--neon-blue);
    border: none;
    color: #000;
    font-weight: bold;
    font-family: 'Orbitron';
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

/* --- SEPARADOR NEÓN SUTIL --- */
.neon-separator {
    text-align: center;
    margin: 30px 0; /* Espaciado generoso arriba y abajo */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* La línea física */
.neon-separator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px; /* Línea muy fina */
    background-color: #00d1ff; /* Azul neón*/
    
    /* El efecto Neón (Glow) */
    box-shadow: 0 0 5px rgba(0, 209, 255, 0.2), 
                0 0 10px rgba(0, 209, 255, 0.1);
}

.modal-cyber {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content-cyber {
    background: #050505;
    border: 1px solid #00f3ff;
    width: 90%; max-width: 600px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    position: relative;
}

.hidden-modal { display: none !important; }

/* Efecto Spinner Neón */
.spinner-cyber {
    width: 40px; height: 40px;
    border: 3px solid rgba(0, 243, 255, 0.1);
    border-top: 3px solid #00f3ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* DISEÑO DEL FORMULARIO DEL BÚNKER */
.bunker-form-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.input-row-cyber {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group-cyber {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group-cyber label {
    font-size: 10px;
    color: var(--neon-cyan); /* Usa tus variables de color de index.php */
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.input-bunker {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid #1a1a1a;
    border-left: 3px solid var(--neon-cyan);
    color: white;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.input-bunker:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    outline: none;
}

.terminal-subtext {
    font-size: 9px;
    color: #444;
    text-align: center;
    margin-top: 20px;
    font-family: monospace;
}

.btn-confirmar-envio {
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    color: black;
    font-weight: bold;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.btn-confirmar-envio:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

/* MODAL MODO BLANCO "HIGH-TRUST" */
.modal-white-mode {
    color: #1a1a1a !important;
    border: 2px solid #00f2fe; /* Mantiene el neón azul en el borde */
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

.neon-text-blue-dark {
    color: #007bff;
    font-family: 'Orbitron', sans-serif;
    text-shadow: none;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    font-weight: 800;
}

/* FORMULARIO BLANCO */
.bunker-form-white .input-group-white {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.bunker-form-white label {
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    font-family: sans-serif;
}

.bunker-form-white input {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.bunker-form-white input:focus {
    background: #fff;
    border-color: #00f2fe;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
    outline: none;
}

/* BOTÓN DE ACCIÓN PROFESIONAL */
.btn-confirmar-white {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-confirmar-white:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.spinner-blue {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00f2fe;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* TARJETA DE RESUMEN */
.summary-card-white {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
}

.total-row {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    margin-top: 5px;
    font-size: 18px;
    color: #000;
}

.total-amount {
    color: #007bff;
    font-weight: 800;
}

.order-id {
    font-family: monospace;
    font-size: 12px;
}

/* GRID DE MÉTODOS DE PAGO */
.payment-instruction {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.payment-grid-bunker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ced4da;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.payment-option:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.payment-icon {
    font-size: 24px;
    color: #007bff;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.payment-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.payment-info strong {
    font-size: 15px;
    color: #222;
}

.payment-info span {
    font-size: 12px;
    color: #888;
}

.arrow-go {
    color: #ccc;
    font-size: 14px;
}

/* Personalización para Bizum */
.bizum-style:hover {
    border-color: #00bfa5;
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.15);
}

.bizum-style:hover .payment-icon {
    color: #00bfa5;
}

/* PIE DE SEGURIDAD */
.security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* El texto sobre la línea */
.neon-separator span {
    position: relative;
    background-color: var(--dark-bg); /* Importante: Mismo color de fondo del modal para "cortar" la línea */
    padding: 0 15px; /* Espacio alrededor del texto */
    color: rgba(255, 255, 255, 0.5); /* Texto tenue para no distraer */
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   🛸 CSS CARD DE DIRECCIONES
   ========================================================================== */
   #contenedor-direcciones-checkout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

/* Tarjeta individual */
.card-direccion-neon {
  background: #0d1117;
  border: 1px solid #1f293d;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease-in-out;
}

.card-direccion-neon:hover {
  border-color: #00f2fe;
}

/* Efecto Neón para Dirección Seleccionada o Predeterminada */
.card-direccion-neon.activa-neon {
  border: 1.5px solid #00f2fe !important;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.45), inset 0 0 8px rgba(0, 242, 254, 0.15);
}

.badge-principal-neon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #00f2fe;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-direccion-neon h6 {
  color: #ffffff;
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
}

.card-direccion-neon p {
  color: #94a3b8;
  font-size: 12px;
  margin: 3px 0;
  line-height: 1.35;
}

/* ==========================================================================
   🛸 CSS DEL LOGO TRANSICIÓN (CENTRADO 6cm x 6cm & TEMA CLARO/OSCURO)
   ========================================================================== */

/* 1. VARIABLES DE TEMA (CLARO / OSCURO) */
:root, [data-theme="dark"] {
    --loader-text-color: #00f3ff;
    --loader-glow-primary: rgba(0, 243, 255, 0.9);
    --loader-glow-secondary: rgba(255, 0, 85, 0.6);
    --loader-laser-bg: linear-gradient(90deg, transparent, #00f3ff, #ff0055, #00f3ff, transparent);
    --loader-laser-shadow: #00f3ff;
}

[data-theme="light"], body.light-mode {
    --loader-text-color: #0d6efd; /* Azul de alto contraste para fondo claro */
    --loader-glow-primary: rgba(13, 110, 253, 0.75);
    --loader-glow-secondary: rgba(111, 66, 193, 0.5);
    --loader-laser-bg: linear-gradient(90deg, transparent, #0d6efd, #6f42c1, #0d6efd, transparent);
    --loader-laser-shadow: #0d6efd;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --loader-text-color: #0d6efd;
        --loader-glow-primary: rgba(13, 110, 253, 0.75);
        --loader-glow-secondary: rgba(111, 66, 193, 0.5);
        --loader-laser-bg: linear-gradient(90deg, transparent, #0d6efd, #6f42c1, #0d6efd, transparent);
        --loader-laser-shadow: #0d6efd;
    }
}

/* 2. CONTENEDOR PRINCIPAL (CENTRADO ABSOLUTO EN PANTALLA) */
.cyber-logo-loader {
    /* 1. Sacar del flujo normal del grid */
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    
    /* 2. Centrado absoluto */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* 3. Colocar por encima de todo el layout de la web */
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.4); /* Opcional: fondo semitransparente para ocultar el grid mientras carga */
    backdrop-filter: blur(4px); /* Opcional: toque neón desenfocado */
}

/* 3. WRAPPER CON DIMENSIÓN EXACTA DE 6cm x 6cm */
.logo-glow-wrapper {
    position: relative;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* El Logo se ajusta dentro del marco de 6cm x 6cm */
.cyber-logo-pulsing {
    width: 100%;
    height: 100%;
    max-width: 20cm;
    max-height: 20cm;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--loader-glow-primary));
    animation: neonLogoPulse 1.6s infinite ease-in-out alternate;
}

/* 5. LÍNEA LÁSER Y TEXTOS TERMINAL */
.cyber-laser-line {
    height: 2px;
    width: 7cm; /* Escalada en consonancia al logo */
    background: var(--loader-laser-bg);
    background-size: 200% 100%;
    animation: laserScan 1.2s infinite linear;
    box-shadow: 0 0 10px var(--loader-laser-shadow);
}

/* 4. ANIMACIÓN NEÓN ADAPTATIVA */
@keyframes neonLogoPulse {
    0% {
        transform: scale(0.96);
        filter: drop-shadow(0 0 6px var(--loader-glow-primary));
        opacity: 0.85;
    }
    50% {
        filter: drop-shadow(0 0 18px var(--loader-glow-primary)) 
                drop-shadow(0 0 32px var(--loader-glow-secondary));
        opacity: 1;
    }
    100% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 28px var(--loader-glow-primary)) 
                drop-shadow(0 0 50px var(--loader-glow-secondary));
        opacity: 0.95;
    }
}



@keyframes laserScan {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Cursor y Tipografía */
.cyber-terminal-text {
    color: var(--loader-text-color);
}

.cursor-blink {
    animation: blinkCursor 0.8s infinite;
    color: var(--loader-text-color);
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* ==========================================================================
   🛸 FIN CSS DEL LOGO TRANSICIÓN
   ========================================================================== */

   /* ==========================================================================
   🏷️ BANDEROLA / BADGE DE OFERTA CYBERPUNK (ADAPTATIVA)
   ========================================================================== */

/* Aseguramos que la card tenga posicionamiento relativo para anclar la banderola */
.product-card, .card-link-wrapper {
    position: relative;
    overflow: hidden !important;
}

/* 1. ESTRUCTURA Y UBICACIÓN DE LA BANDEROLA (Esquina superior izquierda) */
.cyber-badge-oferta {
    position: absolute;
    top: 28px;
    right: -5px; /* Se ancla a la derecha o izquierda según prefieras */
    transform: rotate(45deg);
    width: 90px;
    background: linear-gradient(135deg, #ff0055 0%, #ff5500 100%);
    color: #ffffff;
    text-align: center;
    line-height: 24px;
    font-family: 'monospace', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    text-transform: uppercase;
    border-top: 1px solid #ffe600;
    border-bottom: 1px solid #ffe600;
}

/* 2. MODO OSCURO (Cyber Neon Crimson) */
:root, [data-theme="dark"] {
    --badge-bg: #ff0055; /* Magenta / Carmesí neón vibrante */
    --badge-text: #ffffff;
    --badge-glow: rgba(255, 0, 85, 0.6);
    --badge-border: #00f3ff;
}

.cyber-badge-oferta {
    background: var(--badge-bg);
    color: var(--badge-text);
    box-shadow: 0 0 12px var(--badge-glow);
    border-left: 3px solid var(--badge-border); /* Acento Cyan en el borde izquierdo */

}

/* 3. MODO CLARO (Adaptación con alto contraste y energía) */
[data-theme="light"] .cyber-badge-oferta,
body.light-mode .cyber-badge-oferta {
    background: linear-gradient(135deg, #d60000 0%, #ff4400 100%);
    box-shadow: 0 4px 10px rgba(214, 0, 0, 0.4);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .cyber-badge-oferta {
        background: #dc3545;
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
        border-left: 3px solid #0d6efd;
    }
}

/* 4. EFECTO PULSO SUTIL AL PASAR EL RATÓN (HOVER EN CARD) */
.product-card:hover .cyber-badge-oferta {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 0 18px var(--badge-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* ==========================================================================
   🏷️ FIN BANDEROLA / BADGE DE OFERTA CYBERPUNK (ADAPTATIVA)
   ========================================================================== */