/* VARIABLES */
:root {
    --bg-dark: #060b19;
    --bg-dark-soft: #080f20;
    --bg-card: #0d1b2a;
    --surface: rgba(13, 27, 42, 0.58);
    --accent-blue: #0075fd;
    --accent-hover: #0056ba;
    --accent-soft: rgba(0, 117, 253, 0.11);
    --text-main: #fff;
    --text-muted: #a0aec0;
    --text-subtle: #6f7d91;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.13);
    --border-blue: rgba(0, 117, 253, 0.48);
    --border-blue-strong: rgba(0, 117, 253, 0.82);
    --leader-gold: #d9b86c;
    --leader-gold-soft: rgba(217, 184, 108, 0.15);
    --coleader-blue: #70b2ff;
    --veteran-cyan: #53d8ff;
    --max-width: 1100px;
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.22);
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% -12%, rgba(0, 117, 253, 0.09), transparent 34%),
        linear-gradient(180deg, var(--bg-dark), var(--bg-dark-soft));
    color: var(--text-main);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a {
    color: inherit;
}

/* FOCO */
.nav-btn:focus-visible,
.ranks-toggle:focus-visible,
.btn-join:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

/* NAVEGACIÓN */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(5, 11, 25, 0.9);
    border-bottom: 1px solid var(--border-blue);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    min-height: 0;
    margin: 0 auto;
    padding: 0.72rem 0.8rem 0.62rem;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.62rem;
}

.nav-brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-brand__name {
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: 1.35px;
}

.nav-brand__tag {
    color: var(--text-subtle);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.nav-links {
    width: 100%;
    max-width: 540px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
}

.nav-btn {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0.5rem 0.4rem;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-sm);
    background: rgba(13, 27, 42, 0.32);
    color: var(--text-muted);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-btn::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-blue);
    opacity: 0;
    transform: scaleX(0.4);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(0, 117, 253, 0.07);
    border-color: rgba(0, 117, 253, 0.75);
}

.nav-btn.active {
    color: var(--text-main);
    background: var(--accent-soft);
    border-color: var(--border-blue-strong);
}

.nav-btn.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-btn:active {
    transform: scale(0.98);
}

