/* ==========================================================================
   Easy Digital X - Hoja de Estilos E-Commerce Digital Real
   Estilo: Tienda de Tarjetas de Regalo y Cuentas Prémium (Estilo Eneba/Codashop)
   Tipografía: Plus Jakarta Sans
   ========================================================================== */

:root {
    --bg-main: #06080d;
    --bg-surface: #0c1018;
    --bg-surface-elevated: #131a26;
    --bg-card: #0f141f;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: #10b981;
    --border-hover: rgba(255, 255, 255, 0.2);

    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --primary-hover: #059669;

    --accent-gold: #f59e0b;
    --accent-blue: #38bdf8;
    --accent-danger: #f87171;

    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-card: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
    --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Canvas del fondo dinámico cuántico (por encima del body, visible en 100% de móviles) */
#neuralMatrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Sutil viñeteado perimetral para que el fondo resalte con gran viveza */
.bg-vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(6, 8, 13, 0.25) 75%, rgba(6, 8, 13, 0.65) 100%);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ─────────────────────────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 8, 13, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 0;
    min-height: 76px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.brand-logo-img {
    height: 60px;
    width: auto;
    max-width: 310px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.25));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.45));
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
}

.brand-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.brand-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-text span {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-edx {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary-edx {
    background: var(--primary);
    color: #042f20;
    font-weight: 700;
}
.btn-primary-edx:hover {
    background: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-outline-edx {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}
.btn-outline-edx:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.user-balance-pill {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #34d399;
}

.user-profile-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.user-profile-badge i {
    color: var(--primary);
    font-size: 15px;
}

/* ─────────────────────────────────────────────────────────────
   HERO / BANNER DE LA TIENDA
   ───────────────────────────────────────────────────────────── */
.store-hero {
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.store-hero-card {
    background: linear-gradient(135deg, #0e1524 0%, #080d17 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.store-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-left h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero-left p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}
.hero-feature-item i {
    color: var(--primary);
}

/* ─────────────────────────────────────────────────────────────
   CONTROLES: BUSCADOR Y CATEGORÍAS
   ───────────────────────────────────────────────────────────── */
.catalog-controls {
    max-width: 1280px;
    margin: 24px auto 16px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.catalog-controls-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.catalog-controls-top .search-bar-wrapper {
    flex: 1;
    min-width: 260px;
    max-width: 550px;
    margin-bottom: 0;
}

.stock-filter-wrapper {
    display: flex;
    align-items: center;
}

.stock-filter-toggle-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 78, 59, 0.5) 100%), #0c151c;
    border: 1.5px solid rgba(16, 185, 129, 0.7);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.32), 0 4px 14px rgba(0, 0, 0, 0.45);
    animation: stockGlowBreathing 3s ease-in-out infinite;
}

/* Efecto Shimmer (Haz de luz transversal en movimiento continuo) */
.stock-filter-toggle-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: rotate(25deg);
    animation: stockShimmerSweep 4.5s ease-in-out infinite;
    pointer-events: none;
}

.stock-filter-toggle-btn:hover {
    border-color: #10b981;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(6, 78, 59, 0.65) 100%), #0c151c;
    box-shadow: 0 0 26px rgba(16, 185, 129, 0.65), 0 6px 18px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Rayo Eléctrico Dorado Neón */
.stock-filter-toggle-btn i.fa-bolt {
    color: #fbbf24;
    font-size: 0.95rem;
    filter: drop-shadow(0 0 7px rgba(251, 191, 36, 0.8));
    transition: transform 0.25s ease;
}

.stock-filter-toggle-btn:hover i.fa-bolt {
    transform: scale(1.2) rotate(-6deg);
}

/* Punto de Radar Neón Pulsante */
.stock-toggle-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.stock-toggle-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 1.5px solid #10b981;
    animation: stockRadarPulse 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Badge Contador de Stock con contraste potente */
.stock-toggle-badge {
    background: #10b981;
    color: #022c22;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: all 0.25s ease;
}

/* Estado ACTIVO del filtro (Encendido Total Esmeralda) */
.stock-filter-toggle-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
    color: #022c22;
    font-weight: 800;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.85), 0 4px 16px rgba(0, 0, 0, 0.5);
    animation: none;
}

.stock-filter-toggle-btn.active i.fa-bolt {
    color: #022c22;
    filter: drop-shadow(0 0 4px rgba(2, 44, 34, 0.4));
}

.stock-filter-toggle-btn.active .stock-toggle-dot {
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
}

.stock-filter-toggle-btn.active .stock-toggle-dot::after {
    border-color: #ffffff;
}

.stock-filter-toggle-btn.active .stock-toggle-badge {
    background: #022c22;
    color: #34d399;
    box-shadow: 0 0 8px rgba(2, 44, 34, 0.5);
}

/* Keyframes de Animaciones */
@keyframes stockRadarPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

@keyframes stockGlowBreathing {
    0%, 100% {
        box-shadow: 0 0 14px rgba(16, 185, 129, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
        border-color: rgba(16, 185, 129, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.65), 0 4px 16px rgba(0, 0, 0, 0.5);
        border-color: rgba(16, 185, 129, 1);
    }
}

@keyframes stockShimmerSweep {
    0%, 65% { left: -100%; }
    100% { left: 200%; }
}

@media (max-width: 640px) {
    .catalog-controls-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .catalog-controls-top .search-bar-wrapper {
        max-width: 100%;
        min-width: 100%;
    }
    .stock-filter-wrapper {
        justify-content: flex-start;
    }
    .stock-filter-toggle-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
    }
}

.search-bar-wrapper {
    position: relative;
    max-width: 550px;
    margin-bottom: 18px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 15px;
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 12px 18px 12px 44px;
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition-smooth);
}
.search-input:focus {
    border-color: var(--primary);
    background: var(--bg-surface-elevated);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 4px 0 12px;
}

