:root {
    --background: #05070a;
    --background-soft: #090c11;
    --background-card: #0e1219;

    --text: #f7f7f8;
    --text-soft: #adb4c0;
    --text-muted: #6f7888;

    --primary: #f59e0b;
    --primary-light: #ffb52d;
    --primary-dark: #a96500;

    --border: rgba(255, 255, 255, 0.09);
    --border-orange: rgba(245, 158, 11, 0.28);

    --container-width: 1200px;
    --header-height: 80px;
}

/* =========================================================
   BASE
========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    margin: 0;
}

body.landing-body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background: var(--background);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

form {
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

::selection {
    color: #111;
    background: var(--primary);
}

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

/* =========================================================
   CABECERA
========================================================= */

.landing-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: rgba(5, 7, 10, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.landing-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    opacity: 0.55;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(245, 158, 11, 0.45),
        transparent
    );
}

.nav-wrapper {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 158, 11, 0.55);
    border-radius: 10px;
    color: #111;
    background: linear-gradient(
        135deg,
        var(--primary-light),
        var(--primary)
    );
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.2);
    font-size: 0.9rem;
    font-weight: 900;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    color: #fff;
    font-size: 1.04rem;
    font-weight: 850;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.brand-title strong {
    color: var(--primary);
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.035em;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.landing-nav a {
    position: relative;
    padding-block: 11px;
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 650;
    transition: color 180ms ease;
}

.landing-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.landing-nav a:hover {
    color: var(--primary-light);
}

.landing-nav a:hover::after {
    transform: scaleX(1);
}

.nav-menu {
    display: contents;
}

.nav-toggle {
    width: 40px;
    height: 36px;
    display: none;
    place-items: center;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border-orange);
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.04);
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--primary-light);
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.nav-actions .btn {
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 0.78rem;
}

.logout-form {
    display: inline-flex;
}

/* =========================================================
   BOTONES
========================================================= */

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #111;
    border-color: var(--primary);
    background: linear-gradient(
        135deg,
        var(--primary-light),
        var(--primary)
    );
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        #ffc354,
        var(--primary-light)
    );
    box-shadow: 0 16px 42px rgba(245, 158, 11, 0.28);
}

.btn-outline {
    color: var(--primary-light);
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.02);
}

.btn-outline:hover {
    color: #111;
    border-color: var(--primary);
    background: var(--primary);
}

.btn-hero {
    min-height: 58px;
    padding: 17px 32px;
    border-radius: 12px;
    font-size: 0.98rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* =========================================================
   PORTADA
========================================================= */

.minimal-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: calc(var(--header-height) + 70px) 0 75px;
    background:
        radial-gradient(
            circle at 50% 38%,
            rgba(245, 158, 11, 0.09),
            transparent 23%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(245, 158, 11, 0.045),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #05070a,
            #07090d
        );
}

.minimal-hero::before {
    content: "ALPHA";
    position: absolute;
    z-index: -2;
    top: 49%;
    left: 50%;
    color: rgba(255, 255, 255, 0.03);
    font-size: clamp(10rem, 25vw, 30rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.09em;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
}

.minimal-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -14%;
    bottom: -35%;
    width: min(700px, 65vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(245, 158, 11, 0.08),
        transparent 66%
    );
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    z-index: -3;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 72px 72px;
    mask-image: radial-gradient(
        circle at center,
        #000 0%,
        transparent 76%
    );
    -webkit-mask-image: radial-gradient(
        circle at center,
        #000 0%,
        transparent 76%
    );
}

