/* ==========================================================================
   REVENTHIA2 · Tema "Ember Obsidian"
   Rediseño visual completo (solo CSS). Mantiene todos los selectores y clases
   que usa el HTML/PHP existente, por lo que no requiere cambios en el backend.
   Paleta: obsidiana cálida + ámbar/brasa · Tipografías: Cinzel / Inter / JetBrains Mono
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Superficies */
    --bg-0: #080504;
    --bg-1: #120b07;
    --panel: rgba(21, 13, 8, .86);
    --panel-solid: #150d08;
    --panel-2: rgba(0, 0, 0, .28);
    --panel-3: rgba(255, 190, 110, .05);

    /* Líneas */
    --stroke: rgba(190, 138, 78, .24);
    --stroke-soft: rgba(190, 138, 78, .14);
    --stroke-strong: rgba(244, 176, 92, .50);

    /* Acentos */
    --amber: #f2a94e;
    --amber-2: #ffd08a;
    --amber-3: #ffe9c6;
    --ember: #e0661f;
    --ember-2: #b8420f;
    --bronze: #b47a36;
    --good: #6fe39a;
    --warn: #ffca73;
    --bad: #ff7d6e;
    --info: #7cb8ff;

    /* Texto */
    --text: #f4ece0;
    --text-2: rgba(244, 236, 224, .82);
    --muted: rgba(244, 236, 224, .60);
    --faint: rgba(244, 236, 224, .38);

    /* Fuentes */
    --f-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Forma */
    --radius: 14px;
    --radius-sm: 10px;
    --blur: blur(12px);
    --shadow-soft: 0 10px 28px -12px rgba(0, 0, 0, .75);
    --shadow-card: 0 22px 48px -24px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 220, 170, .05);
    --glow: 0 0 22px rgba(242, 169, 78, .22);

    /* Compatibilidad con variables anteriores */
    --link-hover: var(--amber-2);
    --accent: var(--amber);
    --news-panel: var(--panel);
    --news-panel-2: var(--panel-2);
    --news-stroke: var(--stroke);
    --news-text: var(--text);
    --news-muted: var(--muted);
    --news-accent: var(--amber);
    --news-radius: var(--radius);
    --news-shadow: var(--shadow-soft);

    --nav-h: 74px;
}

/* ------------------------------------------------------------------ Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    padding: 0;
    margin: 0;
    color: var(--text);
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.55;
    background-color: var(--bg-0);
    background-image:
        radial-gradient(1100px 620px at 50% -180px, rgba(242, 169, 78, .20), transparent 60%),
        radial-gradient(800px 480px at 12% 0%, rgba(224, 102, 31, .13), transparent 62%),
        radial-gradient(700px 420px at 92% 6%, rgba(120, 70, 200, .07), transparent 60%),
        linear-gradient(180deg, #130b07 0%, #080504 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, .title, .logo-text {
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--amber-3);
}

p { margin-top: 0; }
img { max-width: 100%; }

a {
    display: block;
    text-decoration: none;
    color: var(--amber-2);
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
a:hover { color: var(--amber-3); }

/* Enlaces dentro de texto corrido */
.news-content a, .alert a, p > a, .text-muted a, .card-body > a:only-child.inline {
    display: inline;
}
.news-content a { color: var(--amber); text-decoration: underline; text-decoration-color: rgba(242,169,78,.35); text-underline-offset: 3px; }
.news-content a:hover { color: var(--amber-3); text-decoration-color: currentColor; }

::selection { background: rgba(242, 169, 78, .35); color: #fff; }

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

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, .35); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(242,169,78,.45), rgba(184,66,15,.45));
    border: 2px solid rgba(0, 0, 0, .35);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(242,169,78,.7), rgba(184,66,15,.7)); }
::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) {
    html { scrollbar-width: thin; scrollbar-color: rgba(242,169,78,.5) rgba(0,0,0,.35); }
}

/* ---------------------------------------------------------------- Layout */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
}
.container::after { content: none; }

/* Rejilla principal de 3 columnas (solo el contenedor que tiene las columnas) */
.container:has(> .col-left) {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.col-left, .col-middle, .col-right, .col-full {
    position: relative;
    display: flow-root;
    padding: 0;
    float: none;
    min-width: 0;
}
.col-left, .col-right { width: auto; }
.col-middle { width: auto; }

/* Columnas laterales: se quedan visibles mientras se lee el centro */
@media (min-width: 993px) {
    .col-left, .col-right { align-self: start; }
}

/* --------------------------------------------------------------- Menú (PC) */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 6, 4, .88), rgba(10, 6, 4, .55));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--stroke-soft);
    padding: 0;
}
nav::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242,169,78,.55), transparent);
    opacity: .6;
    pointer-events: none;
}
nav .container { display: block; margin: 0 auto; width: 100%; }

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 4px;
}
nav ul li { position: relative; }

nav ul li a {
    position: relative;
    display: block;
    color: var(--text-2);
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 8px;
    letter-spacing: .14em;
    text-shadow: none;
    background: transparent;
    transition: color .2s ease, background .2s ease;
}
nav ul li a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ember), var(--amber));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
    box-shadow: 0 0 10px rgba(242,169,78,.6);
}
nav ul li a:hover,
nav ul li.active > a {
    color: var(--amber-2);
    background: rgba(242, 169, 78, .07);
}
nav ul li a:hover::after,
nav ul li.active > a::after { transform: scaleX(1); }

/* Botones de registro/presentación dentro del menú */
nav ul li.signup a.btn,
nav ul li a.btn {
    padding: 10px 18px;
    margin: 0;
    color: #1a0b03;
}
nav ul li.signup a.btn::after { display: none; }
nav ul li.signup a.btn:hover { background: linear-gradient(180deg, #ffc072, #e8762a); color: #1a0b03; }

nav ul li.language a {
    background: rgba(0, 0, 0, .35);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    box-shadow: none;
    padding: 9px 14px;
    letter-spacing: .08em;
    font-size: 12px;
}
nav ul li.language a::after { display: none; }

.flag-lang {
    width: 16px;
    height: auto;
    vertical-align: -2px;
    margin-right: 4px;
    border-radius: 2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}

/* Desplegables */
.dropdown .dropbtn { cursor: pointer; }
.dropdown > .dropbtn::before {
    content: "";
    display: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    min-width: 190px;
    z-index: 5;
    top: 100%;
    background: linear-gradient(180deg, rgba(26, 16, 10, .97), rgba(14, 9, 6, .97));
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--stroke);
    border-top: 2px solid var(--amber);
    border-radius: 0 0 12px 12px;
    padding: 8px;
    box-shadow: 0 24px 50px -10px rgba(0,0,0,.8);
    overflow: hidden;
    animation: dropIn .18s ease both;
}
.dropdown-content a {
    color: var(--text-2);
    padding: 10px 14px;
    width: 100%;
    min-width: max-content;
    display: block;
    text-decoration: none;
    margin: 0;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 13.5px;
    letter-spacing: .01em;
    text-transform: none;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 8px;
}
.dropdown-content a::after { display: none; }
.dropdown-content a:hover {
    background: rgba(242, 169, 78, .12) !important;
    color: var(--amber-3);
}
.dropdown:hover .dropdown-content { display: block; }

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Banner de Discord (si se activa en el HTML) */
.discord-slide {
    position: fixed;
    bottom: 40px;
    right: -230px;
    z-index: 99999;
    transition: right .35s ease;
    cursor: pointer;
}
.discord-slide:hover { right: 40px; }
.discord-slide img {
    width: 360px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    box-shadow: 0 0 30px rgba(0,0,0,.6);
}

/* ------------------------------------------------------------------ Hero */
.hero-top {
    position: relative;
    width: 100%;
    height: max(500px, 43.98vw);
    margin-top: calc(-1 * var(--nav-h));
    margin-bottom: calc(-1 * (max(500px, 43.98vw) - 540px));
    overflow: hidden;
}

/* El arte va en un pseudo-elemento para fundirlo con el fondo */
.hero-top::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/top-bg3.webp') no-repeat;
    background-size: cover;
    background-position: center top;
    filter: saturate(1.1) contrast(1.05) brightness(.96);
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 340px), transparent 100%);
    mask-image: linear-gradient(180deg, #000 calc(100% - 340px), transparent 100%);
    pointer-events: none;
}