.cat-pill {
    white-space: nowrap;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}
.cat-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}
.cat-pill.active {
    background: var(--primary);
    color: #042f20;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

/* ─────────────────────────────────────────────────────────────
   GRID DE PRODUCTOS (TARJETAS CON IMAGEN REAL)
   ───────────────────────────────────────────────────────────── */
.catalog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 60px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    border-color: rgba(16, 185, 129, 0.45);
    transform: translateY(-5px);
    box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(16, 185, 129, 0.2);
}

/* Portada del producto (Imagen de la marca) */
.product-card-banner {
    position: relative;
    width: 100%;
    height: 155px;
    background: #090d14;
    overflow: hidden;
    display: block;
}

.product-card-banner img,
.product-banner-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-banner img,
.product-card:hover .product-banner-img {
    transform: scale(1.05);
}

.product-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.banner-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.card-category-badge {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.85);
    color: #042f20;
    font-weight: 800;
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
}

/* Cuerpo de la tarjeta */
.product-card-body {
    padding: 16px 18px 10px;
    flex-grow: 1;
}

.product-name {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #fff;
}

.product-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pie de la tarjeta */
.card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
}

.price-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.price-val span {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    margin-left: 2px;
}

/* ─────────────────────────────────────────────────────────────
   MODALES
   ───────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 6, 10, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 26px 22px;
    position: relative;
    transform: scale(0.95);
    transition: var(--transition-smooth);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 35px rgba(16, 185, 129, 0.18) !important;
    max-height: calc(100dvh - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-overlay.active .modal-card { transform: scale(1); }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.modal-header h3 { font-size: 1.2rem; font-weight: 800; }

.modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.modal-close-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }

.form-control-edx {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 11px 15px;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}
.form-control-edx:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
}

.recharge-option-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}
.copy-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #06080d;
    border: 1px dashed var(--border-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-family: monospace;
    font-size: 0.88rem;
    color: #34d399;
}
.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.btn-copy:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* Toasts */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast-msg {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-msg.success { border-color: rgba(16, 185, 129, 0.4); }
.toast-msg.error { border-color: rgba(239, 68, 68, 0.4); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────
   SEGMENTED CONTROL PARA AUTH MODAL (MÓVIL Y DESKTOP)
   ───────────────────────────────────────────────────────────── */
.auth-segmented-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}
.auth-seg-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.auth-seg-btn.active {
    background: var(--primary);
    color: #042f20;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}
.btn-block-submit {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* ─────────────────────────────────────────────────────────────
   USER MENU MODAL (MÓVIL)
   ───────────────────────────────────────────────────────────── */
.user-menu-balance-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    margin-bottom: 16px;
}
.user-menu-bal-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}
.user-menu-bal-val {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: #34d399;
}
.user-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-menu-item {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 0.9rem;
}
.btn-logout-danger {
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}
.btn-logout-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* ─────────────────────────────────────────────────────────────
   MOBILE BOTTOM NAVIGATION BAR
   ───────────────────────────────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: rgba(6, 8, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    padding: 8px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.6);
}
.mobile-nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    user-select: none;
}
.mobile-nav-item i {
    font-size: 18px;
}
.mobile-nav-item:active, .mobile-nav-item:hover {
    color: #fff;
}
.mobile-nav-item.highlight .mobile-nav-btn-highlight {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: -16px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    font-size: 16px;
}
.mobile-nav-item.highlight span {
    color: var(--primary);
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVIDAD Y MEDIA QUERIES COMPLETAS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bg-vignette-overlay {
        background: radial-gradient(circle at 50% 35%, transparent 45%, rgba(6, 8, 13, 0.3) 85%, rgba(6, 8, 13, 0.65) 100%) !important;
    }

    /* Navbar móvil */
    .navbar {
        padding: 10px 0;
    }
    .nav-container {
        padding: 0 14px;
    }
    .brand-logo {
        gap: 8px;
    }
    .brand-logo-img {
        height: 46px;
        max-width: 220px;
    }
    .brand-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .brand-text h1 {
        font-size: 1.05rem;
    }
    .brand-text span {
        display: none; /* Ocultar 'Store' para dar espacio a botones */
    }
    .nav-actions {
        gap: 6px;
    }
    .btn-nav-desktop-only {
        display: none !important;
    }
    .btn-edx {
        padding: 7px 12px;
        font-size: 0.82rem;
    }
    .user-balance-pill {
        padding: 5px 10px;
        font-size: 0.8rem;
        gap: 5px;
        cursor: pointer;
    }
    .user-profile-badge {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    /* Hero / Banner móvil */
    .store-hero {
        margin: 12px auto 0;
        padding: 0 12px;
    }
    .store-hero-card {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }
    .hero-left h2 {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 6px;
    }
    .hero-left p {
        font-size: 0.84rem;
        line-height: 1.45;
    }
    .hero-features {
        gap: 8px 14px;
        margin-top: 14px;
    }
    .hero-feature-item {
        font-size: 0.75rem;
        gap: 6px;
    }

    /* Buscador y categorías móvil */
    .catalog-controls {
        margin: 16px auto 10px;
        padding: 0 12px;
    }
    .search-bar-wrapper {
        margin-bottom: 12px;
    }
    .search-input {
        padding: 10px 16px 10px 40px;
        font-size: 16px; /* Evita zoom automático en Safari iOS */
    }
    .category-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 4px 0 10px;
    }
    .cat-pill {
        padding: 7px 13px;
        font-size: 0.78rem;
    }

    /* Catálogo y tarjetas móvil */
    .catalog-container {
        padding: 0 12px 100px; /* Margen inferior para que la barra móvil no tape nada */
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .product-card-banner {
        height: 155px;
    }
    .product-card-body {
        padding: 12px 14px 8px;
    }
    .product-name {
        font-size: 0.98rem;
    }
    .product-desc {
        font-size: 0.8rem;
    }
    .card-footer-info {
        padding: 10px 14px 12px;
    }
    .price-val {
        font-size: 1.25rem;
    }

    /* Modales móviles: perfectamente centrados, simétricos y estables */
    .modal-overlay {
        padding: 16px;
        align-items: center !important;
        justify-content: center !important;
        z-index: 3000 !important;
    }
    .modal-card {
        padding: 24px 20px;
        border-radius: 20px;
        width: 100%;
        max-width: 380px;
        margin: auto !important;
        max-height: calc(100dvh - 30px);
        max-height: calc(100vh - 30px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(16, 185, 129, 0.2) !important;
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
    }
    .modal-header {
        margin-bottom: 14px;
    }
    .modal-header h3 {
        font-size: 1.1rem;
    }
    .modal-close-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .form-control-edx {
        font-size: 16px; /* Imprescindible para evitar el zoom molesto en iOS */
        padding: 12px 14px;
    }

    /* Mostrar barra inferior en móviles */
    .mobile-bottom-nav {
        display: flex;
    }
}

@media (max-width: 390px) {
    .brand-logo-img {
        height: 38px;
        max-width: 180px;
    }
    .brand-text h1 {
        font-size: 0.95rem;
    }
    .btn-edx {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
    .hero-left h2 {
        font-size: 1.2rem;
    }
}

/* ─────────────────────────────────────────────────────────────
   MÓDULO DE PERFIL & CENTRO DE SEGURIDAD (AVATAR, 2FA, PIN, OTP)
   ───────────────────────────────────────────────────────────── */
.profile-modal-card {
    max-width: 480px;
    width: 100%;
}

.profile-nav-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-tab-btn {
    flex: 1;
    min-width: 80px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.profile-tab-btn.active {
    background: var(--bg-surface-elevated);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-tab-btn.active i {
    color: var(--primary);
}

.avatar-upload-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 14px;
}

.avatar-img-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--primary);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--primary);
}

.avatar-btn-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: #042f20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    border: 2px solid #06080d;
}

