/* ============================================================
   MOVIDA YA — App pública (chofer)
   Mobile-first PWA
============================================================ */

:root {
    --bg: #07090d;
    --bg-deep: #04060a;
    --surface: #131922;
    --surface-elev: #1a2230;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text: #e8eaed;
    --text-muted: #8b95a3;
    --text-dim: #5a6473;
    --green: #5ED93A;
    --green-soft: #84e266;
    --green-deep: #3fa824;
    --green-glow: rgba(94, 217, 58, 0.4);
    --green-bg: rgba(94, 217, 58, 0.1);
    --amber: #f59e0b;
    --danger: #ef4444;
    --radius: 14px;
    --radius-sm: 10px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overscroll-behavior-y: none;
}

body.app-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.5;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "tnum" 1; }
.accent { color: var(--green); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   SCREEN — pantalla a pantalla completa
============================================================ */
.screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(var(--safe-top) + 24px) 22px calc(var(--safe-bottom) + 24px);
    position: relative;
    overflow: hidden;
}
.screen--auth { padding-top: calc(var(--safe-top) + 60px); }
.screen--center { justify-content: center; text-align: center; }
.screen--center .form-stack { text-align: left; }
.screen--activate { background: linear-gradient(180deg, var(--bg-deep) 0%, #0a1612 100%); }

.screen__body {
    flex: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    z-index: 1;
}
.screen__foot {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 24px;
    padding-bottom: 8px;
}

/* Background blobs (login screen) */
.screen__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}
.blob--1 {
    top: -10%; right: -20%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, var(--green-glow), transparent 70%);
}
.blob--2 {
    bottom: -15%; left: -25%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(40, 100, 130, 0.4), transparent 70%);
}

/* ============================================================
   BRAND
============================================================ */
.brand-block {
    text-align: center;
    margin-bottom: 32px;
    z-index: 1;
}
.brand-block svg { filter: drop-shadow(0 0 14px var(--green-glow)); }
.brand-block__title {
    margin: 12px 0 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.brand-block__sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
.hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}
.hero-lead {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 14px;
}
.hero-lead-soft {
    font-size: 14px;
    color: var(--text-dim);
    margin: 0 0 14px;
}
.hero-lead strong { color: var(--text); font-weight: 600; }
.greeting { color: var(--text-muted); font-size: 14px; margin: 0 0 4px; }
.greeting strong { color: var(--text); }
.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin: 24px 0 4px; }
.section-lead { font-size: 13px; color: var(--text-dim); margin: 0 0 14px; }

/* ============================================================
   FORMS
============================================================ */
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.field__hint-inline { color: var(--text-dim); text-transform: none; font-weight: 400; letter-spacing: 0; }
.field__error { color: #fca5a5; font-size: 12.5px; margin-top: 2px; }
.field__hint { color: var(--text-dim); font-size: 12px; }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px; /* >= 16px evita zoom en iOS */
    color: var(--text);
    background: rgba(7, 10, 16, 0.7);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 120ms, box-shadow 120ms;
}
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(94, 217, 58, 0.15);
}
.field.has-error input { border-color: var(--danger); }
.field input::placeholder { color: var(--text-dim); }

/* Check row */
.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    transition: background 120ms;
}
.check-row:has(input:checked) {
    background: var(--green-bg);
    border-color: var(--green);
}
.check-row input {
    width: 22px;
    height: 22px;
    accent-color: var(--green);
}
.check-row__label { font-size: 14px; color: var(--text); }

/* Radio cards (Maps/Waze) */
.radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    background: var(--surface);
    border: 2px solid var(--border-strong);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: all 120ms;
}
.radio-card:has(input:checked), .radio-card.is-active {
    border-color: var(--green);
    background: var(--green-bg);
}
.radio-card input { display: none; }
.radio-card__icon { font-size: 28px; }
.radio-card strong { font-size: 14px; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 80ms, box-shadow 120ms, background 120ms;
    text-decoration: none;
    width: auto;
}
.btn--xl { padding: 18px 24px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary {
    background: linear-gradient(180deg, #6BE543, var(--green-deep));
    color: #06210a;
    box-shadow: 0 8px 22px -8px var(--green-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--primary:active {
    transform: scale(0.98);
}
.btn--ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn--ghost:active { background: var(--surface-elev); }
.btn--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn--danger:active { background: rgba(239, 68, 68, 0.2); }
.ghost-link { color: var(--text-muted); font-size: 14px; }
.btn-icon-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 22px; line-height: 1;
    cursor: pointer;
}

/* ============================================================
   ALERTS
============================================================ */
.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.alert--danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}
.alert--ok {
    background: var(--green-bg);
    border: 1px solid rgba(94, 217, 58, 0.3);
    color: var(--green);
}

/* ============================================================
   STEP INDICATOR
============================================================ */
.step-indicator {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}
.step-indicator .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--surface-elev);
    transition: background 200ms;
}
.step-indicator .dot.is-active {
    background: var(--green);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--green-glow);
}
.step-indicator .dot.done { background: var(--green-deep); }

