/* ===================================================
   Zento Phone — Stock Público
   Negro profundo · Plata · Azul eléctrico (logo Zento)
   Mobile-first · Modo oscuro (default) + modo claro
   =================================================== */

:root {
    --bg:          #020306;
    --surface:     rgba(12, 15, 24, 0.72);
    --surface-2:   #0e1118;
    --border:      rgba(120, 150, 210, 0.14);
    --border-soft: rgba(120, 150, 210, 0.22);

    --brand:        #0a5cff;
    --brand-2:      #3d8bff;
    --brand-light:  #9cc6ff;
    --brand-deep:   #0038b8;
    --brand-dim:    rgba(10, 92, 255, 0.10);
    --brand-glow:   rgba(10, 92, 255, 0.35);
    --brand-grad:   linear-gradient(135deg, #0a5cff 0%, #0047e0 55%, #0038b8 100%);

    --silver:      #d9dde5;
    --silver-dark: #8f97a8;

    --text:       #eef0f4;
    --text-muted: #a4abba;
    --text-dim:   #5c6478;

    --green:     #34d399;
    --green-dim: rgba(52, 211, 153, 0.10);
    --amber:     #fbbf24;
    --red:       #f87171;

    --radius:      16px;
    --radius-sm:   10px;
    --radius-pill: 999px;

    --font-display: 'Exo 2', 'Inter', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== FONDO ANIMADO (ondas + Z de neón, como la app) ===== */
.bg-zento {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(10, 92, 255, 0.14), transparent 70%),
        radial-gradient(circle at center, #04060c 0%, #010103 100%);
}
.bg-zento svg { width: 100%; height: 100%; display: block; opacity: 0.55; }
.bg-zento::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(61, 139, 255, 0.06) 1px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}
.zbg-z { animation: zbgPulse 5s ease-in-out infinite alternate; }
@keyframes zbgPulse { from { opacity: .5; } to { opacity: 1; } }
.zbg-z-run { animation: zbgRun 7s linear infinite; }
@keyframes zbgRun { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.zbg-streaks line { animation: zbgStreak 6s ease-in-out infinite; }
.zbg-streaks line:nth-child(2) { animation-delay: 2s; }
.zbg-streaks line:nth-child(3) { animation-delay: 4s; }
@keyframes zbgStreak { 0%,100% { opacity: .15; } 50% { opacity: .8; } }
.zbg-waves { animation: zbgDrift 14s ease-in-out infinite alternate; transform-origin: 0 100%; }
@keyframes zbgDrift { from { transform: translate(0, 0); } to { transform: translate(30px, -18px); } }
@media (max-width: 640px) { .bg-zento svg { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) {
    .zbg-z, .zbg-z-run, .zbg-streaks line, .zbg-waves, .ticker-track, .pin-svg, .pin-pulse-ring { animation: none !important; }
}

/* ===== SPLASH ===== */
.splash {
    position: fixed; inset: 0; z-index: 9999;
    background: radial-gradient(circle at 50% 45%, rgba(10, 92, 255, 0.18) 0%, transparent 55%), #000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.splash-logo {
    width: min(300px, 72vw); height: auto; display: block;
    animation: splashLogoIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both, splashGlow 2s ease-in-out infinite alternate 0.7s;
}
@keyframes splashLogoIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes splashGlow {
    from { filter: drop-shadow(0 0 16px rgba(10, 92, 255, 0.35)); }
    to   { filter: drop-shadow(0 0 36px rgba(61, 139, 255, 0.7)); }
}
.splash-bar-wrap { width: 140px; height: 2px; background: rgba(61, 139, 255, 0.15); border-radius: 2px; overflow: hidden; }
.splash-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #0a5cff, #9cc6ff);
    box-shadow: 0 0 10px #0a5cff;
    animation: splashProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.3s;
}
@keyframes splashProgress { 0% { width: 0%; } 60% { width: 75%; } 100% { width: 100%; } }
.splash-name {
    font-family: var(--font-display); font-style: italic; font-weight: 700;
    font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--silver-dark);
    animation: fadeUp 0.5s ease both 0.4s;
}

/* ===== BUSCADOR (base) ===== */
#search-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    color: var(--text); font-family: var(--font-body); font-size: 0.92rem;
    outline: none; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none;
}
#search-input::placeholder { color: var(--text-dim); }
#search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 92, 255, 0.18), 0 0 24px rgba(10, 92, 255, 0.15); }

@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }
@keyframes pinFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pinPulse { 0% { transform: translateX(-50%) scale(0.5); opacity: 0.7; } 100% { transform: translateX(-50%) scale(2.2); opacity: 0; } }