/* Brasas flotando + viñeta */
.hero-top::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 190, 110, .9), transparent 60%),
        radial-gradient(1.5px 1.5px at 90px 120px, rgba(255, 150, 70, .8), transparent 60%),
        radial-gradient(2px 2px at 170px 60px, rgba(255, 210, 140, .8), transparent 60%),
        radial-gradient(1.5px 1.5px at 240px 180px, rgba(255, 130, 60, .8), transparent 60%),
        radial-gradient(2.5px 2.5px at 310px 90px, rgba(255, 200, 120, .7), transparent 60%),
        radial-gradient(1.5px 1.5px at 380px 220px, rgba(255, 160, 80, .8), transparent 60%),
        linear-gradient(90deg, rgba(8,5,4,.55), transparent 30%, transparent 70%, rgba(8,5,4,.55));
    background-size: 420px 260px, 420px 260px, 420px 260px, 420px 260px, 420px 260px, 420px 260px, 100% 100%;
    background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    animation: embers 14s linear infinite;
    opacity: .85;
}
@keyframes embers {
    from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 60px -260px, -40px -260px, 30px -260px, -70px -260px, 50px -260px, -20px -260px, 0 0; }
}

.logo-container {
    position: relative;
    z-index: 1;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.hero-top .render {
    background: url('../images/render-top-bg.webp');
    width: 600px;
    height: 634px;
    background-size: contain;
}

.logo {
    float: right;
    margin-top: 150px;
    margin-right: clamp(24px, 20vw, 390px);
    width: 400px;
    transition: filter .6s ease, transform .6s ease;
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.6)) drop-shadow(0 0 28px rgba(242,169,78,.18));
    animation: logoFloat 7s ease-in-out infinite;
}
.logo:hover {
    filter: drop-shadow(0 24px 40px rgba(0,0,0,.65)) drop-shadow(0 0 40px rgba(242,169,78,.42)) brightness(1.1);
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Fondo inferior (aldea) */
.col-full {
    float: left;
    width: 100%;
    background: #0b0706 url('../images/bottom-bg1.webp') 50% no-repeat;
    background-size: cover;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 280px);
    mask-image: linear-gradient(180deg, transparent 0, #000 280px);
    padding: 0;
    height: 1241px;
    margin-top: -900px;
    margin-bottom: -110px;
    z-index: -10;
}

/* Elementos solo móviles */
.sidenav-trigger {
    display: none;
    background: rgba(0,0,0,.35);
    text-align: center;
    color: var(--amber-2);
    font-size: 22px;
}
.mobile-header,
.mobile-nav-top { display: none; }


/* ----------------------------------------------------------------- Cards */
.card {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background:
        linear-gradient(180deg, rgba(255, 190, 110, .035), transparent 120px),
        var(--panel);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-card);
}

/* Remaches de bronce en las esquinas */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: .85;
    background:
        radial-gradient(circle at 9px 9px, var(--bronze) 0 2px, transparent 2.8px),
        radial-gradient(circle at calc(100% - 9px) 9px, var(--bronze) 0 2px, transparent 2.8px),
        radial-gradient(circle at 9px calc(100% - 9px), var(--bronze) 0 2px, transparent 2.8px),
        radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--bronze) 0 2px, transparent 2.8px);
}
.card.slider::after,
.card:has(> a > .quick-action-btn)::after { display: none; }

/* Tarjeta que solo contiene un botón (trailer) */
.card:has(> a > .quick-action-btn) {
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

body .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 18px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 12.5px !important;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-align: left;
    color: var(--amber-2);
    text-shadow: none;
    background: linear-gradient(90deg, rgba(242, 169, 78, .16), rgba(242, 169, 78, 0) 75%);
    border-bottom: 1px solid var(--stroke);
}
.card-title:not(:has(i))::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: var(--amber);
    box-shadow: 0 0 10px rgba(242, 169, 78, .8);
}
.card-title i { color: var(--amber); }

.card-body {
    background: transparent;
    width: 100%;
    overflow: hidden;
    padding: 16px;
}
.card.card-block, .card-block { padding: 18px; }
.card-header {
    padding: 12px 18px;
    background: rgba(242, 169, 78, .08);
    border-bottom: 1px solid var(--stroke);
    font-family: var(--f-display);
    letter-spacing: .1em;
}

.center { text-align: center !important; }
.bold { font-weight: 700; }
.justify-content-center {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }

/* --------------------------------------------------------------- Botones */
.large-href {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 78px;
    line-height: normal;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: var(--amber-2);
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 1px solid var(--stroke-strong);
    background: linear-gradient(180deg, rgba(242,169,78,.14), rgba(0,0,0,.35)), var(--panel-solid);
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}
.large-href > * { position: relative; z-index: 1; }
.large-href .icon { float: none; line-height: 1; margin: 0; }
.large-href:hover { transform: translateY(-2px); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 214, 150, .38);
    background: linear-gradient(180deg, #f5b45c 0%, #de7522 100%);
    color: #1a0b03;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    box-shadow: 0 10px 24px -8px rgba(224, 102, 31, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: transform .15s ease, filter .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover {
    color: #1a0b03;
    filter: brightness(1.08) saturate(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -8px rgba(224, 102, 31, .75), 0 0 20px rgba(242, 169, 78, .25), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn:active { transform: translateY(0); filter: brightness(1); }
.btn i { font-size: 13px; }

/* Base del botón con "body" delante para ganar a Bootstrap en el panel admin */
body .btn {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 12.5px;
    line-height: 1.2;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    letter-spacing: .14em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Variantes (con "body" delante para ganar a Bootstrap en el panel admin) */
body .btn.btn-primary {
    background: linear-gradient(180deg, #f5b45c 0%, #de7522 100%) !important;
    border-color: rgba(255, 214, 150, .38) !important;
    color: #1a0b03 !important;
}
body .btn.btn-secondary,
body .btn.btn-default,
body .btn.btn-info {
    background: rgba(0, 0, 0, .35);
    border-color: var(--stroke-strong);
    color: var(--amber-2);
    box-shadow: none;
}
body .btn.btn-secondary:hover,
body .btn.btn-default:hover,
body .btn.btn-info:hover {
    background: rgba(242, 169, 78, .14);
    color: var(--amber-3);
    box-shadow: var(--glow);
}
body .btn.btn-success {
    background: linear-gradient(180deg, #5fd48c 0%, #2c9a58 100%);
    border-color: rgba(190, 255, 215, .35);
    color: #03150a;
    box-shadow: 0 10px 24px -8px rgba(44, 154, 88, .55), inset 0 1px 0 rgba(255,255,255,.35);
}
body .btn.btn-danger {
    background: linear-gradient(180deg, #ff8a78 0%, #c8402c 100%);
    border-color: rgba(255, 200, 190, .35);
    color: #1c0502;
    box-shadow: 0 10px 24px -8px rgba(200, 64, 44, .55), inset 0 1px 0 rgba(255,255,255,.3);
}
body .btn.btn-warning {
    background: linear-gradient(180deg, #ffdd8a 0%, #e0a21f 100%);
    border-color: rgba(255, 240, 190, .4);
    color: #1d1202;
}
body .btn.btn-sm { padding: 8px 14px; font-size: 11px; border-radius: 8px; }
body .btn.btn-lg, .btn-big { padding: 15px 28px; font-size: 14px; }
body .btn.btn-block { display: flex; width: 100%; }
body .btn.disabled, .btn:disabled { opacity: .45; pointer-events: none; filter: grayscale(.4); }

/* Botón "leer más" y paginación de noticias */
.read-all-btn {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--stroke-strong);
    background: rgba(242, 169, 78, .10);
    color: var(--amber-2);
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    transition: all .2s ease;
}
.read-all-btn:hover {
    background: linear-gradient(180deg, #f5b45c, #de7522);
    border-color: transparent;
    color: #1a0b03;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(224, 102, 31, .7);
}

/* ------------------------------------------------------------- Formularios */
.input-group { position: relative; width: 100%; }
.input-group .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--amber);
    opacity: .75;
    text-shadow: none;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.input-group input,
.admin-form input,
.admin-form select,
.admin-form textarea,
body .form-control,
body textarea.form-control,
body select.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    color: var(--text);
    background-color: rgba(0, 0, 0, .40);
    font-size: 14.5px;
    font-family: var(--f-body);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35);
    outline: none;
    height: auto;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.input-group input { padding: 12px 14px 12px 42px; }

.input-group input::placeholder,
.admin-form input::placeholder,
body .form-control::placeholder { color: var(--faint); opacity: 1; }

.input-group input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
body .form-control:focus {
    outline: none;
    color: var(--text);
    background-color: rgba(0, 0, 0, .55);
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(242, 169, 78, .20), inset 0 2px 6px rgba(0, 0, 0, .35);
}

/* Autocompletado del navegador */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
body .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #1b110a inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
}

.form-group { margin-bottom: 16px; }
.control-label, .col-form-label, label { color: var(--text-2); font-weight: 500; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.text-danger { color: var(--bad) !important; font-size: 12.5px; margin: 4px 0 0; }
.text-success { color: var(--good) !important; }
.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--amber) !important; }
.text-center { text-align: center; }
.label {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(242,169,78,.15);
    border: 1px solid var(--stroke-strong);
    color: var(--amber-2);
}
.label-success { background: rgba(111,227,154,.12); border-color: rgba(111,227,154,.4); color: var(--good); }

/* Selects oscuros */
select { color-scheme: dark; accent-color: var(--amber); }
select option, select optgroup {
    background-color: #1b110a;
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--f-body);
}
select option:disabled { color: rgba(244, 236, 224, .35); }
select option:checked {
    background: linear-gradient(0deg, rgba(242, 169, 78, .30), rgba(242, 169, 78, .30)) #1b110a;
    color: var(--amber-3);
}
.admin-form select,
.input-group select,
select.form-control,
body select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f2a94e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px !important;
}
body select.form-control:not([size]):not([multiple]) { height: auto; line-height: 1.4; }
.input-group select {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    color: var(--text);
    background-color: rgba(0, 0, 0, .40);
    font-size: 14.5px;
    font-family: var(--f-body);
    outline: none;
}
.input-group select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(242, 169, 78, .20);
}