/* ============================================================
   ICONS / DECORATIVOS
============================================================ */
.big-icon {
    font-size: 64px;
    text-align: center;
    margin: 16px 0 24px;
    line-height: 1;
}
.big-check {
    text-align: center;
    margin: 24px 0 28px;
}

/* ============================================================
   INFO BOX
============================================================ */
.info-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 16px 0;
}
.info-box__icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}
.info-box strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.info-box small { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; display: block; }

/* Terms box */
.terms-box {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13.5px;
    margin: 16px 0;
    color: var(--text-muted);
}
.terms-box strong { color: var(--text); display: block; margin-bottom: 8px; font-size: 13px; }
.terms-box ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.terms-box li { margin-bottom: 4px; }

/* ============================================================
   APP HEADER (post-onboarding)
============================================================ */
.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: calc(var(--safe-top) + 14px) 18px 14px;
    background: rgba(7, 9, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.app-header strong { display: block; font-size: 15px; }
.app-header small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--green-bg);
    border: 1px solid rgba(94, 217, 58, 0.3);
    border-radius: 20px;
    font-size: 11px;
    color: var(--green);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}
.status-pill__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px var(--green-glow);
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================
   BOTTOM NAV
============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 20;
    display: flex;
    background: rgba(7, 9, 13, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 8px 0 calc(var(--safe-bottom) + 8px);
}
.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bottom-nav__item.is-active {
    color: var(--green);
}
.bottom-nav__item.is-active svg {
    filter: drop-shadow(0 0 4px var(--green-glow));
}

/* ============================================================
   PROFILE
============================================================ */
.profile-header {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    margin: 16px 0;
}
.profile-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #06210a;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 22px;
    flex-shrink: 0;
}
.profile-header strong { display: block; font-size: 16px; }
.profile-header small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.token-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.token-row strong { display: block; font-size: 13.5px; }
.token-row small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.chip-mini {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chip-mini--green { background: var(--green-bg); color: var(--green); }
.version-foot {
    text-align: center;
    color: var(--text-dim);
    font-size: 11px;
    margin: 28px 0 8px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

/* ============================================================
   JORNADA EMPTY STATE
============================================================ */
.jornada-empty {
    text-align: center;
    padding: 40px 20px 0;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 22px; height: 22px;
    border: 3px solid rgba(6, 33, 10, 0.3);
    border-top-color: #06210a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-foot-help { font-size: 13px; color: var(--text-muted); text-align: center; margin: 8px 0; }

/* ============ Weather strip ============ */
.weather-strip { margin: 0 -16px 16px; padding: 14px 16px; background: linear-gradient(180deg, rgba(77,208,225,0.06), transparent); border-bottom: 1px solid var(--border); }
.weather-strip__title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.weather-card { display: flex; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border-strong); border-left: 3px solid var(--cyan); border-radius: 10px; margin-bottom: 6px; align-items: flex-start; }
.weather-card--high { border-left-color: var(--amber); }
.weather-card--critical { border-left-color: var(--danger); }
.weather-card__icon { font-size: 24px; line-height: 1; }
.weather-card strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.weather-card small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============ Section title ============ */
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin: 18px 0 10px; font-weight: 600; }

/* ============ Card list (oportunidades) ============ */
.cards-list { display: flex; flex-direction: column; gap: 12px; }
.op-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; transition: opacity 200ms, transform 200ms; }
.op-card.is-skipped { opacity: 0.4; transform: scale(0.96); }
.op-card.is-voy { border-color: var(--green); background: linear-gradient(180deg, rgba(94,217,58,0.05), var(--surface)); }
.op-card--ocurrencia { border-left: 4px solid var(--green); }
.op-card--foco { border-left: 4px solid var(--amber); }
.op-card--flight { border-left: 4px solid var(--cyan); }