.minimal-hero__content {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.hero-emblem {
    position: relative;
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    margin-bottom: 34px;
}

.hero-emblem::before,
.hero-emblem::after,
.hero-emblem__orbit {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.hero-emblem::before {
    inset: 0;
    border: 1px solid rgba(245, 158, 11, 0.34);
    box-shadow:
        0 0 50px rgba(245, 158, 11, 0.08),
        inset 0 0 42px rgba(245, 158, 11, 0.04);
}

.hero-emblem::after {
    inset: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
}

.hero-emblem__orbit {
    inset: -11px;
    border-top: 1px solid rgba(245, 158, 11, 0.65);
    border-right: 1px solid transparent;
    border-bottom: 1px solid rgba(245, 158, 11, 0.12);
    border-left: 1px solid transparent;
}

.hero-emblem__logo {
    position: relative;
    z-index: 2;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    padding: 8px;
    overflow: visible;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.02),
        rgba(245, 158, 11, 0.02)
    );
    box-shadow:
        0 18px 50px rgba(245, 158, 11, 0.08),
        inset 0 0 18px rgba(255, 255, 255, 0.02);
}

.hero-emblem__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;

    transform: scale(1.3);
    transform-origin: center;

    filter:
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.06))
        drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.hero-kicker,
.section-label {
    color: var(--primary);
    font-size: 0.77rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title {
    margin: 18px 0 8px;
    text-align: center;
    text-transform: uppercase;
    line-height: 0.88;
}

.hero-title__line {
    display: block;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-title__line--primary {
    color: #f5f5f5;
    font-size: clamp(4.2rem, 10vw, 8rem);
}

.hero-title__line--secondary {
    margin-top: 0.04em;
    color: var(--primary);
    font-size: clamp(3.1rem, 7.5vw, 5.8rem);
}

.hero-motto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 31px 0 0;
    color: #e8eaee;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-motto span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.hero-description {
    max-width: 590px;
    margin: 25px auto 0;
    color: var(--text-soft);
    font-size: 1.04rem;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 35px;
}

.member-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.88rem;
}

.member-status strong {
    color: var(--primary-light);
}

.member-status__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.7);
}

.scroll-indicator {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 13px;
    margin-top: 61px;
    color: var(--text-muted);
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.scroll-indicator__line {
    width: 1px;
    height: 43px;
    background: linear-gradient(
        var(--primary),
        transparent
    );
}

/* =========================================================
   CABECERAS DE SECCIÓN
========================================================= */

.section-header {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 65px;
}

.section-index {
    color: var(--primary);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.section-header h2,
.rules-introduction h2,
.join-content h2 {
    margin: 11px 0 0;
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 4.65rem);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

/* =========================================================
   QUIÉNES SOMOS
========================================================= */

.about-section {
    position: relative;
    padding: 125px 0;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(
            circle at 8% 45%,
            rgba(245, 158, 11, 0.045),
            transparent 22%
        ),
        var(--background-soft);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 90px;
    align-items: start;
}

.about-statement {
    position: sticky;
    top: calc(var(--header-height) + 40px);
    padding-left: 30px;
    border-left: 2px solid var(--primary);
}

.about-statement p {
    margin: 0;
    color: #fff;
    font-size: clamp(1.85rem, 3vw, 3rem);
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -0.035em;
}

.about-content > p {
    margin: 0 0 21px;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.85;
}

.principles {
    display: grid;
    gap: 0;
    margin-top: 50px;
    border-top: 1px solid var(--border);
}

.principle {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.principle__number {
    color: var(--primary);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 0.74rem;
    font-weight: 800;
}

.principle h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 1.04rem;
}

.principle p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* =========================================================
   NORMATIVA
========================================================= */

.rules-section {
    padding: 110px 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(245, 158, 11, 0.055),
            transparent 22%
        ),
        var(--background);
}

.rules-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 85px;
    padding: 70px;
    border: 1px solid var(--border-orange);
    border-radius: 4px;
    background:
        linear-gradient(
            140deg,
            rgba(17, 21, 29, 0.92),
            rgba(7, 9, 13, 0.98)
        );
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.3);
}

.rules-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 190px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary),
        transparent
    );
}

.rules-panel::after {
    content: "NORMATIVA";
    position: absolute;
    right: -35px;
    bottom: -20px;
    color: rgba(255, 255, 255, 0.018);
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 950;
    letter-spacing: -0.07em;
    pointer-events: none;
}