/* CONTENIDO */
.main-content {
    width: 100%;
    max-width: var(--max-width);
    flex: 1;
    margin: 0 auto;
    padding: 0.8rem 0.8rem 2.4rem;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* CABECERAS */
.page-header {
    width: 100%;
    margin: 1rem 0 1.4rem;
}

.page-header__eyebrow {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: var(--accent-blue);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.page-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.page-header p {
    max-width: 600px;
    margin-top: 0.55rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* HERO */
.clan-card {
    --blob-size: 145px;
    position: relative;
    width: 100%;
    min-height: 0;
    margin-top: 0.55rem;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: transparent;
    box-shadow: var(--shadow-card);
}

.clan-card__blob {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: var(--blob-size);
    height: var(--blob-size);
    border-radius: 50%;
    background: var(--accent-blue);
    opacity: 0.74;
    filter: blur(22px);
    pointer-events: none;
    will-change: left, top;
    animation: clan-blob-bounce 7s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.clan-card__surface {
    position: absolute;
    inset: 3px;
    z-index: 1;
    overflow: hidden;
    border-radius: 11px;
    background:
        linear-gradient(
            145deg,
            rgb(8, 15, 32),
            rgb(8, 15, 32)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        inset 0 0 32px rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(24px) saturate(125%);
    -webkit-backdrop-filter: blur(24px) saturate(125%);
}

.clan-card__surface::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.03),
            transparent 30%,
            transparent 68%,
            rgba(0, 117, 253, 0.02)
        );
    pointer-events: none;
}

.clan-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 0;
    padding: 1.4rem 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.clan-card__topline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.clan-card__eyebrow {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.clan-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.27rem 0.58rem;
    border: 1px solid rgba(0, 117, 253, 0.28);
    border-radius: 999px;
    background: rgba(0, 117, 253, 0.05);
    color: #8cbfff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.clan-card__status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 9px rgba(0, 117, 253, 0.6);
}

#clan-title {
    width: 100%;
    max-width: 100%;
    margin-top: 9px;
    font-size: clamp(1.85rem, 8.2vw, 2.5rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.clan-card__description {
    width: 100%;
    max-width: 560px;
    margin-top: 13px;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.btn-join {
    width: min(100%, 260px);
    min-height: 45px;
    margin-top: 18px;
    padding: 0.68rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    background: var(--accent-blue);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 117, 253, 0.16);
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-join:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 11px 30px rgba(0, 117, 253, 0.21);
}

.btn-join__arrow {
    transition: transform 0.2s ease;
}

.btn-join:hover .btn-join__arrow {
    transform: translateX(3px);
}

.clan-card__meta {
    width: 100%;
    max-width: 440px;
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

.clan-card__meta span {
    min-width: 0;
    padding: 0.15rem 0.3rem;
    color: var(--text-subtle);
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.clan-card__meta span + span {
    position: relative;
    border-left: 0;
}

.clan-card__meta span + span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 35%;
    bottom: 35%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* TARJETAS */
.card {
    width: 100%;
    margin-top: 1.4rem;
    padding: 1.2rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            145deg,
            rgba(13, 27, 42, 0.52),
            rgba(8, 15, 29, 0.46)
        );
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.13);
}

.card-header__eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--accent-blue);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2.3px;
    text-transform: uppercase;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.card-header__description {
    margin-top: 0.3rem;
    color: var(--text-subtle);
    font-size: 0.79rem;
    line-height: 1.5;
}

/* NORMAS */
.normas-list {
    list-style: none;
    margin-top: 1.1rem;
}

.normas-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 0.9rem 0;
    border-top: 1px solid var(--border-soft);
}

.normas-list li:first-child {
    padding-top: 0.2rem;
    border-top: 0;
}

.normas-list li:last-child {
    padding-bottom: 0.2rem;
}

.norma-number {
    padding-top: 2px;
    color: var(--accent-blue);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.norma-text {
    min-width: 0;
}

.norma-text > strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text-main);
    font-size: 0.83rem;
    font-weight: 800;
}

.norma-text p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.58;
}

.norma-text p strong {
    display: inline;
    margin: 0;
    color: var(--text-main);
}

/* MIEMBROS */
.ranks-section {
    width: 100%;
    margin-top: 1.8rem;
}

.ranks-toggle {
    position: relative;
    width: 100%;
    min-height: 50px;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-md);
    background: rgba(13, 27, 42, 0.36);
    color: var(--text-main);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.9px;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}

.ranks-toggle:hover {
    border-color: var(--border-blue-strong);
    background: rgba(0, 117, 253, 0.055);
    box-shadow: 0 8px 26px rgba(0, 117, 253, 0.06);
}

.ranks-toggle:active {
    transform: scale(0.995);
}

.ranks-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    color: var(--accent-blue);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.ranks-section.is-open .ranks-toggle {
    border-color: var(--border-blue-strong);
    background: rgba(0, 117, 253, 0.04);
}

.ranks-section.is-open .ranks-toggle__icon {
    transform: rotate(180deg);
}

.ranks-panel {
    width: 100%;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        max-height 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease,
        margin-top 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.58s;
}

.ranks-section.is-open .ranks-panel {
    margin-top: 0.9rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        max-height 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease,
        margin-top 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

.ranks-panel__inner {
    width: 100%;
    overflow: hidden;
}

/* GRUPOS */
.rank-group {
    width: 100%;
    margin-bottom: 1.35rem;
}

.rank-group:last-child {
    margin-bottom: 0;
}

.rank-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.72rem;
}

.rank-heading__line {
    flex: 1 1 auto;
    min-width: 0;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.12)
        );
}

.rank-heading__line:last-child {
    transform: rotate(180deg);
}

.rank-heading__label {
    flex: 0 0 auto;
    color: var(--text-subtle);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2.6px;
}

/* LISTA DE RANGOS */
.rank-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