.avatar-btn-overlay:hover {
    transform: scale(1.1);
    background: #34d399;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.profile-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 10px 12px;
    border-radius: var(--radius-md);
}

.profile-info-label {
    font-size: 0.70rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-info-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    word-break: break-all;
}

.security-status-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 8, 13, 0.4) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
}

.security-badge.secure {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.security-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.qr-container-box {
    background: #ffffff;
    padding: 10px;
    border-radius: var(--radius-md);
    display: inline-block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin: 10px 0;
}

.qr-secret-key-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-family: monospace;
    font-size: 0.90rem;
    color: #38bdf8;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px auto;
    max-width: 320px;
}

.otp-countdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-top: 8px;
}

.nav-avatar-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary);
}

.mobile-nav-avatar-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary);
}

.btn-edit-badge {
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 185, 129, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-edit-badge:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────
   ESTILO CLARO / CONTRASTE ALTO: PERFIL Y SEGURIDAD (TEMA BLANCO)
   ───────────────────────────────────────────────────────────── */
.profile-modal-card,
#modalEditEmail .modal-card,
#modalEditPhone .modal-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 35px rgba(16, 185, 129, 0.2) !important;
}

.profile-modal-card .modal-header h3,
#modalEditEmail .modal-header h3,
#modalEditPhone .modal-header h3 {
    color: #0f172a !important;
}

.profile-modal-card .modal-header p,
#modalEditEmail .modal-header p,
#modalEditPhone .modal-header p {
    color: #64748b !important;
}

.profile-modal-card .modal-close-btn,
#modalEditEmail .modal-close-btn,
#modalEditPhone .modal-close-btn {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.profile-modal-card .modal-close-btn:hover,
#modalEditEmail .modal-close-btn:hover,
#modalEditPhone .modal-close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.profile-modal-card .profile-nav-tabs {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
}

.profile-modal-card .profile-tab-btn {
    color: #64748b !important;
}

.profile-modal-card .profile-tab-btn:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.7) !important;
}

.profile-modal-card .profile-tab-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.profile-modal-card .profile-tab-btn.active i {
    color: #059669 !important;
}

.profile-modal-card .avatar-img-circle {
    background: #f8fafc !important;
    border-color: #10b981 !important;
}

.profile-modal-card .avatar-btn-overlay {
    border-color: #ffffff !important;
}

.profile-modal-card .btn-outline-edx,
#modalEditEmail .btn-outline-edx,
#modalEditPhone .btn-outline-edx {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #1e293b !important;
    font-weight: 600 !important;
}

.profile-modal-card .btn-outline-edx:hover,
#modalEditEmail .btn-outline-edx:hover,
#modalEditPhone .btn-outline-edx:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.profile-modal-card .btn-outline-edx.btn-logout-danger {
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
    background: #fef2f2 !important;
}

.profile-modal-card .btn-outline-edx.btn-logout-danger:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #f87171 !important;
}

.profile-modal-card .security-status-card {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
}

.profile-modal-card .security-status-card div,
.profile-modal-card .security-title {
    color: #065f46 !important;
    font-weight: 800 !important;
}

.profile-modal-card #securityLevelText,
.profile-modal-card #pinStatusDesc,
.profile-modal-card #totpStatusDesc {
    color: #047857 !important;
}

