@font-face {
    font-family: "Game Sans";
    src: url("../assets/fonts/DejaVuSans.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Game Sans";
    src: url("../assets/fonts/DejaVuSans-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Game Display";
    src: url("../assets/fonts/DejaVuSerifCondensed-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --fondo: #040a10;
    --fondo-panel: rgba(7, 19, 29, .86);
    --fondo-panel-suave: rgba(8, 23, 35, .72);
    --texto: #dbe9f1;
    --texto-tenue: #9db3c2;
    --titulo: #f2fbff;
    --cian: #67e8f9;
    --cian-claro: #a5f3fc;
    --cian-borde: rgba(103, 232, 249, .26);
    --cian-brillo: rgba(34, 211, 238, .16);
    --linea: rgba(125, 211, 252, .16);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--fondo);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--texto);
    background:
        radial-gradient(circle at 12% -8%, rgba(34, 211, 238, .17), transparent 31rem),
        radial-gradient(circle at 94% 6%, rgba(59, 130, 246, .13), transparent 30rem),
        radial-gradient(circle at 52% 105%, rgba(14, 116, 144, .10), transparent 34rem),
        linear-gradient(180deg, #050c13 0%, #07131d 52%, #040a10 100%);
    font-family: "Game Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .26;
    background-image:
        linear-gradient(rgba(103, 232, 249, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, .055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .55) 52%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .55) 52%, transparent 100%);
}

::selection {
    color: #021016;
    background: var(--cian);
}

.page {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 940px);
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 3.5rem) 0 2.5rem;
}

.site-header {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid var(--cian-borde);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(103, 232, 249, .075), transparent 38%),
        linear-gradient(180deg, rgba(8, 23, 35, .94), rgba(4, 13, 21, .92));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .025) inset,
        0 18px 55px rgba(0, 0, 0, .36),
        0 0 42px rgba(34, 211, 238, .055);
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: min(48%, 24rem);
    height: 2px;
    background: linear-gradient(90deg, var(--cian), rgba(103, 232, 249, 0));
}

.site-header::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -6rem;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgba(103, 232, 249, .10);
    border-radius: 50%;
    box-shadow: 0 0 0 1.5rem rgba(103, 232, 249, .025), 0 0 0 3rem rgba(103, 232, 249, .018);
    pointer-events: none;
}

.brand-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    display: block;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(165, 243, 252, .48);
    border-radius: 16px;
    background: #050b12;
    box-shadow: 0 0 0 4px rgba(103, 232, 249, .055), 0 0 28px rgba(34, 211, 238, .20);
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    margin: 0;
    color: var(--titulo);
    font-family: "Game Display", Georgia, "Times New Roman", serif;
    font-size: clamp(1.08rem, 2.4vw, 1.28rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: .015em;
}

.brand-subtitle {
    margin: .28rem 0 0;
    color: var(--cian);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.35;
    text-transform: uppercase;
}

.eyebrow {
    position: relative;
    z-index: 1;
    margin: 1.45rem 0 .55rem;
    color: var(--cian);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.35;
    text-transform: uppercase;
}

h1 {
    position: relative;
    z-index: 1;
    max-width: 18ch;
    margin: 0;
    color: var(--titulo);
    font-family: "Game Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.05rem, 7.4vw, 4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.02em;
    text-shadow: 0 0 28px rgba(103, 232, 249, .09);
}

.updated {
    position: relative;
    z-index: 1;
    margin: .9rem 0 0;
    color: var(--texto-tenue);
    font-size: .93rem;
}

.lead {
    position: relative;
    z-index: 1;
    max-width: 74ch;
    margin: 1.1rem 0 0;
    padding-left: 1rem;
    border-left: 2px solid rgba(103, 232, 249, .44);
    color: #b9ccd8;
    font-size: 1.03rem;
}

.lead strong {
    color: var(--titulo);
}

section {
    margin-top: 1.15rem;
    padding: clamp(1.1rem, 3.2vw, 1.85rem);
    border: 1px solid rgba(125, 211, 252, .15);
    border-radius: 14px;
    background: var(--fondo-panel-suave);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .17);
}

h2 {
    margin: 0 0 .75rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--linea);
    color: var(--titulo);
    font-family: "Game Display", Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 3.6vw, 1.52rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: .005em;
}

h2::before {
    content: "";
    display: inline-block;
    width: .52rem;
    height: .52rem;
    margin-right: .55rem;
    border: 1px solid var(--cian);
    background: rgba(103, 232, 249, .18);
    box-shadow: 0 0 10px rgba(103, 232, 249, .42);
    vertical-align: .08em;
    transform: rotate(45deg);
}

p {
    margin: .72rem 0;
}

p:last-child,
ul:last-child {
    margin-bottom: 0;
}

ul {
    margin: .75rem 0;
    padding-left: 1.3rem;
}

li {
    margin: .4rem 0;
    padding-left: .12rem;
}

li::marker {
    color: var(--cian);
}

strong {
    color: #f0fbff;
}

a {
    color: var(--cian-claro);
    text-decoration: underline;
    text-decoration-thickness: .06em;
    text-underline-offset: .17em;
    overflow-wrap: anywhere;
}

a:hover {
    color: #d8fbff;
}

a:focus-visible {
    outline: 2px solid var(--cian);
    outline-offset: 4px;
    border-radius: 3px;
}

code {
    padding: .08em .28em;
    border: 1px solid rgba(103, 232, 249, .18);
    border-radius: 4px;
    background: rgba(103, 232, 249, .07);
    color: #c9f8ff;
    font-family: "Game Sans", ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .9em;
    overflow-wrap: anywhere;
}

.code-line {
    margin: .9rem 0;
    padding: .8rem .95rem;
    border: 1px solid rgba(103, 232, 249, .24);
    border-radius: 8px;
    background: rgba(1, 9, 15, .78);
    overflow-wrap: anywhere;
}

.code-line code {
    padding: 0;
    border: 0;
    background: none;
    color: var(--cian-claro);
}

.nowrap {
    white-space: nowrap;
}

.footer {
    margin-top: 1.25rem;
    padding: 1.25rem .25rem 0;
    border-top: 1px solid var(--linea);
    color: var(--texto-tenue);
    font-size: .88rem;
}

.footer p {
    margin: .3rem 0;
}

.footer a {
    color: var(--cian);
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
        line-height: 1.68;
    }

    .page {
        width: min(100% - 1.2rem, 940px);
        padding-top: .65rem;
    }

    .site-header {
        border-radius: 14px;
    }

    .brand-row {
        align-items: flex-start;
        gap: .8rem;
    }

    .brand-icon {
        width: 62px;
        height: 62px;
        border-radius: 13px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        font-size: .66rem;
        letter-spacing: .09em;
    }

    .eyebrow {
        margin-top: 1.2rem;
    }

    h1 {
        max-width: none;
    }

    .lead {
        padding-left: .8rem;
        font-size: 1rem;
    }

    section {
        border-radius: 11px;
    }

    h2 {
        font-size: 1.18rem;
    }

    ul {
        padding-left: 1.1rem;
    }
}

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