/* =====================================================================
   LEY SALVAJE — leycomunidad.com
   Rework visual: elegante, dorado y negro, texturas modernas.
   Estructura de clases/IDs preservada para compatibilidad con auth.js.
   ===================================================================== */

:root {
    /* Negros de matiz calido. Antes tiraban a frio y apagaban el dorado. */
    --bg-dark: #070506;
    --bg-void: #040303;
    --bg-panel: #120d0f;
    --bg-panel-soft: #1b1315;
    --line-gold: rgba(212, 165, 66, 0.22);
    --line-gold-strong: rgba(212, 165, 66, 0.46);

    --text-light: #e6dcc9;
    --text-white: #f8f0df;
    --text-muted: #a0948a;

    /* El dorado lleva la estructura y la tipografia. */
    --accent-gold: #d4a542;
    --accent-gold-hover: #f4dc9a;
    --accent-gold-soft: #f9efc8;
    --accent-gold-deep: #6e4e15;

    /* El carmesi se reserva para acciones: jugar, donar, dato en vivo.
       Si empieza a aparecer en bordes o iconos, pierde todo su valor. */
    --accent-red: #b01b30;
    --accent-red-hover: #e23a52;

    --font-western: 'Cinzel Decorative', serif;
    --font-body: 'Roboto', sans-serif;
    --container-width: 1200px;

    --shadow-deep: 0 18px 45px rgba(0, 0, 0, 0.55);
    --gold-gradient: linear-gradient(135deg, #6e4e15 0%, #d4a542 28%, #f9efc8 50%, #d4a542 72%, #6e4e15 100%);
    --gold-gradient-soft: linear-gradient(180deg, rgba(212, 165, 66, 0.16), rgba(212, 165, 66, 0));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-void);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.65;
    cursor: url('cursor_western.svg'), crosshair;
    position: relative;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(120, 90, 30, 0.16), transparent 60%),
        linear-gradient(rgba(4, 3, 2, 0.94), rgba(4, 3, 2, 0.97)),
        url('/hero-fondos/fondo1.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

/* Grano/textura sutil superpuesta (moderno, sin depender de assets externos) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
    background-size: 160px 160px;
}

a { text-decoration: none; color: inherit; transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; cursor: url('cursor_western.svg'), pointer; }
ul { list-style: none; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.text-center { text-align: center; }

::selection { background: rgba(212, 165, 66, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

/* Scrollbar dorada/negra */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0a0806; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6e4e15, #d4a542); border-radius: 10px; border: 2px solid #0a0806; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d4a542, #f4dc9a); }

/* --- ESTILOS VISUALES (BORDES Y BOTONES) --- */
.western-border {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.02), transparent 40%),
        linear-gradient(175deg, var(--bg-panel) 0%, var(--bg-panel-soft) 100%);
    border: 1px solid var(--line-gold);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 0 0 40px rgba(0, 0, 0, 0.35), var(--shadow-deep);
    position: relative;
    overflow: hidden;
}
.western-border::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.6;
}

.btn {
    padding: 11px 26px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: url('cursor_western.svg'), pointer;
    transition: all 0.28s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-red {
    background: linear-gradient(160deg, #b01b30, #6e1020);
    color: #f5ece0;
    border: 1px solid rgba(212, 165, 66, 0.4);
    box-shadow: 0 6px 18px rgba(90, 15, 15, 0.35);
}
.btn-red:hover {
    background: linear-gradient(160deg, #e23a52, #90162a);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 22px rgba(120, 20, 20, 0.5), 0 0 0 1px rgba(212, 165, 66, 0.35) inset;
    transform: translateY(-1px);
}
.btn-gold {
    background: var(--gold-gradient);
    color: #1a1207;
    border: 1px solid rgba(255, 240, 200, 0.6);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.btn-gold:hover {
    filter: brightness(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}
.btn:hover { color: inherit; }

/* --- HEADER --- */
.main-header {
    background: linear-gradient(180deg, rgba(9, 7, 5, 0.97), rgba(9, 7, 5, 0.92));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-gold-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeIn 0.5s ease-out;
}
.main-header::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.55;
}
.header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 1520px;
    min-height: 64px;
    padding: 8px 20px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 0;
}
.header-logo {
    height: 46px; width: 46px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background: #050505;
    box-shadow: 0 0 0 3px rgba(212, 165, 66, 0.12), 0 0 14px rgba(212, 165, 66, 0.25);
}
.header-logo:hover { transform: scale(1.06); }
.site-title {
    font-family: var(--font-western);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.main-nav {
    min-width: 0;
    overflow: visible;
}
.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 1.2vw, 20px);
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
}
.main-nav a {
    position: relative;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    color: var(--text-light);
    padding: 4px 2px;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 1px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-gold-hover); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-actions .btn { padding: 7px 13px; font-size: 0.7rem; }

.btn-discord {
    background: linear-gradient(160deg, #5865F2, #3d47b8);
    color: #f5ece0;
    border: 1px solid rgba(212, 165, 66, 0.4);
    box-shadow: 0 6px 18px rgba(40, 45, 120, 0.35);
}
.btn-discord:hover {
    background: linear-gradient(160deg, #6a75ff, #4752c4);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 22px rgba(88, 101, 242, 0.45), 0 0 0 1px rgba(212, 165, 66, 0.35) inset;
    transform: translateY(-1px);
    color: #fff;
}
.ley-discord-header {
    padding: 7px 16px;
    font-weight: 700;
    min-width: 74px;
    text-align: center;
    justify-content: center;
    gap: 6px;
}
.btn-login-discord {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--line-gold-strong);
}
.btn-login-discord:hover {
    background: rgba(212, 165, 66, 0.12);
    color: var(--accent-gold-hover);
    border-color: var(--accent-gold);
}
.ley-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--line-gold);
    background: rgba(0, 0, 0, 0.35);
}
.ley-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-gold);
}
.ley-user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-white);
    font-size: 0.78rem;
    font-weight: 600;
}
.btn-logout-discord {
    padding: 5px 10px;
    font-size: 0.66rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ccc;
}
.btn-logout-discord:hover {
    background: rgba(138, 43, 43, 0.25);
    color: #fff;
    border-color: var(--accent-red-hover);
}