.profile-modal-card .profile-info-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.profile-modal-card .profile-info-label {
    color: #64748b !important;
    font-weight: 700 !important;
}

.profile-modal-card .profile-info-value {
    color: #0f172a !important;
    font-weight: 800 !important;
}

.profile-modal-card #profValBalance {
    color: #059669 !important;
    font-weight: 900 !important;
}

.profile-modal-card .btn-edit-badge {
    background: #e6fcf5 !important;
    color: #0d9488 !important;
    border: 1px solid #99f6e4 !important;
}

.profile-modal-card .btn-edit-badge:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
}

.profile-modal-card .form-label,
#modalEditEmail .form-label,
#modalEditPhone .form-label {
    color: #334155 !important;
    font-weight: 700 !important;
}

.profile-modal-card .form-control-edx,
#modalEditEmail .form-control-edx,
#modalEditPhone .form-control-edx {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.profile-modal-card .form-control-edx:focus,
#modalEditEmail .form-control-edx:focus,
#modalEditPhone .form-control-edx:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.profile-modal-card .form-control-edx::placeholder,
#modalEditEmail .form-control-edx::placeholder,
#modalEditPhone .form-control-edx::placeholder {
    color: #94a3b8 !important;
}

#modalEditPhone span {
    color: #64748b;
}

.profile-modal-card #tabContentProfilePass > div:first-child {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
}

.profile-modal-card #tabContentProfilePin > div:first-child {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
}

.profile-modal-card #tabContentProfile2FA > div:first-child {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    color: #3730a3 !important;
}

#modalEditPhone form > div:first-child {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
}

.profile-modal-card #formPassStep2 h4,
.profile-modal-card #box2FASetupFlow p,
#modalEditPhone #formEditPhoneStep2 h4 {
    color: #0f172a !important;
}

.profile-modal-card #otpSentNotice,
#modalEditPhone #phoneOTPSentNotice {
    color: #64748b !important;
}

.profile-modal-card .qr-secret-key-box {
    background: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    color: #0284c7 !important;
}

.profile-modal-card .otp-countdown-pill,
#modalEditPhone .otp-countdown-pill {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
}

