/* ============================================================
   El Oráculo Digital — Hoja de estilos global
   ============================================================ */

:root {
    --primary:   #7c6fcd;
    --secondary: #1a2744;
    --accent:    #e8b86d;
    --text:      #f0eaff;
    --bg:        #0d1b2a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at center, var(--secondary), var(--bg));
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ── Utilidades generales ─────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { bottom: -50px; opacity: 0; }
    to   { bottom: 50px;  opacity: 1; }
}
@keyframes sparkle {
    0%, 100% { filter: brightness(1)   drop-shadow(0 0 2px  var(--accent)); }
    50%       { filter: brightness(1.3) drop-shadow(0 0 10px var(--accent)); }
}

/* ── Fondo de estrellas ───────────────────────────────────── */
.stars {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px  30px, #eee, transparent),
        radial-gradient(2px 2px at 40px  70px, #fff, transparent),
        radial-gradient(2px 2px at 50px 160px, #ddd, transparent),
        radial-gradient(2px 2px at 90px  40px, #fff, transparent),
        radial-gradient(2px 2px at 130px 80px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
}

/* ── Card / contenedor central ───────────────────────────── */
.card, .container {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(124,111,205,.2);
    width: 100%; max-width: 420px;
    padding: 2.5rem 2rem;
}
.container {
    max-width: 600px;
    text-align: center;
    animation: fadeIn 1s ease-out;
    padding: 1.5rem;
}

/* ── Tipografía ───────────────────────────────────────────── */
h1 { display: none; }
h2 { font-size: 1.6rem; color: var(--accent); text-align: center; margin-bottom: .3rem; }
p  { font-size: 1.1rem; color: #d1d5db; margin-bottom: 1rem; line-height: 1.7; }
.subtitle { text-align: center; color: #aaa; font-size: .9rem; margin-bottom: 1.5rem; }

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
    max-width: 220px; width: 100%; height: auto;
    margin-bottom: .5rem;
    filter: invert(1); mix-blend-mode: screen;
    animation: fadeIn 1.5s ease-out;
}
.logo-link {
    display: block; text-align: center;
    margin-bottom: 1.5rem;
    color: #aaa; text-decoration: none; font-size: .85rem;
}
.top-logo {
    position: absolute; top: 20px; right: 20px;
    max-width: 120px; filter: invert(1); mix-blend-mode: screen;
    z-index: 10; opacity: .6; transition: opacity .3s;
}
.top-logo:hover { opacity: 1; }

/* ── Botones ──────────────────────────────────────────────── */
.btn {
    display: block; width: 100%;
    margin-top: 1.5rem; padding: 1rem;
    background: var(--primary); border: none; border-radius: 10px;
    color: #fff; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background .2s;
    font-family: 'Outfit', sans-serif;
}
.btn:hover { background: #1e3a5f; }

.outline-btn {
    display: inline-block; padding: 10px 25px;
    border: 1px solid var(--accent); color: var(--accent);
    text-decoration: none; border-radius: 25px;
    transition: all .3s; margin: 5px;
}
.outline-btn:hover { background: var(--accent); color: #000; }

.next-btn {
    display: inline-block; margin-top: 1.5rem; padding: 12px 32px;
    background: var(--primary); border: none; border-radius: 25px;
    color: #fff; font-size: 1rem; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: background .2s;
}
.next-btn:hover { background: #1e3a5f; }

/* ── Formularios ──────────────────────────────────────────── */
label { display: block; font-size: .85rem; color: #ccc; margin-bottom: .4rem; margin-top: 1.2rem; }
input {
    width: 100%; padding: .85rem 1rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px; color: #fff; font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}
input:focus { outline: none; border-color: var(--primary); }

.error {
    background: rgba(255,80,80,.15); border: 1px solid rgba(255,80,80,.3);
    border-radius: 8px; padding: .75rem 1rem;
    margin-top: 1rem; font-size: .85rem; color: #ff8080;
}
.footer-link { text-align: center; margin-top: 1.2rem; font-size: .85rem; color: #aaa; }
.footer-link a { color: var(--accent); text-decoration: none; }

.divider { display: flex; align-items: center; gap: .8rem; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.divider span { color: #666; font-size: .8rem; white-space: nowrap; }
.google-wrap { display: flex; justify-content: center; }

/* ── Barra de cuenta (index) ─────────────────────────────── */
.account-bar {
    display: flex; justify-content: flex-end; align-items: center;
    gap: .6rem; margin-bottom: .8rem; font-size: .8rem;
}
.account-bar a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.account-bar a:hover { color: var(--accent); }
.account-bar .badge {
    background: rgba(255,158,0,.15); border: 1px solid var(--accent);
    border-radius: 20px; padding: 2px 10px;
    color: var(--accent); font-size: .72rem;
}
.tokens-badge {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px; padding: 2px 10px; color: #aaa; font-size: .72rem;
}
.tokens-badge.empty { color: #ff8080; border-color: rgba(255,80,80,.4); }

/* ── Opciones index ───────────────────────────────────────── */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.option-btn {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: white; padding: 1.2rem; border-radius: 15px;
    font-size: 1.1rem; cursor: pointer; transition: all .3s;
    text-decoration: none; display: flex;
    align-items: center; justify-content: center;
    flex-direction: column; gap: .5rem;
}
.option-btn:hover {
    background: #1e3a5f; transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.5); border-color: #2a4f80;
}
.option-btn i    { font-size: 1.8rem; margin-bottom: .2rem; }
.option-btn span { font-weight: 600; font-size: 1.25rem; }
.option-btn small { font-size: .75rem; opacity: .7; margin-top: .2rem; display: block; }

.special-btn {
    grid-column: span 2;
    background: rgba(124,111,205,.2); border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(124,111,205,.4); color: var(--accent);
}
.special-btn i { color: var(--accent); text-shadow: 0 0 10px var(--accent); animation: sparkle 3s infinite ease-in-out; }
.special-btn:hover {
    background: var(--accent); color: var(--secondary) !important;
    border-color: var(--accent); box-shadow: 0 0 40px var(--accent);
    transform: translateY(-8px) scale(1.02);
}
.special-btn:hover small, .special-btn:hover i { color: var(--secondary); text-shadow: none; animation: none; }

.premium-btn {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(232,184,109,.15), rgba(124,111,205,.2));
    border: 1px solid var(--accent); box-shadow: 0 0 20px rgba(232,184,109,.2);
    color: var(--accent) !important;
}
.premium-btn i { color: var(--accent); }
.premium-btn:hover { background: var(--accent); color: #000 !important; border-color: var(--accent); }
.premium-btn:hover i, .premium-btn:hover small { color: #000; }

/* ── Marco premium ────────────────────────────────────────── */
.premium-frame {
    border-color: rgba(255,185,40,.45) !important;
    box-shadow: 0 0 50px rgba(124,111,205,.2), 0 0 0 1px rgba(255,185,40,.2), inset 0 0 30px rgba(255,185,40,.04);
}

/* ── Badge premium ────────────────────────────────────────── */
.premium-badge {
    position: absolute; top: 20px; right: 150px; z-index: 10;
    background: rgba(255,158,0,.15); border: 1px solid var(--accent);
    border-radius: 20px; padding: 4px 14px; font-size: .75rem; color: var(--accent);
}

/* ── Pantalla de tirada ───────────────────────────────────── */
.stage {
    position: relative; width: 100%; height: 100vh; height: 100dvh;
    max-width: 1280px; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, #2a2a2a 0%, #000 100%);
}
video, iframe { width: 100%; height: 100%; object-fit: contain; box-shadow: 0 0 100px rgba(124,111,205,.3); }
.premium-frame video, .premium-frame iframe {
    box-shadow: 0 0 100px rgba(124,111,205,.3), 0 0 0 1px rgba(255,185,40,.35), inset 0 0 40px rgba(255,185,40,.03);
}
.overlay {
    position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.7); padding: 20px 40px; border-radius: 50px;
    backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,.2);
    text-align: center; animation: slideUp 1s ease-out 2s both;
}
.info-title    { font-size: 1.5rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }
.info-subtitle { font-size: .9rem; color: #ddd; margin-top: 5px; }
.back-btn {
    position: absolute; top: 20px; left: 20px;
    color: rgba(255,255,255,.7); text-decoration: none; font-size: 1rem;
    z-index: 10; transition: color .3s;
}
.back-btn:hover { color: #fff; }

/* ── Pantalla límite / vacío ──────────────────────────────── */
.message-box { text-align: center; padding: 20px; max-width: 600px; }
.message-box h2 { font-size: 2rem; margin-bottom: 20px; }
.message-box p  { font-size: 1.1rem; }
.social-links a { color: var(--accent); text-decoration: none; }
.upgrade-box {
    margin-top: 1.5rem; background: rgba(124,111,205,.15);
    border: 1px solid var(--primary); border-radius: 16px;
    padding: 1.2rem 2rem; display: inline-block;
}
.upgrade-box p { font-size: .95rem; color: #ccc; margin-bottom: .8rem; }
.upgrade-btn {
    display: inline-block; padding: 10px 28px;
    background: var(--accent); color: #000;
    border-radius: 25px; font-weight: 700;
    text-decoration: none; font-size: .95rem;
}

/* ── Subscribe ────────────────────────────────────────────── */
.card.subscribe { max-width: 480px; border-radius: 24px; box-shadow: 0 0 60px rgba(124,111,205,.3); text-align: center; }
.price { font-size: 3rem; font-weight: 700; color: #fff; margin: 1.5rem 0 .3rem; }
.price span { font-size: 1.2rem; font-weight: 300; color: #aaa; }
.features { list-style: none; margin: 1.5rem 0 2rem; text-align: left; }
.features li { padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .95rem; color: #ddd; }
.features li::before { content: '✦ '; color: var(--accent); }
.free-badge { font-size: .8rem; color: #888; margin-bottom: 1.5rem; }
.already {
    background: rgba(124,111,205,.2); border: 1px solid var(--primary);
    border-radius: 12px; padding: 1.2rem; color: #ddd; margin-top: 1rem;
}
.login-cta { margin-top: 1.5rem; font-size: .9rem; color: #aaa; }
.login-cta a { color: var(--accent); text-decoration: none; }

/* ── Links legales ────────────────────────────────────────── */
.legal-links { margin-top: 1.2rem; font-size: .72rem; color: rgba(255,255,255,.25); }
.legal-links a { color: rgba(255,255,255,.3); text-decoration: none; margin: 0 .4rem; transition: color .2s; }
.legal-links a:hover { color: var(--accent); }

/* ── Responsive móvil ─────────────────────────────────────── */
@media (max-width: 480px) {
    body { align-items: flex-start; padding: 1.2rem .8rem; }
    .container { padding: 1rem; }
    p { font-size: 1rem; margin-bottom: .6rem; }
    .options { gap: .7rem; }
    .option-btn { padding: .8rem .4rem; font-size: .95rem; }
    .option-btn i { font-size: 1.4rem; }
    .option-btn span { font-size: 1.05rem; }
}