.op-card__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px 8px; gap: 12px; }
.op-card__time strong { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; display: block; line-height: 1; }
.op-card__time small { font-size: 12px; color: var(--text-muted); display: block; margin-top: 4px; }
.op-card__kind { font-size: 10px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; background: var(--bg-elevated); color: var(--text-muted); border-radius: 4px; border: 1px solid var(--border); }
.op-card__body { padding: 0 16px 12px; }
.op-card__body h4 { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--text); }
.op-card__subtitle { margin: 0 0 6px; font-size: 13.5px; color: var(--text-muted); }
.op-card__loc { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.op-card__meta { margin: 6px 0 0; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-dim); }
.op-card__extra { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); font-style: italic; }
.op-card__foot { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); }
.op-card__foot .btn { padding: 14px 16px; font-size: 15px; }
.op-card__voy-badge { display: block; text-align: center; padding: 12px; background: var(--green-bg); color: var(--green); font-weight: 700; font-size: 16px; border-radius: 8px; }
.btn--card-skip { padding: 10px 16px !important; font-size: 13px !important; }

/* ============ Status pill (live) ============ */
.status-pill--live .status-pill__dot { background: var(--green); box-shadow: 0 0 8px var(--green-glow); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============ End jornada ============ */
.end-jornada-section { margin: 32px -16px 0; padding: 24px 16px; border-top: 1px solid var(--border); background: var(--bg-deep); }

/* ============ Modal ============ */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; padding: 24px 20px; max-width: 360px; width: 100%; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6); }
.modal-card h3 { margin: 0 0 8px; font-size: 20px; color: var(--text); }
.modal-card p { margin: 0 0 20px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* ============ Card icon + time row ============ */
.op-card__icon-time { display: flex; gap: 12px; align-items: center; }
.op-card__icon { font-size: 28px; line-height: 1; }
.op-card__kind--ocurrencia { background: var(--green-bg); color: var(--green); border-color: rgba(94,217,58,0.25); }
.op-card__kind--foco { background: rgba(245,158,11,0.12); color: var(--amber); border-color: rgba(245,158,11,0.3); }
.op-card__kind--flight { background: rgba(77,208,225,0.12); color: var(--cyan); border-color: rgba(77,208,225,0.3); }

/* Foco priorities */
.op-card--foco { border-left-width: 4px; }
.op-card--foco.op-card--prio-critical { border-left-color: var(--danger); background: linear-gradient(180deg, rgba(239,68,68,0.06), var(--surface)); }
.op-card--foco.op-card--prio-high { border-left-color: var(--amber); }
.op-card--foco.op-card--prio-normal { border-left-color: var(--cyan); }
.op-card--foco.op-card--prio-low { border-left-color: var(--text-dim); }
.op-card--foco .op-card__time strong { font-size: 14px; letter-spacing: 1px; color: var(--amber); }

/* ============ Refresh toast (polling) ============ */
.refresh-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 80px;
    background: var(--green);
    color: #06210a;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 30px -8px var(--green-glow);
    display: flex !important;
    align-items: center;
    gap: 12px;
    z-index: 90;
    font-weight: 600;
    font-size: 14px;
    animation: toast-in 240ms ease-out;
}
@keyframes toast-in {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.refresh-toast button {
    background: rgba(6, 33, 10, 0.2);
    color: #06210a;
    border: none;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}
.refresh-toast[style*="none"] { display: none !important; }

/* ============================================================
   F1 — Header pill clickeable (apaga jornada)
============================================================ */
.status-pill--button {
    border: none; cursor: pointer; padding: 6px 12px;
    background: var(--green-bg);
}
.status-pill--button:active { transform: scale(0.94); }

/* ============================================================
   F1 — Watermark anti-screenshot
============================================================ */
.wm-layer {
    position: fixed; inset: 0; z-index: 5;
    pointer-events: none; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    transform: rotate(-22deg) scale(1.4);
    transform-origin: center;
}
.wm-line {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: rgba(255,255,255,0.045);
    white-space: nowrap;
    padding: 12px 0;
    text-align: center;
    letter-spacing: 1px;
}
.screen__body--jornada { position: relative; z-index: 10; }

/* ============================================================
   F1 — Banda crítica
============================================================ */
.critical-strip {
    margin: 0 -16px 14px; padding: 14px 16px;
    background: linear-gradient(180deg, rgba(239,68,68,0.12), rgba(239,68,68,0.04));
    border-bottom: 1px solid rgba(239,68,68,0.3);
}
.critical-strip__title {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px;
    color: #fca5a5; margin-bottom: 8px; font-weight: 700;
}
.critical-card {
    display: flex; gap: 12px; padding: 12px 14px;
    background: var(--surface);
    border: 1px solid rgba(239,68,68,0.3);
    border-left: 4px solid var(--danger);
    border-radius: 10px; margin-bottom: 6px; align-items: flex-start;
}
.critical-card__icon { font-size: 24px; line-height: 1; }
.critical-card strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.critical-card small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   F1 — Toolbar (menú gigante + filtro)
============================================================ */
.seg-toolbar {
    display: flex; gap: 10px; align-items: stretch;
    margin: 4px 0 14px;
}
.seg-menu-btn {
    flex: 1;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(180deg, var(--surface-elev), var(--surface));
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 16px; font-weight: 700;
    min-height: 56px;
}
.seg-menu-btn:active { transform: scale(0.98); }
.seg-menu-btn__icon { font-size: 22px; }
.seg-menu-btn__label { flex: 1; text-align: left; }
.seg-menu-btn__count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; padding: 3px 8px; border-radius: 99px;
    background: var(--green-bg); color: var(--green);
    min-width: 28px; text-align: center;
}
.filter-toggle {
    padding: 0 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 600;
    min-width: 92px;
}
.filter-toggle[data-mode="foryou"] {
    background: var(--green-bg);
    border-color: var(--green);
    color: var(--green);
}