/* ===== FILTROS ===== */
.filters-outer { position: relative; max-width: 960px; margin: 0 auto 1.25rem; padding: 0 1rem; }
.filters-outer::after {
    content: ''; position: absolute; right: 1rem; top: 1px; bottom: 1px; width: 48px;
    background: linear-gradient(to right, transparent, rgba(2, 3, 6, 0.9));
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    pointer-events: none; z-index: 2; transition: opacity 0.2s;
}
.filters-outer.scrolled-end::after { opacity: 0; }
.filters-wrapper {
    padding: 0.3rem; display: flex; align-items: center; gap: 0.25rem;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    background: var(--surface);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.filters-wrapper::-webkit-scrollbar { display: none; }
.filter-tab {
    flex-shrink: 0; background: transparent; border: none; border-radius: var(--radius-pill);
    padding: 0.55rem 1.05rem; min-height: 38px; display: flex; align-items: center;
    font-family: var(--font-display); font-style: italic; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
    color: var(--text-muted); cursor: pointer; transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}
.filter-tab:hover { color: #fff; }
.filter-tab.active { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 16px rgba(10, 92, 255, 0.45); }
.tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 17px; padding: 0 5px; margin-left: 6px;
    background: rgba(61, 139, 255, 0.12); border: 1px solid rgba(61, 139, 255, 0.2);
    border-radius: var(--radius-pill);
    font-family: var(--font-body); font-style: normal; font-size: 0.62rem; font-weight: 700; color: var(--brand-light);
}
.filter-tab.active .tab-count { background: rgba(255, 255, 255, 0.2); border-color: transparent; color: #fff; }

/* ===== LISTA ===== */
.stock-list { max-width: 960px; margin: 0 auto; padding: 0 1rem; display: flex; flex-direction: column; gap: 0.55rem; }

/* ===== CARD (base) ===== */
.stock-card {
    background: var(--surface);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.9rem 1.05rem;
    position: relative; overflow: hidden; cursor: pointer;
    transition: border-color 0.22s, transform 0.15s, box-shadow 0.22s, background 0.2s;
    animation: fadeUp 0.35s ease both;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.stock-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--brand-2), var(--brand-deep));
    opacity: 0.6; transition: opacity 0.2s, box-shadow 0.2s;
}
.stock-card:hover, .stock-card:focus-visible {
    background: rgba(14, 20, 34, 0.85);
    border-color: rgba(61, 139, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(10, 92, 255, 0.18);
    outline: none;
}
.stock-card:hover::before { opacity: 1; box-shadow: 0 0 12px var(--brand); }

.card-title {
    font-family: var(--font-display); font-style: italic; font-weight: 800;
    font-size: 1.08rem; color: #fff; letter-spacing: 0.01em; margin-bottom: 0.12rem;
}
.card-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.card-estado { font-size: 0.74rem; margin-bottom: 0.35rem; font-weight: 600; color: var(--brand-light); }

.badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    border-radius: var(--radius-pill); padding: 0.2rem 0.55rem;
    font-size: 0.68rem; font-weight: 700;
}
.badge svg { width: 15px; height: 15px; }
.badge-battery.high { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.22); }
.badge-battery.mid  { background: rgba(251, 191, 36, 0.10); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.25); }
.badge-battery.low  { background: rgba(248, 113, 113, 0.10); color: var(--red); border: 1px solid rgba(248, 113, 113, 0.25); }
.badge-outlet { background: var(--brand-dim); color: var(--brand-light); border: 1px solid rgba(61, 139, 255, 0.3); }

.price-usd {
    font-family: var(--font-display); font-weight: 800;
    font-size: 1.45rem; color: #fff; line-height: 1;
}
.price-usd span { font-size: 0.72rem; font-weight: 600; color: var(--brand-2); letter-spacing: 0.05em; }
.price-ars { font-size: 0.7rem; color: var(--text-muted); }
.btn-cuotas {
    background: rgba(10, 92, 255, 0.1); border: 1px solid rgba(61, 139, 255, 0.35);
    border-radius: var(--radius-pill); padding: 0.32rem 0.8rem;
    font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; color: var(--brand-light);
    cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.btn-cuotas:hover { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 0 14px rgba(10, 92, 255, 0.45); }

/* Section header */
.section-header { max-width: 960px; margin: 0.5rem auto 0.7rem; padding: 0 1rem; display: flex; align-items: center; gap: 0.75rem; }
.section-header-label {
    font-family: var(--font-display); font-style: italic; font-weight: 800;
    font-size: 0.78rem; color: var(--brand-2); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.section-header-line { flex: 1; height: 1px; background: linear-gradient(to right, rgba(61, 139, 255, 0.35), transparent); }

/* Loader */
.loader-wrap { max-width: 960px; margin: 4rem auto; padding: 0 1rem; text-align: center; }
.loader-dots { display: inline-flex; gap: 6px; margin-bottom: 1rem; }
.loader-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); animation: bounce 1.2s infinite ease-in-out; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,80%,100% { transform: scale(0.6); opacity: 0.3; } 40% { transform: scale(1); opacity: 1; } }
.loader-text { font-size: 0.85rem; color: var(--text-muted); }

/* Empty */
.empty-state { max-width: 960px; margin: 3rem auto; padding: 2.5rem 1rem; text-align: center; }
.empty-icon { width: 40px; height: 40px; margin: 0 auto 1rem; stroke: var(--brand-2); display: block; opacity: .7; }
.empty-title { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.1rem; margin-bottom: 0.4rem; }
.empty-sub { font-size: 0.85rem; color: var(--text-muted); }