.ley-play-btn.is-loading { opacity: 0.7; pointer-events: none; }
.ley-play-btn.is-login { letter-spacing: 0.02em; }
.ley-play-btn.is-whitelist {
    background: linear-gradient(160deg, #6b501f, #3f2f12);
    border-color: var(--line-gold-strong);
}
.ley-play-btn.is-whitelist:hover { background: linear-gradient(160deg, #6e4e15, #52401a); }
.ley-play-header {
    padding: 7px 16px;
    font-weight: 700;
    min-width: 74px;
    text-align: center;
    justify-content: center;
    animation: playPulse 2.6s ease-in-out infinite;
}
@keyframes playPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(90, 15, 15, 0.35), 0 0 0 0 rgba(212, 165, 66, 0.0); }
    50% { box-shadow: 0 6px 18px rgba(90, 15, 15, 0.35), 0 0 14px 2px rgba(212, 165, 66, 0.35); }
}

/* --- HERO SECTION (PORTADA) --- */
.hero-section {
    position: relative;
    height: 68vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #0a0806;
    border-bottom: 1px solid var(--line-gold-strong);
    animation: fadeIn 1.4s ease-out;
    overflow: hidden;
}
.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-color: #0a0806;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.85s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.hero-bg-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
    transition:
        opacity 1.85s cubic-bezier(0.4, 0, 0.2, 1),
        transform 15s ease-out;
}
.hero-bg-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 4, 3, 0.35) 0%, rgba(5, 4, 3, 0.55) 55%, rgba(5, 4, 3, 0.92) 100%);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
    .hero-bg-slide,
    .hero-bg-slide.is-active {
        transition: opacity 0.6s ease;
        transform: none !important;
    }
}
.hero-section::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    z-index: 3;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 4; padding: 0 20px; }
.hero-title {
    font-family: var(--font-western);
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    margin-bottom: 0;
    color: var(--text-light);
    text-shadow: 1px 1px 8px black;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CONTENIDO GENERAL --- */
.main-content-wrapper { padding: 64px 20px; min-height: 80vh; }
.content-block { padding: 32px; margin-bottom: 46px; }
.block-header { margin-bottom: 22px; border-bottom: 1px solid var(--line-gold); padding-bottom: 12px; }
.block-header h3 {
    font-family: var(--font-western);
    color: var(--accent-gold);
    font-size: 1.55rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-heading {
    font-family: var(--font-western);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* --- GRID DE VALORES --- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.value-card { display: flex; flex-direction: column; height: 100%; transition: transform 0.3s; }
.value-card:hover { transform: translateY(-5px); }
.card-image { height: 180px; background-size: cover; background-position: center; border-bottom: 1px solid var(--accent-gold); }
.card-content { padding: 20px; }
.card-content h4 { font-family: var(--font-western); color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.card-content p { font-size: 0.95rem; color: var(--text-muted); }

/* --- GALERÍA --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-grid img {
    width: 100%; height: 220px; object-fit: cover;
    border-radius: 8px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: url('cursor_western.svg'), pointer;
    border: 1px solid var(--line-gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.gallery-grid img:hover { transform: scale(1.035); border-color: var(--accent-gold); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); }
.galeria-grid img, .galleryGrid img {
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 0.7s cubic-bezier(.33, 1.02, .57, 1.01) forwards;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.galeria-grid > div, .galleryGrid > div {
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 0.7s cubic-bezier(.33, 1.02, .57, 1.01) forwards;
}

/* --- NORMATIVA (ACORDEÓN) --- */
.accordion-container { max-width: 900px; margin: 0 auto; }
.accordion-item { margin-bottom: 15px; transition: transform 0.25s ease, box-shadow 0.25s ease; }

.accordion-item {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 0 var(--line-gold);
    border-radius: 8px;
    position: relative;
    overflow: visible;
}
.accordion-item:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 1px 0 var(--accent-gold);
    transform: translateY(-2px);
}

.accordion-header {
    background-color: transparent;
    color: var(--text-light);
    cursor: url('cursor_western.svg'), pointer;
    padding: 20px 28px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.15rem;
    font-family: var(--font-western);
    letter-spacing: 0.02em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.3s, color 0.3s;
}
.accordion-header span { display: flex; align-items: center; gap: 12px; font-size: 1em; }
.accordion-header i { color: var(--accent-gold); }
.accordion-header:hover, .accordion-header.active { background-color: rgba(212, 165, 66, 0.08); color: var(--accent-gold-hover); }
.arrow { transition: transform 0.3s ease; font-size: 0.85rem; color: var(--accent-gold); }
.accordion-header.active .arrow { transform: rotate(180deg); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--line-gold);
    position: relative;
}
.accordion-content::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 320px; height: 320px;
    max-width: 80%; max-height: 80%;
    transform: translate(-50%, -50%);
    background: url('logo-256.png?v=2') center center no-repeat;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}
.accordion-content > .inner-padding { position: relative; z-index: 1; }

.inner-padding { padding: 34px 36px 26px; color: var(--text-light); font-size: 1.02rem; }
.inner-padding p { margin-bottom: 16px; text-align: justify; line-height: 1.7; }
.inner-padding strong { color: var(--accent-gold-hover); text-shadow: 0 0 6px rgba(0, 0, 0, 0.5); }

.norm-title {
    color: var(--accent-gold);
    font-family: var(--font-western);
    border-bottom: 1px solid var(--line-gold-strong);
    padding-bottom: 8px;
    margin-bottom: 24px;
    margin-top: 18px;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
}
.norm-title::before {
    content: "\f6c3";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-gold);
    font-size: 1.15rem;
    opacity: 0.85;
}