.profile-modal-card .profile-member-date {
    color: #64748b !important;
}
.profile-modal-card .profile-member-date span {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.profile-modal-card .qr-container-box {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}



/* ─────────────────────────────────────────────────────────────
   ESTILOS GENERALES PARA TODOS LOS MODALES (TEMA BLANCO ELEGANTE)
   ───────────────────────────────────────────────────────────── */
.modal-card .modal-header h3,
.modal-card h3,
.modal-card h4 {
    color: #0f172a !important;
}

.modal-card .modal-header p,
.modal-card p {
    color: #475569;
}

.modal-card .modal-close-btn {
    background: #f1f5f9 !important;
    border: none !important;
    color: #475569 !important;
}

.modal-card .modal-close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.modal-card .form-label {
    color: #334155 !important;
    font-weight: 700 !important;
}

.modal-card .form-control-edx {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.modal-card .form-control-edx:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.modal-card .form-control-edx::placeholder {
    color: #94a3b8 !important;
}

.modal-card .cat-pill {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

.modal-card .cat-pill:hover {
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.modal-card .cat-pill.active {
    background: #10b981 !important;
    color: #042f20 !important;
    border-color: #10b981 !important;
    font-weight: 700 !important;
}

.modal-card .recharge-option-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

.modal-card .copy-box {
    background: #f1f5f9 !important;
    border: 1.5px dashed #cbd5e1 !important;
}

.modal-card .copy-box span {
    color: #0f172a !important;
    font-weight: 800;
}

.modal-card .btn-copy {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

.modal-card .btn-copy:hover {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}

/* User Menu en Blanco */
.user-menu-balance-box {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
}
.user-menu-bal-label {
    color: #166534 !important;
}
.user-menu-bal-val {
    color: #15803d !important;
}

.modal-card .btn-menu-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
.modal-card .btn-menu-item:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.modal-card .btn-menu-item.btn-primary-edx {
    background: #10b981 !important;
    color: #042f20 !important;
}
.modal-card .btn-logout-danger {
    color: #dc2626 !important;
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}
.modal-card .btn-logout-danger:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

/* Segmented Tabs Login / Register */
.auth-segmented-nav {
    display: flex;
    background: #f1f5f9 !important;
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0 !important;
}
.auth-seg-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    color: #64748b !important;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.auth-seg-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}


/* ─────────────────────────────────────────────────────────────
   INDICADORES Y PÍLDORAS DE STOCK EN TIEMPO REAL
   ───────────────────────────────────────────────────────────── */
.stock-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
    letter-spacing: 0.2px;
}

.stock-pill-in {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.45);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.stock-pill-out {
    background: rgba(239, 68, 68, 0.22);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.45);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
}

.stock-subtext {
    font-size: 0.74rem;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.text-in-stock {
    color: #10b981;
}

.text-out-stock {
    color: #f87171;
}

.btn-disabled-edx {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #64748b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    cursor: not-allowed !important;
    opacity: 0.65;
    box-shadow: none !important;
}


.stock-pill-preorder {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.text-preorder {
    color: #fbbf24;
}

.btn-preorder-edx {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    color: #000 !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35) !important;
    border: none !important;
}

.btn-preorder-edx:hover {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(245, 158, 11, 0.5) !important;
}

/* ==========================================================================
   ANIMACIÓN DE COMPRA EXITOSA Y CELEBRACIÓN
   ========================================================================== */
@keyframes successPopBounce {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    50% {
        transform: scale(1.22);
        opacity: 1;
    }
    75% {
        transform: scale(0.92);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-check-badge {
    width: 62px;
    height: 62px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.05) 70%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    color: #34d399;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
    animation: successPopBounce 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-check-badge.preorder-badge {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 70%);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.45);
}
/* ==========================================================================
   TARJETAS DE HISTORIAL DE COMPRAS
   ========================================================================== */
.order-history-card {
    transition: all 0.2s ease-in-out;
}
.order-history-card:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}
/* ==========================================================================
   NOTIFICACIONES FLOTANTES DE VENTAS EN VIVO (SOCIAL PROOF TOAST)
   ========================================================================== */
#liveSalesToastContainer {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    max-width: 360px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.sales-toast-card {
    pointer-events: auto;
    background: rgba(12, 16, 24, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sales-toast-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 22px rgba(16, 185, 129, 0.28);
}

.sales-toast-card.toast-exiting {
    animation: toastSlideOut 0.4s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes toastSlideIn {
    0% {
        transform: translateX(-45px) scale(0.92);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-35px) scale(0.92);
        opacity: 0;
    }
}

.toast-product-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.toast-content-col {
    flex: 1;
    min-width: 0;
}

.toast-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.toast-product-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.toast-buyer-subtitle {
    font-size: 0.73rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.toast-close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.toast-close-btn:hover {
    opacity: 1;
    color: #ffffff;
}

@media (max-width: 768px) {
    #liveSalesToastContainer {
        bottom: 140px; /* Posicionado sobre el botón de Randix IA para máxima visibilidad */
        left: 14px;
        right: 14px;
        width: auto;
        max-width: 360px;
    }
    .sales-toast-card {
        padding: 8px 12px;
    }
    .toast-product-thumb {
        width: 42px;
        height: 42px;
    }
    .toast-product-title {
        font-size: 0.84rem;
    }
}


/* ─────────────────────────────────────────────────────────────
   FICHA TÉCNICA OFICIAL & RESEÑA (ESTILO TELEGRAM)
   ───────────────────────────────────────────────────────────── */
.product-card {
    cursor: pointer;
}

.banner-hover-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    pointer-events: none;
}

.product-card:hover .banner-hover-hint {
    opacity: 1;
    transform: translateY(0);
}

.card-actions-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-card-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    padding: 8px 11px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-card-info:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    transform: scale(1.05);
}

/* ─────────────────────────────────────────────────────────────
   MODAL FICHA TÉCNICA OFICIAL (EDICIÓN GEMINI PRO - DARK GLASS)
   ───────────────────────────────────────────────────────────── */

/* Contenedor Modal Card con anulación de blanco forzado */
#modalProductDetails .modal-card,
.modal-tech-gemini {
    background: linear-gradient(165deg, #090e17 0%, #0d1629 50%, #070b14 100%) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(56, 189, 248, 0.32) !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 242, 254, 0.16) !important;
    border-radius: 20px !important;
    padding: 24px 22px !important;
}

/* Header del Modal */
#modalProductDetails .modal-header,
.modal-tech-header {
    border-bottom: 1px solid rgba(56, 189, 248, 0.22) !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
}

#modalProductDetails .modal-header h3,
#modalProductDetails h3,
.modal-tech-title {
    background: linear-gradient(135deg, #ffffff 40%, #38bdf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
}

#modalProductDetails .modal-header p,
.modal-tech-subtitle {
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
    margin-top: 3px !important;
}

#modalProductDetails .modal-close-btn,
.modal-tech-close {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
}

#modalProductDetails .modal-close-btn:hover,
.modal-tech-close:hover {
    background: rgba(0, 242, 254, 0.2) !important;
    color: #00f2fe !important;
    border-color: rgba(0, 242, 254, 0.5) !important;
    transform: rotate(90deg) scale(1.05) !important;
}

/* Contenedor principal de la ficha */
.product-tech-sheet {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Hero Card (Portada y Título) */
.tech-hero-card {
    display: flex;
    gap: 15px;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.75) 100%);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tech-hero-thumb-box {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: #090e17;
    border: 1.5px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.25), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tech-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tech-hero-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.tech-badge-category {
    font-size: 0.72rem;
    font-weight: 800;
    color: #00f2fe;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tech-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tech-price-tag {
    font-size: 1.35rem;
    font-weight: 900;
    color: #10b981;
    text-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tech-currency {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 700;
}

/* Caja de especificaciones (Detalles de la cuenta) */
.tech-spec-box {
    background: linear-gradient(160deg, rgba(13, 20, 36, 0.96) 0%, rgba(9, 14, 25, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tech-spec-header {
    font-size: 0.84rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.9px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.25);
    padding-bottom: 9px;
    text-transform: uppercase;
}

.tech-spec-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
}

.tech-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-row-item:last-child {
    border-bottom: none;
}

.tech-row-label {
    color: #94a3b8 !important;
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
    font-size: 0.86rem;
}

.tech-row-val {
    color: #ffffff !important;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    font-size: 0.88rem;
}

.tech-row-val b {
    color: #ffffff !important;
    font-weight: 800;
}

.tech-price-val {
    color: #34d399 !important;
    font-weight: 800;
    font-size: 1.02rem;
}

.tech-code-badge {
    background: rgba(0, 242, 254, 0.12);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.35);
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.tech-val-highlight {
    color: #6ee7b7 !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tech-stock-in {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.32);
    padding: 3px 9px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.tech-stock-preorder {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.32);
    padding: 3px 9px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.tech-stock-out {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.32);
    padding: 3px 9px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

/* Caja de Descripción & Beneficios (Toque Gemini Pro) */
.tech-desc-box {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-left: 4px solid #00f2fe;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tech-desc-header {
    font-size: 0.88rem;
    font-weight: 800;
    color: #00f2fe;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-desc-body {
    font-size: 0.92rem;
    color: #f1f5f9 !important;
    line-height: 1.7;
}

/* Forzar color ultra legible en párrafos */
#modalProductDetails .tech-desc-body p,
.tech-desc-p {
    color: #f8fafc !important;
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.2px;
}

#modalProductDetails .tech-desc-body p:last-child,
.tech-desc-p:last-child {
    margin-bottom: 0 !important;
}

/* Lista de beneficios estilizada */
.tech-benefit-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 9px 12px;
    color: #ffffff !important;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: background 0.2s ease;
}

.tech-benefit-list li:hover {
    background: rgba(0, 242, 254, 0.06);
    border-color: rgba(0, 242, 254, 0.2);
}

.tech-li-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Alerta de garantía o advertencia especial */
.tech-alert-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-left: 3px solid #f59e0b;
    border-radius: 10px;
    padding: 10px 14px;
    color: #fde68a !important;
    font-size: 0.86rem;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.tech-alert-box i {
    font-size: 1.05rem;
    color: #fbbf24;
    flex-shrink: 0;
}

.tech-desc-empty {
    font-style: italic;
    color: #94a3b8;
    margin: 0;
}

/* Franja de saldo */
.tech-balance-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.09) 0%, rgba(6, 78, 59, 0.18) 100%);
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 14px;
    padding: 12px 16px;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.tech-balance-left {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
}

.tech-balance-label {
    color: #94a3b8 !important;
    font-weight: 600;
}

.tech-balance-val {
    color: #10b981 !important;
    font-weight: 800;
    font-size: 1.05rem;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.tech-balance-banner .btn-edx {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.tech-balance-banner .btn-edx:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.tech-balance-guest {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.tech-guest-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #fde68a !important;
}

/* Botones de acción inferiores */
.tech-footer-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.tech-btn-action {
    flex: 1;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.98rem;
    font-weight: 800;
    border-radius: 12px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.tech-footer-actions .btn-outline-edx {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    border-radius: 12px;
    font-weight: 700;
    padding: 13px 22px;
    transition: all 0.2s ease;
}

.tech-footer-actions .btn-outline-edx:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 600px) {
    #modalProductDetails .modal-card,
    .modal-tech-gemini {
        padding: 18px 14px !important;
    }
    .tech-row-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    .tech-row-val {
        text-align: left;
    }
    .tech-balance-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }
    .tech-balance-left {
        justify-content: center;
    }
    .tech-footer-actions {
        flex-direction: column;
    }
}

/* ─────────────────────────────────────────────────────────────
   CENTRO OFICIAL DE VIDEO TUTORIALES & GUÍAS AUDIOVISUALES
   ───────────────────────────────────────────────────────────── */
.hero-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-hero-tutorial {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 95, 70, 0.45) 100%);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
    transition: var(--transition-smooth);
}

.btn-hero-tutorial:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(6, 95, 70, 0.65) 100%);
    border-color: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-hero-tutorial i {
    color: #34d399;
    font-size: 1.15rem;
}

.btn-hero-tutorials-list {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-hero-tutorials-list:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    transform: translateY(-2px);
}

/* Modal y Catálogo de Tutoriales (TEMA OSCURO CUÁNTICO DE ALTO CONTRASTE) */
#modalTutorials .modal-card,
.modal-tutorials-card {
    background: #080d16 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.95), 0 0 50px rgba(56, 189, 248, 0.18) !important;
    color: #ffffff !important;
}

#modalTutorials .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#modalTutorials .modal-header h3 {
    color: #ffffff !important;
    font-size: 1.22rem !important;
    font-weight: 800 !important;
}

#modalTutorials .modal-header p {
    color: #94a3b8 !important;
    font-size: 0.84rem !important;
}