/* Footer */
.site-footer { max-width: 960px; margin: 3.5rem auto 0; padding: 2rem 1rem 6rem; text-align: center; border-top: 1px solid var(--border); }
.footer-logo { height: 30px; width: auto; opacity: 0.85; margin-bottom: 0.75rem; }
.site-footer p { font-size: 0.8rem; color: var(--text-muted); }
.site-footer a { color: var(--brand-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-note { margin-top: 0.4rem; font-size: 0.7rem !important; color: var(--text-dim) !important; }

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed; bottom: 1.4rem; right: 1.1rem; z-index: 50;
    width: 56px; height: 56px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s; text-decoration: none;
}
.whatsapp-fab::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5); animation: fabPulse 2.4s ease-out infinite;
}
@keyframes fabPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55); }
.whatsapp-fab:active { transform: scale(0.95); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

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

/* Desktop */
@media (min-width: 640px) {
    .filters-outer { padding: 0 1.5rem; }
    .filters-outer::after { right: 1.5rem; }
    .stock-list { padding: 0 1.5rem; }
    .section-header { padding: 0 1.5rem; }
}


/* ================================================================ */
/* ============ HERO · OPCIÓN C (LOGO PROTAGONISTA) =============== */
/* ================================================================ */
.c-hero { max-width: 960px; margin: 0 auto; padding: 4.2rem 1rem 1.6rem; text-align: center; position: relative; }
.c-halo {
    position: absolute; left: 50%; top: 1.5rem; width: 560px; max-width: 100vw; height: 260px; transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(10, 92, 255, 0.28), transparent 65%); filter: blur(10px); pointer-events: none;
    animation: haloPulse 5s ease-in-out infinite alternate;
}
@keyframes haloPulse { from { opacity: .7; } to { opacity: 1; } }
.c-logo-wrap { margin: 0; line-height: 0; }
.c-logo {
    position: relative; width: min(460px, 82vw); height: auto;
    filter: drop-shadow(0 0 30px rgba(10, 92, 255, 0.5));
    animation: fadeUp .6s ease both;
}

.c-bar {
    position: relative; margin: 1.8rem auto 0; max-width: 720px;
    display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem;
    border: 1px solid var(--border-soft); border-radius: 999px;
    background: rgba(10, 14, 22, 0.72);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: border-color .2s, box-shadow .2s;
    animation: fadeUp .6s ease both .2s;
}
.c-bar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 92, 255, 0.18), 0 10px 40px rgba(0, 0, 0, 0.4); }
.c-search { flex: 1; display: flex; align-items: center; gap: 0.6rem; padding: 0 0.9rem; cursor: text; min-width: 0; }
.c-search svg { width: 17px; height: 17px; color: var(--brand-2); flex-shrink: 0; }
.c-hero #search-input {
    flex: 1; min-width: 0; width: 100%; background: transparent; border: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0.75rem 0; border-radius: 0;
    color: var(--text); font-family: var(--font-body); font-size: 0.95rem; outline: none;
}
.c-hero #search-input:focus { box-shadow: none; }
.c-hero #search-input::placeholder { color: var(--text-dim); }
.c-chips { display: flex; gap: 0.4rem; flex-shrink: 0; }
.c-chip {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.95rem; border-radius: 999px;
    background: rgba(10, 92, 255, 0.12); border: 1px solid rgba(61, 139, 255, 0.3);
    font-size: 0.8rem; color: var(--brand-light); white-space: nowrap;
}
.c-chip strong, .c-chip #stock-count { color: #fff; font-family: var(--font-display); font-weight: 800; }
.c-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse-dot 2s infinite; }

/* Ubicación destacada bajo el logo */
.c-loc {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    margin-top: 1.1rem; animation: fadeUp .6s ease both .1s;
}
.c-loc-pin { position: relative; display: inline-flex; color: var(--brand-2); }
.c-loc-pin svg { width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(61, 139, 255, .7)); animation: pinFloat 3s ease-in-out infinite; }
.c-loc-pin::after {
    content: ''; position: absolute; left: 50%; bottom: -3px; width: 14px; height: 4px; transform: translateX(-50%);
    border-radius: 50%; border: 1px solid rgba(61, 139, 255, .6); animation: pinPulse 2.5s ease-out infinite;
}
.c-loc-text {
    font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.05rem;
    letter-spacing: 0.28em; text-transform: uppercase; color: var(--silver);
}
.c-loc-text b { color: var(--brand-2); font-weight: 800; margin: 0 .15em; }