/* Casilla tematizada */
.themed-check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    color: var(--text-2);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}
.themed-check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.themed-check .themed-check-box {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 1px solid var(--stroke-strong);
    border-radius: 7px;
    background: rgba(0, 0, 0, .40);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.themed-check .themed-check-box::after {
    content: "";
    width: 12px;
    height: 9px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.2 3L11 1' fill='none' stroke='%231a0b03' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .15s ease, transform .15s ease;
}
.themed-check:hover .themed-check-box { border-color: var(--amber); }
.themed-check input:checked + .themed-check-box {
    border-color: transparent;
    background: linear-gradient(180deg, #f5b45c, #de7522);
}
.themed-check input:checked + .themed-check-box::after { opacity: 1; transform: scale(1); }
.themed-check input:focus-visible + .themed-check-box { box-shadow: 0 0 0 3px rgba(242, 169, 78, .25); }

/* reCAPTCHA del panel de usuario (304x78 escalado al 77 %) */
.recaptcha-wrap { width: 234px; height: 60px; margin: 0 auto; }
.recaptcha-wrap .g-recaptcha {
    width: 304px;
    height: 78px;
    transform: scale(0.77);
    -webkit-transform: scale(0.77);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

/* ------------------------------------------------------- Panel de usuario */
.user-panel-card .card-body { padding: 18px 18px 16px; }
.user-panel-card .input-group { margin-bottom: 12px; }
.user-panel-card .recaptcha-wrap { margin: 4px auto 12px; }
.user-panel-card .themed-check { margin: 0 0 14px; font-size: 13.5px; }
.user-panel-card .btn-login {
    width: 100%;
    margin: 0 0 14px;
    padding: 13px 16px;
    gap: 10px;
}
.login-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    font-size: 12px;
    color: var(--faint);
    font-family: var(--f-body);
}
.login-links a {
    display: inline;
    color: var(--muted);
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}
.login-links a:hover { color: var(--amber-2); }

.user-hello {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -6px -8px 8px;
    padding: 4px 8px 14px;
    border-bottom: 1px solid var(--stroke);
}
.user-hello .avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #1a0b03;
    font-size: 16px;
    background: linear-gradient(180deg, #f5b45c, #de7522);
    box-shadow: 0 8px 18px -6px rgba(224, 102, 31, .6);
}
.user-hello-text { min-width: 0; }
.user-hello .name {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--amber-3);
    word-break: break-all;
}
.user-hello .sub {
    margin-top: 2px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--good);
}
.user-hello .sub::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 8px var(--good);
    vertical-align: 1px;
}
.user-menu { list-style: none; margin: 0 -8px; padding: 0; }
.user-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 9px;
    color: var(--text-2);
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 13.5px;
    transition: background .15s ease, color .15s ease, padding .15s ease;
}
.user-menu li a i {
    flex: 0 0 18px;
    width: 18px;
    text-align: center;
    color: var(--amber);
    font-size: 13px;
}
.user-menu li a:hover {
    background: rgba(242, 169, 78, .10);
    color: var(--amber-3);
    padding-left: 14px;
}
.user-menu li.sep { height: 1px; margin: 8px 4px; background: var(--stroke); }
.user-menu li.admin a { color: var(--amber-2); font-weight: 600; }
.user-menu li.new-donation { background: transparent !important; }
li.new-donation a { text-shadow: none; }
.user-menu li.new-donation a { color: var(--warn); }
.user-menu li.new-donation a i { animation: pulseDot 1.6s ease-in-out infinite; }
.user-menu li.logout a, .user-menu li.logout a i { color: rgba(255, 150, 130, .9); }
.user-menu li.logout a:hover { background: rgba(255, 120, 100, .10); color: #ffb3a3; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.forgot-password {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    padding: 15px 10px;
    background: rgba(0, 0, 0, .28);
    border-top: 1px solid var(--stroke);
    color: var(--muted);
    border-radius: 0 0 var(--radius) var(--radius);
}
.forgot-password p { margin: 0; }
.forgot-password a { color: var(--amber-2); }

.payment-opts {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-around;
    padding: 10px 0;
}
.payment-opts div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

/* Colapsables (los usa el panel de noticias/donaciones: no tocar) */
.collapse#add,
.collapse#edit,
.collapse[id^="payment-"],
.collapse#add[aria-expanded="false"],
.collapse#edit[aria-expanded="false"],
.collapse[id^="payment-"][aria-expanded="false"] { display: none; }
.collapse#add[aria-expanded="true"],
.collapse#edit[aria-expanded="true"],
.collapse[id^="payment-"][aria-expanded="true"] { display: contents; }

/* --------------------------------------------------------------- Noticias */
.card.news .card-body.pa-30 { padding: 20px 22px; }

.news-card {
    margin: 0 0 14px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .22);
    box-shadow: var(--shadow-soft);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.news-card:hover {
    border-color: var(--stroke-strong);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -14px rgba(0,0,0,.8), 0 0 24px rgba(242,169,78,.08);
}
.news-card .news-body { background: transparent; padding: 0; }

.news-title {
    margin: 0;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--amber-3);
    border-bottom: 1px solid var(--stroke);
    background: linear-gradient(90deg, rgba(242, 169, 78, .14), rgba(242, 169, 78, 0) 80%);
}
.news-title .options {
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    font-size: 16px;
    line-height: 1;
    opacity: .85;
}
.news-title .options a { color: var(--amber); }
.news-title .options a:hover { color: var(--amber-3); }

.news-content {
    padding: 14px 18px 16px;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-2);
}
.news-content img { border-radius: 10px; height: auto; }
.news-content p { margin: 0 0 .8em; }
.news-content p.more { margin: 12px 0 0; }
.highlight { color: var(--amber); font-weight: 700; }

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, .25);
    border-top: 1px solid var(--stroke-soft);
}
.news-footer .cc { display: grid; gap: 2px; min-width: 0; }
.author, .wp-pagenavi > a {
    color: var(--amber) !important;
    font-family: var(--f-mono) !important;
    font-weight: 500 !important;
    font-size: 12px;
    letter-spacing: .06em;
    text-decoration: none;
}
.date-posted {
    color: var(--muted);
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 11.5px;
}
.date-posted span { color: var(--faint) !important; }