/* CENTRADO DE ÚLTIMA TARJETA IMPAR */
.rank-list > .rank-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

/* TARJETAS */
.rank-card {
    position: relative;
    min-width: 0;
    min-height: 62px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.ranks-section.is-open .rank-card {
    animation:
        rank-card-enter
        0.44s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;
}

.rank-card__shine {
    position: absolute;
    z-index: 1;
    top: -40%;
    left: -80%;
    width: 42%;
    height: 180%;
    pointer-events: none;
    transform: skewX(-20deg);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent
        );
    opacity: 0;
}

.ranks-section.is-open .rank-card__shine {
    animation: rank-shine 0.8s ease-out both;
}

.rank-card__content {
    position: relative;
    z-index: 2;
    min-height: 62px;
    padding: 0.72rem 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.rank-card__role {
    color: var(--text-subtle);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.rank-card__name {
    min-width: 0;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* LÍDER */
.rank-card--leader {
    border-color: rgba(217, 184, 108, 0.58);
    background:
        linear-gradient(
            110deg,
            var(--leader-gold-soft),
            rgba(255, 255, 255, 0.02),
            rgba(217, 184, 108, 0.03)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 199, 0.07),
        0 0 20px rgba(217, 184, 108, 0.03);
}

.rank-card--leader .rank-card__role {
    color: rgba(217, 184, 108, 0.84);
}

.rank-card--leader .rank-card__name {
    font-size: 0.97rem;
}

/* COLÍDERES */
.rank-card--coleader {
    border-color: rgba(112, 178, 255, 0.27);
    background:
        linear-gradient(
            110deg,
            rgba(0, 117, 253, 0.04),
            rgba(255, 255, 255, 0.017),
            rgba(0, 117, 253, 0.018)
        );
}

.rank-card--coleader .rank-card__role {
    color: rgba(112, 178, 255, 0.83);
}

/* VETERANOS */
.rank-card--veteran {
    border-color: rgba(83, 216, 255, 0.23);
    background:
        linear-gradient(
            110deg,
            rgba(83, 216, 255, 0.04),
            rgba(255, 255, 255, 0.014),
            rgba(83, 216, 255, 0.016)
        );
}

.rank-card--veteran .rank-card__role {
    color: rgba(83, 216, 255, 0.8);
}

/* ANIMACIONES */
@keyframes rank-card-enter {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
        filter: brightness(0.84);
    }

    65% {
        opacity: 1;
        transform: translateY(-1px) scale(1.002);
        filter: brightness(1.04);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

@keyframes rank-shine {
    0% {
        left: -80%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        left: 145%;
        opacity: 0;
    }
}

/* RETARDOS */
.rank-group--leader .rank-card {
    animation-delay: 0.04s !important;
}

.rank-group--coleader .rank-card:nth-child(1) {
    animation-delay: 0.08s !important;
}

.rank-group--coleader .rank-card:nth-child(2) {
    animation-delay: 0.13s !important;
}

.rank-group--coleader .rank-card:nth-child(3) {
    animation-delay: 0.18s !important;
}

.rank-group--coleader .rank-card:nth-child(4) {
    animation-delay: 0.23s !important;
}

.rank-group--coleader .rank-card:nth-child(5) {
    animation-delay: 0.28s !important;
}

.rank-group--coleader .rank-card:nth-child(6) {
    animation-delay: 0.33s !important;
}

.rank-group--coleader .rank-card:nth-child(7) {
    animation-delay: 0.38s !important;
}

.rank-group--veteran .rank-card:nth-child(1) {
    animation-delay: 0.43s !important;
}

.rank-group--veteran .rank-card:nth-child(2) {
    animation-delay: 0.47s !important;
}

.rank-group--veteran .rank-card:nth-child(3) {
    animation-delay: 0.51s !important;
}

.rank-group--veteran .rank-card:nth-child(4) {
    animation-delay: 0.55s !important;
}

.rank-group--veteran .rank-card:nth-child(5) {
    animation-delay: 0.59s !important;
}

.rank-group--veteran .rank-card:nth-child(6) {
    animation-delay: 0.63s !important;
}

.rank-group--veteran .rank-card:nth-child(7) {
    animation-delay: 0.67s !important;
}

.rank-group--veteran .rank-card:nth-child(8) {
    animation-delay: 0.71s !important;
}

.rank-group--veteran .rank-card:nth-child(9) {
    animation-delay: 0.75s !important;
}

.rank-group--veteran .rank-card:nth-child(10) {
    animation-delay: 0.79s !important;
}

.rank-group--veteran .rank-card:nth-child(11) {
    animation-delay: 0.83s !important;
}

.rank-group--veteran .rank-card:nth-child(12) {
    animation-delay: 0.87s !important;
}

.rank-group--veteran .rank-card:nth-child(13) {
    animation-delay: 0.91s !important;
}

/* NOVEDADES */
.news-container {
    width: 100%;
}

.news-card {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1.2rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            145deg,
            rgba(13, 27, 42, 0.62),
            rgba(8, 15, 29, 0.48)
        );
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

.news-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.news-card__eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--accent-blue);
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.news-card h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.news-card__status {
    flex: 0 0 auto;
    padding: 0.27rem 0.55rem;
    border: 1px solid rgba(0, 117, 253, 0.27);
    border-radius: 999px;
    background: rgba(0, 117, 253, 0.05);
    color: #8cbfff;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.news-date {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-subtle);
    font-size: 0.66rem;
    font-weight: 650;
}

.news-card__description {
    margin-top: 0.95rem;
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.65;
}

.news-card__footer {
    margin-top: 1.1rem;
    padding-top: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-subtle);
    font-size: 0.6rem;
    font-weight: 750;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* CALENDARIO */
.calendar-wrapper {
    width: 100%;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.calendar-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: rgba(13, 27, 42, 0.34);
}

.calendar-table th,
.calendar-table td {
    width: calc(100% / 7);
    padding: 0.9rem 0.65rem;
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
    vertical-align: middle;
}

.calendar-table th:last-child,
.calendar-table td:last-child {
    border-right: 0;
}

.calendar-table tr:last-child td {
    border-bottom: 0;
}

.calendar-table th {
    color: var(--text-muted);
    background: rgba(13, 27, 42, 0.88);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.calendar-table td {
    min-height: 100px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.012);
    font-size: 0.8rem;
    line-height: 1.42;
}

.calendar-table td strong {
    display: block;
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.calendar-table td span {
    display: block;
    margin-top: 4px;
}

.calendar-active {
    background:
        linear-gradient(
            180deg,
            rgba(0, 117, 253, 0.055),
            rgba(0, 117, 253, 0.02)
        ) !important;
    box-shadow: inset 0 2px 0 rgba(0, 117, 253, 0.7);
}

.calendar-active strong {
    color: #dcecff;
}

.calendar-active span {
    color: #7fa7d6;
    font-size: 0.68rem;
}

.calendar-empty {
    color: var(--text-subtle);
    font-size: 0.69rem;
}

/* FOOTER */
.site-footer {
    width: 100%;
    min-height: 50px;
    padding: 0.9rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(0, 117, 253, 0.3);
    background: rgba(5, 11, 25, 0.82);
}

.site-footer__credits {
    color: var(--text-subtle);
    font-size: 0.63rem;
    font-weight: 500;
    text-align: center;
}

.site-footer__credits strong {

  color: hwb(212 0% 1%);
  
}

/* BLOB */
@keyframes clan-blob-bounce {
    0% {
        left: 0;
        top: 0;
    }

    25% {
        left: calc(100% - var(--blob-size));
        top: 0;
    }

    50% {
        left: calc(100% - var(--blob-size));
        top: calc(100% - var(--blob-size));
    }

    75% {
        left: 0;
        top: calc(100% - var(--blob-size));
    }

    100% {
        left: 0;
        top: 0;
    }
}

/* ESCRITORIO */
@media (min-width: 768px) {
    .nav-container {
        min-height: 68px;
        padding: 0 1rem;
        grid-template-columns: auto 1fr;
        align-items: center;
        justify-items: stretch;
        gap: 2rem;
    }

    .nav-brand {
        justify-content: flex-start;
    }

    .nav-links {
        justify-self: end;
    }

    .main-content {
        padding: 1.5rem 1rem 3rem;
    }

    .clan-card {
        min-height: 320px;
        margin-top: 0.75rem;
    }

    .clan-card__content {
        min-height: 320px;
        padding: 2.15rem;
    }

    .clan-card__topline {
        gap: 0.75rem;
    }

    .clan-card__description {
        font-size: 0.94rem;
    }

    .card,
    .news-card {
        padding: 1.6rem;
    }

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

    .rank-card__content {
        min-height: 64px;
    }
}

/* MÓVIL */
@media (max-width: 767px) {
    .nav-container {
        padding: 0.68rem 0.75rem 0.58rem;
        gap: 0.6rem;
    }

    .nav-links {
        max-width: none;
    }

    .nav-btn {
        min-height: 40px;
        padding-inline: 0.35rem;
    }

    .main-content {
        padding: 0.7rem 0.75rem 2.2rem;
    }

    .clan-card {
        margin-top: 0.55rem;
    }

    .clan-card__content {
        min-height: 0;
        padding: 1.3rem 0.95rem 1.05rem;
    }

    .clan-card__topline {
        flex-direction: column;
        gap: 0.45rem;
    }

    #clan-title {
        font-size: clamp(1.85rem, 8.2vw, 2.5rem);
    }

    .clan-card__description {
        max-width: 560px;
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .btn-join {
        width: min(100%, 250px);
        min-height: 44px;
        margin-top: 17px;
    }

    .clan-card__meta {
        margin-top: 14px;
    }

    .clan-card__meta span {
        font-size: 0.55rem;
    }

    .card {
        padding: 1.1rem;
    }

    .normas-list li {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
    }

    .news-card {
        padding: 1.1rem;
    }

    .news-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-list {
        grid-template-columns: 1fr;
    }

    .rank-list > .rank-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }

    .rank-card,
    .rank-card__content {
        min-height: 60px;
    }

    .rank-card__content {
        padding-inline: 0.88rem;
    }

    .calendar-table {
        border: 0;
        background: transparent;
    }

    .calendar-table thead {
        display: none;
    }

    .calendar-table,
    .calendar-table tbody,
    .calendar-table tr,
    .calendar-table td {
        display: block;
        width: 100%;
    }

    .calendar-table tr {
        overflow: hidden;
        border: 1px solid var(--border-medium);
        border-radius: var(--radius-md);
        background: rgba(13, 27, 42, 0.34);
    }

    .calendar-table td {
        min-height: 0;
        padding: 0.85rem 0.9rem;
        display: grid;
        grid-template-columns: minmax(76px, 88px) minmax(0, 1fr);
        align-items: center;
        gap: 0.8rem;
        border-right: 0;
        border-bottom: 1px solid var(--border-soft);
        text-align: right;
    }

    .calendar-table td:last-child {
        border-bottom: 0;
    }

    .calendar-table td::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        color: var(--text-subtle);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.7px;
        text-align: left;
        text-transform: uppercase;
    }

    .calendar-table td strong {
        grid-column: 2;
        grid-row: 1;
    }

    .calendar-table td strong + span {
        grid-column: 2;
        grid-row: 2;
        margin-top: 2px;
    }

    .calendar-table td > .calendar-empty {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
    }

    .calendar-active {
        box-shadow: inset 3px 0 0 rgba(0, 117, 253, 0.8);
    }

    .site-footer {
        min-height: 48px;
    }
}

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

    .clan-card__blob {
        animation: none;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .ranks-panel,
    .ranks-toggle,
    .ranks-toggle__icon,
    .btn-join,
    .btn-join__arrow,
    .nav-btn {
        transition-duration: 0.01ms;
    }

    .ranks-section.is-open .rank-card {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .ranks-section.is-open .rank-card__shine {
        animation: none;
        opacity: 0;
    }
}