#modalTutorials .modal-close-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

#modalTutorials .modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
    transform: scale(1.05);
}

.tut-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.4) 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.tutorials-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tut-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.tut-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tut-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.tut-tab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(14, 165, 233, 0.45) 100%);
    border-color: #38bdf8;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

.tut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

/* Tarjeta de Video Tutorial Cuántica */
.tut-card {
    background: #0d1524 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 16px !important;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    position: relative;
}

.tut-card:hover {
    border-color: rgba(56, 189, 248, 0.6) !important;
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.25) !important;
}

.tut-card-cover {
    height: 125px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tut-cover-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.25;
    transition: opacity 0.3s ease;
}

.tut-card:hover .tut-cover-glow {
    opacity: 0.5;
}

.tut-cover-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.tut-card:hover .tut-cover-icon-box {
    opacity: 0;
    transform: scale(0.8);
}

.tut-play-pulse {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    border: 2px solid;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    z-index: 3;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

.tut-card:hover .tut-play-pulse {
    opacity: 1;
    transform: scale(1);
}

.tut-duration-pill {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tut-category-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Cuerpo y Textos de Alto Contraste */
.tut-card-body {
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

#modalTutorials .tut-card-title,
.tut-card-title {
    color: #ffffff !important;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin: 0 0 2px 0 !important;
    letter-spacing: 0.2px;
}

.tut-card-highlight {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    letter-spacing: 0.3px;
}

#modalTutorials .tut-card-desc,
.tut-card-desc {
    color: #cbd5e1 !important;
    font-size: 0.83rem !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Barra de Acción Inferior */
.tut-card-action-bar {
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #34d399;
    transition: all 0.25s ease;
}

.tut-card:hover .tut-card-action-bar {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    padding-left: 20px;
}

.tut-arrow {
    transition: transform 0.25s ease;
}

.tut-card:hover .tut-arrow {
    transform: translateX(4px);
}

/* Reproductor de Video Cuántico */
.tut-player-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tut-player-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tut-back-btn {
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    transition: color 0.2s;
}

.tut-back-btn:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.tut-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15);
}

.tut-video-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.tut-player-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#modalTutorials .tut-player-title,
.tut-player-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

#modalTutorials .tut-player-desc,
.tut-player-desc {
    font-size: 0.86rem !important;
    color: #cbd5e1 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.tut-steps-box {
    background: rgba(13, 19, 31, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 16px 18px;
    margin-top: 6px;
}

.tut-steps-header {
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.tut-steps-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tut-step-item {
    font-size: 0.86rem;
    color: #f1f5f9;
    line-height: 1.55;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tut-step-item:last-child {
    border-bottom: none;
}

.tut-player-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* Botones en Ficha Técnica y Mis Compras */
.btn-tut-inline {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-tut-inline:hover {
    background: rgba(56, 189, 248, 0.28);
    border-color: #38bdf8;
    transform: scale(1.03);
}

.btn-tut-order-link {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-tut-order-link:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
}

@media (max-width: 600px) {
    .hero-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-hero-tutorial,
    .btn-hero-tutorials-list {
        justify-content: center;
        text-align: center;
    }
    .tut-grid {
        grid-template-columns: 1fr;
    }
    .tut-player-actions {
        flex-direction: column;
    }
}


/* ─────────────────────────────────────────────────────────────
   FOOTER MULTICOLUMNA PROFESIONAL & ELEGANTE (EASY DIGITAL X)
   ───────────────────────────────────────────────────────────── */
.store-footer {
    margin-top: 60px;
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.96) 0%, rgba(4, 6, 10, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
    color: #e2e8f0;
    font-size: 0.88rem;
}

.store-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 24px 35px;
}

.store-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr;
    gap: 36px;
    margin-bottom: 45px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #38bdf8);
    border-radius: 2px;
}

.footer-brand-logo {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.footer-brand-p {
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.footer-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.footer-trust-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    transition: all 0.25s ease;
}

.footer-trust-badge:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    transform: translateX(4px);
}

.footer-trust-badge i {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.footer-trust-badge i.green { color: #10b981; }
.footer-trust-badge i.cyan { color: #38bdf8; }
.footer-trust-badge i.amber { color: #f59e0b; }

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-item a,
.footer-link-item button {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
}

.footer-link-item a:hover,
.footer-link-item button:hover {
    color: #38bdf8;
    transform: translateX(5px);
}

.footer-link-item i {
    font-size: 0.75rem;
    color: rgba(56, 189, 248, 0.6);
    transition: transform 0.2s;
}

.footer-link-item a:hover i,
.footer-link-item button:hover i {
    color: #38bdf8;
    transform: translateX(2px);
}

/* Métodos de Pago */
.footer-payments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.footer-payment-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.footer-payment-card.highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
    border-color: rgba(245, 158, 11, 0.25);
}

.footer-payment-card.highlight:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.footer-payment-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.footer-payment-icon.binance {
    background: rgba(243, 186, 47, 0.15);
    color: #f3ba2f;
    border: 1px solid rgba(243, 186, 47, 0.3);
}

.footer-payment-icon.usdt {
    background: rgba(38, 161, 123, 0.15);
    color: #26a17b;
    border: 1px solid rgba(38, 161, 123, 0.3);
}

.footer-payment-icon.bank {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.footer-payment-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.footer-payment-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-tag-zero {
    font-size: 0.65rem;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 800;
}

.footer-payment-desc {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Columna 4: Asistente & Soporte */
.footer-btn-randix {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.2) 0%, rgba(122, 0, 255, 0.35) 100%);
    border: 1px solid rgba(0, 210, 255, 0.5);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.footer-btn-randix:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(0, 210, 255, 0.9);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.45);
}

.footer-randix-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #00d2ff, #7a00ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    animation: rw-pulse-glow 2.5s infinite alternate;
}

.footer-randix-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-randix-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.footer-randix-sub {
    font-size: 0.72rem;
    color: #a5f3fc;
}

.footer-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 4px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-contact-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact-link.wa:hover {
    border-color: rgba(37, 211, 102, 0.4);
    color: #86efac;
}

.footer-contact-link.tg:hover {
    border-color: rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
}

.footer-contact-link i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-contact-link.wa i { color: #25d366; }
.footer-contact-link.tg i { color: #38bdf8; }

.footer-server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: #94a3b8;
    padding-top: 4px;
}

.footer-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 2s infinite ease-in-out;
}

/* Sub-Footer */
.store-sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.78rem;
    color: #64748b;
}

.sub-footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sub-footer-latency {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #34d399;
    font-weight: 600;
}

.sub-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sub-footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.sub-footer-links a:hover {
    color: #cbd5e1;
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   WIDGET DEL ASISTENTE VIRTUAL RANDIX IA (ORBE CUÁNTICO & PANEL)
   ───────────────────────────────────────────────────────────── */
.radiux-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 58px;
    border-radius: 30px;
    padding: 0 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(0, 210, 255, 0.5);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 255, 0.25);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    user-select: none;
}

.radiux-widget-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 32px rgba(0, 210, 255, 0.5);
    border-color: rgba(0, 210, 255, 0.9);
}

.radiux-widget-btn i {
    color: #00d2ff;
    font-size: 1.35rem;
    animation: rw-float-icon 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px #00d2ff);
}

.rw-btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    z-index: -1;
    background: linear-gradient(135deg, #00d2ff, #7a00ff);
    opacity: 0.35;
    filter: blur(12px);
    animation: rw-pulse-glow 2s infinite alternate;
}

@keyframes rw-pulse-glow {
    0% { opacity: 0.15; filter: blur(8px); }
    100% { opacity: 0.55; filter: blur(16px); }
}

@keyframes rw-float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Panel Desplegable */
.radiux-widget-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 440px;
    max-width: calc(100vw - 32px);
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 24px;
    z-index: 9998;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 45px rgba(0, 210, 255, 0.2);
    display: none;
    flex-direction: column;
    font-family: inherit;
    transform-origin: bottom right;
    animation: rw-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: rgba(9, 14, 24, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    overflow: hidden;
}

.radiux-widget-panel::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 26px;
    background: linear-gradient(45deg, #00d2ff, #7a00ff, #ff007a, #00d2ff);
    background-size: 400%;
    z-index: -2;
    animation: animateBorder 6s linear infinite;
    filter: blur(6px);
    pointer-events: none;
}

@keyframes rw-pop {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.rw-header {
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rw-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.dot-online {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

.rw-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rw-header-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.88rem;
    outline: none;
}

.rw-header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.rw-header-icon-btn.muted {
    background: rgba(255, 59, 48, 0.25);
    border-color: rgba(255, 59, 48, 0.6);
    color: #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
}

.rw-body {
    padding: 24px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Orbe Cósmico Cuántico */
.rw-cosmic-orb-wrapper {
    position: relative;
    width: 190px;
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 auto;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rw-cosmic-orb-wrapper:hover {
    transform: scale(1.05);
}

#rw-cosmic-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: drop-shadow(0 0 16px rgba(0, 210, 255, 0.5)) drop-shadow(0 0 25px rgba(255, 0, 128, 0.35));
    transition: filter 0.4s ease;
}

.orb-outer-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 30%, rgba(0, 210, 255, 0.25) 70%, rgba(255, 0, 128, 0.3) 100%);
    filter: blur(14px);
    pointer-events: none;
    animation: rw-pulse-glow 2s infinite alternate;
}

/* Modos de Estado Dinámicos */
.rw-cosmic-orb-wrapper.processing #rw-cosmic-canvas {
    filter: drop-shadow(0 0 20px rgba(0, 230, 255, 0.8)) drop-shadow(0 0 35px rgba(180, 50, 255, 0.6));
}

.rw-cosmic-orb-wrapper.speaking #rw-cosmic-canvas {
    filter: drop-shadow(0 0 26px rgba(0, 240, 255, 0.95)) drop-shadow(0 0 45px rgba(255, 20, 120, 0.8));
}

.rw-cosmic-orb-wrapper.user_speaking #rw-cosmic-canvas {
    filter: drop-shadow(0 0 22px rgba(0, 255, 200, 0.9)) drop-shadow(0 0 38px rgba(0, 180, 255, 0.7));
}