/* Paginación */
.pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.pagination button {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    color: var(--muted);
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--stroke);
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease;
}
.pagination button:hover { color: var(--amber-3); border-color: var(--stroke-strong); background: rgba(242,169,78,.12); }

.wp-pagenavi {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 6px 0 18px;
}
.wp-pagenavi > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .3);
    transition: all .2s ease;
}
.wp-pagenavi > a:hover {
    background: rgba(242, 169, 78, .14);
    border-color: var(--stroke-strong);
    color: var(--amber-3) !important;
}
.wp-pagenavi > a.current {
    background: linear-gradient(180deg, #f5b45c, #de7522);
    border-color: transparent;
    color: #1a0b03 !important;
    box-shadow: 0 8px 18px -6px rgba(224, 102, 31, .7);
}
.wp-pagenavi > a { margin: 0 !important; }

/* Donaciones (packs PayPal) */
.alert-info {
    color: #cfe5ff;
    background: rgba(70, 140, 220, .14);
    border: 1px solid rgba(120, 180, 255, .30);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-sm);
}
.news-card .news-title.payment-opts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: none;
    color: var(--text);
}
.news-title.payment-opts > div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-display);
    color: var(--text);
}
.news-card form { margin: 0; display: inline-flex; align-items: center; }
.news-card .btn { margin: 0; padding: 10px 16px; border-radius: 999px; }

