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

:root {
    --bg: #0f172a;               /* Dark modern slate */
    --surface: #1e293b;          /* Slightly lighter slate */
    --surface-2: #334155;        /* For accents */
    --border: rgba(255, 255, 255, 0.08); /* Transparent borders */
    --border-2: rgba(255, 255, 255, 0.15);

    --text: #f8fafc;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;

    --primary: #3b82f6;          /* Brilliant Blue */
    --primary-2: #2563eb;
    --primary-soft: rgba(59, 130, 246, 0.15);

    --accent: #f59e0b;           /* Amber / Gold */
    --accent-2: #d97706;

    --success: #10b981;          /* Emerald */
    --success-2: #059669;
    --danger: #ef4444;           /* Rose */

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-blur: blur(16px);
}

* { box-sizing: border-box; }

body {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0; 
    padding: 0 0 110px 0; 
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── ANIMATED BACKGROUND ── */
.bg-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-glow .g { position: absolute; border-radius: 50%; filter: blur(90px); animation: gdrift 20s ease-in-out infinite alternate; opacity: 0.5; }
.g1 { width: 500px; height: 500px; top: -10%; left: -10%; background: radial-gradient(circle, rgba(59,130,246,0.3), transparent); }
.g2 { width: 450px; height: 450px; top: 20%; right: -10%; background: radial-gradient(circle, rgba(16,185,129,0.2), transparent); animation-delay: -5s; }
.g3 { width: 600px; height: 600px; bottom: -10%; left: 20%; background: radial-gradient(circle, rgba(245,158,11,0.2), transparent); animation-delay: -9s; }
.g4 { width: 380px; height: 380px; bottom: 10%; right: 10%; background: radial-gradient(circle, rgba(139,92,246,0.25), transparent); animation-delay: -12s; }
@keyframes gdrift { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(30px,40px) scale(1.1)} }

/* ── LOGIN / REGISTER MODALS ── */
.auth-wrapper {
    display: flex; align-items: center; justify-content: center; min-height: 100vh; position: relative; z-index: 10; padding: 20px; overflow-y: auto;
}
.auth-box, .login-box, .reg-box {
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-2); padding: 40px; border-radius: 24px; text-align: center;
    max-width: 400px; width: 100%; box-shadow: 0 25px 60px rgba(0,0,0,0.6); position: relative;
    animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
@keyframes popIn { 0%{opacity:0; transform:scale(0.9) translateY(20px);} 100%{opacity:1; transform:scale(1) translateY(0);} }
@keyframes slideUpMobile { from{opacity:0.8; transform:translateY(100%);} to{opacity:1; transform:translateY(0);} }

.auth-box::before, .login-box::before, .reg-box::before {
    content:''; position:absolute; inset:0; border-radius:24px; padding:1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05) 40%, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.auth-box h1, .login-box h1, .reg-box h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.auth-box p, .login-box p, .reg-box p { color: var(--text-2); font-size: 15px; margin-bottom: 25px; line-height: 1.5; font-family: 'Inter', sans-serif; }
.auth-box .sub, .reg-box .sub { font-size:13px; color:#94a3b8; margin-bottom:18px; }

.stream-icons { position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.stream-icons span { position:absolute; opacity:.28; animation:floatUp linear infinite; }
@keyframes floatUp { 0%{transform:translateY(105vh) rotate(0deg)} 100%{transform:translateY(-10vh) rotate(360deg)} }

.input-form {
    width: 100%; padding: 15px 18px; margin-bottom: 18px; background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-2); border-radius: 12px; color: var(--text); font-size: 16px; 
    transition: all 0.3s ease; backdrop-filter: blur(8px); outline: none; font-family: 'Inter', sans-serif;
}
.input-form:focus {
    border-color: var(--primary); background: rgba(0,0,0,0.5); box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.btn-primary, .btn-ingresar, .btn-crear {
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
    border: none; padding: 16px; border-radius: 12px; font-weight: 700; cursor: pointer; width: 100%;
    font-size: 16px; transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(37,99,235,0.3); font-family: 'Outfit', sans-serif; letter-spacing: 0.5px;
}
.btn-primary:hover, .btn-ingresar:hover, .btn-crear:hover {
    transform: translateY(-2px); box-shadow: 0 12px 25px rgba(37,99,235,0.45); filter: brightness(1.1);
}
.btn-crear:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(1); }

/* ── TOPBAR ── */
.topbar { background: var(--glass-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; backdrop-filter: var(--glass-blur); }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 20px; }
.brand { font-weight: 900; font-size: 22px; color: var(--text); letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; box-shadow: 0 4px 15px rgba(245,158,11,0.3); }

.search-wrap { flex: 1; position: relative; }
.search-input { width: 100%; padding: 13px 18px 13px 44px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-2); border-radius: 12px; font-size: 15px; color: var(--text); outline: none; transition: 0.3s; font-family: 'Inter', sans-serif;}
.search-input:focus { border-color: var(--primary); background: rgba(0,0,0,0.4); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 16px; }

.topbar-user { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 14px; font-weight: 700; }
.badge-mayorista { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #78350f; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; border: 1px solid #fcd34d; font-family: 'Inter', sans-serif; letter-spacing: 0.5px;}

/* ── HERO ── */
.hero { max-width: 1100px; margin: 24px auto 12px; padding: 0 20px; position: relative; z-index: 1;}
.hero-card { 
    background: linear-gradient(135deg, rgba(37,99,235,0.8) 0%, rgba(139,92,246,0.8) 100%); 
    backdrop-filter: blur(10px); color: #fff; border-radius: 24px; padding: 36px 40px; 
    display: flex; align-items: center; gap: 30px; box-shadow: var(--shadow-lg); 
    position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
}
.hero-card::before { content:''; position:absolute; right:-50px; top:-50px; width:250px; height:250px; background:rgba(255,255,255,0.1); border-radius:50%; filter:blur(20px);}
.hero-text { flex: 1; position: relative; z-index: 1; }
.hero-title { font-size: 32px; font-weight: 900; margin: 0 0 10px 0; letter-spacing: -1px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.2);}
.hero-sub { font-size: 16px; opacity: 0.9; margin: 0; font-family: 'Inter', sans-serif; font-weight: 500; }
.hero-emoji { font-size: 72px; line-height: 1; position: relative; z-index: 1; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); animation: float 6s ease-in-out infinite;}
@keyframes float { 0%{transform:translateY(0px)} 50%{transform:translateY(-10px)} 100%{transform:translateY(0px)} }

/* ── WALLET ── */
.wallet-strip { max-width: 1100px; margin: 16px auto; padding: 0 20px; position: relative; z-index:1; }
.wallet-card-cat { 
    background: var(--surface); border: 1px solid var(--border-2); border-radius: 20px; 
    padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; 
    gap: 16px; box-shadow: var(--shadow); color: var(--text); flex-wrap: wrap; 
}
.wallet-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.wallet-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.wallet-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; font-weight: 800; font-family: 'Inter', sans-serif;}
.wallet-amount { font-size: 30px; font-weight: 900; color: var(--success); line-height: 1.1; margin-top: 4px; letter-spacing: -0.5px; }
.wallet-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; font-weight: 500; font-family: 'Inter', sans-serif; }
.wallet-btn { 
    background: var(--success); color: #fff; border: none; padding: 14px 24px; border-radius: 12px; 
    font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 8px 20px rgba(16,185,129,0.3); 
    transition: all 0.3s ease; font-family: 'Outfit', sans-serif; letter-spacing: 0.5px;
}
.wallet-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(16,185,129,0.4); filter: brightness(1.1); }

/* ── STATS ROW ── */
.stats-row { max-width: 1100px; margin: 16px auto; padding: 0 20px; display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index:1; }
.stat-pill { 
    background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; 
    padding: 16px 20px; display: flex; align-items: center; gap: 14px; flex: 1; min-width: 180px; 
    box-shadow: var(--shadow-sm); transition: transform 0.2s;
}
.stat-pill:hover { transform: translateY(-3px); border-color: var(--primary); }
.stat-pill .ic { font-size: 24px; }
.stat-pill .vl { font-weight: 800; color: var(--text); font-size: 18px; letter-spacing: -0.3px; }
.stat-pill .lb { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; font-family: 'Inter', sans-serif; margin-top:2px; }

/* ── SCROLL WRAPPERS CON FLECHAS (Tabs y Categorías) ── */
.scroll-wrap-outer {
    max-width: 1100px;
    margin: 8px auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 2;
}
/* Cuando esta anidado dentro de .tab-content (que ya provee padding 0 20px) */
.tab-content .scroll-wrap-outer {
    padding: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.scroll-arrow-btn {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 3;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    user-select: none;
    line-height: 1;
    padding: 0;
    margin: 0;
}
.scroll-arrow-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(37,99,235,0.5);
}
.scroll-arrow-btn:active {
    transform: scale(0.92);
}