.rules-introduction,
.rules-list {
    position: relative;
    z-index: 1;
}

.rules-introduction h2 {
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
}

.rules-introduction > p {
    margin: 25px 0 0;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.8;
}

.rules-introduction .rules-note {
    margin-top: 30px;
    padding: 18px 20px;
    border-left: 2px solid var(--primary);
    color: #d9dde4;
    background: rgba(245, 158, 11, 0.045);
    font-size: 0.9rem;
}

.rules-list {
    border-top: 1px solid var(--border);
}

.rule {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 23px 0;
    border-bottom: 1px solid var(--border);
}

.rule > span {
    color: var(--primary);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.rule h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 1rem;
}

.rule p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* =========================================================
   ALISTAMIENTO
========================================================= */

.join-section {
    position: relative;
    overflow: hidden;
    padding: 135px 0;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(245, 158, 11, 0.085),
            transparent 30%
        ),
        #06080c;
}

.join-section::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 80px 80px;
    pointer-events: none;
}

.join-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.join-emblem {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 50%;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 900;
}

.join-content h2 {
    max-width: 800px;
    margin-top: 17px;
}

.join-content > p {
    max-width: 570px;
    margin: 25px auto 34px;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.8;
}

/* =========================================================
   FOOTER
========================================================= */

.landing-footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    background: #040609;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-brand__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-orange);
    border-radius: 7px;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 900;
}

.footer-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: #fff;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.footer-brand small {
    color: var(--text-muted);
    font-size: 0.69rem;
}

.footer-content > a {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.footer-content > a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    transition:
        transform 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.footer-social a:hover {
    color: var(--primary-light);
    border-color: var(--border-orange);
    background: rgba(245, 158, 11, 0.07);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.footer-social a[aria-label*="Instagram"] svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-social .footer-social__fill {
    fill: currentColor;
    stroke: none;
}
.footer-users-link {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 8px 12px;

    border: 1px solid var(--border-orange);
    border-radius: 8px;

    color: var(--primary) !important;

    background:
        rgba(245, 158, 11, 0.035);

    font-size: 0.72rem !important;
    font-weight: 800;

    transition:
        color 150ms ease,
        background 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.footer-users-link svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-users-link:hover,
.footer-users-link.is-active {
    color: #111 !important;

    border-color: var(--primary);

    background: var(--primary);

    transform: translateY(-1px);
}

/* =========================================================
   MODALES
========================================================= */

.auth-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(245, 158, 11, 0.1),
            transparent 30%
        ),
        rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.auth-modal__panel {
    position: relative;
    z-index: 2;
    width: min(100%, 550px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 17px;
    color: var(--text);
    background:
        radial-gradient(
            circle at top right,
            rgba(245, 158, 11, 0.1),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            rgba(18, 23, 31, 0.99),
            rgba(7, 10, 14, 0.99)
        );
    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(245, 158, 11, 0.04);
    transform: translateY(18px) scale(0.985);
    transition: transform 180ms ease;
}

.auth-modal.is-open .auth-modal__panel {
    transform: translateY(0) scale(1);
}

.auth-modal__panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 35px;
    width: 130px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary),
        transparent
    );
}

.auth-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.035);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.auth-modal__close:hover {
    color: var(--primary);
    border-color: var(--border-orange);
}

.auth-modal__header {
    margin-bottom: 26px;
    padding-right: 40px;
}

.auth-modal__eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-modal__header h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
}

.auth-modal__header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-form__group {
    display: grid;
    gap: 8px;
}

.auth-form__group label {
    color: #eef0f4;
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-form__group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    outline: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.042);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.auth-form__group input:focus {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.025);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.auth-form__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--text-soft);
    font-size: 0.87rem;
}

.auth-form__checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.auth-form__submit {
    width: 100%;
}

