:root {
    --bg0: #070912;
    --bg1: rgba(255, 255, 255, 0.06);
    --bg2: rgba(255, 255, 255, 0.10);
    --stroke: rgba(255, 255, 255, 0.14);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.72);
    --muted2: rgba(255, 255, 255, 0.55);
    --accent: #ff3366;
    --accent2: #7c3aed;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --radius: 16px;
    --container: 1120px;
    --bg-overlay-a: rgba(0, 0, 0, 0.38);
    --bg-overlay-b: rgba(0, 0, 0, 0.62);
}

* { box-sizing: border-box; }

html { background: var(--bg0); }

/* Utilidad accesible (usada por selector de idioma). */
.sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html, body {
    padding: 0;
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg0);
}

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

/* Fondo “parallax” (se mueve distinto al contenido) */
body::before{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(1000px 520px at 18% 0%, rgba(255, 51, 102, 0.18), transparent 62%),
        radial-gradient(900px 600px at 92% 12%, rgba(124, 58, 237, 0.16), transparent 58%),
        linear-gradient(var(--bg-overlay-a), var(--bg-overlay-b)),
        url(../resources/background/background.jpg);
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: translateZ(0);
}

body{
    position: relative;
    min-height: 100vh;
}

body > *{
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    body::before { position: absolute; }
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.section { padding: 40px 0; }

.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.section-header p {
    margin: 0;
    color: var(--muted);
}

.card {
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

/* Superficie liviana (sin blur). */
.card-surface {
    background: rgba(15, 18, 32, 0.72);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.btn-compact{
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.92rem;
}

.btn:focus-visible {
    outline: 3px solid rgba(255, 51, 102, 0.35);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff5d86);
    color: #0b0f1a;
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.25);
}

.btn-primary:hover { transform: translateY(-1px); }

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

.btn-ghost:hover { background: rgba(255, 255, 255, 0.10); transform: translateY(-1px); }

/* Botón primario del header más discreto */
.site-header .btn-ghost{
    font-weight: 800;
}

.hero { padding: 56px 0 24px; }

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero h1 {
    margin: 10px 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--muted);
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-media img {
    width: min(380px, 100%);
    margin: 0 auto;
    border-radius: 22px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.intro { padding: 18px 18px; }
.intro p { margin: 0 0 10px; color: var(--muted); }
.intro p strong { color: var(--text); }
.intro p:last-child { margin-bottom: 0; }

.grid {
    display: grid;
    gap: 14px;
}

.stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat { padding: 18px; text-align: center; }
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.stat-label { color: var(--muted2); text-transform: lowercase; }
.stat-meta {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

.stats-pro {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-note{
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
}

.cta {
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.cta h2 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: -0.02em; }
.cta p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.faq {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.faq-item { padding: 14px 16px; }
.faq-item summary {
    cursor: pointer;
    font-weight: 800;
    letter-spacing: -0.01em;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 10px 0 0; color: var(--muted); }

.updates{
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.updates-main{ min-width: 0; }
.updates-badge{
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-weight: 800;
    font-size: 0.85rem;
}
.updates-version{
    margin-top: 10px;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}
.updates-text{
    margin: 8px 0 0;
    color: var(--muted);
}
.updates-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    .faq { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .cta { flex-direction: column; align-items: flex-start; }
    .cta-actions { justify-content: flex-start; }
    .updates { flex-direction: column; align-items: flex-start; }
    .updates-actions { justify-content: flex-start; }
}