/* ── TABS (Categories) ── */
.cat-tabs { 
    flex: 1; min-width: 0; margin: 0; padding: 4px 0; 
    display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; 
    scrollbar-width: none !important; -ms-overflow-style: none !important; -webkit-overflow-scrolling: touch;
    position: relative; z-index: 1; scroll-behavior: smooth;
}
.cat-tabs::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.cat-pill { 
    background: var(--surface); border: 1px solid var(--border-2); color: var(--text-2); 
    padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; 
    cursor: pointer; white-space: nowrap; transition: all 0.25s ease; 
    font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; gap: 5px;
    flex-shrink: 0; user-select: none;
}
.cat-pill:hover { background: rgba(255,255,255,0.05); color: var(--text); border-color: rgba(255,255,255,0.2); }
.cat-pill.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(37,99,235,0.4); }
.cat-pill .cat-cnt { opacity: 0.65; font-size: 11px; font-weight: 600; }

/* ── TABS PRINCIPALES ── */
.tabs-container { 
    flex: 1; min-width: 0; margin: 0; padding: 0; 
    display: flex; gap: 8px; border-bottom: 1px solid var(--border-2); 
    position: relative; z-index: 1; overflow-x: auto;
    scrollbar-width: none !important; -ms-overflow-style: none !important; -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.tabs-container::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.tab-btn { padding: 14px 20px; font-weight: 700; color: var(--text-3); cursor: pointer; font-size: 15px; border-bottom: 3px solid transparent; transition: 0.3s; white-space: nowrap; font-family: 'Inter', sans-serif;}
.tab-btn:hover { color: var(--text-2); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); text-shadow: 0 0 15px rgba(37,99,235,0.3);}
.tab-content { display: none; max-width: 1100px; margin: 0 auto; padding: 0 20px; animation: fadeIn 0.4s ease; position: relative; z-index:1; }
.tab-content.active { display: block; }
@keyframes fadeIn { from{opacity:0; transform:translateY(15px);} to{opacity:1; transform:translateY(0);} }

/* ── HEADERS ── */
/* ── TIRAS Y BANNERS HORIZONTALES (Alineadas con la cuadrícula de 1100px) ── */
.name-alert-strip {
    max-width: 1100px;
    margin: 8px auto 12px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}
.rev-invite-strip {
    max-width: 1100px;
    margin: 0 auto 14px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}
.section-head { 
    display: flex; align-items: center; justify-content: space-between; 
    margin: 22px 0 16px; padding: 0; box-sizing: border-box; gap: 12px;
}
.section-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 0; letter-spacing: -0.5px; }
.section-sub { font-size: 13px; color: var(--text-3); margin: 3px 0 0 0; font-weight: 500; font-family: 'Inter', sans-serif; }

.sort-select {
    background: #1e293b; color: #94a3b8; border: 1px solid rgba(148,163,184,0.25);
    border-radius: 10px; padding: 7px 12px; font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit; outline: none; transition: all 0.2s;
}
.sort-select:hover, .sort-select:focus {
    border-color: var(--primary); color: #fff;
}

/* ── PRODUCT GRID ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { 
    background: var(--surface); border: 1px solid var(--border-2); border-radius: 20px; 
    padding: 20px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; 
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,0.2); background: #253147; }

.card-logo { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: rgba(0,0,0,0.2); border-radius: 14px; padding: 15px; }
.card-logo img { max-height: 60px; max-width: 130px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));}
.card-logo .placeholder { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; }

.card-title { font-size: 17px; font-weight: 800; color: var(--text); margin: 0 0 6px 0; line-height: 1.3; }
.card-desc { font-size: 13px; color: var(--text-3); margin: 0 0 14px 0; line-height: 1.4; font-weight: 500; font-family: 'Inter', sans-serif; height: 36px; overflow: hidden; text-overflow: ellipsis;}

.card-prices { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.card-price { font-size: 24px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.card-price-old { font-size: 14px; color: var(--text-3); text-decoration: line-through; font-weight: 600; font-family: 'Inter', sans-serif;}

.card-meta { font-size: 11px; color: var(--success); font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.5px;}

.btn-comprar { 
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: none; 
    padding: 12px 16px; border-radius: 12px; font-weight: 800; cursor: pointer; width: 100%; 
    font-size: 14px; transition: 0.2s; margin-top: auto; box-shadow: 0 6px 15px rgba(37,99,235,0.3); font-family: 'Outfit', sans-serif;
}
.btn-comprar:hover { background: linear-gradient(135deg, var(--primary-2), #1d4ed8); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.4); }

/* ── COMBO CARD ── */
.card-combo { background: linear-gradient(160deg, rgba(245,158,11,0.15) 0%, var(--surface) 60%); border: 1px solid rgba(245,158,11,0.3); }
.card-combo:hover { border-color: rgba(245,158,11,0.6); box-shadow: 0 10px 30px rgba(245,158,11,0.2); }
.card-combo .card-logo { 
    background: rgba(15, 23, 42, 0.55); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 10px;
    height: 90px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.card-combo .card-logo .combo-emoji { font-size: 50px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));}

.combo-split-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.combo-logo-box {
    flex: 1;
    height: 100%;
    max-height: 74px;
    background: rgba(30, 41, 59, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    overflow: hidden;
}

.card-combo:hover .combo-logo-box {
    border-color: rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.2);
}

.combo-logo-box img {
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.combo-ph {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-split-wrapper.combo-split-2 .combo-logo-box {
    max-width: 100px;
    padding: 8px;
}
.combo-split-wrapper.combo-split-2 .combo-logo-box img {
    max-height: 52px;
}

.combo-split-wrapper.combo-split-3 {
    gap: 6px;
}
.combo-split-wrapper.combo-split-3 .combo-logo-box {
    max-width: 72px;
    padding: 5px;
}
.combo-split-wrapper.combo-split-3 .combo-logo-box img {
    max-height: 42px;
}

.combo-split-wrapper.combo-split-4 {
    gap: 4px;
}
.combo-split-wrapper.combo-split-4 .combo-logo-box {
    max-width: 56px;
    padding: 4px;
}
.combo-split-wrapper.combo-split-4 .combo-logo-box img {
    max-height: 36px;
}

body.light .card-combo .card-logo {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
}
body.light .combo-logo-box {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}
body.light .combo-logo-box img {
    filter: none;
}
.badge-combo { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    color: #fff; 
    font-size: 11px; 
    font-weight: 800; 
    padding: 4px 10px; 
    border-radius: 8px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.35); 
    z-index: 10 !important;
}
.card-combo .btn-comprar { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 15px rgba(245,158,11,0.3); }
.card-combo .btn-comprar:hover { background: linear-gradient(135deg, var(--accent-2), #b45309); box-shadow: 0 8px 20px rgba(245,158,11,0.4); }

/* ── CARRITO FLOTANTE ── */
.carrito-flotante { 
    position: fixed; 
    bottom: calc(24px + env(safe-area-inset-bottom, 0px)); 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--success); 
    color: #fff; 
    padding: 14px 28px; 
    border-radius: 50px; 
    font-size: 15px; 
    font-weight: 800; 
    cursor: pointer; 
    display: none; 
    z-index: 90; 
    box-shadow: 0 15px 35px rgba(16,185,129,0.5); 
    border: 1px solid rgba(255,255,255,0.2); 
    transition: all 0.3s; 
    font-family: 'Outfit', sans-serif;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}
.carrito-flotante:hover { background: var(--success-2); transform: translateX(-50%) translateY(-3px); box-shadow: 0 20px 40px rgba(16,185,129,0.6); }

/* ── MODALS ── */
.modal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(15,23,42,0.85); 
    backdrop-filter: blur(8px); 
    z-index: 99999; 
    align-items: center; 
    justify-content: center; 
    padding: 20px;
    overflow: hidden;
    overscroll-behavior: contain;
}
.modal.show, .modal[style*="display: flex"] {
    display: flex;
}
.modal-content { 
    background: var(--surface); 
    border: 1px solid var(--border-2); 
    border-radius: 18px; 
    padding: 20px 22px; 
    width: 100%; 
    max-width: 440px; 
    max-height: calc(100dvh - 36px);
    max-height: calc(100vh - 36px); 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6); 
    color: var(--text);
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
    box-sizing: border-box;
}
.modal h2, .modal h3 { color: var(--text); margin-top: 0; font-weight: 800; font-size: 18px; margin-bottom: 8px;}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .tab-content { padding: 0 16px; }
    .scroll-wrap-outer { padding: 0 16px; }
    .rev-invite-strip, .name-alert-strip { padding: 0 16px; }
    .tab-content .scroll-wrap-outer { padding: 0 !important; }
    .topbar-inner { padding: 12px 16px; flex-wrap: wrap; }
    .brand { font-size: 18px; }
    .search-wrap { order: 2; flex: 1 1 100%; }
    .topbar-user { order: 3; justify-content: space-between; width: 100%; }
    .hero { padding: 0 16px; margin-top: 10px; }
    .hero-card { 
        padding: 14px 18px; 
        flex-direction: row; 
        align-items: center; 
        justify-content: space-between; 
        text-align: left; 
        gap: 12px; 
        border-radius: 18px;
    }
    .hero-title { font-size: 17px; margin-bottom: 2px; }
    .hero-sub { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-emoji { font-size: 38px; }

    /* Billetera compacta en mobile */
    .wallet-strip { padding: 0 16px; margin: 8px auto; }
    .wallet-card-cat { 
        padding: 12px 16px; 
        border-radius: 16px; 
        flex-wrap: nowrap; 
        justify-content: space-between; 
        gap: 12px; 
    }
    .wallet-left { gap: 12px; }
    .wallet-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
    .wallet-label { font-size: 10px; letter-spacing: 0.5px; }
    .wallet-amount { font-size: 20px; margin-top: 1px; }
    .wallet-hint { display: none; }
    .wallet-btn { padding: 9px 15px; font-size: 13px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }

    /* Stats compactas 2x2 en mobile */
    .stats-row { 
        padding: 0 16px; 
        margin: 8px auto; 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px; 
    }
    .stat-pill { 
        min-width: 0; 
        flex: none; 
        padding: 10px 12px; 
        border-radius: 14px; 
        gap: 10px; 
    }
    .stat-pill .ic { font-size: 20px; }
    .stat-pill .vl { font-size: 15px; }
    .stat-pill .lb { font-size: 10px; letter-spacing: 0.2px; }

    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .card { padding: 14px; border-radius: 16px; }
    .card-logo { height: 70px; padding: 10px; }
    .card-logo img { max-height: 45px; }
    .card-price { font-size: 19px; }
    .btn-comprar { padding: 10px; font-size: 13px; }
}