.norm-subtitle {
    color: var(--accent-gold-soft);
    margin-top: 30px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: bold;
    border-left: 3px solid var(--accent-gold);
    padding-left: 14px;
    letter-spacing: 0.02em;
}

.cmd-text {
    color: var(--accent-gold-hover);
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 1.05em;
    background: rgba(212, 165, 66, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--line-gold);
}

.western-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 34px 0 28px;
    opacity: 0.6;
}

.clean-list { list-style: none; padding-left: 20px; margin-bottom: 16px; }
.clean-list li { margin-bottom: 10px; position: relative; padding-left: 18px; }
.clean-list li::before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-gold);
    position: absolute;
    left: 0; top: 2px;
    opacity: 0.75;
}

/* Divisores decorativos (sin depender de assets externos) */
.decorative-top, .decorative-bottom {
    width: 100%;
    height: 22px;
    margin: 12px 0 18px;
    opacity: 0.75;
    background-image: repeating-linear-gradient(90deg, transparent 0, transparent 18px, var(--accent-gold) 18px, var(--accent-gold) 22px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.footer-close-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    background: rgba(212, 165, 66, 0.08);
    color: var(--accent-gold);
    cursor: url('cursor_western.svg'), pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--accent-gold);
    transition: 0.3s;
}
.footer-close-btn:hover { background: var(--accent-gold); color: #000; }

.important-box {
    border: 1px solid var(--accent-red);
    padding: 22px;
    margin: 30px 0;
    background: linear-gradient(160deg, rgba(90, 15, 15, 0.16), rgba(0, 0, 0, 0.3));
    border-radius: 8px;
}

/* --- FOOTER --- */
.main-footer {
    background: linear-gradient(180deg, rgba(6, 5, 4, 0.85), #050403);
    padding: 40px 0;
    border-top: 1px solid var(--line-gold-strong);
    text-align: center;
    margin-top: auto;
    position: relative;
}
.main-footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.btn-footer {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.5);
    gap: 8px;
}
.btn-footer:hover {
    background: rgba(212, 165, 66, 0.12);
    color: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
}
.footer-legal {
    max-width: 820px;
    margin: 0;
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}
.footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ANIMACIONES BASE --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.content-block { animation: fadeInUp 0.8s ease-out; }

@keyframes goldenGlow {
    0% { text-shadow: 0 0 5px rgba(212, 165, 66, 0.4); }
    50% { text-shadow: 0 0 22px rgba(212, 165, 66, 0.55); }
    100% { text-shadow: 0 0 5px rgba(212, 165, 66, 0.4); }
}
@keyframes logoEntrance {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes logoGlow {
    0% { box-shadow: 0 0 0 3px rgba(212, 165, 66, 0.12), 0 0 6px rgba(212, 165, 66, 0.15); }
    50% { box-shadow: 0 0 0 3px rgba(212, 165, 66, 0.12), 0 0 18px rgba(212, 165, 66, 0.4); }
    100% { box-shadow: 0 0 0 3px rgba(212, 165, 66, 0.12), 0 0 10px rgba(212, 165, 66, 0.25); }
}
@keyframes logoFade { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes titleSlide { 0% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 1; transform: translateY(0); } }

.site-title { animation: titleSlide 0.9s ease-out 0.15s both; }
.header-logo { animation: logoFade 0.9s ease-out 0.1s both, logoGlow 2.4s ease-in-out 0.4s infinite; }

/* --- MODAL DE GALERÍA --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(3, 2, 1, 0.92);
    animation: fadeIn 0.3s ease-out;
}
.modal-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw; max-height: 90vh;
    width: auto; height: auto;
    animation: modalZoom 0.4s ease-out;
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    box-shadow: 0 0 40px rgba(212, 165, 66, 0.3);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
}
@keyframes modalZoom {
    from { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.close {
    position: absolute;
    top: 15px; right: 35px;
    color: var(--accent-gold);
    font-size: 42px;
    font-weight: bold;
    cursor: url('cursor_western.svg'), pointer;
    text-shadow: 0 0 12px rgba(212, 165, 66, 0.5);
}
.close:hover, .close:focus { color: #fff; }
.prev, .next {
    cursor: url('cursor_western.svg'), pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    margin-top: -50px;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 28px;
    transition: background-color 0.3s;
    user-select: none;
    text-shadow: 0 0 10px rgba(212, 165, 66, 0.5);
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 0 3px 3px 0; }
.prev:hover, .next:hover { background-color: rgba(0, 0, 0, 0.7); }
.modal-logo { position: absolute; bottom: 20px; right: 20px; width: 46px; height: auto; z-index: 1001; opacity: 0.8; }

/* --- TRANSICIÓN DE PÁGINA --- */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg-void);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}
.page-transition.show { opacity: 1; visibility: visible; }
.transition-content { text-align: center; }
.transition-logo { width: 160px; margin-bottom: 20px; animation: logoEntrance 0.6s ease-out; }
.transition-title {
    font-family: var(--font-western);
    font-size: 2.4rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldenGlow 2s ease-in-out;
}