.rw-cosmic-orb-wrapper.muted #rw-cosmic-canvas {
    filter: drop-shadow(0 0 12px rgba(255, 60, 60, 0.45));
}

.rw-status {
    color: #00d2ff;
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 14px;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.rw-history {
    width: 100%;
    margin-top: 14px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #ffffff;
    text-align: left;
    min-height: 70px;
    max-height: 180px;
    overflow-y: auto;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rw-history::-webkit-scrollbar {
    width: 5px;
}

.rw-history::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.4);
    border-radius: 8px;
}

.rw-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
}

.rw-footer input {
    flex: 1;
    font-size: 0.88rem;
    padding: 10px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.rw-footer input:focus {
    border-color: rgba(0, 210, 255, 0.6);
}

.rw-send-btn {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #00d2ff, #7a00ff);
    color: #ffffff;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(122, 0, 255, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    align-self: center;
    flex-shrink: 0;
}

.rw-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE (FOOTER & WIDGET EN MÓVILES)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .store-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .store-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .store-sub-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 75px; /* Espacio para barra de navegación móvil */
    }
    
    .sub-footer-meta {
        justify-content: center;
    }
    
    .sub-footer-links {
        justify-content: center;
    }
    
    .radiux-widget-btn {
        bottom: 80px; /* Por encima de la barra inferior nativa */
        right: 16px;
        height: 50px;
        padding: 0 16px;
        font-size: 0.88rem;
    }
    
    .radiux-widget-panel {
        bottom: 140px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}