/* ── UTILITIES ── */
.copy-txt { 
    font-family: 'JetBrains Mono', monospace; color: var(--text); font-size: 14px; 
    background: rgba(0,0,0,0.2); padding: 4px 8px; border-radius: 8px; cursor: pointer; 
    border: 1px solid var(--border-2); transition: 0.2s; display: inline-block; font-weight: 600;
}
.copy-txt:hover { border-color: var(--success); background: rgba(16,185,129,0.15); color: var(--success); }

/* EXTRA CLASSES FOR REGISTRATION */
.num-display { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px; margin-bottom: 18px; font-size: 20px; font-weight: 700; letter-spacing: 1.5px; color: #fff; }
.info-box { text-align: left; background: rgba(0,0,0,0.2); padding: 14px; border-radius: 12px; margin-bottom: 18px; font-size: 13px; color: var(--text-3); border: 1px dashed rgba(255,255,255,0.08); line-height: 1.6; }
.fg { margin-bottom: 14px; text-align: left; }
.fg label { font-size: 12px; color: var(--text-3); display: block; margin-bottom: 5px; font-weight: 600; }
.fg input { width: 100%; padding: 13px 14px; background: rgba(0,0,0,0.35); border: 1px solid var(--border-2); border-radius: 10px; color: #e2e8f0; font-size: 15px; outline: none; transition: border-color 0.2s; backdrop-filter: blur(8px); }
.fg input:focus { border-color: rgba(16,185,129,0.5); background: rgba(0,0,0,0.45); }
.fg .hint { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.err-msg { background: rgba(28,0,0,0.8); border: 1px solid rgba(239,68,68,0.3); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #fca5a5; margin-bottom: 16px; text-align: center; line-height: 1.5; backdrop-filter: blur(8px); }
.btn-volver { display: block; width: 100%; padding: 12px; background: transparent; border: 1px solid rgba(56,189,248,0.4); border-radius: 10px; color: #38bdf8; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; transition: 0.2s; marginTop: 10px;}
.btn-volver:hover { background: rgba(56,189,248,0.08); }
.match-ok { border-color: rgba(16,185,129,0.5)!important; box-shadow: 0 0 8px rgba(16,185,129,0.2); }
.match-fail { border-color: rgba(239,68,68,0.5)!important; box-shadow: 0 0 8px rgba(239,68,68,0.15); }

/* MISC TABS */
.item-compacto, .item-reporte {
    background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; 
    padding: 16px; margin-bottom: 12px; display: flex; justify-content: space-between; 
    align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow-sm);
}

.btn-secundario { background: transparent; color: var(--primary); border: 1px solid var(--primary); padding: 10px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 13px; text-decoration: none; transition: 0.2s; }
.btn-secundario:hover { background: rgba(59,130,246,0.1); }
.btn-logout { font-family: 'Inter', sans-serif; background: transparent; color: var(--text-3); text-decoration: none; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border-2); transition: 0.2s;}
.btn-logout:hover { color: var(--danger); background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }

/* Steps */
.step-container { background: rgba(0,0,0,0.2); border: 1px solid var(--border-2); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.step-title { color: var(--text); font-size: 16px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.step-number { background: var(--primary); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; }

/* WALK-MODAL (Recargar Saldo) */
.walk-modal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(15,23,42,0.92); 
    backdrop-filter: blur(8px); 
    z-index: 99999; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
    overflow: hidden; 
    overscroll-behavior: contain; 
}
.walk-modal.show { display: flex; }
.swal2-container { z-index: 100005 !important; }
.walk-card { 
    background: var(--surface); 
    border: 1px solid var(--border-2); 
    border-radius: 18px; 
    padding: 16px 18px 18px; 
    width: 100%; 
    max-width: 440px; 
    max-height: calc(100dvh - 36px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6); 
    position: relative; 
    animation: popIn 0.3s ease; 
    margin: auto;
    box-sizing: border-box;
}
.walk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.walk-title { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.walk-close { background: rgba(255,255,255,0.08); border: none; color: var(--text-3); font-size: 20px; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.walk-close:hover { background: rgba(239,68,68,0.2); color: var(--danger); }

/* Bloqueo de scroll de fondo y soporte táctil móvil */
body.modal-open {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
}
body.modal-open .carrito-flotante {
    display: none !important;
}
.walk-modal, .modal {
    touch-action: auto !important;
}
.walk-card, .modal-content {
    touch-action: pan-y !important;
}
#buscarClienteRev, #wkMonto, #wkNombrePaga, #repComentario {
    scroll-margin-top: 16px;
    scroll-margin-bottom: 24px;
}
.walk-card::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.walk-card::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}
.walk-card::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
}
.walk-card::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.35);
}

.pn-stepper { display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:12px; padding: 0 10px;}
.pn-dot { width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,0.1); color:var(--text-3); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:11px; border:2px solid transparent; transition:0.3s; }
.pn-dot.active { background:transparent; border-color:var(--primary); color:var(--primary); }
.pn-dot.done { background:var(--success); color:#fff; }
.pn-line { flex:1; height:2px; background:rgba(255,255,255,0.1); border-radius:2px; transition:0.3s; }
.pn-line.done { background:var(--success); }

.walk-step { display:none; animation:fadeIn 0.25s; }
.walk-step.on { display:block; }
.ws-label { font-size:11px; font-weight:800; color:var(--primary); text-transform:uppercase; margin-bottom:3px; letter-spacing:0.8px; }
.ws-h { font-size:16px; font-weight:800; color:var(--text); margin:0 0 6px; line-height:1.25; }
.ws-p { font-size:12.5px; color:var(--text-2); margin:0 0 12px; line-height:1.4; font-family:'Inter', sans-serif; }

.walk-input { width:100%; background:transparent; border:none; border-bottom:2px solid rgba(255,255,255,0.15); color:var(--text); font-size:26px; font-weight:900; padding:6px 0; outline:none; transition:0.25s; letter-spacing:-0.5px; margin-bottom:12px; text-align:center; }
.walk-input:focus { border-color:var(--primary); }

.walk-nav { display:flex; gap:8px; margin-top:14px; }
.wn-prev { flex:1; padding:10px 14px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:10px; color:var(--text); font-size:13px; font-weight:700; cursor:pointer; transition:0.2s; font-family:'Inter', sans-serif;}
.wn-prev:hover { background:rgba(255,255,255,0.1); }
.wn-next { flex:2; padding:10px 14px; background:linear-gradient(135deg,var(--primary),var(--primary-2)); border:none; border-radius:10px; color:#fff; font-size:13.5px; font-weight:800; cursor:pointer; transition:0.2s; box-shadow:0 4px 12px rgba(37,99,235,0.3); font-family:'Outfit', sans-serif;}
.wn-next:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(37,99,235,0.4); }

.copy-box { background:rgba(0,0,0,0.3); border:1px solid var(--border-2); border-radius:10px; padding:12px 14px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; transition:0.2s; margin-bottom:10px; }
.copy-box:hover { border-color:var(--primary); background:rgba(37,99,235,0.1); }
.cb-l { font-size:10.5px; color:var(--text-3); text-transform:uppercase; letter-spacing:0.5px; font-weight:800; margin-bottom:3px; font-family:'Inter', sans-serif; }
.cb-v { font-size:15px; font-weight:800; color:var(--text); word-break:break-all; }
.cb-i { font-size:20px; opacity:0.7; }

/* ── HELPER STYLES COMPACTOS PARA MODALES DE RECARGA Y ALERTAS ── */
.wk-chips-row { display: flex; gap: 6px; margin-bottom: 12px; justify-content: center; flex-wrap: wrap; }
.wk-chip { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #cbd5e1; border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: 0.15s; }
.wk-chip:hover, .wk-chip.active { background: rgba(59,130,246,0.22); border-color: #3b82f6; color: #93c5fd; transform: translateY(-1px); }

.wk-unified-card { background: rgba(15,23,42,0.65); border: 1px solid rgba(59,130,246,0.3); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.wk-amount-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px dashed rgba(148,163,184,0.15); margin-bottom: 8px; }
.wk-amount-label { font-size: 10.5px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.wk-amount-value { font-size: 19px; font-weight: 900; color: #60a5fa; letter-spacing: 0.5px; }
.wk-btn-edit-monto { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: #cbd5e1; border-radius: 6px; padding: 4px 9px; font-size: 11px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: 0.15s; }
.wk-btn-edit-monto:hover { background: rgba(255,255,255,0.12); color: #fff; }

.wk-accounts-list { display: flex; flex-direction: column; gap: 8px; }
.wk-account-item { display: flex; flex-direction: column; gap: 4px; }
.wk-account-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #cbd5e1; }
.wk-plat-badge { font-weight: 800; color: #38bdf8; text-transform: uppercase; font-size: 11px; }
.wk-titular-txt { font-size: 11px; color: #94a3b8; }
.wk-copy-pill { background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.22); border-radius: 8px; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: 0.2s; }
.wk-copy-pill:hover { background: rgba(59,130,246,0.12); border-color: rgba(96,165,250,0.5); }
.wk-acc-num { font-size: 18px; font-weight: 900; color: #f1f5f9; letter-spacing: 1px; }
.wk-copy-tag { font-size: 11px; font-weight: 700; color: #60a5fa; background: rgba(59,130,246,0.15); padding: 2px 7px; border-radius: 5px; }

.wk-compact-notice { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); border-radius: 8px; padding: 7px 10px; font-size: 11px; color: #fbbf24; margin-bottom: 10px; line-height: 1.35; }

.wk-field-group { margin-bottom: 10px; }
.wk-field-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.wk-field-label { font-size: 11px; font-weight: 800; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.5px; }
.wk-btn-change { font-size: 10.5px; color: #60a5fa; cursor: pointer; font-weight: 700; background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); padding: 2px 7px; border-radius: 5px; }
.wk-input-field { width: 100%; padding: 8px 12px; background: rgba(0,0,0,0.3); border: 1px solid rgba(148,163,184,0.2); border-radius: 8px; color: #e2e8f0; font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s; box-sizing: border-box; }
.wk-hint-txt { font-size: 10.5px; color: #94a3b8; margin-top: 4px; line-height: 1.35; }

.wk-btn-confirm { width: 100%; padding: 11px 14px; background: linear-gradient(135deg,#10b981,#059669); border: none; border-radius: 10px; color: #fff; font-weight: 800; cursor: pointer; font-size: 14px; box-shadow: 0 4px 12px rgba(16,185,129,.3); transition: transform 0.15s; }
.wk-btn-confirm:hover { transform: translateY(-1px); }

.wk-footer-links { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 4px; font-size: 11.5px; }
.wk-link-back { background: none; border: none; color: #94a3b8; cursor: pointer; padding: 0; font-size: 11.5px; font-weight: 600; text-decoration: underline; }
.wk-link-guide { color: #60a5fa; cursor: pointer; font-size: 11.5px; font-weight: 600; text-decoration: underline; }

.swal2-popup.swal-dark { padding: 18px 20px !important; border-radius: 18px !important; max-width: 400px !important; }
.swal2-popup.swal-dark .swal2-title { font-size: 17px !important; margin: 8px 0 !important; }
.swal2-popup.swal-dark .swal2-html-container { font-size: 12.5px !important; margin: 6px 0 14px !important; line-height: 1.4 !important; }
.swal2-popup.swal-dark .swal2-actions { margin-top: 10px !important; }
.swal2-popup.swal-dark .swal2-actions button { padding: 8px 16px !important; font-size: 12.5px !important; border-radius: 8px !important; }

/* ── MODAL CARRITO STEPPER & STEPS ── */
.mc-stepper { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 24px; padding: 0 10px; }
.mc-step-wrap { display: flex; flex-direction: column; align-items: center; width: 60px; text-align: center; }
.mc-dot { width: 32px; height: 32px; border-radius: 50%; background: #334155; color: var(--text-3); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; border: 2px solid transparent; transition: 0.3s; }
.mc-dot.active { background: #1e293b; border-color: var(--primary); color: var(--primary); }
.mc-dot.done { background: var(--success); color: #fff; border-color: var(--success); }
.mc-step-lbl { font-size: 11px; color: var(--text-3); font-weight: 700; margin-top: 6px; }
.mc-line { flex: 1; height: 3px; background: #334155; transition: 0.3s; margin-top: 15px; }
.mc-line.done { background: var(--success); }

.mc-step { display: none; animation: fadeIn 0.3s; }
.mc-step.on { display: block; }

/* ── MODAL NAVIGATION BUTTONS ── */
.mc-nav { display: flex; gap: 12px; margin-top: 20px; margin-bottom: 12px; }
.mc-prev { flex: 1; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: var(--text); font-weight: 700; cursor: pointer; transition: 0.2s; font-family: inherit; }
.mc-prev:hover { background: rgba(255,255,255,0.1); }
.mc-next { flex: 2; padding: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border: none; border-radius: 12px; color: #fff; font-weight: 800; cursor: pointer; transition: 0.2s; box-shadow: 0 6px 15px rgba(37,99,235,0.3); font-family: inherit; }
.mc-next:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,0.4); }
.mc-next.mc-pay { background: linear-gradient(135deg, var(--success), var(--success-2)); box-shadow: 0 6px 15px rgba(16,185,129,0.3); }
.mc-next.mc-pay:hover { box-shadow: 0 8px 20px rgba(16,185,129,0.4); }

.btn-cancelar { display: block; width: 100%; padding: 12px; background: transparent; border: 1px solid rgba(239,68,68,0.4); border-radius: 12px; color: #ef4444; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; transition: 0.2s; cursor: pointer; }
.btn-cancelar:hover { background: rgba(239,68,68,0.08); }

/* ════════════════════════════════════════════════════════════
   📱 MISSING COMPONENT STYLES
   ════════════════════════════════════════════════════════════ */
.select-form {
    width: 100%; padding: 12px 14px; background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-2); border-radius: 10px; color: var(--text);
    font-size: 14px; outline: none; min-height: 44px; font-family: inherit;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.select-form:focus { border-color: var(--primary); }

.btn-enviar {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff; font-weight: 800; font-size: 14px; cursor: pointer;
    min-height: 44px; margin-top: 10px; font-family: inherit;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3); transition: 0.2s;
}
.btn-enviar:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,0.4); }

.btn-renovar {
    background: rgba(16,185,129,0.15); color: #10b981;
    border: 1px solid rgba(16,185,129,0.4); border-radius: 8px;
    padding: 10px 14px; font-weight: 700; font-size: 13px; cursor: pointer;
    transition: 0.2s; font-family: inherit; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.btn-renovar:hover { background: rgba(16,185,129,0.25); }

.btn-icon-reporte {
    background: rgba(239,68,68,0.15); color: #ef4444;
    border: 1px solid rgba(239,68,68,0.4); border-radius: 8px;
    padding: 10px 14px; font-weight: 700; font-size: 13px; cursor: pointer;
    transition: 0.2s; font-family: inherit; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.btn-icon-reporte:hover { background: rgba(239,68,68,0.25); }

.btn-icon-link {
    background: rgba(59,130,246,0.15); color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.4); border-radius: 8px;
    padding: 10px 14px; font-weight: 700; font-size: 13px; cursor: pointer;
    transition: 0.2s; font-family: inherit; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.btn-icon-link:hover { background: rgba(59,130,246,0.25); color: #93c5fd; border-color: rgba(59,130,246,0.6); }

.item-compacto .btn-icon-link {
    padding: 6px 12px; font-size: 11px; font-weight: 700; border-radius: 6px; min-height: 32px;
}

.badge-estado {
    padding: 4px 10px; border-radius: 6px; font-size: 11px;
    font-weight: 800; text-transform: uppercase; display: inline-block;
}
.estado-resuelto { background: rgba(16,185,129,0.2); color: #34d399; }
.estado-pendiente { background: rgba(245,158,11,0.2); color: #fbbf24; }
.estado-vencido { background: rgba(239,68,68,0.2); color: #f87171; }

.buscador-input {
    width: 100%; padding: 12px 16px; background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-2); border-radius: 12px; color: var(--text);
    font-size: 14px; outline: none; margin-bottom: 12px; font-family: inherit;
    transition: border-color 0.2s;
}
.buscador-input:focus { border-color: var(--primary); }

/* ════════════════════════════════════════════════════════════
   📱 TELÉFONOS (max-width: 480px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .tab-content { padding: 0 10px !important; }
    .rev-invite-strip, .name-alert-strip { padding: 0 10px !important; margin: 6px auto !important; }
    .tab-content .scroll-wrap-outer { padding: 0 !important; }
    /* Header: compactar para no comer 30% de pantalla */
    .topbar-inner { padding: 10px 12px; gap: 6px; }
    .brand { font-size: 16px; }
    .topbar-user { font-size: 12px; order: 2; width: auto; margin-left: auto; }
    .search-wrap { order: 3; flex: 1 1 100%; margin-top: 4px; }
    .search-input { padding: 10px 14px 10px 36px; font-size: 13px; }

    /* Grid: 1 columna en teléfono — las cards necesitan espacio */
    .grid { grid-template-columns: 1fr !important; gap: 14px; }

    /* Cards */
    .card { padding: 14px; }
    .card-desc { height: auto; max-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .badge-combo { font-size: 10px; padding: 3px 8px; }

    /* Auth / Registro: scroll cuando abre teclado */
    .auth-wrapper { height: auto !important; min-height: 100vh; overflow-y: auto; padding: 16px; align-items: flex-start; }
    .auth-box, .login-box, .reg-box { padding: 24px 18px; border-radius: 18px; margin: 20px auto; width: 100%; }
    .auth-box h1, .reg-box h1, .login-box h1 { font-size: 22px; }
    .reg-box .num-display { font-size: 16px; }

    /* Hero Banner: súper compacto en celular */
    .hero { margin: 6px auto !important; padding: 0 10px !important; }
    .hero-card { padding: 10px 14px !important; border-radius: 14px !important; min-height: auto !important; }
    .hero-title { font-size: 14px !important; margin: 0 0 2px 0 !important; line-height: 1.25 !important; }
    .hero-sub { font-size: 11px !important; line-height: 1.3 !important; }
    .hero-emoji { font-size: 32px !important; }

    /* Wallet: Estilo Apple Wallet compacto */
    .wallet-strip { margin: 6px auto !important; padding: 0 10px !important; }
    .wallet-card-cat { padding: 10px 14px !important; gap: 8px !important; flex-wrap: nowrap !important; align-items: center !important; }
    .wallet-left { gap: 10px !important; flex: 1; }
    .wallet-icon { width: 38px !important; height: 38px !important; font-size: 18px !important; border-radius: 10px !important; }
    .wallet-label { font-size: 9px !important; letter-spacing: 0.5px !important; }
    .wallet-amount { font-size: 19px !important; margin-top: 1px !important; }
    .wallet-hint { font-size: 10px !important; margin-top: 2px !important; }
    .wallet-btn { width: auto !important; text-align: center; padding: 8px 14px !important; font-size: 12px !important; border-radius: 10px !important; white-space: nowrap !important; }

    /* Stats Row: Fila horizontal swipeable fluida tipo badge */
    .stats-row { 
        margin: 6px auto !important; 
        padding: 2px 10px !important; 
        display: flex !important; 
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 6px !important; 
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .stats-row::-webkit-scrollbar { display: none !important; }
    .stat-pill { 
        padding: 6px 12px !important; 
        border-radius: 12px !important; 
        gap: 8px !important; 
        min-width: max-content !important; 
        flex: 0 0 auto !important;
        box-shadow: none !important;
    }
    .stat-pill .ic { font-size: 16px !important; }
    .stat-pill .vl { font-size: 13px !important; }
    .stat-pill .lb { font-size: 9.5px !important; margin-top: 1px !important; }

    /* Tabs & Categories: Scroll táctil suave sin flechas invasivas */
    .scroll-wrap-outer { padding: 0 10px !important; gap: 0 !important; margin: 4px auto !important; }
    .scroll-arrow-btn { display: none !important; }

    .tabs-container { padding: 0 4px; scrollbar-width: none !important; -ms-overflow-style: none !important; }
    .tabs-container::-webkit-scrollbar { display: none !important; }
    .tab-btn { padding: 10px 12px; font-size: 13px; white-space: nowrap; }

    .cat-tabs { margin: 0; padding: 2px 4px; gap: 6px; scrollbar-width: none !important; -ms-overflow-style: none !important; }
    .cat-tabs::-webkit-scrollbar { display: none !important; }
    .cat-pill { padding: 6px 12px; font-size: 12px; border-radius: 14px; gap: 4px; }
    .cat-pill .cat-cnt { font-size: 10px; }

    /* Section head & sort select inline */
    .section-head { margin: 16px 0 12px; gap: 8px; }
    .section-title { font-size: 17px; }
    .section-sub { font-size: 11px; }
    .sort-select, #sortCatalogo { height: 34px !important; font-size: 11px !important; padding: 5px 8px !important; border-radius: 8px !important; }

    /* Modales en móvil: Arquitectura Bottom Sheet / Drawer autoajustable con teclado virtual */
    .modal, .walk-modal { 
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        min-height: 100dvh !important;
        padding: 0 !important; 
        padding-bottom: var(--kb-height, 0px) !important;
        align-items: flex-end !important; 
        justify-content: center !important;
        overflow: hidden !important;
        overscroll-behavior: contain !important;
        z-index: 99999 !important;
        box-sizing: border-box !important;
        transition: padding-bottom 0.15s ease-out;
    }
    .modal.show, .walk-modal.show, .modal[style*="display: flex"] {
        display: flex !important;
    }
    .modal-content, .walk-card { 
        padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 16px)) 16px !important; 
        border-radius: 24px 24px 0 0 !important; 
        border-bottom: none !important;
        border-left: 1px solid var(--border-2) !important;
        border-right: 1px solid var(--border-2) !important;
        border-top: 1px solid var(--border-2) !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 92dvh !important;
        max-height: calc(var(--vv-height, 100dvh) - 16px) !important; 
        margin: 0 !important; 
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        animation: slideUpMobile 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .modal h2, .modal h3 { font-size: 18px; }

    /* Evitar que iOS Safari haga zoom automático al tocar inputs */
    input, select, textarea, .input-form, .select-form {
        font-size: 16px !important;
    }

    /* Stepper carrito */
    .mc-stepper { padding: 0; gap: 4px; }
    .mc-step-wrap { width: 48px; }
    .mc-step-lbl { font-size: 10px; }

    /* Steps del checkout */
    .step-container { padding: 14px; }
    .step-title { font-size: 14px; gap: 8px; }
    .step-number { width: 24px; height: 24px; font-size: 12px; }

    /* Copy-txt overflow fix */
    .copy-txt { max-width: 100%; word-break: break-all; white-space: normal; font-size: 12px; }

    /* Credential cards + action buttons */
    .botones-cuenta { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; }
    .btn-renovar, .btn-icon-reporte, .btn-icon-link { flex: 1; min-width: 0; font-size: 12px; padding: 10px 8px; }

    /* Item compacto/reporte: stack vertical */
    .item-compacto, .item-reporte { flex-direction: column; align-items: stretch; gap: 10px; }
    .item-compacto > div, .item-reporte > div { min-width: 0 !important; width: 100%; }

    /* Walk modal text */
    .ws-h { font-size: 18px; }
    .walk-input { font-size: 28px; }

    /* Carrito flotante en móvil: elevar sobre barra de Safari / Chrome */
    .carrito-flotante {
        bottom: calc(26px + env(safe-area-inset-bottom, 16px)) !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
        box-shadow: 0 10px 25px rgba(16,185,129,0.5) !important;
    }

    /* Footer */
    footer { padding: 20px 12px 130px !important; }
}

/* ════════════════════════════════════════════════════════════
   📱 TELÉFONOS COMPACTOS (max-width: 360px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    /* OTP inputs: reducir para caber en 320px */
    .otp-box { padding: 20px 12px !important; width: 95% !important; }
    .otp-inputs { gap: 6px !important; }
    .otp-inputs input { width: 44px !important; height: 50px !important; font-size: 22px !important; }

    /* Botones de navegación del checkout */
    .mc-nav { flex-direction: column; gap: 8px; }
    .mc-prev, .mc-next { flex: none; width: 100%; text-align: center; }

    /* Brand aún más compacto */
    .brand { font-size: 14px; }

    /* Hero */
    .hero-title { font-size: 20px; }

    /* Walk nav */
    .walk-nav { flex-direction: column; gap: 8px; }
    .wn-prev, .wn-next { flex: none; width: 100%; }
}


/* ════════════════════════════════════════════════════════════
   🔥 BANNER PROMO DESTACADO (Configurable & Anti-Desborde)
   ════════════════════════════════════════════════════════════ */
.promo-banner-container {
    margin: 14px 0 24px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.promo-banner-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
    border: 2px solid rgba(245, 158, 11, 0.45);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 22px rgba(245, 158, 11, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promo-banner-card:hover {
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55), 0 0 30px rgba(245, 158, 11, 0.28);
}
.promo-flyer-col {
    position: relative;
    width: 44%;
    min-width: 260px;
    max-width: 460px;
    background: #020617;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
}
.promo-flyer-img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
    box-sizing: border-box;
    transition: transform 0.4s ease;
}
.promo-banner-card:hover .promo-flyer-img {
    transform: scale(1.02);
}
.promo-badge-float {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #e11d48, #f59e0b);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    z-index: 2;
    white-space: nowrap;
}
.promo-info-col {
    flex: 1;
    min-width: 0;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}
.promo-badge-tag {
    display: inline-block;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.promo-heading {
    color: #f8fafc;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 10px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}
.promo-free-highlight {
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}
.promo-subheading {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}
.promo-features {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}
.promo-feat-item {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-word;
}
.promo-feat-free {
    color: #38bdf8;
    font-weight: 700;
}
.promo-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.promo-price-main {
    font-size: 30px;
    font-weight: 900;
    color: #10b981;
    letter-spacing: -0.5px;
}
.promo-currency {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}
.promo-price-old {
    font-size: 15px;
    color: #64748b;
    text-decoration: line-through;
    font-weight: 700;
}
.promo-btn-cta {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.promo-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.55);
}
.promo-btn-cta:active {
    transform: scale(0.98);
}
.promo-guarantee-note {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

@keyframes promoPulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    50% { box-shadow: 0 0 0 18px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.promo-pulse-effect {
    animation: promoPulseGlow 1.8s ease-out 3;
}

@media (max-width: 768px) {
    .promo-banner-card {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    .promo-flyer-col {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        max-height: 260px;
    }
    .promo-flyer-img {
        width: 100%;
        max-height: 260px;
        object-fit: cover;
    }
    .promo-info-col {
        width: 100%;
        min-width: 0;
        padding: 18px 14px;
    }
    .promo-heading {
        font-size: 19px;
    }
    .promo-price-main {
        font-size: 25px;
    }
}

/* ============================================================ */
/* ⏳ TEMPORIZADOR DE VENCIMIENTO & CONTADOR DE CUPOS EN VIVO  */
/* ============================================================ */
.promo-urgency-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 10px 0 14px 0;
    width: 100%;
}

.promo-countdown-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(244, 63, 94, 0.4);
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    flex-wrap: wrap;
    box-sizing: border-box;
    max-width: 100%;
}
.promo-countdown-label {
    font-size: 11px;
    font-weight: 800;
    color: #fb7185;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.promo-countdown-clock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pcd-box {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 2px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
}
.pcd-val {
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    font-family: monospace;
    line-height: 1.1;
}
.pcd-tag {
    font-size: 8px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 1px;
}
.pcd-colon {
    font-weight: 900;
    color: #fb7185;
    font-size: 13px;
    animation: blinkColon 1s infinite;
}
@keyframes blinkColon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Indicador de Combos Restantes (Cupos) */
.promo-stock-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    box-sizing: border-box;
    max-width: 100%;
}
.promo-stock-normal {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}
.promo-stock-urgent {
    background: rgba(239, 68, 68, 0.25);
    border: 1.5px solid #ef4444;
    color: #fca5a5;
    animation: pulseUrgent 1.4s infinite ease-in-out;
}
.promo-stock-agotado {
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid #64748b;
    color: #94a3b8;
}
@keyframes pulseUrgent {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px 4px rgba(239, 68, 68, 0.8);
        transform: scale(1.02);
    }
}
.promo-stock-bar {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}
.promo-stock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    border-radius: 10px;
    transition: width 0.5s ease;
}

@media (max-width: 480px) {
    .promo-banner-card {
        border-radius: 16px;
    }
    .promo-info-col {
        padding: 16px 12px;
    }
    .promo-heading {
        font-size: 18px;
    }
    .promo-price-main {
        font-size: 24px;
    }
    .promo-countdown-wrap {
        width: 100%;
        justify-content: space-between;
        padding: 6px 10px;
    }
    .promo-stock-wrap {
        width: 100%;
        justify-content: space-between;
        padding: 6px 10px;
    }
    .promo-btn-cta {
        padding: 13px 18px;
        font-size: 14px;
    }
}
/* ════════════════════════════════════════════════════════════════════
   CLEAN UI v2 (2026-10-07) — jerarquía limpia: 1 primario + 1 éxito.
   Tokens + componentes: user-chip, trust-line, wallet unificada,
   tabs sin emojis, sugerencia IA en una línea, menú de perfil.
   ════════════════════════════════════════════════════════════════════ */
:root {
    --ui-primary: #3b82f6;
    --ui-primary-strong: #2563eb;
    --ui-success: #10b981;
    --ui-warn: #f59e0b;
    --ui-surface: rgba(30, 41, 59, 0.55);
    --ui-surface-2: rgba(15, 23, 42, 0.6);
    --ui-line: rgba(148, 163, 184, 0.14);
    --ui-text: #f1f5f9;
    --ui-text-2: #94a3b8;
    --ui-text-3: #64748b;
    --ui-radius: 14px;
}

/* ── Chip de usuario (reemplaza saludo + badge + guías) ── */
.user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ui-surface); border: 1px solid var(--ui-line);
    color: var(--ui-text); border-radius: 999px; padding: 6px 10px 6px 14px;
    font: 600 13px/1 'Inter', sans-serif; cursor: pointer; margin-left: auto;
    transition: border-color .2s, background .2s; max-width: 60vw;
}
.user-chip:hover { border-color: rgba(59,130,246,.45); }
.user-chip-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.user-chip-role {
    font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
    color: #fcd34d; background: rgba(252, 211, 77, .1); border: 1px solid rgba(252,211,77,.25);
    padding: 3px 7px; border-radius: 999px;
}
.user-chip-caret { color: var(--ui-text-3); flex-shrink: 0; }

/* ── Línea de confianza (antes: banner morado + contador naranja) ── */
.trust-line {
    max-width: 1100px; margin: 10px auto 0; padding: 0 20px;
    font: 500 12px/1.4 'Inter', sans-serif; color: var(--ui-text-3);
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Billetera unificada ── */
.wallet-strip { margin: 10px auto 6px !important; }
.wallet-card-cat {
    background: linear-gradient(135deg, rgba(30,41,59,.75), rgba(15,23,42,.75)) !important;
    border: 1px solid var(--ui-line) !important; border-radius: 16px !important;
    padding: 16px 20px !important; gap: 14px !important;
    flex-wrap: nowrap !important; align-items: center !important; box-shadow: none !important;
}
.wallet-card-cat .wallet-left { display: flex !important; align-items: center; gap: 14px !important; cursor: pointer; min-width: 0; flex: 1; }
.wallet-card-cat .wallet-icon {
    width: 46px !important; height: 46px !important; border-radius: 13px !important; font-size: 22px !important;
    background: rgba(16,185,129,.14) !important; border: 1px solid rgba(16,185,129,.3) !important;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wallet-info { min-width: 0; }
.wallet-card-cat .wallet-label {
    font: 700 11px/1 'Inter', sans-serif !important; color: var(--ui-text-2) !important;
    text-transform: uppercase; letter-spacing: .6px !important;
}
.wallet-card-cat .wallet-amount {
    font-size: 28px !important; font-weight: 900 !important; color: var(--ui-success) !important;
    margin-top: 5px !important; letter-spacing: -.5px; line-height: 1.05 !important;
}
.wm-link { cursor: pointer; }
.wm-guia { color: #34d399; }
.wm-link:hover { filter: brightness(1.2); }
.wm-warn { color: var(--ui-warn) !important; font-weight: 700; }
.wm-dot { color: var(--ui-text-3); }
.wallet-card-cat .wallet-btn {
    background: var(--ui-success) !important; color: #fff !important;
    padding: 15px 26px !important; border-radius: 14px !important;
    font: 800 15px/1 'Inter', sans-serif !important; letter-spacing: .2px !important;
    box-shadow: 0 8px 20px rgba(16,185,129,.28) !important; white-space: nowrap; width: auto !important; flex-shrink: 0;
}
.wallet-card-cat .wallet-btn:hover { filter: brightness(1.08); transform: translateY(-1px) !important; }
/* ── Tabs principales sin emojis ── */
.tab-btn { font-family: 'Inter', sans-serif; font-weight: 600; }
.tab-count {
    display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px;
    border-radius: 999px; background: rgba(148,163,184,.15); color: var(--ui-text-2);
    font-size: 11px; font-weight: 700; text-align: center; line-height: 1.5;
}
.tab-btn.active .tab-count { background: rgba(59,130,246,.2); color: #93c5fd; }

/* ── Acciones de billetera: botón + links pequeños debajo ── */
.wallet-actions { display: flex; flex-direction: column; align-items: stretch; gap: 7px; flex-shrink: 0; }
.wallet-sublinks {
    display: flex; justify-content: center; align-items: center; gap: 5px; flex-wrap: wrap;
    font: 600 11px/1.2 'Inter', sans-serif; color: var(--ui-text-2); white-space: nowrap;
}

/* ── Punto rojo en "Mis pantallas" (hay pantallas por renovar) ── */
.tab-btn { position: relative; }
.tab-dot {
    position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%;
    background: #ef4444; box-shadow: 0 0 0 2px #0f172a;
}

/* ── Etiqueta "Recomendado para ti" en la tarjeta ── */
.badge-rec { background: rgba(59,130,246,.9) !important; color: #fff !important; }

/* ── Hoja de sugerencia al agregar al carrito ── */
.sug-sheet {
    position: fixed; left: 50%; bottom: 84px; z-index: 99995;
    width: min(440px, 94vw); transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
    background: #0f172a; border: 1px solid var(--ui-line); border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.5); padding: 10px 12px 12px;
    transition: opacity .22s ease, transform .22s ease;
}
.sug-sheet.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sug-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--ui-line); margin-bottom: 10px; }
.sug-ok {
    width: 20px; height: 20px; border-radius: 50%; background: rgba(16,185,129,.18); color: #34d399;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.sug-added { flex: 1; min-width: 0; font: 500 13px/1.3 'Inter', sans-serif; color: var(--ui-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-added b { color: var(--ui-text); font-weight: 700; }
.sug-close {
    background: transparent; border: none; color: var(--ui-text-3); font-size: 16px; cursor: pointer;
    padding: 6px 10px; margin-left: auto; min-width: 38px; min-height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    touch-action: manipulation; border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.sug-close:hover, .sug-close:active { color: #f8fafc; background: rgba(255, 255, 255, 0.12); }
.sug-body { display: flex; align-items: center; gap: 10px; }
.sug-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.06); flex-shrink: 0; }
.sug-logo-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.sug-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sug-kicker { font: 600 10px/1.2 'Inter', sans-serif; color: var(--ui-text-3); text-transform: uppercase; letter-spacing: .5px; }
.sug-name { font: 700 14px/1.3 'Inter', sans-serif; color: var(--ui-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-price { font: 700 13px/1 'Inter', sans-serif; color: var(--ui-text); white-space: nowrap; }
.sug-add {
    background: var(--ui-primary-strong, #2563eb); color: #fff; border: none; cursor: pointer;
    padding: 9px 14px; border-radius: 999px; font: 700 13px/1 'Inter', sans-serif; white-space: nowrap; flex-shrink: 0;
    transition: transform .15s, filter .15s;
}
.sug-add:hover { filter: brightness(1.1); }
.sug-add:active { transform: scale(.94); }

/* ── Menú de perfil (SweetAlert) ── */
.pm-popup { border: 1px solid var(--ui-line) !important; border-radius: 18px !important; padding: 18px 16px 12px !important; width: min(380px, 92vw) !important; }
.pm-head { text-align: left; margin-bottom: 12px; }
.pm-name { font: 700 17px/1.2 'Inter', sans-serif; color: var(--ui-text); }
.pm-role { font: 500 12px/1.4 'Inter', sans-serif; color: var(--ui-text-2); margin-top: 3px; }
.pm-level { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid; border-radius: 12px; background: rgba(255,255,255,.03); font: 600 13px/1 'Inter', sans-serif; margin-bottom: 10px; }
.pm-level-pts { color: var(--ui-text-2); font-weight: 600; }
.pm-list { display: flex; flex-direction: column; }
.pm-row {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    background: transparent; border: none; border-bottom: 1px solid var(--ui-line);
    color: var(--ui-text); padding: 13px 4px; font: 500 14px/1 'Inter', sans-serif;
    cursor: pointer; text-align: left;
}
.pm-row:last-child { border-bottom: none; color: #f87171; }
.pm-row:hover { color: #93c5fd; }
.pm-row:last-child:hover { color: #fca5a5; }

/* ── Móvil ── */
@media (max-width: 480px) {
    .user-chip { padding: 5px 8px 5px 12px; font-size: 12px; }
    .user-chip-name { max-width: 90px; }
    .trust-line { margin-top: 8px; padding: 0 14px; font-size: 11px; }
    .wallet-strip { padding: 0 12px !important; margin: 8px auto 4px !important; }
    .wallet-card-cat { padding: 12px 14px !important; }
    .wallet-card-cat { gap: 10px !important; }
    .wallet-card-cat .wallet-left { gap: 10px !important; }
    .wallet-card-cat .wallet-icon { width: 40px !important; height: 40px !important; font-size: 19px !important; }
    .wallet-card-cat .wallet-amount { font-size: 24px !important; }
    .wallet-sublinks { font-size: 10.5px; gap: 4px; }
    .wallet-card-cat .wallet-btn { padding: 13px 16px !important; font-size: 14px !important; }
    .sug-sheet { bottom: 78px; padding: 9px 10px 10px; }
    .sug-add { padding: 9px 12px; }
}
@media (max-width: 768px) { .user-chip { order: 2; } }

/* ==========================================================================
   🎬 OBSIDIAN CINEMA-POSTER + BÓVEDA PIN 4D + 100% RESPONSIVE MULTI-DEVICE
   ========================================================================== */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

/* ── Cabecera Cinema-Poster por Plataforma Oficial ── */
.card {
    background: linear-gradient(165deg, rgba(24, 33, 52, 0.96) 0%, rgba(11, 17, 32, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    padding: 16px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--brand-accent, linear-gradient(90deg, #3b82f6, #6366f1));
    opacity: 0.9;
    z-index: 3;
}

.card .card-logo {
    position: relative;
    height: 104px;
    border-radius: 14px;
    margin-bottom: 14px;
    padding: 14px;
    background: var(--brand-poster-bg, radial-gradient(circle at 50% 25%, rgba(59, 130, 246, 0.28), rgba(15, 23, 42, 0.92) 78%));
    border: 1px solid var(--brand-border, rgba(255, 255, 255, 0.09));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover .card-logo {
    border-color: var(--brand-glow-strong, rgba(59, 130, 246, 0.55));
}

.card .card-logo img {
    max-height: 66px;
    max-width: 148px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
    transition: transform 0.25s ease;
}

.card:hover .card-logo img {
    transform: scale(1.06);
}

/* Temas oficiales por marca */
.card[data-brand="netflix"] {
    --brand-accent: linear-gradient(90deg, #e50914, #ff3b30);
    --brand-poster-bg: radial-gradient(circle at 50% 20%, rgba(229, 9, 20, 0.42), rgba(15, 10, 18, 0.95) 78%);
    --brand-border: rgba(229, 9, 20, 0.32);
    --brand-glow-strong: rgba(229, 9, 20, 0.65);
}
.card[data-brand="disney"] {
    --brand-accent: linear-gradient(90deg, #0063e5, #38bdf8);
    --brand-poster-bg: radial-gradient(circle at 50% 20%, rgba(0, 99, 229, 0.45), rgba(8, 20, 44, 0.95) 78%);
    --brand-border: rgba(56, 189, 248, 0.32);
    --brand-glow-strong: rgba(56, 189, 248, 0.65);
}
.card[data-brand="max"] {
    --brand-accent: linear-gradient(90deg, #4f46e5, #818cf8);
    --brand-poster-bg: radial-gradient(circle at 50% 20%, rgba(79, 70, 229, 0.48), rgba(14, 12, 40, 0.95) 78%);
    --brand-border: rgba(129, 140, 248, 0.32);
    --brand-glow-strong: rgba(129, 140, 248, 0.65);
}
.card[data-brand="prime"] {
    --brand-accent: linear-gradient(90deg, #00a8e1, #38bdf8);
    --brand-poster-bg: radial-gradient(circle at 50% 20%, rgba(0, 168, 225, 0.42), rgba(10, 24, 42, 0.95) 78%);
    --brand-border: rgba(0, 168, 225, 0.32);
    --brand-glow-strong: rgba(0, 168, 225, 0.65);
}
.card[data-brand="crunchyroll"] {
    --brand-accent: linear-gradient(90deg, #f47521, #fb923c);
    --brand-poster-bg: radial-gradient(circle at 50% 20%, rgba(244, 117, 33, 0.42), rgba(28, 15, 10, 0.95) 78%);
    --brand-border: rgba(244, 117, 33, 0.35);
    --brand-glow-strong: rgba(244, 117, 33, 0.65);
}
.card[data-brand="spotify"] {
    --brand-accent: linear-gradient(90deg, #1db954, #34d399);
    --brand-poster-bg: radial-gradient(circle at 50% 20%, rgba(29, 185, 84, 0.40), rgba(9, 26, 18, 0.95) 78%);
    --brand-border: rgba(29, 185, 84, 0.32);
    --brand-glow-strong: rgba(29, 185, 84, 0.65);
}
.card[data-brand="youtube"] {
    --brand-accent: linear-gradient(90deg, #ff0000, #f87171);
    --brand-poster-bg: radial-gradient(circle at 50% 20%, rgba(255, 0, 0, 0.38), rgba(28, 10, 14, 0.95) 78%);
    --brand-border: rgba(248, 113, 113, 0.32);
    --brand-glow-strong: rgba(248, 113, 113, 0.65);
}
.card[data-brand="vix"], .card[data-brand="combo"] {
    --brand-accent: linear-gradient(90deg, #f59e0b, #fbbf24);
    --brand-poster-bg: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.38), rgba(28, 20, 10, 0.95) 78%);
    --brand-border: rgba(245, 158, 11, 0.38);
    --brand-glow-strong: rgba(251, 191, 36, 0.7);
}
.card[data-brand="paramount"] {
    --brand-accent: linear-gradient(90deg, #0064ff, #60a5fa);
    --brand-poster-bg: radial-gradient(circle at 50% 20%, rgba(0, 100, 255, 0.42), rgba(10, 18, 40, 0.95) 78%);
    --brand-border: rgba(96, 165, 250, 0.32);
    --brand-glow-strong: rgba(96, 165, 250, 0.65);
}
.card[data-brand="iptv"] {
    --brand-accent: linear-gradient(90deg, #8b5cf6, #ec4899);
    --brand-poster-bg: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.42), rgba(22, 12, 38, 0.95) 78%);
    --brand-border: rgba(167, 139, 250, 0.32);
    --brand-glow-strong: rgba(167, 139, 250, 0.65);
}

/* Insignia "Ya tienes 1 activa" en la tarjeta */
.owned-svc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    width: fit-content;
}
.owned-svc-badge.por-vencer {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.55);
    color: #fde68a;
}

/* ── Barra Compacta Mayorista (Quiero Vender) ── */
.guest-auth-hero {
    max-width: 1180px;
    margin: 8px auto 4px;
    padding: 0 16px;
}
.guest-auth-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    flex-wrap: nowrap;
}
.guest-auth-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.guest-auth-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.guest-auth-text h2 {
    margin: 0;
    font-size: clamp(12.5px, 1.8vw, 14.5px);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
}
.guest-auth-text p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.3;
}
.guest-auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.btn-hero-cliente {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 12.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.18s ease, filter 0.18s ease;
    white-space: nowrap;
}
.btn-hero-cliente:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.btn-hero-revendedor {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    border: none;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 12.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32);
    transition: transform 0.18s ease, filter 0.18s ease;
    white-space: nowrap;
}
.btn-hero-revendedor:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* ── Tarjeta Dorada 1-Clic Upgrade a Combo en Carrito ── */
.combo-upgrade-gold-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 14px;
    padding: 13px 14px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.18);
    animation: popToast 0.3s ease-out;
}
.combo-upgrade-gold-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.combo-upgrade-gold-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-size: 10.5px;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.combo-upgrade-gold-btn {
    width: 100%;
    margin-top: 9px;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.combo-upgrade-gold-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* ── Barra Inferior Fija Móvil (App Dock) ── */
.mobile-bottom-dock {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9990;
    background: rgba(11, 17, 32, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.55);
}
.mobile-dock-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    max-width: 520px;
    margin: 0 auto;
}
.mobile-dock-btn,
.mobile-dock-item {
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: none !important;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 2px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    position: relative;
    transition: color 0.18s ease, background 0.18s ease;
    min-height: 46px;
    touch-action: manipulation;
    box-shadow: none !important;
}
.mobile-dock-btn .dock-ico,
.mobile-dock-item .dock-icon {
    font-size: 17px;
    line-height: 1;
}
.mobile-dock-btn.active,
.mobile-dock-btn:active,
.mobile-dock-item.active,
.mobile-dock-item:active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12) !important;
}
.mobile-dock-badge,
.mobile-dock-item .dock-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 20px);
    background: #ef4444;
    color: #fff;
    font-size: 9.5px;
    font-weight: 900;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #0b1120;
}

/* ── Switch Modo Vista Cliente (para Revendedores) ── */
.btn-vista-cliente-toggle {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-vista-cliente-toggle.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #6ee7b7;
}
body.modo-vista-cliente .wallet-strip,
body.modo-vista-cliente .reseller-quota-pill,
body.modo-vista-cliente .user-chip-role {
    display: none !important;
}

/* ── Píldora Meta Mayorista (Mínimo 2 Cuentas) ── */
.reseller-quota-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
}
.reseller-quota-pill.warn {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
}

/* ── 100% RESPONSIVE BREAKPOINTS (320px a 4K) ── */
@media (min-width: 1280px) {
    .container { max-width: 1340px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
    .guest-auth-card { padding: 14px 16px; }
}

@media (max-width: 768px) {
    .mobile-bottom-dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
    body.modal-open .mobile-bottom-dock { display: none !important; }
    body { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; }
    .carrito-flotante {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
        width: calc(100% - 24px);
        max-width: 420px;
    }
    .sug-sheet {
        bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .guest-auth-hero {
        margin: 6px auto 2px;
        padding: 0 10px;
    }
    .guest-auth-card {
        flex-direction: row;
        align-items: center;
        padding: 9px 12px;
        gap: 8px;
    }
    .guest-auth-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .guest-auth-text h2 {
        font-size: 12px;
        line-height: 1.2;
    }
    .guest-auth-text p {
        font-size: 10.5px;
        margin-top: 1px;
    }
    .guest-auth-actions {
        width: auto;
        display: flex;
        flex-shrink: 0;
    }
    .btn-hero-cliente, .btn-hero-revendedor {
        justify-content: center;
        padding: 8px 11px;
        font-size: 11.5px;
        width: auto;
    }
    /* Evitar auto-zoom en iPhone (iOS Safari) en todos los campos */
    input[type="text"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

@media (max-width: 380px) {
    .grid { grid-template-columns: 1fr !important; gap: 14px !important; }
    .mobile-dock-btn { font-size: 9.5px; padding: 5px 1px; }
    .mobile-dock-btn .dock-ico { font-size: 16px; }
    .card { padding: 14px; }
    .card:not(.dp-svc-card):not(.card-combo) .card-logo { height: 92px; }
}


/* ════════════════════════════════════════════════════════════════════════════
   🎯 ALINEACIÓN DESKTOP UNIFICADA (1120px + 20px padding exacto en todos los bloques)
   + 📱 VISTA MÓVIL PARTIDA EN 2 COLUMNAS (2x2 por defecto + interruptor 1x1)
   ════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    .topbar-inner,
    .hero,
    .wallet-strip,
    .stats-row,
    .scroll-wrap-outer,
    .tab-content,
    .guest-auth-hero,
    .name-alert-strip,
    .rev-invite-strip,
    .dp-aligned-section {
        max-width: 1120px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    .tab-content .scroll-wrap-outer {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.mobile-view-switcher {
    display: none;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    padding: 2px;
    gap: 2px;
}
.mv-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}
.mv-btn.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.card-top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}
.card-badge-col-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    min-width: 0;
}
.card-badge-col-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    margin-left: auto;
    min-width: 0;
}
.card-top-badges .badge-combo {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 641px) and (max-width: 768px) {
    .grid:not(.grid-cuentas) {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 14px !important;
    }
    .card-top-badges .badge-combo {
        font-size: 9px !important;
        padding: 3px 7px !important;
        letter-spacing: 0.2px !important;
    }
}

@media (max-width: 640px) {
    .mobile-view-switcher {
        display: inline-flex;
    }
    .grid:not(.grid-cuentas) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    body.mobile-grid-1col .grid:not(.grid-cuentas) {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    body:not(.mobile-grid-1col) .card:not(.card-cuenta) {
        padding: 10px 9px !important;
        border-radius: 14px !important;
    }
    body:not(.mobile-grid-1col) .card:not(.dp-svc-card):not(.card-combo) .card-logo {
        height: 74px !important;
        margin-bottom: 7px !important;
        border-radius: 11px !important;
    }
    body:not(.mobile-grid-1col) .card:not(.dp-svc-card):not(.card-combo) .card-logo img {
        max-height: 44px !important;
        max-width: 82% !important;
    }
    body:not(.mobile-grid-1col) .card-title {
        font-size: 13px !important;
        line-height: 1.2 !important;
        margin-bottom: 3px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 31px;
    }
    body:not(.mobile-grid-1col) .card-desc {
        font-size: 10px !important;
        line-height: 1.25 !important;
        height: auto !important;
        max-height: 26px !important;
        margin-bottom: 5px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    body:not(.mobile-grid-1col) .card-price {
        font-size: 17px !important;
    }
    body:not(.mobile-grid-1col) .card-price-old {
        font-size: 10.5px !important;
    }
    body:not(.mobile-grid-1col) .card-prices {
        gap: 4px !important;
        margin-bottom: 5px !important;
        flex-wrap: wrap;
    }
    body:not(.mobile-grid-1col) .card-meta {
        font-size: 9.5px !important;
        margin-bottom: 6px !important;
        line-height: 1.2 !important;
    }
    body:not(.mobile-grid-1col) .btn-comprar {
        padding: 8px 6px !important;
        font-size: 11.5px !important;
        border-radius: 9px !important;
    }
    body:not(.mobile-grid-1col) .badge-combo {
        font-size: 7.2px !important;
        padding: 2px 4.5px !important;
        letter-spacing: 0px !important;
        border-radius: 5px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }
    body:not(.mobile-grid-1col) .card-top-badges {
        top: 6px !important;
        left: 6px !important;
        right: 6px !important;
        gap: 4px !important;
    }
    body:not(.mobile-grid-1col) .card-badge-col-left + .card-badge-col-right,
    body:not(.mobile-grid-1col) .card-top-badges:has(.card-badge-col-left) .card-badge-col-left {
        max-width: calc(50% - 2px);
    }
    body:not(.mobile-grid-1col) .card-top-badges .badge-combo {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body:not(.mobile-grid-1col) .month-pills-row {
        gap: 3px !important;
        margin: 4px 0 6px 0 !important;
    }
    body:not(.mobile-grid-1col) .mp-pill {
        padding: 4px 2px !important;
        font-size: 9.5px !important;
        border-radius: 6px !important;
    }
    body:not(.mobile-grid-1col) .mp-pill .mp-save {
        font-size: 8px !important;
        padding: 0 3px !important;
    }
    body:not(.mobile-grid-1col) .btn-cotizar-rev {
        font-size: 9.5px !important;
        padding: 5px 4px !important;
    }
    body:not(.mobile-grid-1col) .card-specs-strip,
    body:not(.mobile-grid-1col) .mp-card-variants-box {
        gap: 3px !important;
        margin-bottom: 5px !important;
    }
    body:not(.mobile-grid-1col) .card-spec-chip,
    body:not(.mobile-grid-1col) .mp-card-variants-box button {
        padding: 3.5px 2px !important;
        font-size: 8.5px !important;
        border-radius: 6px !important;
        line-height: 1.15 !important;
    }
    body:not(.mobile-grid-1col) .card-action-row {
        gap: 4px !important;
    }
    body:not(.mobile-grid-1col) .btn-demo-mp-inline {
        padding: 0 6px !important;
        font-size: 9.5px !important;
        border-radius: 8px !important;
    }
}
.card-footer-align .btn-comprar {
    margin-top: 0 !important;
}
