﻿/**
 * style.css
 * Tema "Whatstura" 
 * UI Limpia, Moderna, Cálida (Terracotas y beiges) y Mobile First
 */

:root {
    --bg-main: #fcfbfa; /* Blanco cálido */
    --accent: #d46c4f; /* Naranja/Terracota fuerte */
    --accent-light: #f7e6e0;
    --gold: #e8a044;
    --green: #2ecc71;
    --green-light: #eafaf1;
    --blue: #1877f2;
    --pink: #e1306c;
    
    --text-main: #2b2b2b;
    --text-muted: #6b6b6b;
    --text-dim: #999;
    
    --border: #f0eae1;
    --card-bg: #ffffff;
    --shadow: 0 4px 14px rgba(0,0,0,0.05);
    
    --radius: 16px;
    --radius-sm: 8px;
    
    --primary-gradient: linear-gradient(135deg, #e78b71, #d46c4f);
    --gold-gradient: linear-gradient(135deg, #f1c40f, #f39c12);
    --bottom-nav-height: 86px;
    --status-bar-height: 90px;
    --install-prompt-height: 0px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background: var(--bg-main); color: var(--text-main); font-size: 16px; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.pb-100 { padding-bottom: 100px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; font-weight: 700; }
.text-xl { font-size: 22px; font-weight: 800; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
body.has-install-prompt { --install-prompt-height: 62px; }

.install-prompt-bar {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 980;
    width: min(calc(100% - 16px), 1200px);
    min-height: 52px;
    background: rgba(255, 246, 241, 0.98);
    border: 1px solid #f3d8cc;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    backdrop-filter: blur(8px);
}
.install-prompt-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.install-prompt-copy strong { font-size: 13px; color: #8f4228; line-height: 1.1; }
.install-prompt-copy span { font-size: 12px; color: #6f4d41; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-prompt-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.install-btn-primary, .install-btn-ghost {
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 7px 12px;
}
.install-btn-primary { background: var(--accent); color: #fff; }
.install-btn-ghost { background: #fff; color: #8f4228; border: 1px solid #f1d4c8; }

/* Spinners y Overlays */
.spinner { width: 40px; height: 40px; border: 4px solid var(--accent-light); border-top: 4px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#loading-overlay { position: fixed; inset: 0; background: radial-gradient(circle at 20% 20%, #fef0ea 0%, #ffe7dc 40%, #fff7f3 100%); display: none; justify-content: center; align-items: center; z-index: 10000; padding: 20px; }
#loading-overlay.show { display: flex; }
.loading-card { width: min(420px, 100%); border-radius: 24px; background: rgba(255,255,255,0.92); border: 1px solid #f2dcd2; box-shadow: 0 20px 45px rgba(166, 95, 69, 0.18); padding: 18px 18px 20px; text-align: center; animation: loadingEnter 0.32s ease-out; }
.loading-image-wrap { width: 100%; border-radius: 18px; overflow: hidden; background: #f8ece7; margin-bottom: 14px; box-shadow: inset 0 0 0 1px #f2d8cc; }
#loading-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; animation: loadingFloat 2.6s ease-in-out infinite; }
#loading-title { font-size: 30px; line-height: 1.08; letter-spacing: -0.6px; color: #a64f2e; margin-bottom: 8px; font-weight: 800; }
#loading-subtitle { font-size: 14px; color: #71574d; line-height: 1.5; margin-bottom: 12px; }
#loading-action-btn { width: 100%; }
@keyframes loadingEnter { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes loadingFloat { 0% { transform: translateY(0); } 50% { transform: translateY(-8px) scale(1.01); } 100% { transform: translateY(0); } }

/* ─── MODALES PREMIUM ─── */
.modal-premium {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(43, 43, 43, 0.4);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}
#modal-bonus {
    background: transparent;
    backdrop-filter: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: calc(84px + var(--install-prompt-height)) 14px 14px;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#modal-bonus .bonus-news-card {
    pointer-events: auto;
    transform: translateX(115%);
    transition: transform 0.22s ease;
}
#modal-bonus.is-open .bonus-news-card {
    transform: translateX(0);
}

.modal-premium-card {
    background: #ffffff;
    width: min(440px, 100%);
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.modal-premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(232, 160, 68, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.modal-premium-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(232, 160, 68, 0.3));
    animation: bonusBounce 2s ease-in-out infinite;
}

@keyframes bonusBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.modal-premium-card h2 {
    font-size: 26px;
    font-weight: 900;
    color: #2b2b2b;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.modal-premium-card p {
    font-size: 15px;
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 28px;
}

.premium-bonus-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}


/* ─── NAVEGACIÓN Y SCREENS ─── */
.screen { display: none; width: 100%; min-height: 100dvh; animation: fadeIn 0.3s ease; padding-top: calc(var(--status-bar-height) + var(--install-prompt-height)); }
.screen.active { display: block; }
.screen--auth { display: none; }
.screen--auth.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up-item {
    animation: fadeUp 0.45s ease both;
    animation-delay: var(--fade-delay, 0ms);
}

.topbar-modern { padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; background: transparent; position: relative; border-bottom: 0; }
.tp-right { display: flex; align-items: center; }
.app-brand { font-size: 22px; line-height: 1.1; font-weight: 800; color: #2b2b2b; letter-spacing: -0.2px; }
.stat-box-vert { background: #fff7f2; border: 1px solid var(--border); border-radius: 10px; padding: 4px 8px; min-width: 62px; text-align: center; }
.ts-lbl { display: block; font-size: 10px; color: var(--text-muted); line-height: 1; }
.ts-val { display: block; font-size: 13px; font-weight: 800; line-height: 1.2; color: var(--text-main); }
.top-notification { position: relative; background: var(--gold-gradient); color: white; padding: 6px 12px; border-radius: 20px; font-weight: 700; font-size: 12px; cursor: pointer; box-shadow: 0 2px 8px rgba(232, 160, 68, 0.4); }
.status-actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.top-lang-btn {
    border: 1px solid #d8c8bf;
    background: #fff;
    color: #7c4b3a;
    padding: 4px 10px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}
.top-notification.has-notification::after {
    content: attr(data-badge);
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2.5px #fff;
    line-height: 1;
}
.notification-panel {
    position: fixed;
    top: calc(var(--status-bar-height) + var(--install-prompt-height) + 14px);
    right: 14px;
    width: min(calc(100% - 24px), 360px);
    max-height: min(38vh, 260px);
    overflow-y: auto;
    padding-right: 2px;
    z-index: 945;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
@media (max-width: 780px) {
    .notification-panel {
        right: 50%;
        transform: translateX(50%);
        width: min(calc(100% - 20px), 460px);
    }
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #f0dfd6;
    border-radius: 16px;
    padding: 12px 13px;
    box-shadow: 0 10px 22px rgba(24, 24, 27, 0.08);
    animation: notif-slide-in 0.35s ease both;
    width: 100%;
}
.notif-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b6b, #dc2626);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}
.notif-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    color: #2f2722;
    font-weight: 650;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}
@keyframes notif-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
#toast-container.toast-stack {
    position: fixed;
    left: 50%;
    bottom: calc(var(--bottom-nav-height) + 14px);
    transform: translateX(-50%);
    width: min(calc(100% - 22px), 520px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 980;
    pointer-events: none;
}
.toast-item {
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    box-shadow: 0 8px 18px rgba(20, 20, 20, 0.18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast-item.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-item.hide {
    opacity: 0;
    transform: translateY(-6px);
}
.toast-item.is-success {
    background: linear-gradient(135deg, #10b981, #059669);
}
.toast-item.is-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}
.btn-logout-top { margin-left: 8px; border: 1px solid #f0ddd4; background: #fff; color: #9b5d48; padding: 6px 10px; border-radius: 14px; font-size: 12px; font-weight: 700; cursor: pointer; }

.scroll-container { padding: 20px; max-width: 540px; width: 100%; margin: 0 auto; padding-bottom: calc(var(--bottom-nav-height) + 24px); }

.global-status-bar {
    position: fixed;
    top: calc(8px + var(--install-prompt-height));
    left: 50%;
    transform: translateX(-50%);
    z-index: 950;
    width: min(calc(100% - 18px), 560px);
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px 10px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}
.global-status-bar::-webkit-scrollbar { height: 4px; }
.global-status-bar::-webkit-scrollbar-thumb { background: #e6d8cc; border-radius: 999px; }
.next-step-hint {
    position: fixed;
    top: calc(82px + var(--install-prompt-height));
    left: 50%;
    transform: translateX(-50%);
    z-index: 944;
    width: min(calc(100% - 18px), 560px);
    background: rgba(255,255,255,0.98);
    border: 1px solid #f0dfd6;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #7a4d3e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.status-pill {
    background: #fff7f2;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    text-align: center;
    min-width: 92px;
}
.country-control { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.country-flag-icon { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.country-label { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.country-current { font-size: 13px; font-weight: 800; color: var(--text-main); }
.country-select { border: none; background: transparent; font-weight: 700; color: var(--text-main); outline: none; font-size: 12px; max-width: 106px; }
.status-inline { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: #7a4d3e; font-weight: 600; }
.country-participants { width: auto; text-align: left; font-size: 12px; color: #7a4d3e; font-weight: 600; line-height: 1.2; }

.ad-screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 20050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(246, 248, 252, 0.98);
    padding: 14px;
    animation: fadeIn 0.25s ease;
}
.game-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    z-index: 20020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.game-overlay-content {
    width: min(440px, calc(100% - 18px));
    max-height: 92vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}
.block-overlay-card {
    text-align: center;
}
.block-model-wrap {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 12px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8ece7;
    border: 1px solid #f0d7cb;
}
.block-overlay-card h2 {
    font-size: 22px;
    color: #2b2b2b;
    margin-bottom: 8px;
}
.block-overlay-card p {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.45;
}
.ad-screen-card {
    width: min(520px, 100%);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}
.ad-screen-image-wrap {
    background: #edf3ff;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
}
.ad-screen-image {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.ad-screen-card h3 {
    font-size: 22px;
    line-height: 1.05;
    font-weight: 800;
    color: #1f2a3a;
    margin-bottom: 6px;
}
.ad-screen-card p {
    font-size: 14px;
    color: #5d6d80;
    margin-bottom: 4px;
}
.ad-runtime-card {
    width: min(760px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 20px;
}
.ad-runtime-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: #fff7f2;
}
.ad-runtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6d3523;
}
.ad-runtime-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #23c55e;
}
.ad-runtime-close-btn {
    border: 1px solid #dcc8bd;
    background: #f6efea;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 800;
    color: #8b4d3a;
    cursor: pointer;
    box-shadow: none;
}
.ad-runtime-close-x {
    border: 1px solid #dcc8bd;
    background: #fff;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: #8b4d3a;
    cursor: pointer;
}
.ad-runtime-header {
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #f2e6df;
}

.bonus-news-card {
    width: min(500px, 96vw);
    max-height: calc(100dvh - 104px - var(--install-prompt-height));
    min-height: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d9e8e4;
    box-shadow: 0 18px 40px rgba(0,0,0,0.24);
    display: flex;
    flex-direction: column;
}
.bonus-news-topbar {
    background: linear-gradient(135deg, #17c9a7, #18b59b);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bonus-news-topbar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}
.bonus-news-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.bonus-news-body {
    padding: 16px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bonus-news-body::-webkit-scrollbar { width: 8px; }
.bonus-news-body::-webkit-scrollbar-thumb { background: #cfd8df; border-radius: 999px; }
.bonus-news-tag {
    display: inline-flex;
    align-self: flex-start;
    background: #ff5f8f;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    padding: 5px 10px;
}
.bonus-news-body h3 {
    margin: 0;
    font-size: 26px;
    color: #2a3b57;
}
.bonus-news-image-wrap {
    border: 1px solid #e2e7ec;
    border-radius: 12px;
    background: #f7fafc;
    overflow: hidden;
    aspect-ratio: 16 / 8;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bonus-news-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.ad-runtime-counter-wrap {
    background: linear-gradient(135deg, #2fbf4f, #1f9a3f);
    border-radius: 18px;
    padding: 12px 14px 10px;
    text-align: center;
    color: #fff;
    transition: background 0.22s ease, border-color 0.22s ease;
}
.ad-runtime-counter-title {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #ffd4d4;
}
.ad-runtime-counter-value {
    margin: 2px 0 8px;
    font-size: clamp(28px, 5.2vw, 46px);
    line-height: 1.05;
    font-weight: 800;
    color: #ffb4b4;
}
.ad-runtime-counter-wrap.state-ready {
    background: linear-gradient(135deg, #63c986, #4aac70);
}
.ad-runtime-counter-wrap.state-counting {
    background: linear-gradient(135deg, #f4ad67, #e79245);
}
.ad-runtime-counter-wrap.state-finished {
    background: linear-gradient(135deg, #d96a70, #c9545b);
}
.ad-runtime-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(222, 237, 226, 0.45);
    overflow: hidden;
}
.ad-runtime-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #15803d);
    transition: width 0.28s ease;
}
.ad-runtime-counter-wrap.state-ready .ad-runtime-progress-fill {
    background: linear-gradient(90deg, #22c55e, #15803d);
}
.ad-runtime-counter-wrap.state-counting .ad-runtime-progress-fill {
    background: linear-gradient(90deg, #fb923c, #ea580c);
}
.ad-runtime-counter-wrap.state-finished .ad-runtime-progress-fill {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}
.ad-runtime-open-btn {
    width: 100%;
    border: 1px solid #2e9a3c;
    margin-top: 10px;
    border-radius: 14px;
    padding: 11px 14px;
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(135deg, #2fbf4f, #1f9a3f);
    box-shadow: none;
    cursor: pointer;
    transform-origin: center;
    animation: ad-open-pulse 1.05s ease-in-out infinite;
}
.ad-runtime-open-btn:disabled {
    opacity: 1;
    background: linear-gradient(135deg, #2fbf4f, #1f9a3f);
    border-color: #2e9a3c;
    cursor: default;
    animation: none;
}
.ad-runtime-open-btn.state-ready {
    background: linear-gradient(135deg, #58ba7b, #43a96b);
    border-color: #4f9f6e;
}
.ad-runtime-open-btn.state-counting {
    background: linear-gradient(135deg, #eb9b55, #db8841);
    border-color: #cc8041;
}
.ad-runtime-open-btn.state-finished {
    background: linear-gradient(135deg, #d46469, #c24f56);
    border-color: #b8575d;
}
@keyframes ad-open-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.ad-runtime-steps {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}
.ad-runtime-step {
    border: 1px solid #cfe0f2;
    border-radius: 14px;
    display: flex;
    align-items: center;
    min-height: 46px;
    overflow: hidden;
}
.ad-step-num {
    min-width: 46px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
}
.step-1 .ad-step-num { background: #62a6e2; }
.step-2 .ad-step-num { background: #e4bb39; }
.step-3 .ad-step-num { background: #7dbf5b; }
.ad-step-text {
    padding: 7px 10px;
    color: #253145;
    font-size: clamp(15px, 2.2vw, 17px);
    line-height: 1.25;
    font-weight: 650;
}
.ad-runtime-hint {
    margin: 10px 0 0;
    border-radius: 14px;
    padding: 8px 10px;
    background: #fffaf2;
    border: 1px solid #f1dfbf;
    color: #815640;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
}
.ad-runtime-footer {
    flex: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(180deg, #fff 0%, #fff7f2 100%);
}
.ad-runtime-info-box {
    width: min(720px, 100%);
    border: 1px solid #f0d5d4;
    background: #fff4f2;
    border-radius: 14px;
    padding: 10px 12px;
}
.ad-runtime-info-title {
    margin: 0 0 8px;
    font-size: clamp(16px, 2.6vw, 20px);
    line-height: 1;
    font-weight: 900;
    color: #9f3127;
}
.ad-runtime-info-text {
    margin: 0;
    color: #6b3230;
    font-size: clamp(13px, 2vw, 15px);
    line-height: 1.35;
}

.gate-screen {
    padding: 8px 0 110px;
}
.gate-hero {
    text-align: center;
    padding: 16px 16px 0;
}
.gate-money {
    font-size: clamp(40px, 8vw, 56px);
    font-weight: 800;
    color: #37be96;
    line-height: 1;
}
.gate-hero p {
    font-size: 16px;
    color: #566b86;
    margin-top: 8px;
}
.gate-image {
    width: min(360px, 86%);
    margin: 10px auto 0;
    display: block;
    border-radius: 16px;
    background: #f8ece7;
    border: 1px solid #f0c9b5;
    padding: 8px;
    object-fit: contain;
}
.gate-card {
    width: min(520px, calc(100% - 24px));
    margin: 12px auto 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow);
}
.gate-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1f2a3a;
}
.gate-card p {
    font-size: 15px;
    line-height: 1.3;
    color: #4f6583;
}

.ad-picker-card {
    width: min(760px, calc(100% - 24px));
}
.ad-picker-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.ad-cell {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ad-cell img {
    width: 100%;
    height: 76px;
    object-fit: contain;
    border-radius: 10px;
    background: #f3f7ff;
}
.ad-cell span {
    font-size: 12px;
    font-weight: 700;
    color: #1f2a3a;
}
.ad-cell small {
    font-size: 11px;
    color: var(--text-muted);
}
.ad-cell--done {
    background: #eef0f3;
    border-color: #d6dbe3;
    filter: grayscale(1);
}
.ad-cell--active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(226, 127, 89, 0.15);
    cursor: pointer;
}
.ad-cell--locked {
    opacity: 0.55;
}

@media (max-width: 768px) {
    .gate-card h2 {
        font-size: 22px;
    }
    .gate-card p {
        font-size: 17px;
    }
    .gate-hero p {
        font-size: 18px;
    }
    .ad-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ad-runtime-counter-title { font-size: 12px; }
    .ad-runtime-counter-value { font-size: clamp(24px, 10vw, 36px); }
    .ad-runtime-open-btn { font-size: clamp(16px, 6.5vw, 20px); }
    .ad-step-num { min-width: 40px; font-size: 18px; }
    .ad-step-text { font-size: clamp(13px, 4.2vw, 16px); }
    .ad-runtime-hint { font-size: clamp(13px, 4vw, 15px); }
    .ad-runtime-info-title { font-size: clamp(16px, 5.5vw, 20px); }
    .ad-runtime-info-text { font-size: clamp(12px, 4vw, 14px); }
}

/* ─── AUTH CARDS ─── */
.auth-bg { background: var(--bg-main); min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 40px 20px; }
.auth-logo { text-align: center; margin-bottom: 40px; }
.auth-logo .logo-mark {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #efe0d7;
    box-shadow: 0 10px 24px rgba(161, 99, 71, 0.16);
}
.auth-logo .logo-mark-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}
.auth-logo h1 { font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; margin-bottom: 8px; }
.auth-logo p { color: var(--text-muted); font-size: 14px; }
.auth-card { background: var(--card-bg); width: 100%; max-width: 400px; border-radius: 24px; padding: 32px 24px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 20px; margin-bottom: 24px; color: var(--text-main); font-weight: 700; }
.auth-warning-note {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #f2d9cf;
    background: #fff6f2;
}
.auth-warning-note p {
    font-size: 12.5px;
    line-height: 1.45;
    color: #7a4a3a;
    margin: 0 0 8px;
}
.auth-warning-note p:last-child { margin-bottom: 0; }
.auth-warning-highlight {
    font-weight: 800;
    color: #5f2d1f;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;}
.form-control { width: 100%; background: #f5f5f5; border: 1.5px solid transparent; padding: 14px 16px; border-radius: 12px; font-size: 15px; color: var(--text-main); font-family: inherit; transition: 0.2s; outline: none; }
.form-control:focus { background: white; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-light); }

.btn { width: 100%; padding: 14px 20px; border: none; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.2s; display: inline-flex; justify-content: center; align-items: center; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary-gradient); color: white; box-shadow: 0 4px 12px rgba(212,108,79,0.3); }
.btn-success { background: var(--green); color: white; box-shadow: 0 4px 12px rgba(46,204,113,0.3); }
.btn-green { background: #2f3640; color: #2ecc71; border: 2px solid #2ecc71;}
.btn-ghost { background: transparent; color: var(--text-muted); border: 2px solid var(--border); }
.btn-outline-danger { background: transparent; color: var(--pink); border: 2px solid var(--pink); }
.h-large { height: 56px; font-size: 16px; }

.hr-sep { margin: 24px 0; border: 0; border-top: 1px solid var(--border); }


/* ─── TALLER ─── */
.taller-intro h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-main); }
.taller-intro p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 24px; }

.taller-blocks { display: flex; flex-direction: column; gap: 12px; }
.t-block { background: var(--card-bg); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 16px; border: 2px solid var(--border); cursor: pointer; transition: 0.2s; box-shadow: var(--shadow); }
.t-block:active { transform: scale(0.98); }
.tb-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-light); display: flex; justify-content: center; align-items: center; font-size: 24px; }
.tb-info h4 { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.tb-status { font-size: 12px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.t-locked { 
    opacity: 0.55; 
    pointer-events: none; 
    border-color: #ddd; 
    box-shadow: none; 
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
    filter: grayscale(0.8);
}
.t-locked::after {
    content: '\1F512';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    opacity: 0.7;
    filter: none;
}
.t-locked .tb-icon { 
    background: #e8e8e8; 
    filter: grayscale(1);
    opacity: 0.7;
}
.t-locked .tb-info h4 { color: #999; }
.t-locked .tb-status { color: #aaa; }

.mt-12 { margin-top: 12px; }
.about-hero-card {
    background: linear-gradient(140deg, #f9eee8 0%, #fff8f4 52%, #fdeee6 100%);
    border: 1px solid #edd8ce;
    border-radius: 18px;
    padding: 20px 16px;
    box-shadow: 0 10px 20px rgba(168, 103, 73, 0.10);
}
.about-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #8c4b34;
    background: #fff;
    border: 1px solid #e8cfbf;
    border-radius: 999px;
    padding: 6px 10px;
    margin-bottom: 10px;
}
.about-hero-card h3 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #2a2a2a;
}
.about-hero-card p {
    margin: 0;
    font-size: 14px;
    color: #6e4f41;
    line-height: 1.5;
}
.about-intro-card {
    background: #fffdfc;
    border: 1px solid #f0dfd6;
    border-radius: 16px;
    padding: 16px;
}
.about-intro-card h3 { font-size: 15px; margin-bottom: 8px; color: #9a4e34; text-transform: uppercase; letter-spacing: .04em; }
.about-intro-card p { font-size: 13px; line-height: 1.6; color: #4a423f; margin: 0; }
.about-tabs { display: flex; flex-direction: column; gap: 8px; }
.about-tab {
    width: 100%;
    border: 1px solid #ead8cd;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    color: #3c2f2c;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.about-tab:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.about-tab.active {
    border-color: #d9977c;
    background: linear-gradient(135deg, #fff1e9 0%, #ffe9dc 100%);
    color: #7a3b27;
}
.about-article-card {
    background: #fff;
    border: 1px solid #efdfd5;
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 8px 18px rgba(138, 87, 62, 0.07);
}
.about-article-card h4 { font-size: 24px; margin-bottom: 12px; color: #273245; letter-spacing: -0.2px; }
.about-article-card p { font-size: 15px; line-height: 1.67; color: #2c2c2c; margin-bottom: 12px; }
.about-article-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 14px;
    object-fit: contain;
    background: #f7f2ef;
    border: 1px solid #f0dfd4;
    padding: 8px;
    max-height: 260px;
}
.about-captcha-box {
    border-top: 1px solid #ead8cf;
    padding-top: 16px;
    margin-top: 16px;
}
.about-captcha-title {
    margin: 0 0 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b503b;
    font-weight: 800;
}
.about-captcha-help {
    margin: 0;
    font-size: 13px;
    color: #6e5c56;
}
.about-captcha-row {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 8px;
    align-items: center;
}
.about-captcha-question {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 10px;
    background: #f4ebe6;
    border: 1px solid #e4cec1;
    font-weight: 900;
    color: #5f3426;
    font-size: 18px;
}
.about-captcha-input {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #dec6b8;
    background: #fff;
    padding: 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #2d2d2d;
    outline: none;
}
.about-captcha-input:focus {
    border-color: #c98567;
    box-shadow: 0 0 0 3px rgba(201, 133, 103, 0.18);
}
@media (max-width: 420px) {
    .about-captcha-row { grid-template-columns: 1fr; }
}

.t-completed { border-color: #b9e8c5; background: #f2fff4; }
.t-completed .tb-status { color: #1f9f4a; font-weight: 800; }
.t-completed .tb-icon { background: white; }
.tb-complete-marker {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2fb45a;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

/* Carrusel y Botón */
.tutorial-carousel { background: var(--card-bg); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); position: relative; }
.t-slide { display: none; }
.t-slide.active { display: block; animation: fadeIn 0.4s ease; }
.slide-num { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: white; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.t-slide p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.c-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.c-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: 0.3s; }
.c-dot.active { background: var(--accent); width: 16px; border-radius: 4px; }

/* ─── WHATTO ─── */
.whatto-header { text-align: center; margin-bottom: 24px; }
.whatto-header h3 { font-size: 20px; font-weight: 800; color: var(--text-main); margin-bottom: 8px;}
.whatto-header p { font-size: 13px; color: var(--text-muted); line-height: 1.6;}

.whatto-balance-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.whatto-balance-item {
    background: #fff7f2;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    padding: 8px 10px;
}
.whatto-balance-item span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    display: block;
}
.whatto-balance-item strong {
    margin-top: 4px;
    font-size: 24px;
    line-height: 1;
    color: var(--accent);
    display: block;
}

.ticket-visual { background: var(--primary-gradient); border-radius: 20px; padding: 0; display: flex; color: white; margin-bottom: 24px; overflow: hidden; position: relative; box-shadow: 0 10px 20px rgba(212,108,79,0.2); }
.tv-left { padding: 32px 24px; flex: 1; font-size: 24px; font-weight: 800; border-right: 2px dashed rgba(255,255,255,0.3); }
.tv-right { width: 80px; display: flex; justify-content: center; align-items: center; font-size: 32px; background: rgba(0,0,0,0.1); }
.tv-left::after, .tv-left::before { content: ''; position: absolute; width: 20px; height: 20px; background: var(--bg-main); border-radius: 50%; right: 70px; }
.tv-left::before { top: -10px; }
.tv-left::after { bottom: -10px; }

.success-box { background: var(--green-light); color: var(--green); border: 2px dashed var(--green); padding: 20px; border-radius: 16px; text-align: center; font-weight: 700; font-size: 16px; }
.w-step { animation: fadeIn 0.3s ease; }

.alert-box { padding: 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.green-alert { background: var(--green-light); color: #1e8449; border-left: 4px solid var(--green); }

.winner-card { background: var(--card-bg); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
.wc-header { background: #fdf2e9; padding: 12px 16px; font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
.wc-body { padding: 16px; display: flex; align-items: center; gap: 16px;}
.wc-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-main); display: flex; justify-content: center; align-items: center; font-size: 20px; border: 2px solid var(--border); }
.wc-details strong { display: block; font-size: 15px; color: var(--text-main); margin-bottom: 4px; }
.wc-details span { font-size: 12px; color: var(--text-dim); }

/* ─── RANKING ─── */
.countdown-banner { background: #2f3640; color: white; padding: 12px 20px; border-radius: 12px; text-align: center; font-size: 14px; margin-bottom: 24px; }
.countdown-banner strong { color: var(--gold); }
.countdown-prize { margin-top: 6px; font-size: 12px; color: #f0d6c9; font-weight: 600; }
.ranking-dominance-card {
    background: #fff7ef;
    border: 1px solid #ecd9cb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.ranking-dominance-card strong {
    display: block;
    color: #8c442d;
    font-size: 16px;
    margin-bottom: 6px;
}
.ranking-dominance-card p {
    margin: 0;
    font-size: 12px;
    color: #6d4f45;
    line-height: 1.4;
}

.podium-container { display: flex; align-items: flex-end; justify-content: center; gap: 14px; height: 176px; margin-bottom: 32px; margin-top: 32px;}
.podium { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 96px; }
.p-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--card-bg); display: flex; justify-content: center; align-items: center; margin-bottom: -15px; z-index: 2; font-size: 24px; position: relative; overflow: visible; font-weight: 700; color: #1f2a3a; }
.p-avatar.shadow { background: #ececec; }
.p-avatar.winner-avatar { border: 4px solid var(--gold); background: #fffcf0; }
.p-bar { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; font-size: 20px; font-weight: 800; color: white; border-top-left-radius: 12px; border-top-right-radius: 12px; }
.podium-rank-num { line-height: 1; }
.podium-rank-flag {
    width: 40px;
    height: 26px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 2px;
    border: 1px solid rgba(255,255,255,0.78);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.p-1 .p-bar { height: 100px; background: var(--gold-gradient); padding-top: 18px; }
.p-2 .p-bar { height: 70px; background: #bdc3c7; padding-top: 14px; }
.p-3 .p-bar { height: 50px; background: #cd7f32; padding-top: 8px; }

.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.r-row { display: flex; align-items: center; padding: 12px 16px; background: var(--card-bg); border-radius: 12px; box-shadow: var(--shadow); }
.r-row.highlight-me { border-left: 4px solid var(--accent); background: var(--accent-light); }
.r-pos { font-size: 14px; font-weight: 800; color: var(--text-muted); width: 24px; }
.r-avatar { width: 38px; height: 38px; background: var(--bg-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 16px;}
.r-flag { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.r-details { flex: 1; }
.r-details strong { font-size: 14px; }
.r-score { font-size: 14px; font-weight: 700; color: var(--accent); }

.floating-bottom-action { position: fixed; bottom: 85px; left: 0; right: 0; padding: 16px 20px; pointer-events: none; display: flex; justify-content: center; align-items: center;}
.floating-bottom-action .btn { max-width: 480px; pointer-events: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.deposit-card { text-align: center; }
.deposit-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.modal-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.deposit-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.btn-ctrl { width: 48px; height: 48px; border-radius: 50%; border: none; background: #f0f0f0; font-size: 24px; font-weight: 600; color: var(--text-main); cursor: pointer; }
.deposit-controls input { width: 100px; height: 48px; text-align: center; font-size: 24px; font-weight: 800; border: 2px solid var(--border); border-radius: 12px; }
.deposit-error { color: #c62828; font-weight: 700; font-size: 13px; min-height: 18px; }

/* ─── TORNEO ─── */
.torneo-intro { text-align: center; }
.social-cards { display: flex; flex-direction: column; gap: 18px; }
.social-card { display: flex; flex-direction: column; background: var(--card-bg); border-radius: 18px; padding: 18px; border: 1.5px solid var(--border); box-shadow: var(--shadow); }
.social-card.locked { opacity: 0.84; filter: none; }
.sc-whatsapp .sc-icon { background: #25D366; }
.sc-facebook .sc-icon { background: #1877F2; }
.sc-instagram .sc-icon { background: #E1306C; }
.sc-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; justify-content: center; align-items: center; margin-bottom: 14px; }
.sc-content h4 { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.sc-content p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.btn-sc { width: 100%; border: none; padding: 13px 14px; border-radius: 10px; font-weight: 800; font-size: 14px; cursor: pointer; transition: 0.2s; background: #102a43; color: #fff; box-shadow: 0 6px 14px rgba(16,42,67,0.2); }
.btn-sc:not(:disabled):hover { background: #0b1f32; }
.btn-sc:disabled { opacity: 0.7; cursor: not-allowed; }

/* ─── PERFIL ─── */
.profile-card { background: var(--card-bg); border-radius: 20px; padding: 32px 24px; text-align: center; box-shadow: var(--shadow); margin-top: 16px; position: relative; overflow: hidden; }
.profile-card::before { content:''; position: absolute; top:0; left:0; right:0; height: 80px; background: var(--primary-gradient); }
.pc-avatar { width: 80px; height: 80px; border-radius: 50%; background: white; border: 4px solid var(--card-bg); margin: 0 auto 16px; position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; font-size: 32px; font-weight: 800; color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.pc-stats { display: flex; justify-content: center; gap: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.pcs-item { display: flex; flex-direction: column; align-items: center; }
.pcs-item span { font-size: 18px; font-weight: 800; color: var(--text-main); }
.pcs-item small { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-top: 4px;}

.banner-card { background: var(--gold-gradient); border-radius: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; color: white; cursor: pointer; box-shadow: 0 8px 20px rgba(241, 196, 15, 0.25); transition: 0.2s; }
.banner-card:active { transform: scale(0.98); }
.profile-cycle-validator { background: var(--gold-gradient); box-shadow: 0 8px 20px rgba(241, 196, 15, 0.25); }
.banner-card.is-disabled {
    background: linear-gradient(135deg, #c9ced6 0%, #aeb6c3 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    cursor: not-allowed;
    filter: grayscale(0.2);
    pointer-events: none;
}
.banner-card.is-disabled:active { transform: none; }
.bc-icon { font-size: 32px; }
.bc-info h4 { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.bc-info p { font-size: 12px; opacity: 0.9; }
.ad-3tickets-status { margin-top: 6px; font-size: 12px; font-weight: 700; color: #fff; opacity: 1; }
.ad-3tickets-status.is-blocked { color: #ffe5e5; }

.profile-social-list { display: flex; flex-direction: column; gap: 10px; }
.profile-social-copy {
    line-height: 1.4;
    margin-bottom: 14px;
}
.profile-social-task {
    width: 100%;
    border: 1px solid #efd7ce;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.profile-social-task:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,0.05); }
.profile-social-task:active { transform: scale(0.99); }
.profile-social-task.is-done { background: #f1fff4; border-color: #bfe7c7; }
.profile-social-name { font-size: 14px; font-weight: 800; color: #fff; }
.profile-social-reward { font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.95); }
.profile-social-task.social-tiktok { background: linear-gradient(135deg, #111111 0%, #2b2b2b 100%); border-color: #111111; }
.profile-social-task.social-instagram { background: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #8134af 100%); border-color: #c13584; }
.profile-social-task.social-facebook { background: #1877f2; border-color: #1663cb; }
.profile-social-task.social-youtube { background: #ff0000; border-color: #d30000; }
.profile-social-task.social-whatsapp { background: #25d366; border-color: #1fa855; }
.profile-language-body { justify-content: center; }
.profile-language-body .top-lang-btn {
    min-width: 130px;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 13px;
}

.cofre-tabs { display: flex; background: var(--card-bg); border-radius: 12px; padding: 4px; box-shadow: var(--shadow); }
.ctab { flex: 1; border: none; background: transparent; padding: 12px; font-size: 13px; font-weight: 600; color: var(--text-muted); border-radius: 8px; transition: 0.2s; }
.ctab.active { background: var(--bg-main); color: var(--accent); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

.task-row { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--card-bg); border-radius: 12px; margin-bottom: 8px; border: 1px solid var(--border); }
.task-row span { font-size: 14px; font-weight: 600; color: var(--text-main); }
.btn-micro { background: var(--green-light); color: var(--green); border: none; padding: 8px 12px; border-radius: 6px; font-weight: 800; font-size: 12px; }

.partner-card { border: 1.5px solid var(--border); padding: 16px; border-radius: 12px; text-align: center; }
.follow-links { display: grid; gap: 10px; }
.follow-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
    background: #fff;
}
.follow-link:hover { background: #fff7f2; }
.follow-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}
.follow-logo.tiktok { background: #111827; }
.follow-logo.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.follow-logo.facebook { background: #1877f2; }
.follow-logo.youtube { background: #ff0000; }
.follow-logo.whatsapp { background: #25d366; }

/* ─── NAVEGACIÓN BOTTOM ─── */
.bottom-nav {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 16px), 560px);
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 900;
    min-height: var(--bottom-nav-height);
}
.nav-item { border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-size: 10px; font-weight: 600; opacity: 0.6; transition: 0.2s; }
.nav-item { flex: 1; min-width: 0; border-radius: 14px; padding: 6px 4px; }
.nav-item.active { opacity: 1; color: var(--accent); background: var(--accent-light); box-shadow: inset 0 0 0 1px #f4d5cb; }
.nav-icon-wrap { font-size: 24px; margin-bottom: 2px; }
.nav-label { font-size: 11px; font-weight: 700; }
.nav-item.active .nav-icon-wrap { transform: translateY(-2px) scale(1.06); }

.pub-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.pub-section h4 { font-size: 15px; margin-bottom: 10px; }
.pub-loading { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--text-muted); }
.pub-loading .spinner { width: 20px; height: 20px; border-width: 3px; }
.machine-row { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 8px; background: #fffdfc; }
.empty-machines { margin-top: 8px; padding: 12px; border-radius: 10px; background: #fff4ee; color: #8a533f; font-size: 13px; }
.ad-form .form-group { margin-bottom: 12px; }
.ad-textarea { resize: vertical; min-height: 96px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; width: 0; height: 0; pointer-events: none; }
.partner-modal-card { max-width: 520px; text-align: left; }

/* Responsive Utils */
@media (min-width: 600px) {
    .bottom-nav { width: min(calc(100% - 18px), 520px); }
    .floating-bottom-action { justify-content: center; }
    :root { --status-bar-height: 86px; }
    .country-participants { padding-left: 6px; font-size: 11px; }
    .country-select { max-width: 120px; }
}

@media (max-width: 640px) {
    body.has-install-prompt { --install-prompt-height: 86px; }
    .install-prompt-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }
    .install-prompt-copy span { white-space: normal; }
    .install-prompt-actions { justify-content: flex-end; }
}

/* --- NUEVOS ESTILOS PARA TUTORIAL Y ESTADO BLOQUEADO --- */
.modal-full-tutorial {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 20%, #fef0ea 0%, #ffe7dc 40%, #fff7f3 100%);
    z-index: 20000;
    display: none;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}
.modal-full-tutorial.show { display: flex; }
/* Modal Tutorial Paso a Paso */
.modal-full-tutorial {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: #fff;
    z-index: 9999;
    display: none; /* Se activa con flex desde JS */
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.tutorial-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}
.tutorial-header { text-align: center; margin-top: 20px; }
.tutorial-header h2 { font-size: 28px; font-weight: 800; color: #a64f2e; margin-bottom: 5px; }
.tutorial-header p { font-size: 15px; color: #71574d; font-weight: 600; }

.tutorial-step-card {
    background: #fff;
    border: 1.5px solid #f2dcd2;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(166,95,69,0.12);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ts-icon-wrap {
    width: 54px;
    height: 54px;
    background: #fdf2e9;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    flex-shrink: 0;
}
.ts-content h3 { font-size: 18px; font-weight: 800; color: #a64f2e; margin-bottom: 4px; }
.ts-content p { font-size: 14px; color: #71574d; line-height: 1.5; }

/* Bloqueada sin blanco y negro */
.nav-item.is-locked { filter: none; opacity: 0.9; }
.nav-item.is-locked .nav-icon-wrap { background: var(--accent-light); }
.nav-item.is-locked .nav-label { color: #7a655a; }

/* Monetag Ad Containers */
.monetag-ad-placeholder {
    min-height: 50px;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
}
.monetag-ad-placeholder::before {
    content: 'Publicidad';
    font-size: 10px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Adjust ad popup for side spaces on desktop */
@media (min-width: 900px) {
    .ad-runtime-card {
        width: min(760px, 96vw);
    }
}