/* --- CONTROL DE VOLUMEN (legacy, oculto por defecto) --- */
.volume-control {
    position: fixed;
    bottom: 20px; left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 15px;
    border: 1px solid var(--line-gold);
    opacity: 0.4;
    transform: scale(0.8);
    transition: all 0.3s ease;
}
.volume-control:hover { opacity: 1; transform: scale(1); background: rgba(0, 0, 0, 0.75); border-color: var(--accent-gold); padding: 8px 12px; gap: 10px; }
.volume-btn { background: none; border: none; color: var(--accent-gold); font-size: 14px; cursor: url('cursor_western.svg'), pointer; padding: 3px; border-radius: 50%; }
.volume-btn:hover { background: rgba(212, 165, 66, 0.2); font-size: 18px; }
.volume-slider { width: 80px; height: 3px; background: var(--accent-gold); border-radius: 2px; outline: none; -webkit-appearance: none; appearance: none; opacity: 0; transform: scaleX(0); transition: all 0.3s; }
.volume-control:hover .volume-slider { opacity: 1; transform: scaleX(1); }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 8px; height: 8px; background: var(--accent-gold); border-radius: 50%; cursor: url('cursor_western.svg'), pointer; }
.volume-slider::-moz-range-thumb { width: 8px; height: 8px; background: var(--accent-gold); border-radius: 50%; cursor: url('cursor_western.svg'), pointer; border: none; }

/* --- MODAL DE LANZAMIENTO REDM (auth.js, legacy) --- */
.ley-launch-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; }
.ley-launch-modal[hidden] { display: none !important; }
.ley-launch-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(3px); }
.ley-launch-card {
    position: relative;
    width: min(440px, 100%);
    padding: 30px 26px;
    border: 1px solid var(--line-gold-strong);
    border-radius: 12px;
    background: linear-gradient(175deg, var(--bg-panel), var(--bg-panel-soft));
    box-shadow: var(--shadow-deep);
    text-align: center;
    color: var(--text-white);
}
.ley-launch-card h3 { margin: 0 0 10px; font-family: var(--font-western); color: var(--accent-gold); font-size: 1.4rem; }
.ley-launch-text { margin: 0 0 18px; color: var(--text-light); line-height: 1.5; }
.ley-launch-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ley-launch-endpoint { margin: 16px 0 0; font-size: 0.85rem; color: var(--text-muted); word-break: break-word; }

/* --- RESPONSIVE --- */
@media (max-width: 1450px) {
    .header-content { gap: 10px; }
    .logo-area { gap: 8px; }
    .header-logo { width: 42px; height: 42px; }
    .site-title { font-size: 1.15rem; }
    .main-nav ul { gap: clamp(7px, 0.72vw, 12px); }
    .main-nav a { font-size: 0.68rem; letter-spacing: 0.025em; }
    .header-actions { gap: 6px; }
    .header-actions .btn { padding: 7px 10px; font-size: 0.66rem; }
    .ley-user-name { max-width: 78px; }
    .btn-logout-discord { padding-inline: 8px !important; }
}

@media (max-width: 1180px) and (min-width: 769px) {
    .header-content {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 8px;
        padding-top: 8px;
        padding-bottom: 10px;
    }
    .site-title { display: none; }
    .header-actions { justify-self: end; }
    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 6px;
    }
}

@media (max-width: 1100px) {
    .site-title { display: none; }
    .main-nav a { font-size: 0.72rem; letter-spacing: 0.03em; }
    .header-content { gap: 12px; }
    .community-news-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .main-nav a { font-size: 0.68rem; }
}

@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr auto;
        row-gap: 12px;
    }
    .site-title { display: block; font-size: 1.15rem; }
    .main-nav { grid-column: 1 / -1; order: 3; overflow: visible; }
    .main-nav ul { flex-wrap: wrap; row-gap: 8px; justify-content: center; }
    .header-actions { justify-content: flex-end; }
    .ley-user-name { max-width: 90px; }
    .hero-title { font-size: 2.1rem; }
    .hero-section { height: auto; padding: 60px 0; min-height: 320px; }
    .content-block { padding: 22px; }
    .live-stats-grid { grid-template-columns: 1fr; }
    .feed-header { flex-direction: column; align-items: flex-start; }
}

/* --- LIVE STATS / NEWS / UPDATES --- */
.live-stats-section {
    position: relative;
    z-index: 5;
    margin-top: -42px;
    margin-bottom: 10px;
}
.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.live-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--line-gold);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 45%),
        linear-gradient(175deg, rgba(20, 16, 12, 0.96), rgba(12, 10, 8, 0.96));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}
