/* GameDex - hoja de estilos
   Sin dependencias externas: todo el sitio carga desde el propio dominio. */

:root {
    --bg: #0e1015;
    --bg-soft: #13161d;
    --card: #181c25;
    --card-2: #1d222c;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);
    --text: #e9ecf3;
    --muted: #9aa3b5;
    --muted-2: #7b8496;
    --blue: #6090f0;
    --violet: #9060f0;
    --pink: #d070d0;
    --grad: linear-gradient(120deg, #6090f0 0%, #9060f0 50%, #d070d0 100%);
    --radius: 16px;
    --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Fondo con un halo de color muy suave */
body::before {
    content: "";
    position: fixed;
    inset: -20% -10% auto -10%;
    height: 70vh;
    background:
        radial-gradient(60% 60% at 20% 0%, rgba(96, 144, 240, .16), transparent 70%),
        radial-gradient(50% 50% at 80% 10%, rgba(208, 112, 208, .12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---------- Idioma ---------- */
body[data-lang="es"] .t-en,
body[data-lang="en"] .t-es { display: none !important; }

/* ---------- Cabecera ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(14, 16, 21, .78);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: .2px;
}

.brand img { width: 34px; height: 34px; }

.nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    font-size: 14px;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
}

.nav a:hover { color: var(--text); }

.lang {
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
}

.lang button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.lang button[aria-pressed="true"] {
    background: rgba(255, 255, 255, .1);
    color: var(--text);
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 10px rgba(144, 96, 240, .8);
}

h1 {
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 18px;
    font-weight: 750;
}

h1 .grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 17.5px;
    color: var(--muted);
    margin: 0 0 28px;
    max-width: 46ch;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 11px;
    font-weight: 650;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .15s, box-shadow .15s, background .15s;
    white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: var(--grad);
    color: #0b0d12;
    box-shadow: 0 10px 30px -12px rgba(144, 96, 240, .9);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px -14px rgba(208, 112, 208, .95);
}

.btn-ghost {
    background: rgba(255, 255, 255, .04);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
    font-size: 13px;
    color: var(--muted-2);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

.hero-shot {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03);
    background: var(--card);
}

.hero-shot img { width: 100%; height: auto; }

/* ---------- Secciones ---------- */
section { padding: 76px 0; position: relative; z-index: 1; }

.section-head { max-width: 62ch; margin-bottom: 40px; }

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--violet);
    margin: 0 0 10px;
}

h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -.015em;
    margin: 0 0 12px;
    font-weight: 720;
}

.section-head p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* ---------- Tarjetas de funciones ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.card {
    background: linear-gradient(180deg, var(--card-2), var(--card));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    transition: border-color .2s, transform .2s;
}

.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.card .ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(144, 96, 240, .12);
    border: 1px solid rgba(144, 96, 240, .25);
    margin-bottom: 14px;
}

.card .ico svg { width: 19px; height: 19px; stroke: #b79bff; }

.card h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 650; }

.card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Capturas ---------- */
.shots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.shot {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    cursor: zoom-in;
    padding: 0;
    text-align: left;
}

.shot img { width: 100%; height: auto; transition: transform .35s ease, opacity .2s; }

.shot:hover img { transform: scale(1.02); opacity: .92; }

.shot .cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 16px 12px;
    font-size: 13px;
    color: #dfe4ee;
    background: linear-gradient(to top, rgba(8, 10, 14, .92), transparent);
    pointer-events: none;
}

/* ---------- Privacidad ---------- */
.privacy {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.privacy-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.checklist li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 12px;
    font-size: 14.5px;
    color: var(--muted);
}

.checklist strong { color: var(--text); font-weight: 600; }

.check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(96, 240, 160, .1);
    border: 1px solid rgba(96, 240, 160, .3);
    margin-top: 2px;
}

.check svg { width: 12px; height: 12px; stroke: #6ef0a8; }

.note {
    margin-top: 22px;
    padding: 14px 16px;
    border-left: 2px solid var(--violet);
    background: rgba(144, 96, 240, .07);
    border-radius: 0 10px 10px 0;
    font-size: 13.5px;
    color: var(--muted);
}

/* ---------- Instalación ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    counter-reset: step;
    margin-bottom: 28px;
}

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px;
    position: relative;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--grad);
    color: #0b0d12;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 14px;
}

.step h3 { margin: 0 0 6px; font-size: 15px; }

.step p { margin: 0; font-size: 13.5px; color: var(--muted); }

.install-notes { display: grid; gap: 12px; max-width: 78ch; }

.install-notes p { margin: 0; font-size: 13.5px; color: var(--muted); }

.install-notes a { color: #b79bff; }

code {
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: .92em;
    background: rgba(255, 255, 255, .07);
    padding: 2px 6px;
    border-radius: 5px;
}

/* ---------- CTA final ---------- */
.final {
    text-align: center;
    padding: 90px 0;
}

.final h2 { margin-bottom: 10px; }

.final p { color: var(--muted); margin: 0 auto 28px; max-width: 52ch; }

.final .actions { justify-content: center; }

/* ---------- Pie ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 34px 0;
    font-size: 13px;
    color: var(--muted-2);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    align-items: center;
    justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

.footer-links a { color: var(--muted); text-decoration: none; }

.footer-links a:hover { color: var(--text); }

/* ---------- Visor de capturas ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 32px;
    background: rgba(6, 8, 12, .92);
    backdrop-filter: blur(6px);
}

.lightbox[open], .lightbox.is-open { display: grid; }

.lightbox img {
    max-width: min(1600px, 94vw);
    max-height: 88vh;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 30px 80px -30px #000;
}

.lightbox button {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .privacy-grid { grid-template-columns: 1fr; gap: 28px; }
    .steps { grid-template-columns: 1fr; }
    .nav { display: none; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 18px; }
    .hero { padding: 44px 0 20px; }
    section { padding: 56px 0; }
    .features { grid-template-columns: 1fr; }
    .shots { grid-template-columns: 1fr; }
    .actions .btn { flex: 1 1 auto; justify-content: center; }
    .site-header .wrap { height: 60px; gap: 12px; }
    .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
