@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

:root {
    /* --- Paleta "ticket stub" --- */
    --ink: #121316;              /* fondo principal, negro cálido */
    --panel: #1b1c21;            /* fondo de tarjetas */
    --panel-raised: #232429;     /* tarjetas al hover / elevadas */
    --seam: #3a3b42;             /* líneas de costura / bordes sutiles */

    --stub: #2f8bff;             /* azul - acento primario (color de boleto) */
    --stub-deep: #0056b3;        /* azul oscuro para degradados */
    --teal: #33c6b0;             /* acento secundario - sello "reclamado" */

    --paper: #f4efe6;            /* texto principal, blanco cálido tipo papel */
    --text-main: #f4efe6;
    --text-dark: #f4efe6;
    --ash: #97979f;              /* texto atenuado */
    --text-muted: #97979f;

    --border-color: #2a2b31;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

    --tran-03: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);

    /* Discord embed (se mantiene fiel a los colores reales de Discord) */
    --primary-color: var(--stub);
    --secondary-blue: var(--stub-deep);
    --body-color: var(--ink);
    --card-bg: var(--panel);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--ink);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(42, 43, 44, 0.09), transparent 40%),
        radial-gradient(circle at 88% 4%, rgba(51, 198, 176, 0.06), transparent 35%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a { text-decoration: none; transition: var(--tran-03); }

/* Enfoque de teclado visible en toda la web */
a:focus-visible, button:focus-visible {
    outline: 2px dashed var(--stub);
    outline-offset: 4px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--stub);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--stub);
}

/* --- HEADER --- */
header {
    padding: 0 min(80px, 6vw);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(30px, 5vw, 60px);
}

header .left { max-width: 640px; }

header .left h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(34px, 5.4vw, 68px);
    line-height: 1.08;
    color: var(--text-main);
    font-weight: 400;
    letter-spacing: -0.01em;
}

header .left h1 span { color: var(--stub); }

header .left p {
    margin: 22px 0 36px;
    color: var(--text-muted);
    font-size: clamp(15px, 1.6vw, 18px);
    max-width: 52ch;
}

.header-btns { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.main-btn {
    display: inline-flex;
    align-items: center;
    background: var(--stub);
    padding: 12px 28px;
    border-radius: 50px;
    color: var(--ink) !important;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(47, 139, 255, 0.25);
}

.main-btn i {
    background: rgba(18, 19, 22, 0.15);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
}

.sub-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px dashed var(--seam);
    color: var(--paper);
    font-weight: 600;
}

.main-btn:hover { transform: translateY(-3px); background: var(--stub-deep); box-shadow: 0 14px 28px rgba(0, 86, 179, 0.3); }
.sub-btn:hover { transform: translateY(-3px); border-color: var(--stub); color: var(--stub); }

/* Etiqueta de boleto colgante para el logo del héroe */
.stub-tag {
    position: relative;
    flex-shrink: 0;
    width: clamp(160px, 22vw, 280px);
    aspect-ratio: 1;
    background: var(--panel);
    border: 1px dashed var(--seam);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 3vw, 36px);
    transform: rotate(-6deg);
    transition: var(--tran-03);
    animation: float 6s ease-in-out infinite;
}

.stub-tag::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: var(--ink);
    border: 1px dashed var(--seam);
    border-radius: 50%;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
}

.stub-tag:hover { transform: rotate(0deg); border-color: var(--stub); }

.stub-tag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(-16px); }
}

.stub-tag:hover { animation-play-state: paused; }

/* --- STATS BAR --- */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 24px;
    padding: 50px min(80px, 6vw);
    background: var(--panel);
    text-align: center;
    border-top: 1px dashed var(--seam);
    border-bottom: 1px dashed var(--seam);
    margin-bottom: 60px;
}

.stat-card h3 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(28px, 4vw, 40px);
    color: var(--stub);
}
.stat-card p { color: var(--text-muted); margin-top: 4px; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; }

/* --- SLOGAN / FEATURES --- */
.slogan {
    padding: 0 min(80px, 6vw);
    margin-bottom: 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 22px;
}

.slogan .item {
    padding: 34px;
    background: var(--panel);
    color: var(--text-dark);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--tran-03);
}

.slogan .item:hover {
    transform: translateY(-8px);
    border-color: var(--stub);
    background: var(--panel-raised);
}

.slogan .item .header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.slogan .item .header i { font-size: 30px; color: var(--stub); }
.slogan .item .header h5 { font-size: 18px; }
.slogan .item p { color: var(--text-muted); font-size: 15px; }
.slogan .item p span { color: var(--teal); font-weight: 700; }

/* --- SEPARADORES --- */
h2.separator {
    padding: 0 min(80px, 6vw);
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(26px, 4vw, 36px);
    margin: 70px 0 30px;
    text-align: center;
    color: var(--text-main);
}

h2.separator span { color: var(--stub); }