/* Beneficios rotativos */
.c-rotator {
    position: relative; margin: 1.4rem auto 0; width: fit-content; max-width: 100%;
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.45rem 0.9rem 0.45rem 0.5rem; border-radius: 999px;
    border: 1px solid var(--border); background: rgba(10, 14, 22, 0.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    animation: fadeUp .6s ease both .3s;
}
.c-rot-ico {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-grad); color: #fff; box-shadow: 0 0 14px rgba(10, 92, 255, 0.55);
}
.c-rot-ico svg { width: 16px; height: 16px; }
.c-rot-text { display: inline-flex; align-items: baseline; gap: 0.5rem; white-space: nowrap; overflow: hidden; }
.c-rot-text b { font-weight: 600; font-size: 0.88rem; color: #fff; }
.c-rot-text i { font-style: normal; font-size: 0.8rem; color: var(--text-muted); }
.c-rot-ico, .c-rot-text { transition: opacity .28s ease, transform .28s ease, filter .28s ease; }
.c-rotator.out .c-rot-ico, .c-rotator.out .c-rot-text { opacity: 0; transform: translateY(-8px); filter: blur(3px); }
.c-rotator.in .c-rot-text { animation: rotIn .38s cubic-bezier(.2,.8,.2,1); }
.c-rotator.in .c-rot-ico { animation: rotIco .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes rotIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rotIco { from { opacity: 0; transform: scale(.5) rotate(-30deg); } to { opacity: 1; transform: none; } }
.c-rot-dots { display: flex; gap: 4px; margin-left: 0.35rem; flex-shrink: 0; }
.c-rot-dots button {
    width: 5px; height: 5px; padding: 0; border: none; border-radius: 4px; cursor: pointer;
    background: rgba(120, 150, 210, 0.3); transition: width .3s ease, background .3s ease;
}
.c-rot-dots button.on { width: 14px; background: var(--brand-2); box-shadow: 0 0 6px var(--brand); }
@media (prefers-reduced-motion: reduce) {
    .c-rotator.in .c-rot-text, .c-rotator.in .c-rot-ico { animation: none; }
    .c-halo, .c-loc-pin svg, .c-loc-pin::after, .whatsapp-fab::after, .c-dot { animation: none; }
}

@media (max-width: 560px) {
    .c-hero { padding-top: 3rem; }
    .c-loc-text { font-size: 0.85rem; letter-spacing: 0.2em; }
    .c-bar { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 0.35rem; }
    .c-search { padding: 0.15rem 0.8rem; border-bottom: 1px solid var(--border); }
    .c-chips { justify-content: center; padding: 0.4rem 0 0.2rem; }
    .c-rot-text { flex-direction: column; gap: 0; align-items: flex-start; }
    .c-rot-text b { font-size: 0.82rem; }
    .c-rot-text i { font-size: 0.7rem; }
    .c-rotator { padding-right: 0.8rem; border-radius: 18px; }
}


/* ================================================================ */
/* ================ BOTÓN MODO CLARO / OSCURO ===================== */
/* ================================================================ */
.theme-toggle {
    position: fixed; top: 14px; right: 14px; z-index: 300;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; padding: 0; cursor: pointer;
    border: 1px solid rgba(61, 139, 255, 0.35);
    background: rgba(10, 14, 22, 0.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #9cc6ff;
    box-shadow: 0 0 18px rgba(10, 92, 255, 0.25);
    transition: transform .2s ease, background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
    -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { transform: scale(1.06); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.theme-toggle svg {
    grid-area: 1 / 1; width: 20px; height: 20px;
    transition: opacity .35s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.theme-toggle .ico-sun  { opacity: 1; transform: none; }
.theme-toggle .ico-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
@media (min-width: 640px) { .theme-toggle { top: 20px; right: 22px; } }

html.theme-anim body,
html.theme-anim body *:not(.theme-toggle):not(.theme-toggle *) {
    transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease, fill .35s ease !important;
}
@media (prefers-reduced-motion: reduce) {
    .theme-toggle, .theme-toggle svg { transition: none; }
}


/* ================================================================ */
/* ========================= MODO CLARO =========================== */
/* ================================================================ */
html[data-theme="light"] {
    color-scheme: light;

    --bg:          #f5f8fd;
    --surface:     rgba(255, 255, 255, 0.9);
    --surface-2:   #ffffff;
    --border:      rgba(10, 60, 160, 0.10);
    --border-soft: rgba(10, 60, 160, 0.16);

    --brand-light: #0a4be0;
    --brand-dim:   rgba(10, 92, 255, 0.08);

    --silver:      #141d3a;
    --silver-dark: #5b6478;

    --text:       #0b1733;
    --text-muted: #5b6478;
    --text-dim:   #8a93a8;

    --green:     #0b8a5b;
    --green-dim: rgba(16, 185, 129, 0.12);
    --amber:     #a86b00;
    --red:       #c53030;
}

html[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(10, 60, 160, 0.14);
    color: #0a5cff;
    box-shadow: 0 6px 18px rgba(10, 50, 140, 0.12);
}
html[data-theme="light"] .theme-toggle .ico-sun  { opacity: 0; transform: rotate(90deg) scale(.5); }
html[data-theme="light"] .theme-toggle .ico-moon { opacity: 1; transform: none; }

html[data-theme="light"] .bg-zento {
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(10, 92, 255, 0.07), transparent 70%),
        linear-gradient(180deg, #f9fbff 0%, #eef3fb 100%);
}
html[data-theme="light"] .bg-zento svg { opacity: 0.5; }
html[data-theme="light"] .bg-zento::after {
    background-image: radial-gradient(circle, rgba(10, 60, 160, 0.11) 1px, transparent 1.5px);
}
@media (max-width: 640px) { html[data-theme="light"] .bg-zento svg { opacity: 0.4; } }

html[data-theme="light"] .splash {
    background: radial-gradient(circle at 50% 45%, rgba(10, 92, 255, 0.10) 0%, transparent 55%), #f5f8fd;
}
html[data-theme="light"] .splash-logo {
    animation: splashLogoIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    filter: drop-shadow(0 8px 22px rgba(10, 92, 255, 0.18));
}

html[data-theme="light"] .logo-themed:not(.logo-claro) {
    filter: invert(1) hue-rotate(180deg) drop-shadow(0 8px 22px rgba(10, 92, 255, 0.16)) !important;
}

html[data-theme="light"] .c-halo { background: radial-gradient(ellipse, rgba(10, 92, 255, 0.12), transparent 65%); }
html[data-theme="light"] .c-logo { filter: drop-shadow(0 8px 24px rgba(10, 92, 255, 0.18)); }
html[data-theme="light"] .c-loc-pin svg { filter: drop-shadow(0 2px 6px rgba(10, 92, 255, .35)); }
html[data-theme="light"] .c-loc-text b { color: #0a5cff; }

html[data-theme="light"] .c-bar {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(10, 60, 160, 0.10);
    box-shadow: 0 10px 32px rgba(10, 50, 140, 0.10);
}
html[data-theme="light"] .c-bar:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(10, 92, 255, 0.14), 0 10px 32px rgba(10, 50, 140, 0.10);
}
html[data-theme="light"] .c-search svg { color: #0a5cff; }
html[data-theme="light"] .c-chip { background: #f1f6ff; border-color: rgba(10, 92, 255, 0.16); color: #0a4be0; }
html[data-theme="light"] .c-chip strong,
html[data-theme="light"] .c-chip #stock-count { color: var(--text); }
html[data-theme="light"] .c-dot { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

html[data-theme="light"] .c-rotator {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(10, 60, 160, 0.08);
    box-shadow: 0 8px 24px rgba(10, 50, 140, 0.08);
}
html[data-theme="light"] .c-rot-ico { box-shadow: 0 4px 12px rgba(10, 92, 255, 0.35); }
html[data-theme="light"] .c-rot-text b { color: var(--text); }
html[data-theme="light"] .c-rot-dots button { background: rgba(10, 60, 160, 0.18); }
html[data-theme="light"] .c-rot-dots button.on { background: #0a5cff; box-shadow: none; }

html[data-theme="light"] .filters-wrapper {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 6px 20px rgba(10, 50, 140, 0.06);
}
html[data-theme="light"] .filters-outer::after { background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95)); }
html[data-theme="light"] .filter-tab { color: #3b4560; }
html[data-theme="light"] .filter-tab:hover { color: var(--text); }
html[data-theme="light"] .filter-tab.active,
html[data-theme="light"] .filter-tab.active:hover { color: #fff; box-shadow: 0 4px 14px rgba(10, 92, 255, 0.35); }
html[data-theme="light"] .tab-count { background: rgba(10, 92, 255, 0.08); border-color: rgba(10, 92, 255, 0.18); }

html[data-theme="light"] .section-header-label { color: #0a4be0; }
html[data-theme="light"] .section-header-line { background: linear-gradient(to right, rgba(10, 92, 255, 0.35), transparent); }

html[data-theme="light"] .stock-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(10, 60, 160, 0.10);
    box-shadow: 0 4px 18px rgba(10, 50, 140, 0.07);
}
html[data-theme="light"] .stock-card::before { opacity: 0.85; }
html[data-theme="light"] .stock-card:hover,
html[data-theme="light"] .stock-card:focus-visible {
    background: #ffffff;
    border-color: rgba(10, 92, 255, 0.35);
    box-shadow: 0 12px 30px rgba(10, 92, 255, 0.14);
}
html[data-theme="light"] .stock-card:hover::before { box-shadow: none; }
html[data-theme="light"] .card-title,
html[data-theme="light"] .price-usd { color: var(--text); }
html[data-theme="light"] .price-usd span { color: #0a5cff; }
html[data-theme="light"] .badge-battery.high { border-color: rgba(16, 185, 129, 0.28); }
html[data-theme="light"] .badge-battery.mid  { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.30); }
html[data-theme="light"] .badge-battery.low  { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.25); }
html[data-theme="light"] .badge-outlet { border-color: rgba(10, 92, 255, 0.28); }

html[data-theme="light"] .btn-cuotas { background: #ffffff; border-color: rgba(10, 92, 255, 0.45); color: #0a4be0; }
html[data-theme="light"] .btn-cuotas:hover {
    background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(10, 92, 255, 0.35);
}

html[data-theme="light"] .loader-dots span { background: #0a5cff; }
html[data-theme="light"] .footer-logo { opacity: 1; }
html[data-theme="light"] .whatsapp-fab { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.40); }


/* ================================================================ */
/* ======================= MODAL DE CUOTAS ======================== */
/* ================================================================ */
html.cm-lock, html.cm-lock body { overflow: hidden; }

.cm-overlay {
    position: fixed; inset: 0; z-index: 500;
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem;
    background: rgba(1, 2, 6, 0.62);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.cm-overlay.open { opacity: 1; visibility: visible; }

.cm-sheet {
    position: relative; width: 100%; max-width: 440px;
    max-height: calc(100vh - 2.5rem); max-height: calc(100dvh - 2.5rem);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    background: linear-gradient(180deg, rgba(16, 22, 38, 0.97) 0%, rgba(7, 10, 17, 0.98) 100%);
    border: 1px solid rgba(61, 139, 255, 0.28);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(10, 92, 255, 0.16);
    padding: 1.45rem 1.3rem 1.2rem;
    outline: none;
    transform: translateY(18px) scale(.96); opacity: 0;
    transition: transform .38s cubic-bezier(.2, .9, .25, 1), opacity .25s ease;
}
.cm-sheet::-webkit-scrollbar { display: none; }
.cm-sheet::before {
    content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
    background: linear-gradient(90deg, transparent, #3d8bff, transparent);
}
.cm-overlay.open .cm-sheet { transform: none; opacity: 1; }
.cm-sheet.dragging { transition: none; }

.cm-handle { display: none; }

.cm-close {
    position: absolute; top: 0.95rem; right: 0.95rem;
    width: 36px; height: 36px; border-radius: 50%; padding: 0;
    display: grid; place-items: center; cursor: pointer;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft);
    color: var(--text-muted);
    transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.cm-close:hover, .cm-close:focus-visible { color: #fff; border-color: rgba(61, 139, 255, 0.55); background: rgba(10, 92, 255, 0.12); outline: none; }
.cm-close:active { transform: scale(.92); }
.cm-close svg { width: 16px; height: 16px; }

.cm-eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: var(--font-display); font-style: italic; font-weight: 800;
    font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--brand-2);
}
.cm-eyebrow svg { width: 15px; height: 15px; }

.cm-title {
    font-family: var(--font-display); font-style: italic; font-weight: 900;
    font-size: 1.5rem; line-height: 1.1; color: #fff;
    margin: 0.4rem 2.6rem 0.2rem 0;
}
.cm-sub { font-size: 0.8rem; color: var(--text-muted); }

.cm-price {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin: 1rem 0 1.1rem; padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(10, 92, 255, 0.08); border: 1px solid rgba(61, 139, 255, 0.2);
}
.cm-price-usd { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: #fff; line-height: 1; }
.cm-price-usd span { font-size: 0.72rem; font-weight: 600; color: var(--brand-2); letter-spacing: 0.05em; }
.cm-price-ars { text-align: right; font-size: 0.66rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.cm-price-ars strong {
    display: block; margin-top: 2px;
    font-family: var(--font-display); font-size: 0.98rem; font-weight: 800;
    color: #fff; text-transform: none; letter-spacing: 0;
}

.cm-list { display: flex; flex-direction: column; gap: 0.55rem; }

.cm-opt {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem;
    width: 100%; text-align: left; cursor: pointer;
    padding: 0.8rem 0.9rem 0.8rem 0.8rem;
    border-radius: 16px;
    background: rgba(8, 11, 18, 0.75); border: 1px solid rgba(61, 139, 255, 0.18);
    color: var(--text); font-family: var(--font-body);
    transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
    animation: cmIn .42s cubic-bezier(.2, .8, .2, 1) both;
    -webkit-tap-highlight-color: transparent;
}
.cm-opt:hover, .cm-opt:focus-visible {
    border-color: rgba(61, 139, 255, 0.6);
    background: rgba(10, 92, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(10, 92, 255, 0.2);
    outline: none;
}
.cm-opt:active { transform: scale(.985); }

.cm-n {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--brand-grad); color: #fff;
    box-shadow: 0 4px 14px rgba(10, 92, 255, 0.45);
}
.cm-n b { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.35rem; line-height: 1; }
.cm-n small { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: .85; margin-top: 2px; }

.cm-info { min-width: 0; }
.cm-info b {
    display: block; font-family: var(--font-display); font-weight: 800;
    font-size: 1.18rem; color: #fff; line-height: 1.15;
}
.cm-info small { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--text-muted); }
.cm-info small.cm-free { color: var(--green); font-weight: 600; }

.cm-go {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; flex-shrink: 0;
    background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25D366;
    transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.cm-go svg { width: 17px; height: 17px; fill: currentColor; }
.cm-opt:hover .cm-go, .cm-opt:focus-visible .cm-go {
    background: #25D366; color: #fff; border-color: transparent;
    box-shadow: 0 0 16px rgba(37, 211, 102, 0.5); transform: scale(1.06);
}

.cm-foot {
    display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    margin-top: 1.05rem; font-size: 0.78rem; color: var(--text-muted); text-align: center;
}
.cm-foot-wa { display: inline-flex; color: #25D366; }
.cm-foot-wa svg { width: 14px; height: 14px; fill: currentColor; }
.cm-note { margin-top: 0.3rem; font-size: 0.68rem; color: var(--text-dim); text-align: center; }

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

/* Celular: hoja que sube desde abajo */
@media (max-width: 560px) {
    .cm-overlay { align-items: flex-end; padding: 0; }
    .cm-sheet {
        max-width: 100%;
        max-height: 90vh; max-height: 90dvh;
        border-radius: 26px 26px 0 0; border-bottom: none;
        padding: 0.7rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%); opacity: 1;
        transition: transform .38s cubic-bezier(.2, .9, .25, 1);
    }
    .cm-handle {
        display: block; width: 42px; height: 5px; border-radius: 5px;
        margin: 0 auto 0.95rem; background: rgba(255, 255, 255, 0.2);
    }
    .cm-close { top: 1.35rem; right: 1rem; }
    .cm-title { font-size: 1.3rem; }
    .cm-price-usd { font-size: 1.35rem; }
    .cm-n { width: 46px; height: 46px; }
    .cm-info b { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cm-overlay, .cm-sheet, .cm-opt, .cm-go { transition: none; }
    .cm-opt { animation: none; }
}

/* Modo claro */
html[data-theme="light"] .cm-overlay { background: rgba(15, 30, 70, 0.28); }
html[data-theme="light"] .cm-sheet {
    background: #ffffff;
    border-color: rgba(10, 60, 160, 0.12);
    box-shadow: 0 30px 70px rgba(10, 40, 120, 0.22);
}
html[data-theme="light"] .cm-handle { background: rgba(10, 40, 120, 0.18); }
html[data-theme="light"] .cm-close { background: #f4f7fc; border-color: rgba(10, 60, 160, 0.12); }
html[data-theme="light"] .cm-close:hover,
html[data-theme="light"] .cm-close:focus-visible { color: #0a5cff; background: #eaf2ff; }
html[data-theme="light"] .cm-eyebrow { color: #0a4be0; }
html[data-theme="light"] .cm-title,
html[data-theme="light"] .cm-price-usd,
html[data-theme="light"] .cm-price-ars strong,
html[data-theme="light"] .cm-info b { color: var(--text); }
html[data-theme="light"] .cm-price-usd span { color: #0a5cff; }
html[data-theme="light"] .cm-price { background: #f1f6ff; border-color: rgba(10, 92, 255, 0.14); }
html[data-theme="light"] .cm-opt { background: #ffffff; border-color: rgba(10, 92, 255, 0.14); }
html[data-theme="light"] .cm-opt:hover,
html[data-theme="light"] .cm-opt:focus-visible {
    background: #f5f9ff; border-color: rgba(10, 92, 255, 0.45);
    box-shadow: 0 8px 22px rgba(10, 92, 255, 0.14);
}
html[data-theme="light"] .cm-n { box-shadow: 0 4px 12px rgba(10, 92, 255, 0.3); }
html[data-theme="light"] .cm-go { background: rgba(37, 211, 102, 0.1); color: #128c4a; }
html[data-theme="light"] .cm-foot-wa { color: #128c4a; }


/* ================================================================ */
/* ========================= TARJETA v2 =========================== */
/* Info a la izquierda · precio + "Ver cuotas" a la derecha         */
/* Siempre en una sola fila (también en celular)                    */
/* ================================================================ */
.stock-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.95rem 1.1rem;
}
.card-left { flex: 1; min-width: 0; }
.card-title { margin-bottom: 0.2rem; }

/* Gigas · color (pupito) + batería */
.card-specs {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.3rem 0.65rem; margin: 0 0 0.4rem;
}
.card-specs .card-subtitle {
    margin: 0; font-size: 0.82rem;
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 0.4rem;
}
.card-subtitle .sep { font-weight: 400; opacity: .6; }
.card-color { display: inline-flex; align-items: center; gap: 0.35rem; }
.color-dot {
    width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.25);
}
.color-dot--na { background: repeating-linear-gradient(45deg, #5c6478 0 2px, #8f97a8 2px 4px); }

/* Batería sin cápsula */
.card-specs .badge-battery {
    background: none; border: none; box-shadow: none; padding: 0; gap: 0.25rem; font-size: 0.78rem;
}

/* Estado: Usado / Sellado */
.card-cond {
    display: flex; align-items: center; gap: 0.45rem;
    font-size: 0.76rem; color: var(--text-muted);
}
.card-cond-label { font-weight: 600; }
.cond-pill {
    display: inline-flex; align-items: center;
    padding: 0.16rem 0.6rem; border-radius: var(--radius-pill); border: 1px solid;
    font-family: var(--font-display); font-style: italic; font-weight: 800;
    font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.cond-usado { color: var(--silver); background: rgba(217, 221, 229, 0.08); border-color: rgba(217, 221, 229, 0.22); }
.cond-sellado, .cond-nuevo {
    color: #9cc6ff; background: rgba(10, 92, 255, 0.14); border-color: rgba(61, 139, 255, 0.45);
    box-shadow: 0 0 10px rgba(10, 92, 255, 0.25);
}
.card-estado { margin: 0.35rem 0 0; }

/* Derecha: precio + botón */
.card-right {
    display: flex; flex-direction: row; align-items: center; gap: 1.1rem;
    min-width: 0; flex-shrink: 0; text-align: right;
    padding-left: 1.1rem; border-left: 1px solid var(--border);
    align-self: stretch;
}
.card-price { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0.2rem; min-width: 110px; }
.card-price .price-ars { margin: 0; white-space: nowrap; }
.card-right .btn-cuotas { padding: 0.55rem 1rem; font-size: 0.78rem; }

/* Celular: todo en la misma fila, precio y botón apilados a la derecha */
@media (max-width: 560px) {
    .stock-card { gap: 0.7rem; padding: 0.85rem 0.9rem; }
    .card-title { font-size: 0.98rem; }
    .card-specs { gap: 0.2rem 0.5rem; margin-bottom: 0.35rem; }
    .card-specs .card-subtitle { font-size: 0.74rem; gap: 0 0.3rem; }
    .card-specs .badge-battery { font-size: 0.72rem; }
    .card-specs .badge svg { width: 13px; height: 13px; }
    .color-dot { width: 10px; height: 10px; }
    .card-cond { font-size: 0.7rem; gap: 0.35rem; }
    .cond-pill { font-size: 0.6rem; padding: 0.12rem 0.5rem; }

    .card-right {
        flex-direction: column; align-items: flex-end; justify-content: center; gap: 0.4rem;
        padding-left: 0.7rem;
    }
    .card-price { gap: 0.1rem; min-width: 0; }
    .card-right .price-usd { font-size: 1.12rem; }
    .card-right .price-usd span { font-size: 0.6rem; }
    .card-right .price-ars { font-size: 0.66rem; }
    .card-right .btn-cuotas { padding: 0.32rem 0.7rem; font-size: 0.68rem; }
}

/* Modo claro */
html[data-theme="light"] .card-specs .badge-battery { background: none; border: none; }
html[data-theme="light"] .color-dot { border-color: rgba(10, 40, 120, 0.25); }
html[data-theme="light"] .cond-usado { color: #3b4560; background: #f1f3f8; border-color: rgba(10, 40, 120, 0.14); }
html[data-theme="light"] .cond-sellado,
html[data-theme="light"] .cond-nuevo { color: #0a4be0; background: #eef4ff; border-color: rgba(10, 92, 255, 0.32); box-shadow: none; }


/* ================================================================ */
/* ============ CELULAR · BUSCADOR + BENEFICIOS (OPCIÓN A) ======== */
/* ================================================================ */
@media (max-width: 560px) {
    .c-bar { padding: 0.35rem 0.35rem 0; gap: 0; overflow: hidden; }
    .c-search { padding: 0.1rem 0.8rem; }
    .c-chips { gap: 0.4rem; padding: 0.55rem 0.3rem 0.6rem; }
    .c-chip { flex: 1; justify-content: center; padding: 0.55rem 0.6rem; }

    .c-bar .c-rotator {
        width: auto; max-width: none; margin: 0 -0.35rem;
        padding: 0.7rem 1rem 0.75rem 0.85rem;
        border: none; border-top: 1px solid var(--border); border-radius: 0;
        background: rgba(10, 92, 255, 0.04);
        backdrop-filter: none; -webkit-backdrop-filter: none;
        animation: none; text-align: left;
    }
    .c-bar .c-rot-ico { width: 32px; height: 32px; border-radius: 10px; }
    .c-bar .c-rot-text { flex: 1; min-width: 0; }
    .c-bar .c-rot-text b, .c-bar .c-rot-text i { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .c-bar .c-rot-dots { margin-left: auto; }
}
html[data-theme="light"] .c-bar .c-rotator { background: #f7faff; box-shadow: none; }


/* ================================================================ */
/* ================= RENDIMIENTO EN CELULAR ======================= */
/* Fondo quieto, sin desenfoques en vivo ni brillos animados.       */
/* Se ve casi igual, pero el celular no tiene que redibujar todo    */
/* en cada cuadro.                                                  */
/* ================================================================ */
@media (max-width: 768px), (hover: none) {
    /* Fondo: sin animaciones ni filtro de brillo (lo más pesado) */
    .bg-zento svg g,
    .bg-zento svg path,
    .bg-zento svg rect { filter: none !important; }
    .zbg-z, .zbg-streaks line, .zbg-waves { animation: none !important; }
    .zbg-z-run { display: none; }
    .bg-zento::after { -webkit-mask-image: none; mask-image: none; opacity: 0.5; }

    /* Halo del logo: quieto */
    .c-halo { animation: none; filter: none; }

    /* Sin "vidrio esmerilado": fondos sólidos equivalentes */
    header, .c-bar, .c-rotator, .filters-wrapper, .stock-card,
    .theme-toggle, #search-input, .dolar-chip, .cm-overlay {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    .stock-card        { background: rgba(12, 15, 24, 0.94); }
    .stock-card:hover  { background: rgba(14, 20, 34, 0.96); }
    .c-bar             { background: rgba(10, 14, 22, 0.95); }
    .c-rotator         { background: rgba(10, 14, 22, 0.92); }
    .filters-wrapper   { background: rgba(12, 15, 24, 0.94); }
    .theme-toggle      { background: rgba(10, 14, 22, 0.9); }
    .cm-overlay        { background: rgba(1, 2, 6, 0.78); }

    /* Menos sombras grandes en las tarjetas */
    .stock-card { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
}