.auth-modal__switch {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 23px;
    padding-top: 19px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.87rem;
}

.auth-modal__switch button {
    padding: 0;
    border: 0;
    color: var(--primary);
    background: none;
    font-weight: 800;
    cursor: pointer;
}

.auth-modal__switch button:hover {
    text-decoration: underline;
}

.auth-form__error {
    color: #fb7185;
    font-size: 0.8rem;
}

.brand--image {
    display: inline-flex;
    align-items: center;
}

.brand-logo-image {
    display: block;
    width: auto;
    height: 54px;
    max-width: 230px;
    object-fit: contain;
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.26);
    outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {
    .nav-wrapper {
        position: relative;
    }

    .nav-toggle {
        display: grid;
        flex-shrink: 0;
        margin-left: auto;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        gap: 12px;
        padding: 14px;
        border: 1px solid var(--border);
        border-top: 2px solid var(--primary);
        border-radius: 0 0 12px 12px;
        background: rgba(5, 7, 10, 0.98);
        box-shadow: 0 22px 45px rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .nav-menu.is-open {
        display: grid;
    }

    .landing-nav {
        display: grid;
        gap: 0;
    }

    .landing-nav a {
        padding: 10px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .landing-nav a::after {
        display: none;
    }

    .nav-menu .nav-actions {
        width: 100%;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .nav-menu .nav-actions .btn,
    .nav-menu .logout-form {
        min-width: 0;
        flex: 1;
    }

    .nav-menu .logout-form .btn {
        width: 100%;
    }

    .about-layout,
    .rules-panel {
        grid-template-columns: 1fr;
    }

    .about-layout {
        gap: 55px;
    }

    .about-statement {
        position: relative;
        top: auto;
    }

    .rules-panel {
        gap: 55px;
        padding: 55px;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: auto;
    }

    .container {
        width: min(100%, calc(100% - 28px));
    }

    .landing-header {
        position: relative;
    }

    .nav-wrapper {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
    }

    .brand {
        width: auto;
    }

    .nav-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-actions .btn,
    .logout-form {
        flex: 1;
    }

    .brand-logo-image {
        height: 46px;
        max-width: 210px;
    }

    .logout-form .btn {
        width: 100%;
    }

    .minimal-hero {
        min-height: auto;
        padding: 75px 0;
    }

    .hero-emblem {
        width: 176px;
        height: 176px;
    }

    .hero-emblem__logo {
        width: 88px;
        height: 88px;
    }

    .hero-motto {
        gap: 8px;
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }

    .hero-description {
        font-size: 0.96rem;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 45px;
    }

    .hero-title__line--primary {
        font-size: clamp(3.3rem, 18vw, 5rem);
    }

    .hero-title__line--secondary {
        font-size: clamp(2.35rem, 13vw, 3.8rem);
    }

    .about-section,
    .rules-section,
    .join-section {
        padding: 80px 0;
    }

    .about-statement {
        padding-left: 20px;
    }

    .rules-panel {
        padding: 37px 24px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-modal {
        align-items: end;
        padding: 12px;
    }

    .auth-modal__panel {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 31px 21px 24px;
        border-radius: 18px 18px 12px 12px;
    }

    .auth-form__columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .brand-subtitle {
        display: none;
    }

    .nav-actions {
        align-items: stretch;
        flex-direction: row;
    }

    .nav-menu .nav-actions .btn {
        padding-inline: 8px;
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 3.55rem;
    }

    .hero-motto {
        flex-wrap: wrap;
    }

    .principle,
    .rule {
        grid-template-columns: 42px 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.hero-emblem {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.hero-emblem::before,
.hero-emblem::after,
.hero-emblem__orbit {
    display: none;
}

.hero-emblem__logo {
    width: 110px;
    height: 110px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hero-emblem__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}
/* =========================================================
   NOTIFICACIONES
========================================================= */

.notification-center {
    position: relative;
    flex-shrink: 0;
}

.notification-bell {
    position: relative;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid
        rgba(245, 158, 11, 0.55);

    border-radius: 9px;

    color: var(--primary-light);

    background: rgba(
        245,
        158,
        11,
        0.025
    );

    cursor: pointer;

    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.notification-bell:hover,
.notification-bell[aria-expanded="true"] {
    color: #111;

    border-color: var(--primary);

    background: var(--primary);

    transform: translateY(-1px);
}

.notification-bell svg {
    width: 19px;
    height: 19px;
}

.notification-badge {
    position: absolute;

    top: -7px;
    right: -7px;

    min-width: 19px;
    height: 19px;

    display: grid;
    place-items: center;

    padding: 0 5px;

    border: 2px solid #05070a;
    border-radius: 999px;

    color: #111;

    background: var(--primary-light);

    font-size: 0.59rem;
    font-weight: 950;

    line-height: 1;
}

.notification-panel {
    position: absolute;

    z-index: 250;

    top: calc(100% + 12px);
    right: 0;

    width: min(
        390px,
        calc(100vw - 30px)
    );

    overflow: hidden;

    border: 1px solid var(--border);
    border-top: 2px solid var(--primary);

    border-radius: 12px;

    background: rgba(
        7,
        10,
        15,
        0.99
    );

    box-shadow:
        0 24px 65px
        rgba(0, 0, 0, 0.55);
}

.notification-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 16px 17px;

    border-bottom:
        1px solid var(--border);
}

.notification-panel__header > div {
    display: grid;
    gap: 3px;
}

.notification-panel__header span {
    color: var(--primary);

    font-size: 0.59rem;
    font-weight: 850;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}

.notification-panel__header strong {
    color: #fff;

    font-size: 0.95rem;
}

.notification-panel__header button {
    padding: 0;

    border: 0;

    color: var(--text-muted);

    background: transparent;

    font-family: inherit;
    font-size: 0.65rem;

    cursor: pointer;
}

.notification-panel__header button:hover {
    color: var(--primary);
}

.notification-list {
    max-height: 480px;

    overflow-y: auto;
}

.notification-item {
    position: relative;

    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        8px;

    align-items: flex-start;

    gap: 11px;

    padding: 14px 16px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.055);

    background: transparent;

    transition:
        background 150ms ease;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background:
        rgba(245, 158, 11, 0.055);
}

.notification-item.is-unread {
    background:
        rgba(245, 158, 11, 0.035);
}

.notification-item__icon {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border: 1px solid
        rgba(245, 158, 11, 0.28);

    border-radius: 8px;

    color: var(--primary);

    background:
        rgba(245, 158, 11, 0.07);

    font-size: 0.8rem;
    font-weight: 900;
}

.notification-item__content {
    min-width: 0;

    display: grid;
    gap: 4px;
}

.notification-item__content strong {
    color: #fff;

    font-size: 0.76rem;
    font-weight: 850;
}

.notification-item__content > span {
    color: var(--text-soft);

    font-size: 0.72rem;
    line-height: 1.45;
}

.notification-item__content b {
    color: var(--primary-light);
}

.notification-item__content small {
    color: var(--text-muted);

    font-size: 0.6rem;
}

.notification-item__unread {
    width: 7px;
    height: 7px;

    margin-top: 7px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 10px
        rgba(245, 158, 11, 0.65);
}

.notification-empty {
    display: grid;
    gap: 5px;

    padding: 32px 20px;

    text-align: center;
}

.notification-empty strong {
    color: #fff;

    font-size: 0.82rem;
}

.notification-empty span {
    color: var(--text-muted);

    font-size: 0.7rem;
}


/* =========================================================
   NOTIFICACIONES RESPONSIVE
========================================================= */

@media (max-width: 760px) {
    .notification-panel {
        position: fixed;

        top: 76px;
        right: 14px;
        left: 14px;

        width: auto;

        max-height:
            calc(100vh - 95px);
    }
}