.live-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #1a1207;
    background: var(--gold-gradient);
    box-shadow: 0 0 18px rgba(212, 165, 66, 0.28);
    flex-shrink: 0;
}
.live-stat-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.live-stat-value {
    display: block;
    font-family: var(--font-western);
    font-size: 1.7rem;
    line-height: 1;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.live-stats-meta {
    margin: 12px 0 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.feed-section-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.community-news-section {
    margin-bottom: 28px;
}
.community-news-slider {
    position: relative;
    min-width: 0;
}
.community-news-viewport {
    overflow: hidden;
    width: 100%;
}
.community-news-track {
    display: flex;
    width: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}
.community-news-page {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.community-news-page .feed-card-news {
    min-width: 0;
    height: 100%;
}
.community-news-page .feed-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.community-news-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}
.community-news-arrow {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-gold-strong);
    border-radius: 50%;
    color: var(--accent-gold);
    background: rgba(8, 6, 4, 0.72);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.community-news-arrow:hover,
.community-news-arrow:focus-visible {
    border-color: var(--accent-gold);
    color: var(--accent-gold-hover);
    background: rgba(110, 78, 21, 0.28);
    outline: none;
}
.community-news-arrow:focus-visible {
    box-shadow: 0 0 0 2px rgba(212, 165, 66, 0.35);
}
.community-news-arrow:active {
    transform: scale(0.96);
}
.community-news-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
    pointer-events: none;
}
.community-news-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.community-news-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(212, 165, 66, 0.45);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.community-news-dot:hover,
.community-news-dot:focus-visible {
    border-color: var(--accent-gold-hover);
    background: rgba(244, 220, 154, 0.35);
    outline: none;
}
.community-news-dot.is-active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}
.community-news-dot:active {
    transform: scale(0.9);
}
@media (prefers-reduced-motion: reduce) {
    .community-news-track {
        transition: none;
    }
}
.feed-more-btn {
    padding: 7px 14px;
    font-size: 0.72rem;
}
.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.feed-card {
    padding: 18px;
    border-radius: 10px;
    border: 1px solid var(--line-gold);
    background: linear-gradient(175deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feed-card-news {
    overflow: hidden;
    padding: 0;
    gap: 0;
}
.feed-news-cover {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid var(--line-gold);
}
.feed-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}
.feed-news-details {
    margin-top: auto;
    padding-top: 3px;
}
.feed-news-details summary {
    width: fit-content;
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}
.feed-news-details[open] summary {
    margin-bottom: 12px;
}
.feed-news-details > div {
    padding: 13px 14px;
    border-left: 2px solid var(--accent-gold);
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.86rem;
    line-height: 1.65;
}
.feed-news-open {
    width: fit-content;
    margin-top: auto;
    padding: 0;
    border: 0;
    color: var(--accent-gold);
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}
.feed-news-open:hover,
.feed-news-open:focus-visible {
    color: var(--accent-gold-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.community-news-modal {
    width: min(820px, calc(100% - 32px));
    max-width: 820px;
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    color: var(--text-light);
    background: transparent;
    overflow: visible;
}
.community-news-modal::backdrop {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
}
.community-news-modal-card {
    position: relative;
    max-height: calc(100vh - 40px);
    overflow: auto;
    border: 1px solid var(--line-gold-strong);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(212, 165, 66, 0.12), transparent 35%),
        linear-gradient(155deg, #1b1510, #0b0907 72%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.community-news-modal-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 165, 66, 0.4);
    border-radius: 50%;
    color: var(--text-white);
    background: rgba(8, 6, 4, 0.8);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}
.community-news-modal-close:hover,
.community-news-modal-close:focus-visible {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.community-news-modal-cover {
    width: 100%;
    max-height: 330px;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid var(--line-gold);
}
.community-news-modal-body {
    padding: clamp(24px, 5vw, 42px);
}
.community-news-modal-body h2 {
    margin: 15px 0 12px;
    color: var(--accent-gold);
    font-family: var(--font-western);
    font-size: clamp(1.65rem, 4vw, 2.4rem);
    line-height: 1.2;
}
.community-news-modal-summary {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.65;
}
.community-news-modal-text {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid rgba(212, 165, 66, 0.2);
    font-size: 0.95rem;
    line-height: 1.72;
}
.discord-markdown > :first-child { margin-top: 0; }
.discord-markdown > :last-child { margin-bottom: 0; }
.discord-markdown p {
    margin: 0 0 14px;
}
.discord-markdown h2,
.discord-markdown h3,
.discord-markdown h4 {
    margin: 21px 0 10px;
    color: var(--accent-gold-soft);
    font-family: var(--font-western);
    line-height: 1.3;
}
.discord-markdown h2 { font-size: 1.25rem; }
.discord-markdown h3 { font-size: 1.12rem; }
.discord-markdown h4 { font-size: 1rem; }
.discord-markdown ul {
    margin: 8px 0 17px;
    padding-left: 22px;
}
.discord-markdown li {
    margin: 6px 0;
}
.discord-markdown blockquote {
    margin: 12px 0;
    padding: 9px 13px;
    border-left: 3px solid var(--accent-gold);
    color: var(--text-muted);
    background: rgba(212, 165, 66, 0.06);
}
.discord-markdown a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.discord-markdown code {
    padding: 2px 5px;
    border: 1px solid rgba(212, 165, 66, 0.2);
    border-radius: 4px;
    color: var(--accent-gold-soft);
    background: rgba(0, 0, 0, 0.35);
    font-family: Consolas, monospace;
    font-size: 0.86em;
}
.feed-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.feed-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}
.feed-badge-news {
    color: #1a1207;
    background: var(--gold-gradient);
}
.feed-badge-update {
    color: var(--accent-gold-soft);
    border: 1px solid var(--line-gold-strong);
    background: rgba(212, 165, 66, 0.08);
}
.feed-date {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.feed-title {
    font-family: var(--font-western);
    color: var(--accent-gold);
    font-size: 1.1rem;
    line-height: 1.3;
}
.feed-text {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.55;
}
.feed-changes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.feed-changes li {
    color: var(--text-muted);
    font-size: 0.86rem;
    padding-left: 12px;
    position: relative;
}
.feed-changes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-gold);
}
.feed-change-type {
    color: var(--accent-gold-hover);
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-right: 4px;
}
.feed-link {
    margin-top: auto;
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.feed-link:hover { color: var(--accent-gold-hover); }
.feed-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 18px 8px;
    grid-column: 1 / -1;
}

/* Las reglas de estos bloques deben permanecer al final: los componentes de
   estadísticas se declaran después del responsive histórico. */
@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .main-header {
        position: relative;
    }

    .header-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .logo-area,
    .header-actions,
    .main-nav {
        width: 100%;
        min-width: 0;
    }

    .logo-area,
    .header-actions {
        justify-content: center;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .main-nav {
        grid-column: auto;
        order: initial;
        overflow: visible;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 16px;
        row-gap: 10px;
    }

    .hero-section {
        min-height: 360px;
        padding: 64px 0 72px;
    }

    .hero-content,
    .hero-title,
    .hero-subtitle {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.16;
    }

    .live-stats-section {
        margin-top: -28px;
    }

    .live-stats-grid,
    .feed-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .community-news-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-stat-card,
    .live-stat-body,
    .feed-card {
        min-width: 0;
        max-width: 100%;
    }

    .live-stat-card {
        padding: 16px 18px;
    }

    .feed-header {
        align-items: stretch;
    }

    .feed-more-btn {
        align-self: flex-start;
    }
    .community-news-modal {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }
    .community-news-modal-card {
        max-height: calc(100vh - 20px);
        border-radius: 13px;
    }
    .community-news-modal-cover {
        max-height: 230px;
    }
    .community-news-modal-body {
        padding: 24px 20px 28px;
    }
}

@media (max-width: 430px) {
    .site-title {
        display: block;
        font-size: 1.05rem;
    }

    .header-logo {
        width: 42px;
        height: 42px;
    }

    .header-actions .btn {
        padding: 7px 10px;
        font-size: 0.66rem;
    }

    .ley-user-chip {
        max-width: 100%;
    }

    .main-nav a {
        font-size: 0.67rem;
    }

    .content-block {
        padding: 18px;
    }
}

/* --- POSTULACIONES DE STAFF --- */
.recruitment-page {
    min-height: calc(100vh - 130px);
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 165, 66, 0.12), transparent 38%),
        linear-gradient(rgba(8, 6, 4, 0.91), rgba(8, 6, 4, 0.98)),
        url("fondo-1920.jpg") center / cover fixed;
}
.recruitment-hero {
    padding: 58px 20px 42px;
    text-align: center;
    border-bottom: 1px solid var(--line-gold);
}
.recruitment-kicker,
.recruitment-section-heading > span,
.recruitment-account span {
    display: block;
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.recruitment-hero h2 {
    margin: 10px 0 14px;
    font-family: var(--font-western);
    color: var(--accent-gold);
    font-size: clamp(2rem, 5vw, 3.4rem);
}
.recruitment-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.7;
}
.recruitment-shell {
    width: min(1040px, calc(100% - 32px));
    padding: 36px 0 72px;
}
.recruitment-card,
.recruitment-history,
.recruitment-account {
    border: 1px solid var(--line-gold);
    border-radius: 14px;
    background: linear-gradient(170deg, rgba(24, 19, 14, 0.97), rgba(12, 10, 8, 0.97));
    box-shadow: var(--shadow-deep);
}
.recruitment-card {
    padding: clamp(22px, 4vw, 38px);
}
.recruitment-login,
.recruitment-active {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.recruitment-closed {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.recruitment-closed h3 {
    margin: 10px auto 12px;
    max-width: 580px;
    color: var(--accent-gold);
    font-family: var(--font-western);
    font-size: clamp(1.55rem, 3.5vw, 2rem);
    line-height: 1.25;
}
.recruitment-closed > p {
    max-width: 590px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.7;
}
.recruitment-closed-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(212, 165, 66, 0.42);
    border-radius: 50%;
    color: var(--accent-gold);
    background: rgba(212, 165, 66, 0.09);
    font-size: 1.3rem;
}
.recruitment-closed-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding: 13px 15px;
    border: 1px solid rgba(88, 101, 242, 0.26);
    border-radius: 10px;
    color: var(--text-muted);
    background: rgba(88, 101, 242, 0.07);
    font-size: 0.82rem;
}
.recruitment-closed-note i {
    color: #8e98ff;
    font-size: 1rem;
}
.recruitment-login h3,
.recruitment-active h3,
.recruitment-section-heading h3 {
    margin: 8px 0 10px;
    font-family: var(--font-western);
    color: var(--accent-gold);
    font-size: 1.55rem;
}
.recruitment-login p,
.recruitment-active p,
.recruitment-section-heading p {
    color: var(--text-light);
    line-height: 1.65;
}
.recruitment-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.7rem;
    background: linear-gradient(150deg, #5865f2, #3942a4);
}
.recruitment-account {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 18px;
}
.recruitment-account img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-gold);
}
.recruitment-account strong {
    display: block;
    margin-top: 3px;
    color: var(--text-white);
}
.recruitment-form {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}
.recruitment-grid {
    display: grid;
    gap: 18px;
}
.recruitment-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.recruitment-form label > span,
.recruitment-choice legend {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-gold-soft);
    font-size: 0.88rem;
    font-weight: 700;
}
.recruitment-form input[type="text"],
.recruitment-form input[type="number"],
.recruitment-form textarea {
    width: 100%;
    border: 1px solid var(--line-gold);
    border-radius: 9px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.38);
    color: var(--text-white);
    font: inherit;
    line-height: 1.55;
    resize: vertical;
}
.recruitment-form input:focus,
.recruitment-form textarea:focus {
    outline: 2px solid rgba(212, 165, 66, 0.24);
    border-color: var(--accent-gold);
}
.recruitment-choice {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--line-gold);
    border-radius: 10px;
}
.recruitment-choice legend {
    padding: 0 6px;
}
.recruitment-choice label,
.recruitment-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-light);
}
.recruitment-choice-help {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.recruitment-focus-list {
    display: grid;
    gap: 10px;
}
.recruitment-focus-option {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px;
    border: 1px solid rgba(212, 165, 66, 0.18);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}
.recruitment-focus-option:has(.recruitment-focus-other) {
    grid-template-columns: auto auto minmax(140px, 1fr);
}
.recruitment-focus-option strong {
    color: var(--text-white);
    font-size: 0.9rem;
}
.recruitment-focus-option small {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.recruitment-focus-other {
    min-width: 0;
    padding: 8px 10px !important;
}
.recruitment-consent > span {
    margin: 0 !important;
    color: var(--text-light) !important;
    font-weight: 400 !important;
}
.recruitment-submit {
    width: 100%;
    min-height: 48px;
    font-size: 0.86rem;
}
.recruitment-feedback {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid;
}
.recruitment-feedback.success {
    color: #c8edcf;
    border-color: rgba(91, 181, 111, 0.42);
    background: rgba(47, 115, 63, 0.18);
}
.recruitment-feedback.error,
.recruitment-field-error {
    color: #ffb9b9;
}
.recruitment-feedback.error {
    border-color: rgba(210, 75, 75, 0.45);
    background: rgba(120, 35, 35, 0.2);
}
.recruitment-feedback.error strong {
    display: block;
}
.recruitment-feedback.error ul {
    margin: 9px 0 0 18px;
    display: grid;
    gap: 4px;
    color: #ffd0d0;
}
.recruitment-field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
}
.recruitment-history {
    margin-top: 20px;
    padding: 24px;
}
.recruitment-history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--line-gold);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
}
.recruitment-history-head {
    display: flex;
    align-items: center;
    gap: 18px;
}
.recruitment-history-head strong,
.recruitment-history-head span {
    display: block;
}
.recruitment-history-head span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.recruitment-status {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-gold-strong);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--accent-gold-soft);
    background: rgba(212, 165, 66, 0.09);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.recruitment-status.status-accepted { color: #bce6c4; border-color: rgba(91, 181, 111, 0.45); background: rgba(47, 115, 63, 0.18); }
.recruitment-status.status-rejected,
.recruitment-status.status-withdrawn { color: #e8b2b2; border-color: rgba(190, 78, 78, 0.4); background: rgba(120, 35, 35, 0.16); }
.recruitment-status.status-interview { color: #c8dcff; border-color: rgba(91, 133, 205, 0.45); background: rgba(45, 72, 120, 0.18); }
.recruitment-reference {
    display: block;
    margin-top: 18px;
    color: var(--accent-gold-soft);
    letter-spacing: 0.12em;
}
.recruitment-dashboard {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 165, 66, 0.42);
    border-radius: 20px;
    padding: clamp(22px, 4vw, 34px);
    background:
        radial-gradient(circle at 100% 0%, rgba(212, 165, 66, 0.13), transparent 34%),
        linear-gradient(145deg, rgba(27, 21, 15, 0.98), rgba(10, 8, 7, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.recruitment-dashboard::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(transparent, var(--accent-gold), transparent);
}
.recruitment-dashboard-top,
.recruitment-dashboard-user,
.recruitment-dashboard-footer {
    display: flex;
    align-items: center;
}
.recruitment-dashboard-top {
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(212, 165, 66, 0.17);
}
.recruitment-dashboard-user {
    gap: 14px;
}
.recruitment-dashboard-user img {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(212, 165, 66, 0.7);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px rgba(212, 165, 66, 0.08);
}
.recruitment-dashboard-user strong {
    display: block;
    margin-top: 4px;
    color: var(--text-white);
    font-size: 1rem;
}
.recruitment-dashboard-label {
    display: block;
    color: var(--accent-gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.recruitment-dashboard-id {
    display: flex;
    align-items: center;
    gap: 14px;
}
.recruitment-dashboard-id > strong {
    color: var(--text-white);
    font-size: 0.84rem;
    letter-spacing: 0.1em;
}
.recruitment-dashboard-main {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
    gap: clamp(28px, 6vw, 68px);
    align-items: center;
    padding: clamp(28px, 5vw, 46px) 0;
}
.recruitment-dashboard-copy h3 {
    margin: 9px 0 12px;
    max-width: 610px;
    color: var(--accent-gold);
    font-family: var(--font-western);
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    line-height: 1.18;
}
.recruitment-dashboard-copy p,
.recruitment-next-step p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.65;
}
.recruitment-next-step {
    padding: 19px 20px;
    border: 1px solid rgba(212, 165, 66, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}
.recruitment-next-step p {
    margin: 8px 0 15px;
    font-size: 0.9rem;
}
.recruitment-next-step small {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.recruitment-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 4px 0 28px;
    list-style: none;
}
.recruitment-progress::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: rgba(212, 165, 66, 0.2);
}
.recruitment-progress-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 9px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}
.recruitment-progress-marker {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 165, 66, 0.28);
    border-radius: 50%;
    color: var(--text-muted);
    background: #100d0a;
    font-size: 0.72rem;
}
.recruitment-progress-step.is-complete,
.recruitment-progress-step.is-current {
    color: var(--accent-gold-soft);
}
.recruitment-progress-step.is-complete .recruitment-progress-marker {
    border-color: rgba(212, 165, 66, 0.65);
    color: #0d0a07;
    background: var(--accent-gold);
}
.recruitment-progress-step.is-current .recruitment-progress-marker {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 0 5px rgba(212, 165, 66, 0.1);
}
.recruitment-dashboard-footer {
    justify-content: space-between;
    gap: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(212, 165, 66, 0.17);
}
.recruitment-dashboard-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.recruitment-dashboard-footer i {
    margin-right: 7px;
    color: #8e98ff;
}
.recruitment-withdraw {
    padding: 9px 13px;
    border-color: rgba(190, 78, 78, 0.45);
    color: #e6aaaa;
    background: rgba(120, 35, 35, 0.08);
}
.recruitment-withdraw:hover {
    border-color: rgba(220, 102, 102, 0.72);
    color: #ffd0d0;
    background: rgba(120, 35, 35, 0.2);
}
.recruitment-loading {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}
.recruitment-spinner {
    width: 25px;
    height: 25px;
    border: 2px solid var(--line-gold);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .recruitment-hero { padding: 48px 16px 38px; }
    .recruitment-shell { width: min(100% - 24px, 1040px); padding-top: 24px; }
    .recruitment-grid.two { grid-template-columns: 1fr; }
    .recruitment-history-card,
    .recruitment-history-head { align-items: flex-start; flex-direction: column; }
    .recruitment-dashboard-top,
    .recruitment-dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .recruitment-dashboard-id {
        width: 100%;
        justify-content: space-between;
    }
    .recruitment-dashboard-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0;
    }
    .recruitment-progress-step {
        font-size: 0.66rem;
        text-align: center;
    }
    .recruitment-dashboard-footer .recruitment-withdraw {
        width: 100%;
    }
    .recruitment-focus-option:has(.recruitment-focus-other) {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .recruitment-focus-other {
        grid-column: 1 / -1;
    }
}

@media (max-width: 440px) {
    .recruitment-dashboard {
        padding: 20px 17px;
        border-radius: 15px;
    }
    .recruitment-dashboard-user img {
        width: 46px;
        height: 46px;
    }
    .recruitment-progress-marker {
        width: 28px;
        height: 28px;
    }
    .recruitment-progress::before {
        top: 17px;
    }
}

/* --- REDES SOCIALES (pie de pagina) ---
   En reposo van doradas, como el resto de la web. El color de marca solo
   aparece al pasar el raton: asi mantenemos la paleta limpia y el color
   ayuda justo cuando el visitante esta eligiendo donde ir.
   Discord no esta aqui a proposito; sigue como boton propio porque es
   donde vive la comunidad, no una red mas. */
.social-block { margin-bottom: 24px; }
.social-title {
    margin: 0 0 12px;
    text-align: center;
    color: var(--accent-gold);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.social-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-gold-strong);
    background: rgba(0, 0, 0, 0.35);
    color: var(--accent-gold);
    font-size: 1.05rem;
    transition: transform 0.25s ease, color 0.25s ease,
                border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-3px);
    color: #fff;
    border-color: transparent;
}
.social-link[data-red="tiktok"]:hover,
.social-link[data-red="tiktok"]:focus-visible {
    background: #fe2c55;
    box-shadow: 0 7px 20px rgba(254, 44, 85, 0.42);
}
.social-link[data-red="instagram"]:hover,
.social-link[data-red="instagram"]:focus-visible {
    background: linear-gradient(45deg, #f58529, #dd2a7b 45%, #8134af 72%, #515bd4);
    box-shadow: 0 7px 20px rgba(221, 42, 123, 0.42);
}
.social-link[data-red="youtube"]:hover,
.social-link[data-red="youtube"]:focus-visible {
    background: #ff0000;
    box-shadow: 0 7px 20px rgba(255, 0, 0, 0.4);
}
.social-link[data-red="twitch"]:hover,
.social-link[data-red="twitch"]:focus-visible {
    background: #9146ff;
    box-shadow: 0 7px 20px rgba(145, 70, 255, 0.42);
}
@media (prefers-reduced-motion: reduce) {
    .social-link { transition: none; }
    .social-link:hover, .social-link:focus-visible { transform: none; }
}