/* ─────────────────────────────────────────────────────────────
   BOTÓN DE VIDEO TUTORIALES EN NAVBAR (ADAPTABLE MÓVIL Y PC)
   ───────────────────────────────────────────────────────────── */
.btn-nav-tutorials {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    border-color: rgba(56, 189, 248, 0.4) !important;
    background: rgba(56, 189, 248, 0.1) !important;
    color: #ffffff !important;
    padding: 8px 15px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-nav-tutorials:hover {
    background: rgba(56, 189, 248, 0.25) !important;
    border-color: #38bdf8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
}

@media (max-width: 768px) {
    .brand-logo-img {
        max-width: 145px !important;
        height: 38px !important;
    }
    .btn-nav-tutorials {
        padding: 6px 11px !important;
        font-size: 0.78rem !important;
        gap: 5px;
    }
    .btn-nav-tutorials .nav-tut-text {
        display: inline-block;
    }
    .nav-actions {
        gap: 6px;
    }
}

@media (max-width: 400px) {
    .brand-logo-img {
        max-width: 130px !important;
        height: 34px !important;
    }
    .btn-nav-tutorials .nav-tut-text {
        display: none;
    }
    .btn-nav-tutorials {
        padding: 7px 10px !important;
        font-size: 0.95rem !important;
    }
}