/* ============================================================
   F1 — Big menu overlay (DROPDOWN GIGANTE)
============================================================ */
.big-menu-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex !important;
    align-items: flex-end; justify-content: center;
    padding: 0;
    animation: fade-in 180ms ease-out;
}
.big-menu-overlay[style*="none"] { display: none !important; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.big-menu {
    width: 100%; max-width: 600px;
    background: var(--surface);
    border-top-left-radius: 24px; border-top-right-radius: 24px;
    padding: 16px 16px calc(var(--safe-bottom) + 24px);
    box-shadow: 0 -20px 60px rgba(0,0,0,0.6);
    animation: slide-up 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.big-menu__head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 8px 16px;
}
.big-menu__head strong {
    font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-muted); font-weight: 700;
}
.big-menu__close {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface-elev); border: none;
    color: var(--text); font-size: 26px; line-height: 1;
    cursor: pointer;
}
.big-menu__item {
    display: flex; align-items: center; gap: 16px;
    width: 100%;
    padding: 22px 18px;          /* ITEMS GIGANTES — fácil de tocar */
    margin-bottom: 10px;
    background: var(--surface-elev);
    border: 2px solid var(--border-strong);
    border-radius: 16px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 18px; font-weight: 700;
    text-align: left;
    min-height: 80px;            /* mínimo 80px alto */
    transition: transform 80ms, border-color 120ms;
}
.big-menu__item:active {
    transform: scale(0.98);
    border-color: var(--green);
}
.big-menu__icon { font-size: 32px; line-height: 1; }
.big-menu__label { flex: 1; }
.big-menu__count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px; font-weight: 700;
    padding: 6px 12px; border-radius: 99px;
    background: var(--green-bg); color: var(--green);
    min-width: 40px; text-align: center;
}

/* ============================================================
   F1 — Segmento (show/hide)
============================================================ */
.segment { display: none; }
.segment.is-visible { display: block; }

/* ============================================================
   F1 — Cards: distancia/ETA + nearby + gem
============================================================ */
.op-card__dist {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
}
.op-card.is-nearby { box-shadow: 0 0 0 1px var(--green) inset; }
.op-card.is-gem {
    border-color: #f59e0b;
    box-shadow: 0 0 24px -8px rgba(245,158,11,0.4);
}
.badge-gem {
    display: inline-block;
    padding: 4px 10px; margin: 4px 0 8px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #1a1300;
    font-size: 11px; font-weight: 800;
    letter-spacing: 1px; border-radius: 4px;
}

