/* Landing: estructura de página web moderna; los elementos de UI salen de discord.css. */

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

html {
    background: var(--bg-page);
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}
body {
    min-height: 100dvh; overflow-x: hidden;
    background: var(--bg-page); color: var(--text-normal);
    font: 400 16px/1.5 var(--font);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { color: inherit; }
a { color: var(--link); text-decoration: none; }
::selection { background: rgba(88, 101, 242, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: #2B2B30 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2B2B30; border-radius: 4px; }

.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; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 16px; background: var(--blurple); color: #fff; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 8px; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.d-btn--xl { height: 44px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.d-btn--xl i { font-size: 18px; }

/* ---------- Navbar ---------- */
.nav {
    position: sticky; top: 0; z-index: 30;
    background: rgba(26, 26, 30, 0.72);
    backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid transparent; transition: border-color 200ms ease, background-color 200ms ease;
}
.nav[data-scrolled] { border-bottom-color: var(--border-subtle); background: rgba(26, 26, 30, 0.88); }
.nav-inner { display: flex; align-items: center; gap: 24px; width: min(1160px, 100% - 48px); height: 64px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-header); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 18px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
    position: relative; padding: 6px 12px; border-radius: 8px;
    color: var(--interactive); font-size: 15px; font-weight: 500;
    transition: color 150ms ease, background-color 150ms ease;
}
.nav-links a:hover { color: var(--text-header); background: rgba(151, 151, 159, 0.1); }
.nav-links a[aria-current="true"] { color: var(--text-header); }
.nav-links a[aria-current="true"]::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--blurple);
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(48px, 9vh, 104px) 0 clamp(56px, 10vh, 112px); }
.hero-bg {
    position: absolute; inset: -64px 0 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(700px 420px at 72% 38%, rgba(88, 101, 242, 0.22), transparent 70%),
        radial-gradient(600px 380px at 12% 10%, rgba(88, 101, 242, 0.10), transparent 70%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr); gap: 56px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px;
    background: rgba(151, 151, 159, 0.1); border: 1px solid var(--border-subtle); border-radius: 999px;
    color: var(--text-normal); font-size: 13px; font-weight: 600;
}
.hero-badge-dot { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(69, 163, 102, 0.2); }
.hero-title {
    margin-top: 0; color: var(--text-header);
    font-size: clamp(38px, 1.6rem + 2.6vw, 58px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em;
    text-wrap: balance;
}
.hero-sub { margin-top: 20px; font-size: 20px; line-height: 1.4; color: var(--text-muted); }
.hero-sub strong { color: var(--text-normal); font-weight: 600; }
.hero-joke {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px;
    background: rgba(240, 178, 50, 0.1); border: 1px solid rgba(240, 178, 50, 0.45); border-radius: 10px;
    font-size: 15px; line-height: 1.4; color: #EAEAEC; text-align: left;
}
.hero-joke i { flex: none; font-size: 22px; color: #F0B232; }
.hero-joke strong { color: #fff; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-proof { margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.hero-proof b { color: var(--text-header); font-weight: 700; font-variant-numeric: tabular-nums; }

.hero-visual { position: relative; display: grid; justify-items: center; text-align: left; }
.hero-visual::before {
    content: ""; position: absolute; inset: 10% 8%; z-index: -1; border-radius: 40px;
    background: radial-gradient(closest-side, rgba(88, 101, 242, 0.35), transparent); filter: blur(30px);
}
.hero-card { position: relative; }
.hero-card .d-profile {
    width: 340px; transform: rotate(-2deg);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .hero-card .d-profile:hover { transform: rotate(0deg) translateY(-4px); }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 10vh, 112px) 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-title { color: var(--text-header); font-size: clamp(30px, 1.4rem + 1.6vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.section-sub { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--text-muted); }

/* Encuesta grande */
.poll-big { max-width: 620px; margin-inline: auto; padding: 20px; border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5); }
.poll-big .d-poll-q { font-size: 18px; }
.poll-big .d-poll-answer { min-height: 56px; font-size: 17px; }

/* Bento */
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tile {
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px;
    background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px;
}
.tile--big { grid-row: span 2; background: linear-gradient(180deg, rgba(88, 101, 242, 0.08), transparent 45%), var(--bg-card); }
.tile-step {
    display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px;
    border-radius: 8px; background: rgba(88, 101, 242, 0.16); color: #A5ACF8; font-size: 14px; font-weight: 700;
}
.tile-title { color: var(--text-header); font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.tile-text { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.tile-link { align-self: flex-start; }

.mock { padding: 16px; background: var(--bg-page); border: 1px solid var(--border-subtle); border-radius: 10px; }
.mock-label { margin: 12px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-soft); }
.mock-label:first-child { margin-top: 0; }
.mock-select { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px; background: var(--bg-select); border-radius: 8px; font-size: 14px; color: var(--text-normal); }
.mock-select i { color: var(--interactive); }
.mock-pad { position: relative; aspect-ratio: 756 / 280; background: var(--bg-select); border-radius: 8px; overflow: hidden; }
.mock-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 14px; }
.mock-cancel { font-size: 14px; font-weight: 500; color: var(--text-header); }
.mock .d-btn { pointer-events: none; }

/* Motivos */
.motivos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 920px; margin-inline: auto; }
.d-mention--static { cursor: default; }
.d-mention--static:hover { background: rgba(88, 101, 242, 0.3); color: var(--blurple-soft); }
.motivo { padding: 16px 12px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; }
.motivo .d-msg { padding: 2px 8px 2px 60px; }
.motivo .d-msg-avatar { left: 8px; }
.motivo .d-msg-actions { top: -12px; right: 4px; }
.motivo .d-skeleton { padding-left: 60px; padding-right: 8px; }
.motivo .d-skeleton::before { left: 8px; }
.motivos-note { margin-top: 16px; text-align: center; font-size: 14px; color: var(--text-muted); }

/* CTA */
.section--cta { padding-top: 32px; }
.cta {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: clamp(28px, 4vw, 48px); border-radius: 16px;
    background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 60%), var(--blurple);
    color: #fff;
}
.cta-art { position: absolute; right: -24px; bottom: -48px; font-size: 220px; color: rgba(255, 255, 255, 0.08); transform: rotate(-18deg); pointer-events: none; }
.cta-copy { position: relative; max-width: 520px; }
.cta-title { font-size: clamp(28px, 1.3rem + 1.4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.cta-sub { margin-top: 10px; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-subtle); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-link { padding: 0; background: none; border: 0; color: var(--text-muted); font: 500 14px/1 var(--font); cursor: pointer; }
.footer-link:hover { color: var(--text-header); text-decoration: underline; }
.footer-legal { margin-left: auto; font-size: 13px; color: var(--text-faint); }

/* ---------- Modal de ban: pad ---------- */
.label-note { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.pad {
    position: relative; aspect-ratio: 756 / 280; width: 100%;
    background: #1F1E23; border: 1px solid #333238; border-radius: 8px;
    touch-action: none; overflow: hidden; cursor: crosshair; transition: border-color 150ms ease;
}
.pad:hover { border-color: #45444B; }
.pad[data-active] { border-color: var(--link); }
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.pad-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-faint); font-size: 15px; pointer-events: none; transition: opacity 150ms ease; }
.pad[data-ink] .pad-placeholder { opacity: 0; }
.pad-line { position: absolute; left: 8%; right: 8%; bottom: 24%; border-bottom: 1px dashed rgba(181, 186, 193, 0.25); pointer-events: none; }
.pad-corner { position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; gap: 2px; }
.pad-icon { width: 30px; height: 30px; font-size: 16px; }
.pad-icon:disabled { opacity: 0; pointer-events: none; }
.pad-hint { position: absolute; right: 12px; bottom: 8px; z-index: 2; font-family: var(--mono); font-size: 12px; color: #6D6C72; pointer-events: none; }
.pad-hint[data-ok] { color: var(--online); }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-top: 8px; }
.replay { width: 100%; aspect-ratio: 756 / 280; background: #1F1E23; border: 1px solid #333238; border-radius: 8px; }
.d-modal-title .brand-mark { width: 28px; height: 28px; font-size: 16px; border-radius: 9px; }
.tile .d-check { padding: 14px; background: #1F1E23; border: 1px solid #333238; border-radius: 8px; align-items: center; }
.d-v2-row { display: flex; flex-wrap: wrap; gap: 8px; }
.prose p { font-size: 15px; line-height: 1.55; color: var(--text-normal); }
.prose p + p { margin-top: 10px; }

/* ---------- Revelado al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
    .js .reveal[data-in] { opacity: 1; transform: none; }
    .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
    .hero-copy > :nth-child(2) { animation-delay: 60ms; }
    .hero-copy > :nth-child(3) { animation-delay: 120ms; }
    .hero-copy > :nth-child(4) { animation-delay: 180ms; }
    .hero-copy > :nth-child(5) { animation-delay: 240ms; }
    .hero-visual { animation: rise 800ms var(--ease-out) 150ms both; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Barra móvil ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-copy { max-width: 640px; margin-inline: auto; }
    .hero-card .d-profile { transform: none; }
    .motivos-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .container, .nav-inner { width: calc(100% - 32px); }
    .nav-links { display: none; }
    .nav-inner > .d-btn { margin-left: auto; }
    .hero-sub { font-size: 18px; }
    .hero-actions .d-btn { flex: 1 1 100%; }
    .hero-card .d-profile { width: min(340px, calc(100vw - 32px)); }
    .bento { grid-template-columns: 1fr; }
    .tile--big { grid-row: auto; }
    .motivos-grid { grid-template-columns: 1fr; }
    .cta-actions, .cta-actions .d-btn { width: 100%; }
    .footer-legal { margin-left: 0; }

    .mobile-bar {
        position: fixed; inset: auto 0 0 0; z-index: 40;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(18, 18, 20, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-subtle);
        transform: translateY(110%); transition: transform 260ms var(--ease-out);
    }
    .mobile-bar[data-show] { transform: none; }
    .mobile-bar-info { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--text-muted); }
    .mobile-bar-info img { width: 28px; height: 28px; border-radius: 50%; }
    .mobile-bar-info b { color: var(--text-header); font-variant-numeric: tabular-nums; }
    .d-toast { bottom: calc(76px + env(safe-area-inset-bottom)); }

    .d-modal { width: 100%; max-width: none; max-height: calc(100dvh - 16px); margin: auto auto 0; border-radius: 16px 16px 0 0; border-bottom: 0; }
    .d-modal-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    @media (prefers-reduced-motion: no-preference) {
        .d-modal[open] { animation: sheet-in 320ms var(--ease-sheet); }
        @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *:not(.d-check-spin):not(.d-dots > span), *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