/* --- SYSTEMS (tarjetas estilo boleto perforado) --- */
.systems {
    padding: 0 min(80px, 6vw);
    margin-bottom: 70px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
    gap: 28px 20px;
    counter-reset: ticket;
}

.systems .item {
    counter-increment: ticket;
    position: relative;
    background: var(--panel);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 18px;
    border-radius: 14px;
    border: 1px dashed var(--seam);
    transition: var(--tran-03);
    isolation: isolate;
}

/* muescas laterales de boleto */
.systems .item::before,
.systems .item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--ink);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.systems .item::before { left: -9px; }
.systems .item::after { right: -9px; }

.systems .item .info::before {
    content: '№ ' counter(ticket, decimal-leading-zero);
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--teal);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.systems .item:hover {
    border-color: var(--stub);
    background: var(--panel-raised);
    transform: translateY(-4px) rotate(-1deg);
}

.systems .item i { font-size: 28px; color: var(--stub); flex-shrink: 0; }
.systems .item h4 { font-size: 16px; font-weight: 700; }

/* --- FAQ SECTION --- */
.faq-container {
    padding: 0 min(80px, 6vw) 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 22px;
    counter-reset: faq;
}

.faq-card {
    counter-increment: faq;
    position: relative;
    background: var(--panel);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--seam);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.faq-card::before {
    content: 'P' counter(faq, decimal-leading-zero);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--ash);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.faq-card:hover {
    transform: translateY(-6px) translateX(4px);
    border-left: 3px solid var(--stub);
    background: var(--panel-raised);
}

.faq-card h4 { color: var(--paper); margin-bottom: 10px; font-size: 17px; }
.faq-card p { color: var(--text-muted); font-size: 15px; }

/* --- DISCORD PREVIEW (fiel a los colores reales de Discord) --- */
.transcript-preview {
    max-width: 650px;
    width: min(650px, calc(100% - 40px));
    margin: 60px auto;
    background: #313338;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #4e5058;
    box-shadow: var(--shadow);
}