/* ============================================================
   F2 — Feedback post-evento, suscripción, historial, install
============================================================ */
.chip-mini--red { background: rgba(220,38,38,0.15); color: #f87171; }
.chip-mini--gray { background: rgba(148,163,184,0.15); color: #94a3b8; }

.feedback-actions {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin: 6px 0 0;
}
.feedback-actions .btn { font-size: 18px; padding: 18px 12px; font-weight: 800; }

.sub-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; margin-bottom: 14px;
    background: rgba(94,217,58,0.06);
    border: 1px solid rgba(94,217,58,0.2);
    border-radius: 12px;
}
.sub-card strong { display: block; font-size: 16px; }
.sub-card small { display: block; font-size: 11px; }

.checkbox-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0; cursor: pointer; user-select: none;
}
.checkbox-row input { width: 22px; height: 22px; accent-color: var(--green); }
.checkbox-row span { font-size: 15px; }

.hist-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-bottom: 16px;
}
.hist-stat {
    text-align: center; padding: 14px 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
}
.hist-stat strong { display: block; font-size: 22px; color: var(--green); }
.hist-stat small { font-size: 11px; opacity: .6; text-transform: uppercase; letter-spacing: 0.5px; }

.hist-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hist-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}
.hist-item__icon { font-size: 22px; }
.hist-item__body { flex: 1; min-width: 0; }
.hist-item__body strong { display: block; font-size: 14px; }
.hist-item__body small { display: block; font-size: 12px; opacity: .7; }

/* Install PWA banner */
.install-banner {
    position: fixed; bottom: 76px; left: 12px; right: 12px;
    z-index: 60;
    background: var(--green); color: #0b0d10;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex; align-items: center; gap: 12px;
    font-weight: 600;
}
.install-banner__close {
    background: transparent; border: 0; color: #0b0d10;
    font-size: 22px; cursor: pointer; padding: 0 4px;
}
.install-banner__btn {
    background: #0b0d10; color: var(--green);
    border: 0; padding: 8px 14px; border-radius: 8px;
    font-weight: 700; cursor: pointer;
}

/* ============================================================
   F2.5 — Strategic point asignado (badge en card VOY)
============================================================ */
.point-assigned-badge {
    margin-top: 10px; padding: 10px 12px;
    background: linear-gradient(90deg, rgba(94,217,58,0.18), rgba(94,217,58,0.06));
    border: 1px solid rgba(94,217,58,0.4);
    border-radius: 8px;
    font-size: 13px;
    color: var(--green);
}
.point-assigned-badge strong { color: white; font-weight: 700; }

/* ============================================================
   Etapa 2 — Motor de jornada: score, revelado por hora, pronóstico
============================================================ */

/* Badges de score dentro de la card */
.op-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.op-card__score {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 4px 9px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 800; letter-spacing: .5px;
}
.op-card__score--hot  { background: rgba(239,68,68,0.16);  color: #f87171; border: 1px solid rgba(239,68,68,0.4); }
.op-card__score--warm { background: rgba(77,208,225,0.14); color: #4DD0E1; border: 1px solid rgba(77,208,225,0.35); }

/* Pronóstico del día — curva borrosa */
.forecast {
    margin: 14px 0 18px; padding: 14px 16px 12px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 14px;
}
.forecast__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.forecast__head strong { font-size: 15px; font-weight: 700; }
.forecast__head small { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.forecast__bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; }
.forecast__bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.forecast__track { width: 100%; flex: 1; display: flex; align-items: flex-end; border-radius: 6px; background: rgba(255,255,255,0.04); overflow: hidden; }
.forecast__fill {
    width: 100%; border-radius: 6px 6px 0 0;
    filter: blur(2.5px);                /* curva borrosa: sin detalle */
    transition: height 400ms ease;
    min-height: 6px;
}
.forecast__fill--l0 { background: #3a4452; }
.forecast__fill--l1 { background: #4DD0E1; }
.forecast__fill--l2 { background: #5ED93A; }
.forecast__fill--l3 { background: #f59e0b; }
.forecast__fill--l4 { background: #ef4444; }
.forecast__hour { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-muted); }
.forecast__note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.forecast__note strong { color: var(--amber); }