/* ------------------------------------------------------------- Slider */
.slider {
    background-color: transparent;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--stroke-strong);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,.9), 0 0 40px rgba(242,169,78,.08);
}
.slider .card-body {
    position: relative;
    width: 100%;
    height: 300px;
    padding: 0;
}
.slider .slide {
    display: none;
    padding: 0;
    text-align: center;
    height: 300px;
    background-size: cover;
    background-position: center;
}
.slider .slide.active { display: block; animation: slideIn .8s ease both; }
@keyframes slideIn {
    from { opacity: 0; transform: scale(1.04); }
    to   { opacity: 1; transform: scale(1); }
}
.slider .slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(8,5,4,.92) 0%, rgba(8,5,4,.35) 45%, rgba(8,5,4,0) 70%),
        radial-gradient(circle at 20% 0%, rgba(242,169,78,.18), transparent 60%);
    pointer-events: none;
}
.slider .slide .content {
    bottom: 0;
    left: 0;
    position: absolute;
    text-align: left;
    padding: 22px 26px 22px;
    width: 100%;
    background: none;
}
.slider .slide .content h2::before,
.slider .slide .content p::before { content: none; }
.slider .slide .content h2 {
    margin: 0 0 6px;
    color: var(--amber-3);
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,.8), 0 0 30px rgba(242,169,78,.25);
}
.slider .slide .content p {
    margin: 0;
    max-width: 520px;
    opacity: 1;
    color: var(--text-2);
    font-family: var(--f-body);
    font-weight: 400;
    font-size: 14.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,.9);
}
.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-3);
    background: rgba(8, 5, 4, .55);
    border: 1px solid var(--stroke-strong);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all .25s ease;
    z-index: 4;
}
.slider button.prev { left: 14px; }
.slider button.next { right: 14px; }
.slider button:hover {
    background: linear-gradient(180deg, #f5b45c, #de7522);
    color: #1a0b03;
    border-color: transparent;
    box-shadow: 0 8px 20px -6px rgba(224,102,31,.7);
}


/* ------------------------------------------------------ Tablas y rankings */
.ranking {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .22);
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 13px;
    color: var(--text-2);
}
.ranking th, .ranking td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--stroke-soft);
    vertical-align: middle;
}
.ranking thead { background: linear-gradient(180deg, rgba(242, 169, 78, .20), rgba(242, 169, 78, .07)); }
.ranking th {
    font-family: var(--f-mono);
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber-2);
    text-shadow: none;
}
.ranking tbody tr { transition: background-color .2s ease; background: transparent; }
.ranking tbody tr:nth-child(2n) { background: rgba(255, 190, 110, .03); }
.ranking tbody tr:hover { background: rgba(242, 169, 78, .10); }
.ranking tbody tr:last-child td { border-bottom: none; }
.ranking tbody td:nth-child(1) {
    width: 42px;
    background: rgba(0, 0, 0, .28);
    text-align: center;
    font-family: var(--f-mono);
    font-weight: 600;
    color: var(--amber);
    border-right: 1px solid var(--stroke-soft);
}
.ranking tbody td:nth-child(1) img { width: 22px; height: auto; vertical-align: middle; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.ranking tbody td:nth-child(2), .ranking tbody td:nth-child(3) { color: var(--text); }
.ranking tbody td:nth-child(2) { font-weight: 600; }
.ranking thead th:nth-child(1), .ranking thead th:nth-child(3), .ranking thead th:nth-child(4) { text-align: center; }
.ranking tbody td:nth-child(3) { text-align: center; }
.ranking tbody td:nth-child(3) img { width: 28px; height: auto; vertical-align: middle; border-radius: 2px; }
.ranking tbody td:nth-child(4) { color: var(--amber-2); text-align: center; font-family: var(--f-mono); font-size: 12.5px; }
.ranking tbody td:nth-child(5) { font-family: var(--f-mono); font-size: 12px; text-align: center; }
.ranking thead th:nth-child(5) { text-align: center; }

.Jinno    { color: #7b86ff !important; }
.Shinsoo  { color: #ff5a5a !important; }
.Chunjo   { color: #f0dc3a !important; }

/* Enlaces/campos/botones dentro de tablas */
table a, table input, table button {
    font-size: 12.5px;
    color: var(--text-2);
    font-family: var(--f-body);
    font-weight: 500;
    padding: 8px 10px;
    margin: 0;
    box-shadow: none;
    border: 1px solid var(--stroke);
    width: -webkit-fill-available;
    width: stretch;
    border-radius: 9px;
    background: rgba(0, 0, 0, .22);
}
table a:hover { color: var(--amber-3); border-color: var(--stroke-strong); background: rgba(242,169,78,.08); }

/* Tablas "full inside" (sin marco interior) */
.card .card-body:has(table.ranking):not(.pa-30) { padding: 0 !important; overflow: hidden !important; }
.card-body.pa-30 table.ranking { border-radius: var(--radius-sm) !important; overflow: hidden !important; border: 1px solid var(--stroke) !important; }
.card-body.pa-30 .links-download { margin-top: 0; margin-bottom: 20px; }
table.ranking { width: 100% !important; margin: 0 !important; border-radius: 0 !important; border: 0 !important; box-shadow: none !important; border-collapse: collapse !important; }
table.ranking thead { background: linear-gradient(180deg, rgba(242, 169, 78, .20), rgba(242, 169, 78, .07)) !important; }
table.ranking th, table.ranking td { border-bottom: 1px solid var(--stroke-soft) !important; }
table.ranking tbody td:nth-child(1) { background: rgba(0, 0, 0, .28) !important; border-right: 1px solid var(--stroke-soft) !important; }
.card-body.pa-30 table.ranking th, .card-body.pa-30 table.ranking td { padding: 12px 14px; }

/* Tablas genéricas (Bootstrap-like para páginas del sitio y el panel) */
.table.table-hover { width: 80%; margin-left: auto; margin-right: auto; }
.table.table-hover img { width: 60%; margin-left: auto; margin-right: auto; display: block; margin-bottom: 20px; border-radius: 8px; }
body .table { width: 100%; max-width: 100%; margin-bottom: 1rem; color: var(--text-2); background: transparent; border-collapse: collapse; }
body .table th, body .table td { padding: 12px 14px; vertical-align: middle; border-top: 1px solid var(--stroke-soft); background: transparent; }
body .table thead th { border-bottom: 1px solid var(--stroke); vertical-align: bottom; }
body .thead-inverse th, body .table .thead-inverse th {
    background: linear-gradient(180deg, rgba(242, 169, 78, .22), rgba(242, 169, 78, .08));
    color: var(--amber-2);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-color: var(--stroke);
}
body .table-striped tbody tr:nth-of-type(odd) { background: rgba(255, 190, 110, .035); }
body .table-hover tbody tr:hover { background: rgba(242, 169, 78, .09); }
.table-responsive { display: block; width: 100%; overflow-x: auto; }

.specs-table { border-spacing: 5px; }
.specs-table tr { background-color: rgba(0,0,0,.3); color: var(--amber-2); text-align: center; font-size: 14px; }
.specs-table tr th, .specs-table tr td { padding: 10px 21px; }
.specs-table .odd { background-color: rgba(242,169,78,.07); }

.account-table { width: 100%; border-spacing: 0; padding: 30px 0; }
.account-table tr { background-color: rgba(0,0,0,.22); }
.account-table tr td { padding: 15px 21px; border-bottom: 1px solid var(--stroke-soft); }
.account-table tr:nth-child(2n) { background-color: rgba(255,190,110,.04) !important; }
.account-table .glow { text-shadow: 0 0 10px rgba(242,169,78,.55); }
.account-table tbody tr td form { width: 100%; display: block; }

/* -------------------------------------------------------- Estadísticas */
.card.statistics ul { margin: 0; padding: 12px; list-style: none; }
.card.statistics ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding: 11px 14px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--stroke-soft);
    border-left: 2px solid var(--amber);
    border-radius: 10px;
    color: var(--muted);
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease;
}
.card.statistics ul li:last-child { margin-bottom: 0; }
.card.statistics ul li:hover { background: rgba(242, 169, 78, .08); border-color: var(--stroke-strong); }
.card.statistics ul li strong {
    float: none;
    color: var(--amber-2);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------- Botones laterales */
.quick-action-card {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
}
.quick-action-link { display: block; flex: 1; min-width: 0; }

.quick-action-btn {
    position: relative;
    overflow: hidden;
    height: 68px;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 10px;
    color: var(--amber-2);
    text-align: center;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .12em;
    text-shadow: none;
    border-radius: var(--radius);
    border: 1px solid var(--stroke-strong);
    background: linear-gradient(180deg, rgba(242,169,78,.16), rgba(0,0,0,.30)), var(--panel-solid);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 24px -12px rgba(0,0,0,.8);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.quick-action-btn::before { content: none; }
.quick-action-btn::after {
    content: "";
    position: absolute;
    top: -45%;
    left: -90%;
    width: 45%;
    height: 190%;
    z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(255,232,178,.30), transparent);
    transform: rotate(20deg);
    opacity: 0;
    pointer-events: none;
}
.quick-action-btn span, .quick-action-btn .icon { position: relative; z-index: 2; }
.quick-action-btn span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 96px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}
.quick-action-btn .icon {
    float: none;
    flex: 0 0 auto;
    line-height: 1;
    margin: 0;
    font-size: 16px;
    color: var(--amber);
    text-shadow: 0 0 14px rgba(242,169,78,.5);
    transition: transform .22s ease, color .22s ease;
}
.quick-action-btn:hover {
    color: var(--amber-3);
    transform: translateY(-2px);
    border-color: var(--amber);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 16px 30px -12px rgba(0,0,0,.9), 0 0 24px rgba(242,169,78,.2);
}
.quick-action-btn:hover::after { animation: quickButtonShine .85s ease forwards; }
.quick-action-btn:hover .icon { transform: scale(1.15); color: var(--amber-2); }

/* Registro: botón principal relleno */
.quick-action-btn-register {
    color: #1a0b03;
    border-color: rgba(255, 214, 150, .45);
    background: linear-gradient(180deg, #f7b95f 0%, #de7522 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 28px -10px rgba(224,102,31,.7);
}
.quick-action-btn-register .icon { color: #3b1604; text-shadow: none; }
.quick-action-btn-register:hover {
    color: #1a0b03;
    border-color: rgba(255, 230, 190, .7);
    filter: brightness(1.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 18px 34px -10px rgba(224,102,31,.85), 0 0 26px rgba(242,169,78,.35);
}
.quick-action-btn-register:hover .icon { color: #1a0b03; }

/* Trailer (tarjeta de un solo botón) */
.card > a > .large-href.quick-action-btn { height: 64px; font-size: 13px; }

@keyframes quickButtonShine {
    0%   { left: -90%; opacity: 0; }
    20%  { opacity: 1; }
    100% { left: 140%; opacity: 0; }
}

/* ------------------------------------------------------------ Descargas */
.links-download {
    width: min(70%, 460px);
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    list-style: none;
}
.links-download li { display: block; font-family: var(--f-display); font-weight: 700; }
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 214, 150, .4);
    background: linear-gradient(180deg, #f7b95f 0%, #de7522 100%);
    color: #1a0b03;
    font-family: var(--f-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    text-decoration: none;
    box-shadow: 0 16px 32px -12px rgba(224, 102, 31, .65), inset 0 1px 0 rgba(255,255,255,.4);
    transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}
.download-btn:hover {
    color: #1a0b03;
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -12px rgba(224, 102, 31, .8), 0 0 24px rgba(242, 169, 78, .3), inset 0 1px 0 rgba(255,255,255,.5);
}
.download-btn:active { transform: translateY(0); filter: brightness(1.02); }
.download-btn .icon { font-size: 18px; line-height: 1; }
.download-btn--alt {
    background: rgba(242, 169, 78, .10);
    color: var(--amber-2);
    border: 1px solid var(--stroke-strong);
    box-shadow: var(--shadow-soft);
    text-transform: uppercase;
}
.download-btn--alt:hover {
    background: linear-gradient(180deg, #f7b95f 0%, #de7522 100%);
    color: #1a0b03;
}
.download-help { font-size: 13px; color: var(--muted); margin: 8px 0 0; text-align: center; }

/* ------------------------------------------------------------- Alertas */
.alert {
    position: relative;
    padding: 14px 42px 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--stroke);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    font-family: var(--f-body);
    font-size: 14px;
    color: var(--text-2);
    background: rgba(0, 0, 0, .3);
}
.alert-success { color: #c9f7da; background: rgba(60, 190, 110, .12); border-color: rgba(111, 227, 154, .35); border-left-color: var(--good); }
.alert-danger  { color: #ffd3cc; background: rgba(230, 80, 60, .13); border-color: rgba(255, 125, 110, .35); border-left-color: var(--bad); }
.alert-warning { color: #ffe9bd; background: rgba(240, 170, 40, .12); border-color: rgba(255, 202, 115, .35); border-left-color: var(--warn); }
.alert-dismissible .close {
    position: absolute;
    top: 10px;
    right: 12px;
    color: inherit;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    opacity: .6;
    transition: opacity .2s ease;
}
.alert-dismissible .close:hover { opacity: 1; }
.fade.in { opacity: 1; transition: opacity .15s linear; }

/* ------------------------------------------------ Ranking de actividad */
.rk-card .card-body { padding: 16px 16px 12px; }
.rk-title-icon { margin-right: 2px; color: var(--amber); }
.rk-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.rk-nav-btn {
    flex: 0 0 38px;
    width: 38px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    color: var(--muted);
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.rk-nav-btn:hover { color: var(--amber-3); border-color: var(--stroke-strong); background: rgba(242,169,78,.12); }
.rk-cat {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    color: var(--amber-2);
    background: rgba(242, 169, 78, .12);
    border: 1px solid var(--stroke-strong);
    border-radius: 999px;
    box-shadow: var(--glow);
}
.rk-cat span { overflow: hidden; text-overflow: ellipsis; }
.rk-cat i { font-size: 12px; opacity: .9; }
.rk-panel { display: none; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; padding-top: 10px; }
.rk-panel.active { display: grid; }
.rk-tile {
    position: relative;
    min-width: 0;
    text-align: center;
    padding: 18px 8px 14px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--stroke);
    transition: transform .25s ease, border-color .25s ease;
}
.rk-tile:hover { transform: translateY(-3px); border-color: var(--stroke-strong); }
.rk-tile.rk-1 {
    order: 2;
    padding-top: 24px;
    background: linear-gradient(180deg, rgba(242,169,78,.22), rgba(0,0,0,.28) 75%);
    border-color: var(--amber);
    box-shadow: 0 0 30px rgba(242, 169, 78, .18);
}
.rk-tile.rk-2 { order: 1; }
.rk-tile.rk-3 { order: 3; }
.rk-medal {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font: 700 12px var(--f-mono);
    color: #1a0b03;
    background: linear-gradient(180deg, #ffd27a, #e0861f);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 6px 14px rgba(0,0,0,.5);
}
.rk-2 .rk-medal { background: linear-gradient(180deg, #f0f0f0, #9a9a9a); }
.rk-3 .rk-medal { background: linear-gradient(180deg, #e0a56c, #8a5a2b); }
.rk-medal i { font-size: 11px; }
.rk-job {
    width: 50px;
    height: 50px;
    margin: 4px 0 8px;
    border-radius: 50%;
    border: 2px solid var(--stroke-strong);
    background: rgba(0, 0, 0, .4);
    box-shadow: 0 6px 14px rgba(0,0,0,.45);
    object-fit: cover;
}
.rk-1 .rk-job { width: 60px; height: 60px; border-color: var(--amber); box-shadow: 0 0 20px rgba(242,169,78,.35); }
.rk-name {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .04em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rk-1 .rk-name { font-size: 13.5px; color: var(--amber-3); }
.rk-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    font: 11.5px var(--f-mono);
    color: var(--muted);
}
.rk-meta img { width: 22px; height: 12px; object-fit: cover; border-radius: 2px; }
.rk-y { color: var(--info); font-weight: 700; }
.rk-score {
    margin-top: 8px;
    font: 700 15px var(--f-mono);
    font-variant-numeric: tabular-nums;
    color: var(--amber);
}
.rk-1 .rk-score { font-size: 17px; color: var(--amber-2); }
.rk-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.rk-dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(244,236,224,.22); transition: all .25s ease; }
.rk-dot.active { width: 18px; background: var(--amber); box-shadow: 0 0 10px rgba(242,169,78,.7); }

/* -------------------------------------------------------- Panel de eventos */
:root {
    --ev-panel: var(--panel);
    --ev-stroke: var(--stroke);
    --ev-text: var(--text);
    --ev-muted: var(--muted);
    --ev-accent: var(--amber);
    --ev-shadow: var(--shadow-soft);
    --ev-radius: var(--radius);
    --ev-blur: var(--blur);
}
.event-scroll { max-height: 420px; overflow-y: auto; padding-right: 8px; margin-right: -4px; }
.event-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--stroke-soft);
    border-radius: 8px;
    transition: background .2s ease;
}
.event-box:hover { background: rgba(242, 169, 78, .05); }
.event-box:last-child { border-bottom: 0; }
.event-box.event-empty { display: block; padding: 14px; text-align: center; font-size: 13px; color: var(--ev-muted); }
.event-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(0, 0, 0, .35);
    border: 1px solid var(--ev-stroke);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}
.event-main { min-width: 0; flex: 1 1 auto; }
.event-title {
    font-family: var(--f-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11.5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-status { margin-top: 3px; font-size: 12px; font-family: var(--f-mono); color: var(--ev-muted); }
.event-status i { font-size: 11px; margin-right: 3px; }
.st-active .event-status { color: var(--good); }
.st-upcoming .event-status { color: var(--warn); }
.st-finished { opacity: .5; }
.st-finished .event-status { color: var(--bad); }
.event-bar { height: 3px; margin-top: 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.event-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(111,227,154,.5), var(--good)); box-shadow: 0 0 8px rgba(111,227,154,.6); }
.event-title-icon { margin-right: 2px; color: var(--ev-accent); }

.event-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.event-nav-btn {
    flex: 0 0 38px;
    width: 38px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    color: var(--ev-muted);
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--ev-stroke);
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.event-nav-btn:hover { color: var(--amber-3); border-color: var(--stroke-strong); background: rgba(242,169,78,.12); }
.event-nav-btn:disabled, .event-nav-btn:disabled:hover { opacity: .35; cursor: default; color: var(--ev-muted); border-color: var(--ev-stroke); background: rgba(0, 0, 0, .3); }
.event-nav-day {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    font-size: 11.5px;
    font-family: var(--f-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--amber-2);
    background: rgba(242, 169, 78, .12);
    border: 1px solid var(--stroke-strong);
    border-radius: 999px;
    box-shadow: var(--glow);
}
.event-day { display: none; }
.event-day.active { display: block; }


/* ------------------------------------------------------------ Panel admin */
.admin-card .card-title { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.admin-links { display: flex; flex-direction: column; gap: 10px; }
.admin-link-item {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .25);
    color: var(--text-2);
    box-shadow: none;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.admin-link-item:hover {
    color: var(--amber-3);
    background: rgba(242, 169, 78, .08);
    border-color: var(--stroke-strong);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}
.admin-link-item h5 {
    margin: 0 0 6px 0;
    color: var(--amber-2);
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.admin-link-item h5 i { margin-right: 8px; }
.admin-link-item p { margin: 0; color: var(--muted); font-family: var(--f-body); font-size: 13px; line-height: 1.45; }

.admin-panel { width: 100%; }
.admin-form { display: flex; flex-direction: column; gap: 12px; }
.admin-form-row { display: grid; gap: 12px; }
.admin-form-row-2 { grid-template-columns: 1fr 2fr; }
.admin-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.admin-input-group { display: grid; grid-template-columns: 1fr auto; align-items: stretch; width: 100%; }
.admin-input-group input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.admin-input-group span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--stroke);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(242, 169, 78, .10);
    color: var(--amber-2);
    font-family: var(--f-mono);
    font-size: 12.5px;
    white-space: nowrap;
}
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100% !important; }
.admin-btn-small { padding: 8px 12px; font-size: 12px; border-radius: 9px; width: auto !important; display: inline-flex; }

/* Componentes Bootstrap (solo se cargan en el admin) adaptados al tema oscuro */
body .list-group { display: flex; flex-direction: column; padding: 0; margin: 0 0 4px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--stroke); }
body .list-group-item {
    position: relative;
    display: block;
    padding: 14px 18px;
    margin: 0;
    color: var(--text-2);
    background: rgba(0, 0, 0, .25);
    border: 0;
    border-bottom: 1px solid var(--stroke-soft);
    border-radius: 0;
    list-style: none;
}
body .list-group-item:last-child { border-bottom: 0; }
body .list-group-item.active {
    color: var(--amber-2);
    background: linear-gradient(90deg, rgba(242, 169, 78, .22), rgba(242, 169, 78, .05));
    border-color: var(--stroke);
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 12.5px;
}
body a.list-group-item-action { width: 100%; text-align: inherit; }
body a.list-group-item-action:hover, body a.list-group-item-action:focus {
    color: var(--amber-3);
    background: rgba(242, 169, 78, .09);
    text-decoration: none;
}
body a.list-group-item-action .list-group-item-heading,
body .list-group-item .list-group-item-heading { color: var(--amber-2); }
body a.list-group-item-action .list-group-item-text,
body .list-group-item .list-group-item-text { color: var(--muted); }
body a.list-group-item-action:hover .list-group-item-heading { color: var(--amber-3); }
body .list-group-item-heading { margin: 0 0 4px; color: var(--amber-2); font-family: var(--f-display); font-size: 14px; letter-spacing: .06em; }
body .list-group-item-text { margin: 0; color: var(--muted); font-size: 13px; }

body .nav-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 18px; list-style: none; border-bottom: 1px solid var(--stroke); }
body .nav-item { list-style: none; margin: 0 0 -1px; }
body .nav-tabs .nav-link {
    display: block;
    padding: 10px 18px;
    color: var(--muted);
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
}
body .nav-tabs .nav-link:hover { color: var(--amber-3); background: rgba(242,169,78,.07); border-color: transparent; }
body .nav-tabs .nav-link.active,
body .nav-tabs .nav-item.show .nav-link {
    color: var(--amber-2);
    background: rgba(242, 169, 78, .12);
    border-color: var(--stroke) var(--stroke) transparent;
}
.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active, .tab-content > .active { display: block; }

body .jumbotron { padding: 28px 30px; margin-bottom: 20px; background: rgba(0, 0, 0, .28); border: 1px solid var(--stroke); border-radius: var(--radius); color: var(--text-2); }

body .modal-content {
    color: var(--text);
    background: linear-gradient(180deg, #1d120a, #120a06);
    border: 1px solid var(--stroke-strong);
    border-radius: var(--radius);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .85);
}
body .modal-header, body .modal-footer { border-color: var(--stroke); }
body .modal-title { color: var(--amber-2); font-family: var(--f-display); letter-spacing: .08em; }
body .close, body .btn-close { color: var(--amber-2); text-shadow: none; opacity: .7; }
body .close:hover { color: var(--amber-3); opacity: 1; }

body .bootstrap-select > .dropdown-toggle,
body .bootstrap-select .btn.dropdown-toggle {
    color: var(--text);
    background: rgba(0, 0, 0, .4);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    box-shadow: none;
    font-family: var(--f-body);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
body .dropdown-menu { background: #1b110a; border: 1px solid var(--stroke); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
body .dropdown-menu > li > a, body .dropdown-item { color: var(--text-2); }
body .dropdown-menu > li > a:hover, body .dropdown-item:hover, body .dropdown-menu > .active > a { background: rgba(242,169,78,.14); color: var(--amber-3); }

/* ----------------------------------------------------- Alertas SweetAlert2 */
.swal2-popup {
    background: linear-gradient(180deg, #1d120a, #120a06) !important;
    color: var(--text) !important;
    border: 1px solid var(--stroke-strong) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .85), 0 0 40px rgba(242,169,78,.10) !important;
    font-family: var(--f-body) !important;
}
.swal2-title, .swal2-html-container { color: var(--text) !important; }
.swal2-timer-progress-bar { background: var(--amber) !important; }
.swal2-confirm { background: linear-gradient(180deg, #f5b45c, #de7522) !important; color: #1a0b03 !important; border-radius: 10px !important; }

/* ---------------------------------------------------------------- Footer */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 22px 20px;
    color: var(--text);
    background: linear-gradient(180deg, rgba(14, 9, 6, .78), rgba(8, 5, 4, .96));
    border-top: 1px solid var(--stroke);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}
footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242,169,78,.7), transparent);
}
footer .left-text,
footer .right-text {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--f-mono);
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
}
footer .right-text { text-align: right; }
footer .center-logo img { height: 90px; opacity: .6; transition: opacity .3s ease, filter .3s ease; filter: drop-shadow(0 0 14px rgba(242,169,78,.2)); }
footer .center-logo img:hover { opacity: .95; }
footer span {
    color: var(--amber-2);
    font-weight: 600;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}
footer span a { margin-left: 35px; color: var(--amber); }
footer span a:hover { color: var(--amber-3); }



/* ------------------------------------------------ Póster de presentación */
.presentation-wrapper{
    padding: 0 !important;
    background: #050505;
    overflow: hidden;
}

.break-presentation{
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    container-type: inline-size;

    /* Tamaño REAL de tu imagen base */
    --base-w: 750;
    --base-h: 14164;
}

.break-presentation > img{
    width: 100%;
    display: block;
}

/* Textos sobre la imagen */
.poster-title,
.poster-text{
    position: absolute;

    left: calc((var(--x) / var(--base-w)) * 100%);
    top: calc((var(--y) / var(--base-h)) * 100%);
    width: calc((var(--w) / var(--base-w)) * 100%);

    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;

    text-shadow:
        0 0 4px rgba(0,0,0,.95),
        0 0 8px rgba(0,0,0,.95),
        0 0 14px rgba(0,0,0,.95),
        0 2px 2px rgba(0,0,0,.95);
}

.poster-title{
    color: #f1e4c8;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.05;

    /* --fs está pensado en píxeles sobre imagen de 750px */
    font-size: clamp(10px, calc(var(--fs) * 100cqw / var(--base-w)), 36px);
}

.poster-text{
    color: rgba(244,239,231,.88);
    font-family: Arial, sans-serif;
    font-weight: 400;
    line-height: 1.35;

    font-size: clamp(7px, calc(var(--fs) * 100cqw / var(--base-w)), 16px);
}

@supports not (font-size: 1cqw){
    .poster-title{
        font-size: clamp(10px, 2.7vw, 32px);
    }

    .poster-text{
        font-size: clamp(7px, 1.35vw, 15px);
    }
}

@media (max-width: 992px){
    .break-presentation{
        max-width: 100%;
    }

    .poster-title{
        letter-spacing: .05em;
    }
}

/* Utilidades (las dejo tal cual por si se usan en el HTML) */
/* Padding Top (pt) */
.pt-0 { padding-top: 0px; }
.pt-5 { padding-top: 5px; }
.pt-10 { padding-top: 10px; }
.pt-15 { padding-top: 15px; }
.pt-20 { padding-top: 20px; }
.pt-30 { padding-top: 30px; }

/* Padding Bottom (pb) */
.pb-0 { padding-bottom: 0px; }
.pb-5 { padding-bottom: 5px; }
.pb-10 { padding-bottom: 10px; }
.pb-15 { padding-bottom: 15px; }
.pb-20 { padding-bottom: 20px; }
.pb-30 { padding-bottom: 30px; }

/* Padding Left (pl) */
.pl-0 { padding-left: 0px; }
.pl-5 { padding-left: 5px; }
.pl-10 { padding-left: 10px; }
.pl-15 { padding-left: 15px; }
.pl-20 { padding-left: 20px; }
.pl-30 { padding-left: 30px; }

/* Padding Right (pr) */
.pr-0 { padding-right: 0px; }
.pr-5 { padding-right: 5px; }
.pr-10 { padding-right: 10px; }
.pr-15 { padding-right: 15px; }
.pr-20 { padding-right: 20px; }
.pr-30 { padding-right: 30px; }

/* Padding All Sides (pa) */
.pa-0 { padding: 0px; }
.pa-5 { padding: 5px; }
.pa-10 { padding: 10px; }
.pa-15 { padding: 15px; }
.pa-20 { padding: 20px; }
.pa-30 { padding: 30px; }

/* Padding Top and Bottom (py) */
.py-0 { padding-top: 0px; padding-bottom: 0px; }
.py-5 { padding-top: 5px; padding-bottom: 5px; }
.py-10 { padding-top: 10px; padding-bottom: 10px; }
.py-15 { padding-top: 15px; padding-bottom: 15px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-30 { padding-top: 30px; padding-bottom: 30px; }

/* Padding Left and Right (px) */
.px-0 { padding-left: 0px; padding-right: 0px; }
.px-5 { padding-left: 5px; padding-right: 5px; }
.px-10 { padding-left: 10px; padding-right: 10px; }
.px-15 { padding-left: 15px; padding-right: 15px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.px-30 { padding-left: 30px; padding-right: 30px; }

/* Margin Top (mt) */
.mt-0 { margin-top: 0px; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Margin Bottom (mb) */
.mb-0 { margin-bottom: 0px; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* Margin Left (ml) */
.ml-0 { margin-left: 0px; }
.ml-5 { margin-left: 5px; }
.ml-10 { margin-left: 10px; }
.ml-15 { margin-left: 15px; }
.ml-20 { margin-left: 20px; }
.ml-30 { margin-left: 30px; }

/* Margin Right (mr) */
.mr-0 { margin-right: 0px; }
.mr-5 { margin-right: 5px; }
.mr-10 { margin-right: 10px; }
.mr-15 { margin-right: 15px; }
.mr-20 { margin-right: 20px; }
.mr-30 { margin-right: 30px; }

/* Margin All Sides (ma) */
.ma-0 { margin: 0px; }
.ma-5 { margin: 5px; }
.ma-10 { margin: 10px; }
.ma-15 { margin: 15px; }
.ma-20 { margin: 20px; }
.ma-30 { margin: 30px; }

/* Margin Top and Bottom (my) */
.my-0 { margin-top: 0px; margin-bottom: 0px; }
.my-5 { margin-top: 5px; margin-bottom: 5px; }
.my-10 { margin-top: 10px; margin-bottom: 10px; }
.my-15 { margin-top: 15px; margin-bottom: 15px; }
.my-20 { margin-top: 20px; margin-bottom: 20px; }
.my-30 { margin-top: 30px; margin-bottom: 30px; }

/* Margin Left and Right (mx) */
.mx-0 { margin-left: 0px; margin-right: 0px; }
.mx-5 { margin-left: 5px; margin-right: 5px; }
.mx-10 { margin-left: 10px; margin-right: 10px; }
.mx-15 { margin-left: 15px; margin-right: 15px; }
.mx-20 { margin-left: 20px; margin-right: 20px; }
.mx-30 { margin-left: 30px; margin-right: 30px; }



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

/* Pantallas medianas: columnas laterales más estrechas */
@media only screen and (max-width: 1240px) and (min-width: 993px) {
    .container:has(> .col-left) {
        grid-template-columns: 260px minmax(0, 1fr) 260px;
        gap: 14px;
    }
    nav ul li a { padding: 12px 9px; font-size: 12px; letter-spacing: .1em; }
    nav ul li a::after { left: 9px; right: 9px; }
    .user-panel-card .card-body { padding: 16px 12px; }
    .quick-action-btn span { max-width: 80px; }
    .rk-panel { gap: 8px; }
    .news-title { font-size: 14.5px; }
}

@media only screen and (max-width: 992px) {
    html, body { overflow-x: clip; }

    /* Cabecera móvil fija: logo + botón de menú */
    .mobile-header,
    .mobile-nav-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 12px 6px 14px;
        background: linear-gradient(180deg, rgba(14, 9, 6, .94), rgba(10, 6, 4, .88));
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--stroke);
    }
    .mobile-header { position: sticky; top: 0; z-index: 1001; }
    .mobile-header::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: -1px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(242,169,78,.6), transparent);
    }
    .mobile-logo { display: flex; align-items: center; }
    .mobile-logo img {
        /* la imagen del logo tiene mucho margen transparente: se amplía sin cambiar la altura de la barra */
        height: 46px;
        width: 46px;
        margin-left: 12px;
        transform: scale(1.7);
        transform-origin: 50% 50%;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(242,169,78,.25));
    }
    .sidenav-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin: 0;
        font-size: 20px;
        color: var(--amber-2);
        background: rgba(242, 169, 78, .08);
        border: 1px solid var(--stroke-strong);
        border-radius: 12px;
    }
    .sidenav-trigger:active { background: rgba(242, 169, 78, .2); }

    /* Menú a pantalla completa */
    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 0 30px;
        background:
            radial-gradient(600px 300px at 50% 0%, rgba(242,169,78,.14), transparent 70%),
            #090503;
        z-index: 1100;
        border-bottom: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        align-items: flex-start;
    }
    nav::after { display: none; }
    nav.open { display: block; }
    .mobile-nav-top { position: sticky; top: 0; z-index: 1; }
    nav .container { max-width: 480px; padding: 16px 16px 0; }
    nav ul { flex-direction: column; align-items: stretch; gap: 8px; }
    nav ul li { padding: 0; }
    nav ul li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 15px 18px;
        font-size: 14px;
        letter-spacing: .14em;
        border-radius: var(--radius-sm);
        background: rgba(0, 0, 0, .35);
        border: 1px solid var(--stroke);
    }
    nav ul li a::after { display: none; }
    nav ul li a:hover, nav ul li.active > a { transform: none; }
    nav ul li.language a { border-radius: var(--radius-sm); }
    nav ul li.signup a.btn {
        width: 100%;
        margin: 0;
        justify-content: center;
        background: linear-gradient(180deg, #f7b95f, #de7522);
        border-color: rgba(255, 214, 150, .4);
    }

    /* Desplegables como acordeón (script.js los abre al tocar) */
    nav ul li .dropbtn::after {
        content: "\f078";
        display: block;
        position: static;
        left: auto; right: auto; bottom: auto;
        width: auto;
        height: auto;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 12px;
        margin-left: auto;
        opacity: .7;
        background: none;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        transition: transform .2s ease;
    }
    .dropdown.open .dropbtn::after { transform: rotate(180deg); }
    .dropdown.open > .dropbtn { border-color: var(--stroke-strong); color: var(--amber-2); }
    .dropdown .dropdown-content,
    .dropdown:hover .dropdown-content { display: none; animation: none; }
    .dropdown.open .dropdown-content {
        display: block;
        position: static;
        min-width: 0;
        margin: 6px 0 2px 14px;
        padding: 6px;
        background: rgba(0, 0, 0, .3);
        border: 1px solid var(--stroke-soft);
        border-top: 1px solid var(--stroke-soft);
        border-radius: var(--radius-sm);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .dropdown-content a {
        display: block;
        width: auto;
        min-width: 0;
        padding: 12px 14px;
        font-size: 14px;
        border: 0;
        border-radius: 8px;
    }

    /* Hero compacto: personaje visible y logo abajo a la derecha */
    .hero-top { height: 92vw; max-height: 460px; margin: 0; }
    .hero-top::before {
        background-size: auto 217%;
        background-position: 20% top;
        -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 97%);
        mask-image: linear-gradient(180deg, #000 55%, transparent 97%);
    }
    .logo-container {
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        height: 100%;
        max-width: none;
        padding: 0 4% 6% 0;
    }
    .logo {
        float: none !important;
        margin: 0;
        width: 42vw;
        max-width: 200px;
    }

    /* Contenido en una sola columna.
       Orden móvil: slider y noticias → accesos/estadísticas/eventos → panel de usuario y rankings */
    .container,
    .container:has(> .col-left) {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 14px 0 0;
    }
    .col-left, .col-middle, .col-right {
        float: none;
        display: block;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        padding: 0 12px;
    }
    .col-middle { order: 1; }
    .col-right { order: 2; }
    .col-left { order: 3; }

    .card { border-radius: 16px; margin-bottom: 14px; }
    .card-body { padding: 14px; }
    .slider .card-body, .slider .slide { height: 58vw; max-height: 300px; }
    .slider .slide .content { padding: 16px 18px; }
    .slider .slide .content h2 { font-size: 20px; }
    .slider .slide .content p { font-size: 13px; }
    .ranking th, .ranking td { padding: 9px 6px; }

    .payment-opts { display: flex !important; flex-direction: column !important; }

    .quick-action-card { margin-bottom: 14px; }
    .quick-action-btn { height: 64px; font-size: 13px; padding: 10px 12px; }
    .quick-action-btn span { max-width: none; -webkit-line-clamp: 1; line-height: 1.15; }
    .quick-action-btn .icon { font-size: 18px; }

    .btn { width: 100%; }

    /* Noticias y donaciones */
    .news-title { flex-direction: column; align-items: stretch; gap: 10px; }
    .news-title .options { align-self: flex-end; }
    .news-footer { flex-direction: column; align-items: stretch; }
    .read-all-btn { width: 100%; }
    .news-card form, .news-card .btn { width: 100%; }
    .news-card .news-title.payment-opts { flex-direction: column; align-items: stretch; gap: 10px; }
    .links-download { width: 100%; }
    .table.table-hover { width: 100%; }

    /* Admin */
    .admin-form-row-2, .admin-form-row-3 { grid-template-columns: 1fr; }
    .admin-input-group { grid-template-columns: 1fr auto; }
    .admin-btn-small { width: auto !important; }

    /* Ranking de actividad */
    .rk-panel { gap: 6px; }
    .rk-tile { padding: 16px 6px 12px; }
    .rk-job { width: 44px; height: 44px; }
    .rk-1 .rk-job { width: 52px; height: 52px; }
    .rk-name { font-size: 12px; }
    .rk-cat { font-size: 12px; }
    .rk-score { font-size: 14px; }
    .rk-1 .rk-score { font-size: 15px; }

    /* Footer apilado y centrado */
    footer { flex-direction: column; text-align: center; gap: 10px; padding: 20px 14px; }
    footer .right-text { text-align: center; }
    footer span { justify-content: center; flex-wrap: wrap; }
    footer span a { margin-left: 8px; }
    footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
    footer .center-logo img { height: 70px; }
}

@media only screen and (max-width: 420px) {
    .card-title { letter-spacing: .16em; }
    .rk-tile { padding: 14px 4px 10px; }
    .quick-action-btn { font-size: 12px; letter-spacing: .08em; gap: 8px; }
}

/* Accesibilidad: respeta "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