.transcript-header { background: #2b2d31; padding: 12px 18px; display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.transcript-header p { color: #949ba4; font-size: 13px; margin-left: 4px; }
.transcript-body { padding: clamp(16px, 4vw, 25px); text-align: left; }
.chat-msg { display: flex; gap: clamp(10px, 3vw, 16px); align-items: flex-start; }
.user-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.msg-content { min-width: 0; flex: 1; }
.user-name { color: #f2f3f5; font-weight: 600; }
.bot-tag { background: #5865f2; color: white; font-size: 10px; padding: 2px 5px; border-radius: 4px; vertical-align: middle; }
.timestamp { color: #949ba4; font-size: 12px; margin-left: 4px; }
.discord-embed { margin-top: 8px; background: #2b2d31; border-left: 4px solid var(--stub); padding: 12px 16px; border-radius: 4px; }
.embed-title { color: #f2f3f5; font-weight: 700; margin-bottom: 6px; }
.embed-description { color: #dbdee1; font-size: 14px; line-height: 1.5; }
.mention { background: rgba(88,101,242,0.3); color: #c9cdfb; padding: 0 2px; border-radius: 3px; }
.discord-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.d-btn { border: none; border-radius: 3px; padding: 7px 16px; color: white; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 14px; }
.btn-danger { background: #da373c; } .btn-success { background: #248046; } .btn-secondary { background: #4e5058; }

/* --- CTA SECTION (gran boleto perforado) --- */
.cta-section { padding: 0 min(80px, 6vw) 100px; }
.cta-content {
    position: relative;
    background: linear-gradient(135deg, var(--stub), var(--stub-deep));
    padding: clamp(40px, 6vw, 60px);
    border-radius: 28px;
    text-align: center;
    color: var(--ink);
    isolation: isolate;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 2px dashed rgba(18, 19, 22, 0.25);
    border-radius: 16px;
    pointer-events: none;
}

.cta-content h2 { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: clamp(22px, 4vw, 32px); }
.cta-content p { margin-top: 10px; opacity: 0.85; font-size: clamp(14px, 2vw, 16px); }

.cta-btn {
    display: inline-block;
    background: var(--ink);
    color: var(--stub) !important;
    padding: 15px 42px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 22px;
}
.cta-btn:hover { transform: translateY(-3px); background: #000; }

/* --- FOOTER --- */
footer {
    background: var(--panel);
    border-top: 1px dashed var(--seam);
    padding: 50px min(80px, 6vw);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

footer h3 { font-size: clamp(16px, 2.4vw, 20px); max-width: 40ch; }

footer .right .links { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 12px; }
footer .right .links a { color: var(--text-muted); font-size: 14px; }
footer .right .links a:hover { color: var(--stub); }
footer .right .social i { font-size: 22px; color: var(--paper); margin-left: 15px; cursor: pointer; }
footer .right .social i:hover { color: var(--stub); }
footer .right p { color: var(--ash); font-size: 13px; margin-top: 6px; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    header { flex-direction: column-reverse; min-height: auto; padding: 50px 20px; text-align: center; gap: 34px; }
    header .left { max-width: 100%; }
    header .left p { margin-left: auto; margin-right: auto; }
    .header-btns { justify-content: center; }
    .eyebrow { justify-content: center; }

    .stats-bar, .faq-container, .slogan, .systems, footer { padding-left: 20px; padding-right: 20px; }

    footer { flex-direction: column; text-align: center; }
    footer .right .links { justify-content: center; }
}

@media (max-width: 768px) {
    .stats-bar { padding-top: 36px; padding-bottom: 36px; gap: 18px 30px; }
    .slogan, .systems { margin-bottom: 50px; }
    h2.separator { margin: 50px 0 24px; }
    .faq-container { padding-bottom: 60px; }
    .cta-section { padding-bottom: 70px; }
    .discord-buttons { justify-content: flex-start; }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    header { padding: 40px 16px; }
    .stub-tag { width: 140px; }
    .stats-bar, .slogan, .systems, .faq-container, .cta-section, footer { padding-left: 16px; padding-right: 16px; }
    .stats-bar { flex-direction: column; gap: 22px; }
    .systems { grid-template-columns: 1fr; }
    .systems .item::before, .systems .item::after { display: none; }
    .header-btns { flex-direction: column; align-items: stretch; }
    .header-btns a { justify-content: center; }
    .cta-content { border-radius: 20px; }
    .cta-btn { width: 100%; }
    .discord-buttons { flex-direction: column; }
    .d-btn { justify-content: center; }
}

/* ==========================================================================
   PÁGINAS LEGALES (Términos / Privacidad)
   ========================================================================== */

.legal-header {
    padding: 60px min(80px, 6vw) 30px;
    border-bottom: 1px dashed var(--seam);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--ash);
    margin-bottom: 26px;
}
.legal-back i { font-size: 18px; }
.legal-back:hover { color: var(--stub); }

.legal-header h1 {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(30px, 5vw, 48px);
    max-width: 20ch;
}
.legal-header h1 span { color: var(--stub); }

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 18px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--ash);
}
.legal-meta strong { color: var(--teal); }

.legal-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 50px;
    padding: 50px min(80px, 6vw) 100px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: start;
}

/* Índice lateral tipo boleto */
.legal-nav {
    position: sticky;
    top: 24px;
    background: var(--panel);
    border: 1px dashed var(--seam);
    border-radius: 16px;
    padding: 22px;
}

.legal-nav .eyebrow { font-size: 11px; margin-bottom: 14px; }

.legal-nav ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-nav a {
    display: flex;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
}
.legal-nav a span.n {
    font-family: 'Space Mono', monospace;
    color: var(--stub);
    flex-shrink: 0;
}
.legal-nav a:hover { color: var(--paper); background: var(--panel-raised); }

/* Chips de navegación rápida (solo visibles en móvil) */
.legal-chips {
    display: none;
}

/* Artículo con secciones tipo cláusula de boleto */
.legal-article { counter-reset: clause; max-width: 74ch; }

.legal-article section {
    padding: 30px 0;
    border-bottom: 1px dashed var(--seam);
    scroll-margin-top: 24px;
}
.legal-article section:first-of-type { padding-top: 0; }
.legal-article section:last-of-type { border-bottom: none; }

.legal-article h2 {
    counter-increment: clause;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(19px, 2.4vw, 23px);
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}
.legal-article h2::before {
    content: '§' counter(clause, decimal-leading-zero);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--stub);
    flex-shrink: 0;
}

.legal-article p { color: var(--text-muted); margin-bottom: 14px; font-size: 15.5px; }
.legal-article p:last-child { margin-bottom: 0; }

.legal-article ul { margin: 4px 0 16px 0; padding-left: 0; list-style: none; }
.legal-article ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 15.5px;
}
.legal-article ul li::before {
    content: '·';
    position: absolute;
    left: 6px;
    color: var(--stub);
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.legal-article strong { color: var(--paper); }

.legal-article a.inline-link { color: var(--stub); border-bottom: 1px dashed var(--stub-deep); }
.legal-article a.inline-link:hover { color: var(--teal); border-color: var(--teal); }

.legal-cross {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--seam);
}

@media (max-width: 900px) {
    .legal-wrap { grid-template-columns: 1fr; }
    .legal-nav { display: none; }
    .legal-chips {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .legal-chips a {
        flex-shrink: 0;
        font-family: 'Space Mono', monospace;
        font-size: 12px;
        color: var(--text-muted);
        border: 1px dashed var(--seam);
        border-radius: 50px;
        padding: 7px 14px;
        white-space: nowrap;
    }
    .legal-chips a:hover { color: var(--stub); border-color: var(--stub); }
}

@media (max-width: 480px) {
    .legal-header { padding: 40px 16px 24px; }
    .legal-wrap { padding: 30px 16px 70px; gap: 24px; }
}
