/* ══════════════════════════════════════════════════════════
   🚀 QUIROMANCIA SUPREMA — NEXT LEVEL ARSENAL v10.0
   Estilos: Onboarding spotlight · Command Palette ⌘K ·
   Horóscopo diario real · Banner Pixar del Portal Cósmico
   ══════════════════════════════════════════════════════════ */

/* ═══════ 🎬 BANNER PIXAR DEL PORTAL CÓSMICO ═══════ */
.cosmos-hero-banner {
    position: relative;
    max-width: 900px;
    margin: 0 auto 30px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 26px 56px -16px rgba(70, 30, 180, 0.5),
        0 10px 24px -8px rgba(0, 0, 0, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 0.12);
    border: 3px solid rgba(255, 255, 255, 0.1);
    animation: cosmosBannerIn 0.7s var(--ease-spring, cubic-bezier(0.34,1.56,0.64,1)) backwards;
}
@keyframes cosmosBannerIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cosmos-hero-banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.cosmos-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(6, 3, 20, 0.55) 100%);
    pointer-events: none;
}
[data-theme="light"] .cosmos-hero-banner::after {
    background: linear-gradient(180deg, transparent 65%, rgba(250, 248, 255, 0.35) 100%);
}

/* ═══════ 🧭 ONBOARDING ═══════ */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 2, 16, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.onboarding-overlay.visible { opacity: 1; }
[data-theme="light"] .onboarding-overlay { background: rgba(240, 236, 249, 0.8); }
.onboarding-card {
    width: min(440px, 92vw);
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px 30px 26px;
    text-align: center;
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.14),
        0 30px 70px -18px rgba(0, 0, 0, 0.65);
    animation: onbCardIn 0.55s var(--ease-spring, cubic-bezier(0.34,1.56,0.64,1)) backwards;
}
@keyframes onbCardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.onboarding-emoji {
    font-size: 3.6rem;
    margin-bottom: 14px;
    display: inline-block;
    animation: onbEmojiBounce 0.7s var(--ease-bounce, cubic-bezier(0.68,-0.55,0.265,1.55)) backwards 0.15s;
    filter: drop-shadow(0 8px 18px rgba(240, 180, 41, 0.35));
}
@keyframes onbEmojiBounce {
    0% { transform: scale(0) rotate(-20deg); }
    70% { transform: scale(1.2) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
}
.onboarding-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text);
}
.onboarding-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 72px;
}
.onboarding-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 22px;
}
.onb-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.35s var(--ease-spring, ease);
}
.onb-dot.active {
    background: var(--accent);
    width: 26px;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(240, 180, 41, 0.5);
}
.onboarding-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.onboarding-skip {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 0.88rem;
    cursor: pointer;
    padding: 10px 16px;
    min-height: 44px;
    transition: color 0.25s ease;
}
.onboarding-skip:hover { color: var(--text); }
.onboarding-next {
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    min-height: 48px;
}

/* ═══════ ⌨️ COMMAND PALETTE ═══════ */
.cmdp-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12vh 16px 16px;
    background: rgba(4, 2, 16, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cmdp-overlay.visible { opacity: 1; }
[data-theme="light"] .cmdp-overlay { background: rgba(200, 190, 230, 0.5); }
.cmdp-box {
    width: min(560px, 94vw);
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.12),
        0 30px 70px -14px rgba(0, 0, 0, 0.7);
    animation: cmdpIn 0.3s var(--ease-spring, cubic-bezier(0.34,1.56,0.64,1)) backwards;
}
@keyframes cmdpIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cmdp-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}
.cmdp-input-row i { color: var(--accent); }
.cmdp-input {
    flex: 1;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
}
.cmdp-input-row kbd,
.cmdp-item kbd {
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    font-size: 0.68rem;
    color: var(--text-dim);
    font-family: var(--font-tech);
}
.cmdp-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 8px;
}
.cmdp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.93rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, transform 0.2s var(--ease-spring, ease);
    min-height: 46px;
}
.cmdp-item:hover { background: var(--glass-light); }
.cmdp-item.selected {
    background: linear-gradient(135deg, rgba(124, 106, 239, 0.22), rgba(139, 92, 246, 0.12));
    box-shadow: inset 0 0 0 1px rgba(124, 106, 239, 0.4);
}
.cmdp-icon { font-size: 1.15rem; width: 28px; text-align: center; flex-shrink: 0; }
.cmdp-label { flex: 1; }
.cmdp-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 26px;
    font-size: 0.9rem;
}

/* ═══════ 🔮 HORÓSCOPO DIARIO REAL ═══════ */
.horoscope-sign-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}
.horoscope-sign-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--dark-card);
    color: var(--text-muted);
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring, ease), border-color 0.25s ease, box-shadow 0.25s ease;
    min-height: 62px;
}
.horoscope-sign-btn span { font-size: 1.4rem; line-height: 1; }
.horoscope-sign-btn small { font-size: 0.62rem; }
.horoscope-sign-btn:hover { transform: translateY(-3px); border-color: var(--primary); }
.horoscope-sign-btn.active {
    border-color: var(--accent);
    background: linear-gradient(160deg, var(--dark-card), rgba(240, 180, 41, 0.08));
    box-shadow: 0 6px 18px -4px rgba(240, 180, 41, 0.4);
    color: var(--text);
    transform: scale(1.06);
}
.horoscope-result {
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
}
.horoscope-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.horoscope-symbol {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}
.horoscope-head h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
}
.horoscope-date {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: capitalize;
}
.horoscope-energy {
    margin-left: auto;
    text-align: center;
}
.horoscope-energy-num {
    display: block;
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}
.horoscope-energy-label { font-size: 0.7rem; color: var(--text-muted); }
.horoscope-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--dark-light);
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.horoscope-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--cosmic-pink), var(--accent));
    transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(240, 180, 41, 0.4);
}
.horoscope-lines {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}
.horoscope-lines li {
    padding: 12px 16px;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.horoscope-lines li strong { color: var(--text); }

/* ═══════ ♿ REDUCED MOTION ═══════ */
@media (prefers-reduced-motion: reduce) {
    .cosmos-hero-banner,
    .onboarding-card,
    .onboarding-emoji,
    .cmdp-box { animation: none !important; }
}

/* ═══════ 📱 MÓVIL ═══════ */
@media (max-width: 640px) {
    .cmdp-overlay { padding-top: 8vh; }
    .onboarding-text { min-height: 96px; }
    .horoscope-sign-picker { grid-template-columns: repeat(4, 1fr); }
    .cosmos-hero-banner { border-radius: 20px; margin-bottom: 22px; }
}
