/* ============================================================
   PokéPrecios — Rediseño Colecciones (capa sobre style.css)
   Cargar DESPUÉS de style.css:
   <link rel="stylesheet" href="css/redesign.css?v=1">
   ============================================================ */

@keyframes pk-card-in { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pk-rise    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pk-chip-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pk-twinkle { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.25); } }
@keyframes pk-holo    { from { background-position: 130% 0; } to { background-position: -60% 0; } }
@keyframes pk-aurora  { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-30px,0) scale(1.06); } }

/* Aurora del fondo con deriva lenta */
body::after { animation: pk-aurora 16s ease-in-out infinite; }

/* ── Topbar: marca bicolor (sin degradado) y activo con subrayado ── */
.topbar-brand {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--text);
}
.topbar-brand .tb-poke { color: var(--gold); }
.topbar-logo:hover .topbar-logo-img { transform: rotate(-24deg) scale(1.08); }
.topbar-links a.active {
    color: #ffb066;
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--gold);
    border-radius: 8px 8px 0 0;
    font-weight: 700;
}

/* ── Hero de Colecciones ── */
.col-hero { padding: 40px 0 4px; }
.col-hero-kicker {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.74rem; font-weight: 600;
    letter-spacing: 2.6px; text-transform: uppercase;
    animation: pk-rise 0.5s ease both;
}
.col-hero-kicker .rar { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; letter-spacing: 0; }
.col-hero h1 {
    font-family: var(--font-display);
    font-size: 3.3rem; letter-spacing: 2px; line-height: 1.05;
    margin: 0 0 12px;
    animation: pk-rise 0.55s ease 0.08s both;
}
.col-hero-sub {
    margin: 0 0 10px; color: var(--text-muted);
    font-size: 1rem; max-width: 560px; text-wrap: pretty;
    animation: pk-rise 0.55s ease 0.16s both;
}

/* ── Buscador global restylado ── */
/* La animación termina en transform:translateY(0) y, con fill-mode 'both', ese
   transform PERSISTE — y un transform distinto de 'none' crea contexto de
   apilado. Eso encerraba el z-index:200 del desplegable dentro de esta sección,
   así que la rejilla de colecciones (posterior en el DOM) se pintaba encima: se
   veían las cartas del fondo a través de los resultados y los clics llegaban a
   la tarjeta de detrás. Posicionar la sección saca su contexto por encima de la
   rejilla, que va en z-index auto.
   El valor tiene que quedar POR DEBAJO de la cromo fija — .era-rail-wrap (90) y
   .topbar (200) — o al bajar la página el buscador se les monta encima. */
.gsearch-section { animation: pk-rise 0.55s ease 0.24s both; position: relative; z-index: 10; }
.gsearch-wrap { max-width: 540px; }
.gsearch-icon svg { width: 17px; height: 17px; display: block; }
.gsearch-input {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gsearch-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255,125,0,0.16);
}

/* ── Raíl de eras ── */
.era-chip { animation: pk-chip-in 0.4s ease both; transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.era-chip:hover { transform: translateY(-2px); }
.era-chip:nth-child(1)  { animation-delay: 0ms; }
.era-chip:nth-child(2)  { animation-delay: 35ms; }
.era-chip:nth-child(3)  { animation-delay: 70ms; }
.era-chip:nth-child(4)  { animation-delay: 105ms; }
.era-chip:nth-child(5)  { animation-delay: 140ms; }
.era-chip:nth-child(6)  { animation-delay: 175ms; }
.era-chip:nth-child(7)  { animation-delay: 210ms; }
.era-chip:nth-child(8)  { animation-delay: 245ms; }
.era-chip:nth-child(9)  { animation-delay: 280ms; }
.era-chip:nth-child(10) { animation-delay: 315ms; }
.era-chip:nth-child(11) { animation-delay: 350ms; }
.era-chip:nth-child(12) { animation-delay: 385ms; }
.era-chip:nth-child(13) { animation-delay: 420ms; }

/* ── Cabeceras de sección ── */
.sets-section { margin: 0 0 18px; }
.section-header { border-top: 1px solid #182448; padding-top: 22px; margin-bottom: 28px; }
.era-title-img { transition: transform 0.25s ease; }
.section-header:hover .era-title-img { transform: scale(1.04) rotate(-1.5deg); }

/* ── Tarjetas de set: marco TCG + holo + estrella de rareza ── */
.set-card {
    background: #121a36;
    border-radius: 14px;
    animation: pk-card-in 0.5s ease both;
    animation-delay: calc(var(--i, 0) * 45ms);
}
/* Foil holográfico (sustituye la marca de agua ::before) */
.set-card::before {
    content: '';
    position: absolute; inset: 0;
    right: auto; bottom: auto;
    width: 100%; height: 100%;
    border-radius: 12px;
    background: linear-gradient(112deg, transparent 22%, rgba(255,255,255,0.11) 37%, rgba(56,217,245,0.12) 46%, rgba(176,108,255,0.12) 55%, rgba(255,255,255,0.09) 63%, transparent 78%);
    background-size: 240% 240%;
    background-position: 130% 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}
.set-card:hover::before { opacity: 1; animation: pk-holo 1.15s ease both; }
/* Estrella de rareza (sustituye la pokéball ::after) */
.set-card::after {
    content: '★';
    position: absolute; top: 10px; right: 13px; bottom: auto; left: auto;
    width: auto; height: auto;
    border: none; border-radius: 0; background: none;
    color: var(--era-c, var(--gold));
    font-size: 0.72rem; line-height: 1;
    animation: pk-twinkle 3.2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 700ms);
}
.set-card:hover::after { transform: none; border-color: transparent; }
.set-chip {
    color: var(--era-c, var(--gold));
    border: 1px solid color-mix(in srgb, var(--era-c, var(--gold)) 40%, transparent);
    background: color-mix(in srgb, var(--era-c, var(--gold)) 8%, transparent);
    border-radius: 999px;
    padding: 3px 11px;
}

/* ── Accesibilidad ── */
@media (prefers-reduced-motion: reduce) {
    .set-card, .era-chip, .col-hero-kicker, .col-hero h1, .col-hero-sub, .gsearch-section, body::after { animation: none !important; }
    .set-card::before, .set-card::after { animation: none !important; }
}

/* ============================================================
   LANDING (index.html) — rediseño oscuro
   Namespace .lp-* para no colisionar con las reglas .hero/.feature-card
   antiguas de style.css. Cargar redesign.css DESPUÉS de style.css.
   ============================================================ */

@keyframes pk-ball-bob   { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-9px) rotate(4deg); } }
@keyframes pk-sparkle    { 0%, 100% { opacity: 0.12; transform: scale(0.7) rotate(0deg); } 50% { opacity: 0.9; transform: scale(1.2) rotate(24deg); } }
@keyframes pk-float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.landing main { display: block; }

/* ── HERO ─────────────────────────────────────────────────── */
.lp-hero { max-width: 1280px; margin: 0 auto; padding: 72px 24px 56px; text-align: center; }
.lp-hero-ball {
    display: inline-block; width: 76px; height: 76px;
    filter: drop-shadow(0 6px 24px rgba(232,39,59,0.5));
    animation: pk-ball-bob 4.5s ease-in-out infinite;
}
.lp-wordmark {
    font-family: var(--font-brand, 'Bagel Fat One'), 'Poetsen One', sans-serif;
    font-size: 4.2rem; letter-spacing: 3px; line-height: 1.05;
    margin: 14px 0 6px; animation: pk-rise 0.55s ease both;
}
.lp-wordmark .lp-poke { color: #ff7d00; }
.lp-wordmark .lp-precios { color: #eef2ff; }
.lp-tagline {
    margin: 0 0 8px; font-family: 'Poetsen One', sans-serif;
    font-size: 1.25rem; letter-spacing: 1.5px; color: #ffb066;
    animation: pk-rise 0.55s ease 0.1s both;
}
.lp-sub {
    margin: 0 auto 30px; max-width: 520px; color: #8b98bd;
    font-size: 1.02rem; text-wrap: pretty;
    animation: pk-rise 0.55s ease 0.18s both;
}
.lp-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: pk-rise 0.55s ease 0.26s both; }
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; font-size: 0.96rem; font-weight: 700;
    letter-spacing: 0.3px; padding: 13px 30px; cursor: pointer;
}
.lp-btn-primary {
    background: #ff7d00; color: #10152a;
    box-shadow: 0 3px 0 #c25f00;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-btn-primary:hover { color: #10152a; transform: translateY(-2px); box-shadow: 0 5px 0 #c25f00; }
.lp-btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #c25f00; }
.lp-btn-secondary {
    border: 1.5px solid #2c3d6b; color: #eef2ff; font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.lp-btn-secondary:hover { color: #eef2ff; border-color: #38d9f5; background: rgba(56,217,245,0.07); }

/* ── CARTAS CON HYPE ──────────────────────────────────────── */
.lp-hype {
    position: relative; overflow: hidden; margin-bottom: 60px;
    border-top: 1px solid #182448; border-bottom: 1px solid #182448;
    background: radial-gradient(900px 420px at 50% -80px, rgba(255,125,0,0.1) 0%, transparent 65%), rgba(13,19,41,0.6);
}
.lp-spark { position: absolute; pointer-events: none; animation: pk-sparkle 4s ease-in-out infinite; }
.lp-spark-1 { top: 48px;  left: 7%;   color: #38d9f5; font-size: 1rem;    animation-duration: 3.6s; }
.lp-spark-2 { top: 120px; right: 9%;  color: #ffb066; font-size: 1.3rem;  animation-duration: 4.2s; animation-delay: 0.8s; }
.lp-spark-3 { bottom: 90px; left: 14%; color: #b06cff; font-size: 0.85rem; animation-duration: 3.1s; animation-delay: 1.6s; }
.lp-spark-4 { top: 60%;   right: 4%;  color: #eef2ff; font-size: 0.8rem;  animation-duration: 4.8s; animation-delay: 2.2s; }
.lp-spark-5 { top: 30px;  left: 44%;  color: #ff8a97; font-size: 0.9rem;  animation-duration: 3.9s; animation-delay: 2.8s; }
.lp-hype-inner { max-width: 1280px; margin: 0 auto; padding: 52px 24px 46px; }
.lp-hype-inner h2 {
    font-family: 'Poetsen One', sans-serif; font-size: 2.4rem; letter-spacing: 2px;
    margin: 0 0 4px; text-shadow: 0 4px 24px rgba(255,125,0,0.35);
}
.lp-hype-inner h2 .hl { color: #ffb066; }
.lp-hype-sub { margin: 0 0 34px; color: #8b98bd; font-size: 0.94rem; }
.lp-hype-week { color: #ffa24d; font-weight: 700; }
.lp-hype-week:not(:empty)::before { content: '·'; margin: 0 7px; color: #4a5578; font-weight: 400; }
.lp-carousel {
    overflow-x: auto; padding: 10px 4px 26px; scrollbar-width: thin;
    scrollbar-color: rgba(255,125,0,0.5) transparent;
}
.lp-carousel::-webkit-scrollbar { height: 8px; }
.lp-carousel::-webkit-scrollbar-thumb { background: rgba(255,125,0,0.5); border-radius: 999px; }
.lp-carousel.is-dragging { cursor: grabbing; }
.lp-carousel-track { display: flex; gap: 26px; align-items: flex-start; width: max-content; }
.lp-card {
    flex-shrink: 0; width: 196px; perspective: 900px;
    animation: pk-card-in 0.55s ease both; animation-delay: calc(var(--i, 0) * 80ms);
}
.lp-card-link {
    display: block; position: relative; border-radius: 11px;
    transform-style: preserve-3d; transition: transform 0.35s ease; will-change: transform;
    animation: pk-float-card 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 600ms);
}
.lp-rank-ghost {
    position: absolute; left: -10px; bottom: 34px; z-index: 0;
    font-family: 'Poetsen One', sans-serif; font-size: 4.6rem; line-height: 1;
    color: rgba(255,255,255,0.07); pointer-events: none;
}
.lp-card-img {
    display: block; width: 100%; border-radius: 10px; position: relative;
    filter: drop-shadow(0 14px 26px rgba(0,0,0,0.55)); pointer-events: none;
}
.lp-card-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 0 2px; }
.lp-card-text { min-width: 0; }
.lp-card-name { display: block; font-size: 0.88rem; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-card-set  { display: block; font-size: 0.74rem; color: #8b98bd; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-card-right { text-align: right; flex-shrink: 0; }
.lp-card-price { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; color: #ffb066; line-height: 1; }
.lp-trend { display: inline-block; margin-top: 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.4px; border-radius: 999px; padding: 2px 8px; }
.lp-trend-up   { color: #3de88a; background: rgba(61,232,138,0.1); }
.lp-trend-down { color: #ff8a97; background: rgba(232,39,59,0.12); }

/* ── LEADERBOARDS ─────────────────────────────────────────── */
.lp-lb-section { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
.lp-lb-section > h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.9rem; letter-spacing: 1.5px; margin: 0 0 6px; }
.lp-lb-section > .lp-lb-sub { margin: 0 0 24px; color: #8b98bd; font-size: 0.92rem; }
.lp-lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-lb-panel { display: flex; flex-direction: column; background: #121a36; border: 1.5px solid #223055; border-radius: 16px; overflow: hidden; }
.lp-lb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid #1a2547; }
.lp-lb-kicker { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.lp-lb-kicker-pvp { color: #ff8a97; }
.lp-lb-kicker-streak { color: #38d9f5; }
.lp-lb-title { font-family: 'Poetsen One', sans-serif; font-size: 1.35rem; letter-spacing: 0.8px; margin: 4px 0 0; }
.lp-lb-btn { flex-shrink: 0; padding: 10px 22px; border-radius: 999px; font-size: 0.86rem; font-weight: 700; }
.lp-lb-btn-pvp { background: #e8273b; color: #fff; box-shadow: 0 3px 0 #9c1425; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.lp-lb-btn-pvp:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 #9c1425; }
.lp-lb-btn-pvp:active { transform: translateY(1px); box-shadow: 0 1px 0 #9c1425; }
.lp-lb-btn-cyan { border: 1.5px solid rgba(56,217,245,0.5); color: #38d9f5; transition: background 0.15s ease, border-color 0.15s ease; }
.lp-lb-btn-cyan:hover { color: #38d9f5; background: rgba(56,217,245,0.1); border-color: #38d9f5; }
.lp-lb-list { list-style: none; margin: 0; padding: 8px 24px 18px; flex: 1; }
.lp-lb-row {
    display: flex; align-items: center; gap: 14px; padding: 11px 8px;
    border-top: 1px solid #1a2547; border-radius: 8px;
    animation: pk-card-in 0.45s ease both; animation-delay: calc(var(--i, 0) * 60ms);
}
.lp-lb-row:first-child { border-top: none; }
.lp-lb-row--first { background: rgba(255,203,5,0.05); }
/* Filas fuera del podio: desenfocadas para generar intriga (efecto teaser). */
.lp-lb-row--blur { filter: blur(3.5px); opacity: 0.5; user-select: none; pointer-events: none; }
.lp-medal { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-family: 'Poetsen One', sans-serif; font-size: 0.82rem; background: transparent; color: #8b98bd; border: 1px solid #2c3d6b; }
.lp-medal--1 { background: #ffcb05; color: #10152a; border-color: #ffcb05; }
.lp-medal--2 { background: #cbd5e1; color: #10152a; border-color: #cbd5e1; }
.lp-medal--3 { background: #fb923c; color: #10152a; border-color: #fb923c; }
.lp-rank-img { display: block; flex-shrink: 0; width: 26px; height: 26px; }
.lp-lb-name { flex: 1; min-width: 0; font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-lb-row--first .lp-lb-name { font-size: 1rem; }
.lp-lb-elo { font-family: 'Poetsen One', sans-serif; font-size: 0.9rem; color: #eef2ff; }
.lp-nameblock { flex: 1; min-width: 0; }
.lp-nameblock .lp-lb-name { display: block; }
.lp-streak-bar { display: block; height: 4px; border-radius: 999px; background: #1a2547; margin-top: 6px; overflow: hidden; }
.lp-streak-fill { display: block; height: 100%; border-radius: 999px; background: #38d9f5; opacity: 0.75; }
.lp-streak-val { font-family: 'Poetsen One', sans-serif; font-size: 0.9rem; color: #38d9f5; }
.lp-lb-foot { margin: 0; padding: 12px 24px 18px; color: #8b98bd; font-size: 0.82rem; border-top: 1px solid #1a2547; }
.lp-lb-foot strong { color: #ffb066; }
.lp-lb-empty { padding: 18px 8px; color: #8b98bd; font-size: 0.9rem; text-align: center; }

/* ── FEATURES ─────────────────────────────────────────────── */
.lp-features { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
.lp-features > h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.9rem; letter-spacing: 1.5px; margin: 0 0 24px; }
.lp-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-feature {
    position: relative; display: flex; flex-direction: column;
    background: #121a36; border: 1.5px solid #223055; border-radius: 16px;
    padding: 26px 24px 22px; overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: pk-card-in 0.5s ease both; animation-delay: calc(var(--i, 0) * 70ms);
}
.lp-feature:hover {
    transform: translateY(-4px); border-color: var(--fc, #ff7d00);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 0 3px color-mix(in srgb, var(--fc, #ff7d00) 25%, transparent);
}
.lp-feature-star {
    position: absolute; top: 12px; right: 15px; color: var(--fc, #ff7d00);
    font-size: 0.72rem; animation: pk-twinkle 3.2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 700ms);
}
.lp-feature-icon {
    width: 62px; height: 62px; border-radius: 16px; background: #eef2ff;
    border: 2px solid var(--fc, #ff7d00); display: grid; place-items: center;
    margin-bottom: 18px; box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}
.lp-feature-icon img { height: 36px; max-width: 40px; object-fit: contain; display: block; }
.lp-feature h3 { font-family: 'Poetsen One', sans-serif; font-size: 1.2rem; letter-spacing: 0.6px; margin: 0 0 8px; }
.lp-feature p { margin: 0 0 18px; color: #8b98bd; font-size: 0.9rem; text-wrap: pretty; flex: 1; }
.lp-feature-cta {
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
    font-size: 0.86rem; font-weight: 700; color: var(--fc, #ff7d00);
    border: 1.5px solid color-mix(in srgb, var(--fc, #ff7d00) 40%, transparent);
    border-radius: 999px; padding: 8px 18px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.lp-feature-cta:hover { color: var(--fc, #ff7d00); border-color: var(--fc, #ff7d00); background: color-mix(in srgb, var(--fc, #ff7d00) 12%, transparent); }

/* ── ERAS: línea del tiempo ───────────────────────────────── */
.lp-timeline { max-width: 1280px; margin: 0 auto; padding: 0 24px 70px; }
.lp-timeline > h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.9rem; letter-spacing: 1.5px; margin: 0 0 6px; }
.lp-timeline > .lp-tl-sub { margin: 0 0 8px; color: #8b98bd; font-size: 0.92rem; }
.lp-tl-scroll { overflow-x: auto; scrollbar-width: thin; padding: 18px 4px 10px; }
.lp-tl-track { position: relative; display: flex; align-items: flex-end; min-width: max-content; }
.lp-tl-track::before {
    content: ''; position: absolute; left: 0; right: 0; top: 77px; height: 2px; z-index: 0;
    background: linear-gradient(90deg, transparent 0%, #223055 6%, #223055 94%, transparent 100%);
}
.lp-era { display: flex; flex-direction: column; align-items: center; padding: 0 22px; text-decoration: none; transition: transform 0.2s ease; position: relative; z-index: 1; }
.lp-era:hover { transform: translateY(-6px); }
.lp-era-logo { height: 58px; display: grid; place-items: center; }
.lp-era-logo img { height: 44px; max-width: 130px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0,0,0,0.6)); }
.lp-era-dot {
    width: 11px; height: 11px; border-radius: 50%; margin: 14px 0 10px;
    background: var(--era-c, #ff7d00); border: 2px solid #0a0f1e;
    box-shadow: 0 0 10px color-mix(in srgb, var(--era-c, #ff7d00) 60%, transparent);
}
.lp-era-year { font-size: 0.76rem; font-weight: 700; letter-spacing: 1.6px; color: #8b98bd; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 880px) {
    .lp-wordmark { font-size: 3rem; }
    .lp-hype-inner h2 { font-size: 1.9rem; }
    .lp-lb-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero-ball, .lp-wordmark, .lp-tagline, .lp-sub, .lp-cta-row,
    .lp-spark, .lp-card, .lp-card-link, .lp-lb-row, .lp-feature, .lp-feature-star { animation: none !important; }
}

/* ============================================================
   LOGIN / CREAR CUENTA (login.html) — rediseño oscuro
   Namespace .lg-*; los overrides de .auth-tab/.btn-oauth/.form-field/
   .btn-primary/.auth-msg van scopeados a .lg-card para no tocar otras
   páginas. Cargar redesign.css DESPUÉS de style.css.
   ============================================================ */

@keyframes pk-float-card2 { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-9deg) translateY(-7px); } }

/* En la página de login, el topbar no muestra el bloque de auth ("Entrar"). */
.lg-page #auth-nav { display: none; }

.lg-main { max-width: 1060px; margin: 0 auto; padding: 56px 24px 80px; }
.lg-card {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
    background: #101731; border: 1.5px solid #223055; border-radius: 20px;
    overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    animation: pk-rise 0.5s ease both;
}

/* ── Panel de marca (izquierda) ── */
.lg-brand {
    position: relative; padding: 44px 38px; overflow: hidden;
    display: flex; flex-direction: column;
    background: radial-gradient(480px 320px at 20% -60px, rgba(255,125,0,0.14) 0%, transparent 65%), #0d1329;
    border-right: 1px solid #182448;
}
.lg-brand-spark { position: absolute; animation: pk-sparkle 3.6s ease-in-out infinite; pointer-events: none; }
.lg-brand-spark-1 { top: 40px; right: 34px; color: #ffb066; font-size: 1rem; animation-duration: 3.8s; }
.lg-brand-spark-2 { bottom: 200px; left: 24px; color: #38d9f5; font-size: 0.85rem; animation-duration: 3.1s; animation-delay: 1.4s; }
.lg-brand-ball { display: block; width: 52px; height: 52px; margin-bottom: 16px; animation: pk-ball-bob 4.5s ease-in-out infinite; }
.lg-brand-wordmark {
    font-family: var(--font-brand, 'Bagel Fat One'), 'Poetsen One', sans-serif;
    font-size: 1.9rem; letter-spacing: 1px; line-height: 1.1; margin: 0 0 6px;
}
.lg-brand-wordmark .lg-poke { color: #ff7d00; }
.lg-brand-wordmark .lg-precios { color: #eef2ff; }
.lg-brand-tagline { margin: 0 0 26px; color: #8b98bd; font-size: 0.92rem; text-wrap: pretty; }
.lg-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.lg-bullets li { display: flex; gap: 11px; align-items: baseline; font-size: 0.9rem; color: #c6cfe8; }
.lg-bullets .lg-glyph { font-size: 0.72rem; flex-shrink: 0; }
.lg-brand-cards { flex: 1; position: relative; min-height: 190px; margin-top: 20px; }
.lg-brand-cards img { position: absolute; width: 138px; border-radius: 7px; filter: drop-shadow(0 14px 26px rgba(0,0,0,0.6)); }
.lg-brand-card-1 { bottom: -46px; left: 12%; animation: pk-float-card 6s ease-in-out infinite; }
.lg-brand-card-2 { bottom: -58px; right: 8%; animation: pk-float-card2 6s ease-in-out 0.9s infinite; }
/* Las tarjetas de marca flotan con rotación; se compone con el keyframe de traslación. */
.lg-brand-card-1 { transform: rotate(7deg); }
.lg-brand-card-2 { transform: rotate(-9deg); }

/* ── Panel de formulario (derecha) ── */
.lg-form-panel { padding: 38px 42px 34px; }

/* Segmented control (reutiliza .auth-tabs/.auth-tab; login.js togglea .active) */
.lg-card .auth-tabs {
    display: flex; background: #0d1329; border: 1px solid #223055;
    border-radius: 999px; padding: 4px; margin-bottom: 26px; gap: 0;
}
.lg-card .auth-tab {
    flex: 1; border: none; cursor: pointer; font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem; font-weight: 700; padding: 10px 0; border-radius: 999px;
    background: transparent; color: #8b98bd;
    transition: background 0.2s ease, color 0.2s ease;
}
.lg-card .auth-tab.active { background: #ff7d00; color: #10152a; box-shadow: 0 2px 0 #c25f00; }

/* Botones sociales lado a lado */
.lg-card .oauth-section { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.lg-card .btn-oauth {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    background: #121a36; border: 1.5px solid #223055; border-radius: 10px;
    padding: 11px 10px; color: #eef2ff; font-family: 'Fredoka', sans-serif;
    font-size: 0.86rem; font-weight: 600; cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.lg-card .btn-oauth:hover { border-color: #2c3d6b; background: #1a2547; }
.lg-card .btn-oauth svg { flex-shrink: 0; }

/* Divisor "O CON EMAIL" */
.lg-card .auth-divider {
    display: flex; align-items: center; gap: 14px; margin: 0 0 20px;
    color: #5f6c93; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 1.2px; text-transform: uppercase;
}
.lg-card .auth-divider::before, .lg-card .auth-divider::after { content: ''; flex: 1; height: 1px; }
.lg-card .auth-divider::before { background: linear-gradient(90deg, transparent 0%, #223055 40%, #223055 100%); }
.lg-card .auth-divider::after  { background: linear-gradient(90deg, #223055 0%, #223055 60%, transparent 100%); }
.lg-card .auth-divider span { flex: none; }

/* Formularios */
.lg-card .auth-form { display: flex; flex-direction: column; gap: 15px; }
.lg-card .form-field { display: block; margin: 0; }
.lg-card .form-label { display: block; font-size: 0.82rem; font-weight: 600; color: #8b98bd; margin-bottom: 6px; }
.lg-card .form-label .req { color: #ff8a97; }
.lg-card .form-label .opt { color: #5f6c93; font-weight: 500; }
.lg-card .auth-form input[type="email"],
.lg-card .auth-form input[type="password"],
.lg-card .auth-form input[type="text"],
.lg-card .auth-form input[type="tel"] {
    width: 100%; box-sizing: border-box; background: #0d1329;
    border: 1.5px solid #223055; border-radius: 10px; padding: 12px 15px;
    color: #eef2ff; font-size: 0.93rem; font-family: 'Fredoka', sans-serif;
    outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lg-card .auth-form input::placeholder { color: #5f6c93; opacity: 1; }
.lg-card .auth-form input:focus { border-color: #ff7d00; box-shadow: 0 0 0 3px rgba(255,125,0,0.16); }
.lg-card .form-hint { display: block; margin: -6px 0 0; font-size: 0.76rem; color: #5f6c93; }
.lg-card .lg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-card .checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: #8b98bd; cursor: pointer; }
.lg-card .checkbox-row input[type="checkbox"] { margin-top: 3px; accent-color: #ff7d00; width: 16px; height: 16px; flex-shrink: 0; }
.lg-card .checkbox-row a { color: #ffb066; text-decoration: underline; }

/* Botón físico naranja (override local de .btn-primary) */
.lg-card .btn-primary {
    margin-top: 6px; border: none; cursor: pointer; padding: 13px 0; width: 100%;
    background: #ff7d00; color: #10152a; border-radius: 999px;
    font-family: 'Fredoka', sans-serif; font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.3px; box-shadow: 0 3px 0 #c25f00;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lg-card .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #c25f00; }
.lg-card .btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #c25f00; }
.lg-card .auth-link { display: block; text-align: center; font-size: 0.84rem; color: #8b98bd; margin-top: 2px; }
.lg-card .auth-link:hover { color: #ffb066; }
.lg-card .captcha-wrap { display: flex; justify-content: center; }

/* Mensajes de error/éxito/info (login.js pone msg-error/success/info) */
.lg-card .auth-msg { margin: 16px 0 0; padding: 11px 14px; border-radius: 10px; font-size: 0.86rem; text-align: center; }
.lg-card .auth-msg:empty { display: none; padding: 0; margin: 0; }
.lg-card .auth-msg.msg-error   { color: #ff8a97; background: rgba(232,39,59,0.1); border: 1px solid rgba(232,39,59,0.4); }
.lg-card .auth-msg.msg-success { color: #3de88a; background: rgba(61,232,138,0.1); border: 1px solid rgba(61,232,138,0.4); }
.lg-card .auth-msg.msg-info    { color: #9fb2e8; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.35); }

/* ── Responsive: formulario primero, una columna ── */
@media (max-width: 880px) {
    .lg-main { padding: 32px 16px 60px; }
    .lg-card { grid-template-columns: 1fr; }
    .lg-form-panel { order: 1; padding: 28px 22px 26px; }
    .lg-brand { order: 2; border-right: none; border-top: 1px solid #182448; padding: 28px 22px; }
    .lg-brand-cards { display: none; }        /* panel reducido: solo logo+wordmark+tagline */
    .lg-bullets { display: none; }
    .lg-card .oauth-section { grid-template-columns: 1fr 1fr; }
    .lg-card .auth-form input { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .lg-card, .lg-brand-ball, .lg-brand-spark, .lg-brand-card-1, .lg-brand-card-2 { animation: none !important; }
}

/* ============================================================
   MI COLECCIÓN (mi-coleccion.html) — rediseño oscuro
   Las clases .mc-* son exclusivas de esta página → se estilan directas.
   Overrides de clases compartidas (.btn-primary/.sort-chip/.search-*/
   .btn-hero…) van scopeados a .mc-page.
   ============================================================ */

@keyframes pk-float-mini { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-7px); } }

.mc-page main { display: block; }
/* El header viejo (.mc-username lo sigue rellenando el JS) queda oculto. */
.mc-page .mc-header { display: none !important; }

/* ── Cabecera: valor del binder ── */
.mc-binder { display: flex; align-items: stretch; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; animation: pk-rise 0.5s ease both; }
.mc-binder-main {
    flex: 1.4; min-width: 300px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #141c38 0%, #101731 100%);
    border: 1.5px solid #223055; border-radius: 18px; padding: 26px 30px;
}
.mc-binder-ring { position: absolute; top: -40px; right: -40px; width: 190px; height: 190px; border-radius: 50%; border: 26px solid rgba(255,125,0,0.06); pointer-events: none; }
.mc-binder-kicker { margin: 0 0 2px; font-size: 0.74rem; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: #8b98bd; }
.mc-binder-value { margin: 0; font-family: 'Poetsen One', sans-serif; font-size: 3.1rem; line-height: 1.15; color: #ffb066; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.mc-binder-sub { margin: 4px 0 0; font-size: 0.86rem; color: #8b98bd; }
.mc-binder-grid { flex: 1; min-width: 260px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc-mini { background: #121a36; border: 1.5px solid #223055; border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; }
.mc-mini-num { font-family: 'Poetsen One', sans-serif; font-size: 1.6rem; color: #eef2ff; font-variant-numeric: tabular-nums; }
.mc-mini-lbl { font-size: 0.78rem; font-weight: 600; color: #8b98bd; }
.mc-mini-top { flex-direction: row; align-items: center; gap: 14px; overflow: visible; }
.mc-topcard-img { width: 58px; border-radius: 4px; flex-shrink: 0; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.6)); animation: pk-float-mini 5s ease-in-out infinite; margin: -26px 0 -10px; }
.mc-topcard-text { min-width: 0; }
.mc-topcard-name { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; line-height: 1.2; color: #38d9f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-topcard-sub { display: block; font-size: 0.78rem; font-weight: 600; color: #8b98bd; }

/* ── Mis grupos ── */
.mc-groups-section { margin-bottom: 36px; }
.mc-groups-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.mc-groups-title { font-family: 'Poetsen One', sans-serif; font-size: 1.45rem; letter-spacing: 1px; margin: 0; flex: 1; }
.mc-groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mc-groups-empty { grid-column: 1/-1; margin: 0; color: #8b98bd; font-size: 0.9rem; }
.mc-group-card {
    display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left;
    background: #121a36; border: 1.5px solid #223055; border-radius: 14px; padding: 12px 14px;
    transition: transform 0.18s ease, border-color 0.18s ease;
    animation: pk-card-in 0.45s ease both; position: relative;
}
.mc-group-card:hover { transform: translateY(-3px); border-color: #2c3d6b; }
.mc-group-card.active { background: rgba(255,125,0,0.08); border-color: rgba(255,125,0,0.55); }
.mc-group-card.active:hover { border-color: #ff7d00; }
.mc-group-cover { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #0d1329; display: grid; place-items: center; }
.mc-group-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mc-group-cover-empty { display: grid; place-items: center; width: 100%; height: 100%; }
.mc-group-cover-empty svg { width: 22px; height: 22px; }
.mc-group-info { flex: 1; min-width: 0; }
.mc-group-name { font-size: 0.95rem; font-weight: 700; color: #eef2ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-group-meta { font-size: 0.79rem; color: #8b98bd; margin-top: 1px; }
.mc-group-menu-btn { border: none; background: transparent; color: #5f6c93; font-size: 1.1rem; padding: 4px 6px; border-radius: 6px; line-height: 1; cursor: pointer; }
.mc-group-menu-btn:hover { background: #1a2547; color: #eef2ff; }

/* ── Filtro activo ── */
.mc-group-filter {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: rgba(255,125,0,0.07); border: 1.5px solid rgba(255,125,0,0.4);
    border-radius: 12px; padding: 12px 18px; margin-bottom: 26px; animation: pk-rise 0.3s ease both;
}
.mc-group-filter > span:first-child { font-size: 0.9rem; color: #c6cfe8; }
.mc-group-filter strong { color: #ffb066; }
.mc-group-filter-actions { display: flex; gap: 10px; margin-left: auto; }

/* ── Buscador + orden ── */
.mc-search-wrap { position: relative; max-width: 520px; margin: 0 0 18px; }
.mc-page .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; display: grid; place-items: center; color: #8b98bd; }
.mc-page .search-icon svg { width: 17px; height: 17px; }
.mc-page .search-input {
    width: 100%; box-sizing: border-box; background: #101731; border: 1.5px solid #223055;
    border-radius: 12px; padding: 12px 18px 12px 44px; color: #eef2ff; font-size: 0.93rem;
    font-family: 'Fredoka', sans-serif; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mc-page .search-input:focus { border-color: #ff7d00; box-shadow: 0 0 0 3px rgba(255,125,0,0.16); }
.mc-search-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 0.78rem; color: #5f6c93; }
.mc-page .sort-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.mc-page .filter-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #5f6c93; }
.mc-page .sort-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-page .sort-chip {
    border: 1px solid #223055; background: transparent; color: #8b98bd; cursor: pointer;
    font-family: 'Fredoka', sans-serif; border-radius: 999px; padding: 7px 15px;
    font-size: 0.82rem; font-weight: 600; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.mc-page .sort-chip:hover { border-color: #ff7d00; color: #ffb066; }
.mc-page .sort-chip.active { border-color: rgba(255,125,0,0.55); background: rgba(255,125,0,0.12); color: #ffb066; }

/* ── Sets ── */
.mc-set { margin-bottom: 40px; }
.mc-set-header { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 0 14px; border-top: 1px solid #182448; }
.mc-set-logo { height: 44px; max-width: 150px; object-fit: contain; object-position: left center; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.55)); }
.mc-set-info { flex: 1; min-width: 0; }
.mc-set-name { font-family: 'Poetsen One', sans-serif; font-size: 1.2rem; letter-spacing: 0.6px; margin: 0; }
.mc-set-meta { margin: 2px 0 0; font-size: 0.82rem; color: #8b98bd; }
.mc-set-value { color: #ffb066; font-weight: 700; }
.mc-set-progress { min-width: 190px; max-width: 260px; flex: 1; }
.mc-set-progress-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.78rem; font-weight: 700; color: #8b98bd; margin-bottom: 6px; }
.mc-set-progress-frac { font-family: 'Poetsen One', sans-serif; font-size: 0.95rem; color: #38d9f5; }
.mc-set-progress-bar { height: 9px; border-radius: 999px; background: #0d1329; border: 1px solid #223055; overflow: hidden; }
.mc-set-progress-fill { height: 100%; width: 0; min-width: 9px; border-radius: 999px; background: linear-gradient(90deg, #38d9f5, #3de88a); box-shadow: 0 0 8px rgba(56,217,245,0.5); transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.mc-set-link {
    flex-shrink: 0; font-size: 0.84rem; font-weight: 700; color: #10152a; background: #38d9f5;
    border-radius: 999px; padding: 8px 18px; box-shadow: 0 3px 0 #1791ab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mc-set-link:hover { color: #10152a; transform: translateY(-2px); box-shadow: 0 5px 0 #1791ab; }
.mc-set-link:active { transform: translateY(1px); box-shadow: 0 1px 0 #1791ab; }
.mc-set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }

/* Tile de carta con tilt 3D (sin brillos) */
.mc-card {
    position: relative; background: #121a36; border: 1.5px solid #223055; border-radius: 12px;
    padding: 10px 10px 12px; will-change: transform;
    transition: transform 0.3s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: pk-card-in 0.45s ease both;
}
.mc-card:hover { border-color: #2c3d6b; box-shadow: 0 16px 32px rgba(0,0,0,0.55); }
.mc-card-link { display: block; }
.mc-card-imgwrap { position: relative; display: block; }
.mc-card-img { display: block; width: 100%; border-radius: 7px; }
.mc-card-img-placeholder { display: grid; place-items: center; aspect-ratio: 5/7; background: #0d1329; border-radius: 7px; color: #5f6c93; font-size: 1.6rem; }
/* Barra de acciones al hover, integrada en el borde inferior de la imagen */
.mc-card-actions {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; overflow: hidden;
    border-radius: 0 0 7px 7px; background: rgba(10,15,30,0.92);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top: 1px solid #223055;
    opacity: 0; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease;
}
.mc-card:hover .mc-card-actions { opacity: 1; transform: translateY(0); }
.mc-card-actions button {
    flex: 1; border: none; background: transparent; cursor: pointer; font-family: 'Fredoka', sans-serif;
    font-size: 0.76rem; font-weight: 700; color: #c6cfe8; padding: 8px 4px;
}
.mc-card-group-btn:hover { background: rgba(56,217,245,0.12); color: #38d9f5; }
.mc-card-remove:hover { background: rgba(232,39,59,0.14); color: #ff8a97; }
.mc-card-remove.busy { opacity: 0.5; pointer-events: none; }
.mc-card-actions-sep { flex: 0 0 1px; width: 1px; background: #223055; }
.mc-card-row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 9px; padding: 0 2px; }
.mc-card-name { min-width: 0; font-size: 0.84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-card-price { flex-shrink: 0; font-family: 'Poetsen One', sans-serif; font-size: 0.88rem; color: #ffb066; }
.mc-card-row2 { display: flex; align-items: center; gap: 6px; padding: 0 2px; margin-top: 2px; font-size: 0.72rem; color: #5f6c93; }
.mc-card-metatext { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-card-dup { flex-shrink: 0; background: #ff7d00; color: #10152a; border-radius: 999px; padding: 1px 8px; font-size: 0.72rem; font-weight: 800; font-family: 'Poetsen One', sans-serif; }
.mc-card-group-chip { display: inline-flex; align-items: center; gap: 5px; margin: 6px 2px 0; border: 1px solid #2c3d6b; background: #0d1329; color: #c6cfe8; border-radius: 999px; padding: 2px 10px; font-size: 0.68rem; font-weight: 700; max-width: 100%; box-sizing: border-box; }
.mc-card-group-chip svg { width: 11px; height: 11px; flex-shrink: 0; }
.mc-card-group-chip span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Estados (login / vacío / error / no-results / loading) ── */
.mc-prompt { max-width: 560px; margin: 40px auto; text-align: center; background: #101731; border: 1.5px solid #223055; border-radius: 18px; padding: 44px 36px; }
.mc-prompt-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; background: #0d1329; border: 1.5px solid #223055; color: #ffb066; }
.mc-prompt-icon svg { width: 30px; height: 30px; }
.mc-prompt h1 { font-family: 'Poetsen One', sans-serif; font-size: 1.6rem; margin: 0 0 10px; }
.mc-prompt p { margin: 0 0 22px; color: #8b98bd; font-size: 0.95rem; }
.mc-prompt .hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mc-no-results { text-align: center; color: #8b98bd; padding: 40px 0; }
.mc-page .loading-state { text-align: center; color: #8b98bd; }
.mc-page .spinner { border-color: rgba(255,125,0,0.2); border-top-color: #ff7d00; }
.mc-page .error-state { text-align: center; color: #ff8a97; background: rgba(232,39,59,0.08); border: 1px solid rgba(232,39,59,0.35); border-radius: 14px; padding: 22px; max-width: 520px; margin: 40px auto; }

/* Botones físicos compartidos (scoped) */
.mc-page .btn-secondary {
    border: 1.5px solid #2c3d6b; background: transparent; color: #8b98bd; cursor: pointer;
    font-family: 'Fredoka', sans-serif; padding: 9px 18px; border-radius: 999px;
    font-size: 0.85rem; font-weight: 700; transition: color 0.15s ease, border-color 0.15s ease;
}
.mc-page .btn-secondary:hover { color: #eef2ff; border-color: #38d9f5; }
.mc-page .mc-groups-header .btn-secondary,
.mc-page .btn-primary {
    border: none; background: #ff7d00; color: #10152a; cursor: pointer;
    font-family: 'Fredoka', sans-serif; padding: 9px 20px; border-radius: 999px;
    font-size: 0.86rem; font-weight: 700; box-shadow: 0 3px 0 #c25f00;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mc-page .mc-groups-header .btn-secondary:hover,
.mc-page .btn-primary:hover { color: #10152a; transform: translateY(-2px); box-shadow: 0 5px 0 #c25f00; }
.mc-page .mc-groups-header .btn-secondary:active,
.mc-page .btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #c25f00; }
.mc-page .btn-danger {
    border: none; background: #e8273b; color: #fff; cursor: pointer;
    font-family: 'Fredoka', sans-serif; padding: 9px 20px; border-radius: 999px;
    font-size: 0.86rem; font-weight: 700; box-shadow: 0 3px 0 #9c1425;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mc-page .btn-danger:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 #9c1425; }
.mc-page .btn-hero { display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; border-radius: 999px; font-size: 0.92rem; font-weight: 700; }
.mc-page .btn-hero-primary { background: #ff7d00; color: #10152a; box-shadow: 0 3px 0 #c25f00; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.mc-page .btn-hero-primary:hover { color: #10152a; transform: translateY(-2px); box-shadow: 0 5px 0 #c25f00; }
.mc-page .btn-hero-secondary { border: 1.5px solid #2c3d6b; color: #eef2ff; }
.mc-page .btn-hero-secondary:hover { color: #eef2ff; border-color: #38d9f5; background: rgba(56,217,245,0.07); }
.mc-group-add-btn { box-shadow: 0 2px 0 #c25f00 !important; padding: 8px 18px !important; font-size: 0.84rem !important; }

/* ── Modales ── */
.mc-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,15,30,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mc-modal-content { position: relative; width: 100%; max-width: 420px; background: #101731; border: 1.5px solid #223055; border-radius: 18px; padding: 28px 26px 24px; max-height: 88vh; overflow-y: auto; animation: pk-rise 0.3s ease both; }
.mc-modal-wide { max-width: 720px; }
.mc-modal-close { position: absolute; top: 14px; right: 16px; border: none; background: transparent; color: #8b98bd; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px; }
.mc-modal-close:hover { color: #eef2ff; }
.mc-modal-content h3 { font-family: 'Poetsen One', sans-serif; font-size: 1.2rem; margin: 0 0 6px; padding-right: 24px; }
.mc-modal-sub { margin: 0 0 18px; color: #8b98bd; font-size: 0.88rem; }
.mc-modal-input { width: 100%; box-sizing: border-box; background: #0d1329; border: 1.5px solid #223055; border-radius: 10px; padding: 11px 14px; color: #eef2ff; font-size: 0.93rem; font-family: 'Fredoka', sans-serif; outline: none; margin-bottom: 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.mc-modal-input:focus { border-color: #ff7d00; box-shadow: 0 0 0 3px rgba(255,125,0,0.16); }
.mc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.mc-modal-groups, .mc-actions-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mc-modal-group-btn, .mc-action-btn {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    background: #121a36; border: 1.5px solid #223055; border-radius: 10px; padding: 11px 14px;
    color: #eef2ff; font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.mc-modal-group-btn:hover, .mc-action-btn:hover { border-color: #2c3d6b; background: #1a2547; }
.mc-modal-group-btn.is-current { border-color: rgba(255,125,0,0.55); background: rgba(255,125,0,0.1); color: #ffb066; }
.mc-modal-create { border-style: dashed; color: #ffb066; justify-content: center; }
.mc-action-btn.is-danger { color: #ff8a97; }
.mc-action-btn.is-danger:hover { border-color: rgba(232,39,59,0.4); background: rgba(232,39,59,0.1); }
.mc-action-icon { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; }
.mc-action-icon svg { width: 18px; height: 18px; }
/* Añadir cartas a grupo */
.mc-add-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; max-height: 46vh; overflow-y: auto; margin-bottom: 16px; }
.mc-add-card-tile { background: #121a36; border: 1.5px solid #223055; border-radius: 10px; padding: 6px; cursor: pointer; font-family: 'Fredoka', sans-serif; text-align: center; transition: border-color 0.15s ease; }
.mc-add-card-tile.selected { border-color: #ff7d00; box-shadow: 0 0 0 2px rgba(255,125,0,0.25); }
.mc-add-card-img img { width: 100%; border-radius: 5px; display: block; }
.mc-add-card-name { font-size: 0.72rem; font-weight: 700; color: #eef2ff; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-add-card-meta { font-size: 0.66rem; color: #5f6c93; }
.mc-add-cards-empty { text-align: center; color: #8b98bd; padding: 30px 0; }
.mc-add-cards-footer { display: flex; align-items: center; gap: 10px; }
.mc-add-cards-count { flex: 1; font-size: 0.82rem; color: #8b98bd; }

/* ── Responsive ── */
@media (max-width: 880px) {
    .mc-binder-value { font-size: 2.5rem; }
    .mc-set-header { gap: 12px; }
    .mc-set-progress { min-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
    .mc-binder, .mc-group-card, .mc-card, .mc-topcard-img, .mc-set-progress-fill, .mc-modal-content { animation: none !important; transition: none !important; }
}

/* ============================================================
   DETALLE DE CARTA (carta.html) — rediseño oscuro
   Clases .cd-* exclusivas de esta página. Datos desde la API (js/carta.js).
   ============================================================ */

@keyframes pk-float-big { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Aura morada en el detalle de carta */
.carta-page body::after,
body.carta-page::after { background: radial-gradient(620px 400px at 90% -60px, rgba(155,93,229,0.09) 0%, transparent 70%), radial-gradient(800px 520px at -90px 45%, rgba(59,130,246,0.07) 0%, transparent 70%) !important; }

/* Breadcrumb */
.carta-page .breadcrumb-bar { border-bottom: 1px solid #182448; background: rgba(13,19,41,0.5); }
.carta-page .breadcrumb-bar .container { display: flex; align-items: center; gap: 12px; padding-top: 11px; padding-bottom: 11px; font-size: 0.85rem; }
.carta-page .back-btn { display: inline-flex; align-items: center; gap: 7px; color: #8b98bd; font-weight: 600; transition: color 0.15s ease; }
.carta-page .back-btn:hover { color: #ffb066; }
.carta-page .back-btn svg { width: 14px; height: 14px; }
.cd-bc-sep { color: #2c3d6b; }
.carta-page .page-title-sm { color: #5f6c93; font-weight: 600; }

/* Layout */
.cd-layout { display: grid; grid-template-columns: 400px 1fr; gap: 44px; align-items: start; padding: 8px 0 40px; }
.cd-data-col > * { animation: pk-rise 0.5s ease both; }
.cd-data-col > *:nth-child(1) { animation-delay: 0.06s; }
.cd-data-col > *:nth-child(2) { animation-delay: 0.12s; }
.cd-data-col > *:nth-child(3) { animation-delay: 0.18s; }
.cd-data-col > *:nth-child(4) { animation-delay: 0.24s; }
.cd-data-col > *:nth-child(5) { animation-delay: 0.30s; }

/* Columna imagen */
.cd-img-col { animation: pk-rise 0.5s ease both; }
.cd-img-persp { perspective: 1000px; }
.cd-img-tilt { transform-style: preserve-3d; transition: transform 0.35s ease; will-change: transform; animation: pk-float-big 6s ease-in-out infinite; }
.cd-big-img { display: block; width: 100%; border-radius: 18px; filter: drop-shadow(0 24px 48px rgba(0,0,0,0.65)); pointer-events: none; }
.cd-img-actions { display: flex; gap: 10px; margin-top: 22px; }
.cd-add-btn {
    flex: 1; border: none; cursor: pointer; font-family: 'Fredoka', sans-serif; padding: 12px 0;
    background: #ff7d00; color: #10152a; border-radius: 999px; font-size: 0.9rem; font-weight: 700;
    box-shadow: 0 3px 0 #c25f00; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cd-add-btn:hover { color: #10152a; transform: translateY(-2px); box-shadow: 0 5px 0 #c25f00; }
.cd-add-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #c25f00; }
.cd-add-btn:disabled { opacity: 0.6; pointer-events: none; }
.cd-add-btn.is-owned { background: #0d1329; color: #3de88a; box-shadow: 0 3px 0 #182448; border: 1.5px solid rgba(61,232,138,0.4); padding: 10px 0; }
.cd-share-btn {
    width: 46px; flex-shrink: 0; border: 1.5px solid #2c3d6b; background: transparent; cursor: pointer;
    color: #8b98bd; border-radius: 999px; display: grid; place-items: center;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.cd-share-btn:hover { border-color: #38d9f5; color: #38d9f5; }
.cd-share-btn svg { width: 17px; height: 17px; }
.cd-share-btn.card-share-btn-copied { border-color: #3de88a; color: #3de88a; width: auto; padding: 0 16px; font-size: 0.8rem; font-weight: 700; }

/* Cabecera de datos */
.cd-header { margin-bottom: 18px; }
.cd-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cd-name { font-family: 'Poetsen One', sans-serif; font-size: 2.5rem; letter-spacing: 1px; line-height: 1.1; margin: 0; }
.cd-type-icon { display: block; width: 30px; height: 30px; }
.cd-hp { font-family: 'Poetsen One', sans-serif; font-size: 1.15rem; color: #ff8a97; }
.cd-hp span { font-size: 0.72rem; letter-spacing: 1px; }
.cd-seo-desc { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Metadatos en texto plano separados por un punto medio: sin píldoras. */
.cd-badges { display: flex; align-items: center; flex-wrap: wrap; font-size: 0.82rem; font-weight: 700; color: #8b98bd; }
/* Línea fina en vez de punto: los propios metadatos ya llevan '·' dentro
   ("Lost Origin · #186/217") y se confundían con el separador. */
.cd-badge + .cd-badge::before {
    content: ''; display: inline-block; width: 1px; height: 11px;
    margin: 0 13px; background: #2c3a60; vertical-align: -1px;
}
.cd-badge-rarity { color: #b06cff; }

/* Panel de precio Cardmarket (protagonista) */
.cd-price { background: linear-gradient(135deg, #141c38 0%, #101731 100%); border: 1.5px solid #223055; border-radius: 18px; padding: 24px 28px; margin-bottom: 16px; }
.cd-price-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cd-price-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cd-price-dot-cm { background: #3de88a; }
.cd-price-dot-tcg { background: #38d9f5; }
.cd-price-title { font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; letter-spacing: 0.6px; margin: 0; flex: 1; }
.cd-price-live { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #3de88a; }
.cd-price-main { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; margin-bottom: 18px; }
.cd-price-main-label { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #8b98bd; margin-bottom: 2px; }
.cd-price-main-value { font-family: 'Poetsen One', sans-serif; font-size: 2.6rem; line-height: 1; color: #ffb066; }
.cd-trend-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 0.8rem; font-weight: 800; border-radius: 999px; padding: 4px 12px; }
.cd-trend-up   { color: #3de88a; background: rgba(61,232,138,0.1); border: 1px solid rgba(61,232,138,0.35); }
.cd-trend-down { color: #ff8a97; background: rgba(232,39,59,0.12); border: 1px solid rgba(232,39,59,0.4); }
.cd-trend-flat { color: #8b98bd; background: #121a36; border: 1px solid #223055; }
.cd-price-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.cd-cell { background: #0d1329; border: 1px solid #1a2547; border-radius: 12px; padding: 12px 16px; }
.cd-cell-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #5f6c93; }
.cd-cell-value { font-family: 'Poetsen One', sans-serif; font-size: 1.25rem; color: #eef2ff; }
.cd-cell-value.unavail, .cd-cell-value.loading { font-family: 'Fredoka', sans-serif; font-size: 0.95rem; color: #8b98bd; font-weight: 600; }
.cd-price-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.cd-cm-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 12px 26px; background: #38d9f5;
    color: #10152a; border-radius: 999px; font-size: 0.92rem; font-weight: 700;
    box-shadow: 0 3px 0 #1791ab; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cd-cm-btn:hover { color: #10152a; transform: translateY(-2px); box-shadow: 0 5px 0 #1791ab; }
.cd-cm-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #1791ab; }
.cd-cm-btn svg { width: 14px; height: 14px; }
.cd-price-note { font-size: 0.78rem; color: #5f6c93; }

/* TCGplayer (secundario, franja) */
.cd-tcg { background: #101731; border: 1.5px solid #223055; border-radius: 14px; padding: 16px 22px; margin-bottom: 16px; }
.cd-tcg-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cd-tcg-strip + .cd-tcg-strip { margin-top: 12px; padding-top: 12px; border-top: 1px solid #1a2547; }
.cd-tcg-title { font-family: 'Poetsen One', sans-serif; font-size: 0.95rem; }
.cd-tcg-title small { color: #5f6c93; font-size: 0.78rem; font-family: 'Fredoka', sans-serif; font-weight: 600; }
.cd-tcg-variant { font-size: 0.8rem; font-weight: 700; color: #38d9f5; }
.cd-tcg-spacer { flex: 1; }
.cd-tcg-stat { font-size: 0.88rem; color: #8b98bd; }
.cd-tcg-stat strong { font-family: 'Poetsen One', sans-serif; color: #eef2ff; font-size: 1.05rem; font-weight: 400; }
.cd-tcg-link {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px;
    border-radius: 999px; border: 1.5px solid #38d9f5; color: #38d9f5;
    font-size: 0.84rem; font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cd-tcg-link:hover { color: #10152a; background: #38d9f5; text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 0 #1791ab; }
.cd-tcg-link:active { transform: translateY(1px); box-shadow: 0 1px 0 #1791ab; }
.cd-tcg-empty { color: #8b98bd; font-size: 0.85rem; }

/* Ataques / Habilidades */
.cd-panel { background: #101731; border: 1.5px solid #223055; border-radius: 18px; padding: 22px 26px; margin-bottom: 16px; }
.cd-panel-title { font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; letter-spacing: 0.6px; margin: 0 0 14px; }
.cd-attacks { display: flex; flex-direction: column; gap: 10px; }
.cd-attack { display: flex; align-items: center; gap: 16px; background: #0d1329; border: 1px solid #1a2547; border-radius: 12px; padding: 14px 18px; }
.cd-attack-cost { display: flex; gap: 4px; flex-shrink: 0; }
.cd-atk-cost-icon { display: block; width: 24px; height: 24px; }
.cd-attack-info { flex: 1; min-width: 0; }
.cd-attack-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.98rem; }
.cd-ability-badge { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #ff8a97; background: rgba(232,39,59,0.12); border: 1px solid rgba(232,39,59,0.4); border-radius: 999px; padding: 1px 8px; }
.cd-attack-text { display: block; font-size: 0.82rem; color: #8b98bd; margin-top: 2px; }
.cd-attack-damage { font-family: 'Poetsen One', sans-serif; font-size: 1.4rem; color: #ffb066; flex-shrink: 0; }

/* Información */
.cd-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.cd-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #182448; font-size: 0.88rem; }
.cd-info-label { color: #8b98bd; font-weight: 600; }
.cd-info-value { font-weight: 700; text-align: right; }

/* Estados */
.carta-page .loading-state { text-align: center; color: #8b98bd; }
.carta-page .spinner { border-color: rgba(255,125,0,0.2); border-top-color: #ff7d00; }
.cd-error { text-align: center; padding: 80px 20px; color: #8b98bd; }
.cd-error a { color: #38d9f5; }

/* Sticky solo en desktop */
@media (min-width: 861px) {
    .cd-img-col { position: sticky; top: 96px; }
}
@media (max-width: 860px) {
    .cd-layout { grid-template-columns: 1fr; gap: 26px; }
    .cd-img-col { max-width: 340px; margin: 0 auto; }
    .cd-name { font-size: 2rem; }
    .cd-info-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .cd-img-col, .cd-img-tilt, .cd-data-col > * { animation: none !important; }
}

/* ============================================================
   VISTA DE SET (coleccion.html) — rediseño oscuro
   Clases .cs-* exclusivas. Se conservan .card-item/.card-own-btn/
   #cm-price-<id> como hooks de la lógica existente.
   ============================================================ */

.cs-page main { display: block; }

/* Breadcrumb */
.cs-page .breadcrumb-bar { border-bottom: 1px solid #182448; background: rgba(13,19,41,0.5); }
.cs-page .breadcrumb-bar .container { display: flex; align-items: center; gap: 12px; padding-top: 11px; padding-bottom: 11px; font-size: 0.85rem; }
.cs-page .back-btn { display: inline-flex; align-items: center; gap: 7px; color: #8b98bd; font-weight: 600; transition: color 0.15s ease; }
.cs-page .back-btn:hover { color: #ffb066; }
.cs-page .back-btn svg { width: 14px; height: 14px; }
.cs-page .page-title-sm { color: #5f6c93; font-weight: 600; }
.cs-page .page-title-sm::before { content: '/'; color: #2c3d6b; margin-right: 12px; }

/* Banner del set */
.cs-banner { position: relative; overflow: hidden; border-bottom: 1px solid #182448; background: radial-gradient(700px 300px at 18% -40px, var(--era-glow, rgba(76,201,240,0.13)) 0%, transparent 65%), rgba(13,19,41,0.6); }
.cs-banner-inner { max-width: 1280px; margin: 0 auto; padding: 36px 24px 30px; display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.cs-banner-logo { height: 88px; max-width: 260px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.6)); animation: pk-rise 0.5s ease both; }
.cs-banner-info { flex: 1; min-width: 260px; animation: pk-rise 0.5s ease 0.08s both; }
.cs-banner-name { font-family: 'Poetsen One', sans-serif; font-size: 2rem; letter-spacing: 1px; margin: 0 0 8px; }
/* Metadatos como icono + texto SIN contenedor (regla global A.2, sin píldoras). */
.cs-badges { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cs-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600; color: #8b98bd; }
.cs-meta svg { width: 15px; height: 15px; flex-shrink: 0; }
.cs-meta-era-name { color: var(--era-c, #4cc9f0); font-weight: 700; }
.cs-meta-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--era-c, #4cc9f0); box-shadow: 0 0 8px color-mix(in srgb, var(--era-c, #4cc9f0) 60%, transparent); }
.cs-progress { min-width: 210px; animation: pk-rise 0.5s ease 0.16s both; }
.cs-progress-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.78rem; font-weight: 700; color: #8b98bd; margin-bottom: 6px; }
.cs-progress-frac { font-family: 'Poetsen One', sans-serif; font-size: 0.95rem; color: #38d9f5; }
.cs-progress-bar { height: 9px; border-radius: 999px; background: #0d1329; border: 1px solid #223055; overflow: hidden; }
.cs-progress-fill { height: 100%; width: 0; min-width: 9px; border-radius: 999px; background: linear-gradient(90deg, #38d9f5, #3de88a); box-shadow: 0 0 8px rgba(56,217,245,0.5); transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }

.cs-main { max-width: 1280px; margin: 0 auto; padding: 26px 24px 70px; }

/* Tabs de galería */
.cs-tabs { display: inline-flex; gap: 6px; margin-bottom: 14px; }
.cs-tab { border: 1.5px solid #223055; background: transparent; color: #8b98bd; cursor: pointer; font-family: 'Fredoka', sans-serif; font-size: 0.85rem; font-weight: 700; border-radius: 999px; padding: 7px 18px; transition: border-color 0.15s ease, color 0.15s ease; }
.cs-tab:hover { border-color: #2c3d6b; color: #eef2ff; }
.cs-tab.active { border-color: #ff7d00; background: rgba(255,125,0,0.14); color: #ffb066; }

/* Barra de herramientas */
.cs-toolbar { position: relative; z-index: 30; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #101731; border: 1.5px solid #223055; border-radius: 14px; padding: 8px 10px; margin-bottom: 12px; animation: pk-rise 0.5s ease 0.2s both; }
/* El desplegable abierto se eleva sobre su propia barra y el grid. */
.cs-dd.open { z-index: 60; }
.cs-search { position: relative; flex: 1; min-width: 220px; }
.cs-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #8b98bd; pointer-events: none; }
.cs-page #search-input, .cs-search input { width: 100%; box-sizing: border-box; background: transparent; border: none; padding: 10px 14px 10px 38px; color: #eef2ff; font-size: 0.93rem; font-family: 'Fredoka', sans-serif; outline: none; }
.cs-divider { width: 1px; height: 26px; background: #223055; flex-shrink: 0; }

/* Desplegables */
.cs-dd { position: relative; flex-shrink: 0; }
.cs-dd-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #223055; background: transparent; color: #8b98bd; cursor: pointer; font-family: 'Fredoka', sans-serif; border-radius: 10px; padding: 8px 14px; font-size: 0.84rem; font-weight: 700; transition: border-color 0.15s ease, color 0.15s ease; }
.cs-dd-btn:hover { border-color: #2c3d6b; }
.cs-dd-btn.is-active { border-color: rgba(255,125,0,0.55); color: #ffb066; }
.cs-dd-btn-icon { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cs-dd-chev { width: 13px; height: 13px; transition: transform 0.2s ease; }
.cs-dd.open .cs-dd-chev { transform: rotate(180deg); }
.cs-dd-menu { position: absolute; top: calc(100% + 8px); z-index: 50; background: #121a36; border: 1.5px solid #2c3d6b; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,0.6); animation: pk-rise 0.18s ease both; max-width: calc(100vw - 40px); }
.cs-dd-menu[hidden] { display: none; }
.cs-dd-menu-list { right: 0; min-width: 180px; padding: 6px; display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.cs-dd-menu-grid { left: 0; width: 264px; padding: 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-height: 60vh; overflow-y: auto; }
.cs-dd-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: none; background: transparent; color: #8b98bd; cursor: pointer; font-family: 'Fredoka', sans-serif; border-radius: 8px; padding: 9px 12px; font-size: 0.86rem; font-weight: 600; text-align: left; }
.cs-dd-item:hover { background: #1a2547; color: #eef2ff; }
.cs-dd-item.active { color: #eef2ff; }
.cs-dd-check { color: #ffb066; font-weight: 800; }
/* Botones-icono del desplegable de tipo */
.cs-type-item { grid-column: auto; height: 36px; padding: 0; box-sizing: border-box; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #223055; background: transparent; cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease; }
.cs-type-item:hover { border-color: #ff7d00; transform: scale(1.06); }
.cs-type-item.active { border-color: #ff7d00; background: rgba(255,125,0,0.14); }
.cs-type-item.cs-type-all { grid-column: 1 / -1; color: #8b98bd; font-family: 'Fredoka', sans-serif; font-size: 0.8rem; font-weight: 700; }
.cs-type-item.cs-type-all.active { color: #ffb066; }
.cs-type-icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }

/* Info de resultados */
.cs-results { margin: 0 0 22px; font-size: 0.85rem; color: #5f6c93; }

/* Grid de cartas */
.cs-page .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 16px; }
.cs-page .card-item {
    position: relative; display: block; background: #121a36; border: 1.5px solid #223055;
    border-radius: 12px; padding: 10px 10px 12px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: pk-card-in 0.45s ease both;
}
.cs-page .card-item:hover { transform: translateY(-4px); border-color: #2c3d6b; box-shadow: 0 12px 26px rgba(0,0,0,0.5); }
.cs-page .card-item.is-owned { border-color: rgba(61,232,138,0.45); }
.cs-page .card-img-wrap { position: static; display: block; }
.cs-page .card-img { display: block; width: 100%; border-radius: 7px; }
.cs-page .card-item-body { margin-top: 9px; padding: 0 2px; }
.cs-page .card-item-row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cs-page .card-item-name { min-width: 0; font-size: 0.84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-page .card-item-price { flex-shrink: 0; font-family: 'Poetsen One', sans-serif; font-size: 0.88rem; color: #ffb066; }
.cs-page .card-item-num { font-size: 0.72rem; color: #5f6c93; margin-top: 1px; }
/* Botón de poseer */
.cs-page .card-own-btn {
    position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; font-size: 1.05rem; line-height: 1; font-weight: 800;
    background: rgba(10,15,30,0.9); color: #c6cfe8; border: 2px solid #2c3d6b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: transform 0.15s ease, background 0.15s ease;
    z-index: 2;
}
.cs-page .card-own-btn:hover { transform: scale(1.12); }
.cs-page .card-own-btn.is-owned { background: #3de88a; color: #10152a; border-color: #3de88a; }
.cs-page .card-own-btn.busy { opacity: 0.5; pointer-events: none; }

/* Estados */
.cs-page .loading-state { text-align: center; color: #8b98bd; padding: 60px 0; }
.cs-page .spinner { border-color: rgba(255,125,0,0.2); border-top-color: #ff7d00; }
.cs-page .error-state { text-align: center; color: #8b98bd; background: #101731; border: 1.5px solid #223055; border-radius: 14px; padding: 40px 24px; grid-column: 1/-1; }

@media (max-width: 620px) {
    .cs-dd-menu-grid { grid-template-columns: repeat(5, 1fr); width: auto; }
    .cs-banner-name { font-size: 1.6rem; }
    .cs-banner-logo { height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-banner-logo, .cs-banner-info, .cs-progress, .cs-toolbar, .cs-progress-fill, .cs-dd-menu, .card-item { animation: none !important; transition: none !important; }
}

/* ============================================================
   MINIJUEGOS (minijuegos.html) — rediseño oscuro
   ============================================================ */

@keyframes pk-float-icon { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes pk-pulse-vs   { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.12); opacity: 1; } }

.mj-page main { display: block; }
/* Aura morada en minijuegos */
body.mj-page::after { background: radial-gradient(620px 400px at 90% -60px, rgba(176,108,255,0.09) 0%, transparent 70%), radial-gradient(800px 520px at -90px 45%, rgba(59,130,246,0.07) 0%, transparent 70%) !important; }

.mj-main { max-width: 1280px; margin: 0 auto; padding: 52px 24px 70px; }

/* Cabecera */
.mj-header { text-align: center; margin-bottom: 42px; position: relative; }
.mj-spark { position: absolute; pointer-events: none; animation: pk-sparkle 3.8s ease-in-out infinite; }
.mj-spark-1 { top: -6px; left: 16%; color: #ffb066; font-size: 1.1rem; }
.mj-spark-2 { top: 42px; right: 13%; color: #38d9f5; font-size: 0.9rem; animation-duration: 3.1s; animation-delay: 1.2s; }
.mj-spark-3 { bottom: -8px; left: 30%; color: #b06cff; font-size: 0.8rem; animation-duration: 4.4s; animation-delay: 2s; }
.mj-header h1 { font-family: 'Poetsen One', sans-serif; font-size: 3rem; letter-spacing: 2px; margin: 0 0 8px; animation: pk-rise 0.5s ease both; }
.mj-header p { margin: 0 auto; max-width: 480px; color: #8b98bd; font-size: 1rem; animation: pk-rise 0.5s ease 0.08s both; }

/* Juegos jugables */
.mj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.mj-game {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    border: 1.5px solid #223055; border-radius: 20px; padding: 30px 30px 26px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: pk-card-in 0.5s ease both;
}
.mj-game-value { background: linear-gradient(160deg, rgba(56,217,245,0.07) 0%, #101731 45%); }
.mj-game-value:hover { transform: translateY(-5px); border-color: rgba(56,217,245,0.6); box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 0 3px rgba(56,217,245,0.18); }
.mj-game-pvp { background: linear-gradient(160deg, rgba(232,39,59,0.08) 0%, #101731 45%); animation-delay: 0.08s; }
.mj-game-pvp:hover { transform: translateY(-5px); border-color: rgba(232,39,59,0.55); box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 0 3px rgba(232,39,59,0.16); }
.mj-ghost { position: absolute; font-family: 'Poetsen One', sans-serif; line-height: 1; pointer-events: none; }
.mj-ghost-value { top: -30px; right: -20px; font-size: 7rem; color: rgba(56,217,245,0.06); }
.mj-ghost-vs { top: -18px; right: -6px; font-size: 6.4rem; color: rgba(232,39,59,0.08); animation: pk-pulse-vs 3.5s ease-in-out infinite; }
.mj-game-icon {
    align-self: flex-start; width: 84px; height: 84px; border-radius: 20px; background: #eef2ff;
    display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    animation: pk-float-icon 5.5s ease-in-out infinite;
}
.mj-game-value .mj-game-icon { border: 2px solid rgba(56,217,245,0.7); }
.mj-game-pvp .mj-game-icon { border: 2px solid rgba(232,39,59,0.65); animation-delay: 0.7s; }
.mj-game-icon img { height: 52px; max-width: 60px; object-fit: contain; display: block; }
.mj-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 6px; }
.mj-game-value .mj-kicker { color: #38d9f5; }
.mj-game-pvp .mj-kicker { color: #ff8a97; }
.mj-game h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.7rem; letter-spacing: 0.8px; margin: 0 0 10px; }
.mj-game p { margin: 0 0 20px; color: #8b98bd; font-size: 0.92rem; text-wrap: pretty; flex: 1; }
.mj-game-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mj-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; color: #8b98bd; }
.mj-meta svg { width: 15px; height: 15px; flex-shrink: 0; }
.mj-meta-tile { width: 17px; height: 17px; border-radius: 5px; background: #eef2ff; display: grid; place-items: center; flex-shrink: 0; }
.mj-meta-tile img { width: 13px; height: 13px; display: block; }
.mj-spacer { flex: 1; }
.mj-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.mj-btn svg { width: 14px; height: 14px; }
.mj-btn-cyan { background: #38d9f5; color: #10152a; box-shadow: 0 3px 0 #1791ab; }
.mj-game:hover .mj-btn-cyan { transform: translateY(-2px); box-shadow: 0 5px 0 #1791ab; }
.mj-btn-crimson { background: #e8273b; color: #fff; box-shadow: 0 3px 0 #9c1425; }
.mj-game:hover .mj-btn-crimson { transform: translateY(-2px); box-shadow: 0 5px 0 #9c1425; }

/* Próximamente */
.mj-soon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mj-soon { position: relative; display: flex; align-items: center; gap: 20px; background: rgba(16,23,49,0.55); border: 1.5px dashed #2c3d6b; border-radius: 16px; padding: 20px 24px; animation: pk-card-in 0.5s ease both; }
.mj-soon-1 { animation-delay: 0.16s; }
.mj-soon-2 { animation-delay: 0.24s; }
.mj-soon-icon { width: 54px; height: 54px; border-radius: 14px; background: #121a36; border: 1px solid #223055; display: grid; place-items: center; flex-shrink: 0; }
.mj-soon-icon svg { width: 26px; height: 26px; }
.mj-soon-body { flex: 1; min-width: 0; }
.mj-soon-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mj-soon-head h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.1rem; letter-spacing: 0.5px; margin: 0; color: #c6cfe8; }
.mj-sticker { font-size: 0.66rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #10152a; background: #ffb066; border-radius: 6px; padding: 3px 10px; box-shadow: 0 2px 0 #c25f00; transform: rotate(-2deg); }
.mj-soon-body p { margin: 4px 0 0; color: #5f6c93; font-size: 0.86rem; }

@media (max-width: 760px) {
    .mj-grid, .mj-soon-grid { grid-template-columns: 1fr; }
    .mj-header h1 { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mj-header h1, .mj-header p, .mj-spark, .mj-game, .mj-game-icon, .mj-ghost-vs, .mj-soon { animation: none !important; }
}

/* ============================================================
   PERFIL (perfil.html) — carnet de entrenador + formularios
   ============================================================ */

.pf-main { max-width: 1060px; margin: 0 auto; padding: 48px 24px 70px; }

.pf-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    align-items: start;
}

/* ── Carnet (columna izquierda) ─────────────────────────────── */
.pf-card {
    background: linear-gradient(160deg, rgba(255,125,0,0.08) 0%, #101731 50%);
    border: 1.5px solid #223055;
    border-radius: 20px;
    padding: 30px 28px;
    text-align: center;
    position: sticky;
    top: 96px;
    animation: pk-rise 0.5s ease both;
}

.pf-avatar-wrap { position: relative; width: 108px; margin: 0 auto 16px; }

.pf-avatar,
.pf-avatar .profile-avatar-initial,
.pf-avatar .profile-avatar-img {
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
}
.pf-avatar {
    background: #1a2547;
    border: 3px solid #ff7d00;
    box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}
.pf-avatar .profile-avatar-initial {
    font-family: 'Poetsen One', sans-serif;
    font-size: 2.6rem;
    color: #ffb066;
}
.pf-avatar .profile-avatar-img { object-fit: cover; }

.pf-rank-badge {
    position: absolute;
    right: -6px;
    bottom: -2px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #eef2ff;
    border: 2px solid #ff7d00;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    animation: pk-float-mini 5s ease-in-out infinite;
}
.pf-rank-badge img { width: 26px; height: 26px; display: block; }

.pf-username { font-family: 'Poetsen One', sans-serif; font-size: 1.7rem; letter-spacing: 0.8px; margin: 0 0 2px; color: #eef2ff; }
.pf-email { margin: 0 0 4px; color: #8b98bd; font-size: 0.88rem; word-break: break-word; }
.pf-since { margin: 0 0 22px; color: #5f6c93; font-size: 0.8rem; }

.pf-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    border-top: 1px solid #1a2547;
    padding-top: 18px;
}
.pf-stat { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.88rem; }
.pf-stat-label { color: #8b98bd; font-weight: 600; }
.pf-stat-val { font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; color: #eef2ff; }
.pf-val-eur { color: #ffb066; }
.pf-val-elo { color: #ff8a97; }
.pf-val-streak { color: #38d9f5; }

.pf-logout {
    margin-top: 22px;
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 12px 0;
    background: #e8273b;
    color: #fff;
    border-radius: 999px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 3px 0 #9c1425;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pf-logout:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #9c1425; }
.pf-logout:active { transform: translateY(1px); box-shadow: 0 1px 0 #9c1425; }

/* ── Formularios (columna derecha) ──────────────────────────── */
.pf-forms { display: flex; flex-direction: column; gap: 20px; }

.pf-panel {
    background: #101731;
    border: 1.5px solid #223055;
    border-radius: 20px;
    padding: 28px 30px;
    animation: pk-rise 0.5s ease both;
}
.pf-forms .pf-panel:nth-child(1) { animation-delay: 0.08s; }
.pf-forms .pf-panel:nth-child(2) { animation-delay: 0.16s; }

.pf-panel-title { font-family: 'Poetsen One', sans-serif; font-size: 1.2rem; letter-spacing: 0.6px; margin: 0 0 18px; color: #eef2ff; }

.pf-form { display: flex; flex-direction: column; gap: 15px; }
.pf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pf-field { display: block; }
.pf-field-label { display: block; font-size: 0.82rem; font-weight: 600; color: #8b98bd; margin-bottom: 6px; }
.pf-opt { color: #5f6c93; font-weight: 500; }

.pf-field input {
    width: 100%;
    box-sizing: border-box;
    background: #0d1329;
    border: 1.5px solid #223055;
    border-radius: 10px;
    padding: 12px 15px;
    color: #eef2ff;
    font-size: 0.93rem;
    font-family: 'Fredoka', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pf-field input::placeholder { color: #5f6c93; opacity: 1; }
.pf-field input:focus { border-color: #ff7d00; box-shadow: 0 0 0 3px rgba(255,125,0,0.16); }

.pf-hint { margin: -8px 0 0; font-size: 0.76rem; color: #5f6c93; }
.pf-field .pf-hint { display: block; margin: 5px 0 0; }

.pf-btn {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    padding: 12px 28px;
    background: #ff7d00;
    color: #10152a;
    border-radius: 999px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 3px 0 #c25f00;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pf-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #c25f00; }
.pf-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #c25f00; }

/* Mensajes de éxito / error (scopeados a perfil) */
.pf-page .auth-msg:empty { display: none; }
.pf-page .auth-msg { margin-top: 14px; padding: 11px 15px; border-radius: 10px; font-size: 0.86rem; font-weight: 600; }
.pf-page .auth-msg.msg-error   { background: rgba(232,39,59,0.10);  color: #ff8a97; }
.pf-page .auth-msg.msg-success { background: rgba(61,232,138,0.10); color: #3de88a; }
.pf-page .auth-msg.msg-info    { background: rgba(59,130,246,0.12); color: #8fb7ff; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 880px) {
    .pf-main { padding: 28px 16px 56px; }
    .pf-grid { grid-template-columns: 1fr; gap: 16px; }
    .pf-card { position: static; }
    .pf-row2 { grid-template-columns: 1fr; }
    .pf-field input { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .pf-card, .pf-panel, .pf-rank-badge { animation: none !important; }
}

/* ============================================================
   WHAT'S MY VALUE? (juego-precios.html) — rediseno oscuro.
   Reestiliza los hooks .game-*/.leaderboard-* (la logica los
   conserva) bajo el scope .jp-page.
   ============================================================ */

@keyframes jp-count-flip { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes jp-pop-result { 0% { opacity: 0; transform: scale(0.6); } 30% { opacity: 1; transform: scale(1.08); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* Aura cyan de la pagina */
body.jp-page::after { background: radial-gradient(620px 400px at 90% -60px, rgba(56,217,245,0.08) 0%, transparent 70%), radial-gradient(800px 520px at -90px 45%, rgba(59,130,246,0.07) 0%, transparent 70%) !important; }

/* -- INTRO -- */
.jp-page .game-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }

.jp-page .game-intro-header { position: relative; margin-bottom: 26px; text-align: left; animation: pk-rise 0.5s ease both; }
.jp-spark { position: absolute; top: -4px; right: 12%; color: #38d9f5; font-size: 1rem; animation: pk-sparkle 3.4s ease-in-out infinite; }
.jp-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.jp-hero-tile { width: 68px; height: 68px; border-radius: 18px; background: #eef2ff; border: 2px solid rgba(56,217,245,0.7); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,0.5); flex-shrink: 0; }
.jp-hero-tile .game-hero-logo { height: 42px; max-width: 48px; width: auto; object-fit: contain; display: block; margin: 0; }
.jp-page .game-intro-title { font-family: 'Poetsen One', sans-serif; font-size: 2.3rem; letter-spacing: 1.2px; margin: 0; line-height: 1.1; color: #eef2ff; }
.jp-kicker { margin: 2px 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: #38d9f5; }
.jp-page .game-intro-sub { margin: 0; color: #8b98bd; font-size: 0.96rem; max-width: 560px; }
.jp-page .game-intro-sub strong { color: #ff8a97; }

/* Duelo de ejemplo: dos cartas flotando, sin marco */
.jp-page .game-preview { display: flex; align-items: center; gap: 22px; margin: 0 0 26px; background: none; border: none; padding: 0; animation: pk-rise 0.5s ease 0.08s both; }
.jp-page .game-preview::before { content: none; }
.jp-page .game-preview-card { flex: 1; max-width: 210px; text-align: center; background: none; border: none; padding: 0; }
.jp-page .game-preview-known { animation: pk-float-card 5.5s ease-in-out infinite; }
.jp-page .game-preview-mystery { animation: pk-float-card 5.5s ease-in-out 0.8s infinite; }
.jp-page .game-preview-card-img-wrap { border-radius: 9px; border: none; background: none; }
.jp-page .game-preview-card-img-wrap img { width: 100%; border-radius: 9px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.55)); display: block; }
.jp-page .game-preview-card-name, .jp-page .game-preview-card-meta { display: none; }
.jp-page .game-preview-price { display: inline-block; margin-top: 10px; font-family: 'Poetsen One', sans-serif; font-size: 1.15rem; }
.jp-page .game-preview-known .game-preview-price { color: #ffb066; }
.jp-page .game-preview-mystery .game-preview-price { color: #38d9f5; }
.jp-page .game-preview-vs { flex-shrink: 0; width: auto; height: auto; background: none; border: none; box-shadow: none; font-family: 'Poetsen One', sans-serif; font-size: 1.9rem; color: #ff8a97; text-shadow: 0 4px 18px rgba(232,39,59,0.4); animation: pk-pulse-vs 2.6s ease-in-out infinite; }

/* Como se juega */
.jp-page .game-howto { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; animation: pk-rise 0.5s ease 0.16s both; }
.jp-page .game-howto li { background: #101731; border: 1.5px solid #223055; border-radius: 14px; padding: 16px 18px; display: block; }
.jp-page .game-howto li:hover { border-color: #223055; transform: none; }
.jp-page .game-howto-step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #38d9f5; color: #10152a; font-family: 'Poetsen One', sans-serif; font-size: 0.9rem; box-shadow: 0 2px 0 #1791ab; margin-bottom: 10px; }
.jp-page .game-howto-body strong { display: block; font-size: 0.92rem; margin-bottom: 3px; color: #eef2ff; }
.jp-page .game-howto-body p { margin: 0; font-size: 0.82rem; color: #8b98bd; }
.jp-page .game-howto-body em { color: #38d9f5; font-style: normal; font-weight: 600; }

/* Boton empezar (fisico cyan) */
.jp-page .game-start-btn { border: none; cursor: pointer; padding: 15px 40px; background: #38d9f5; color: #10152a; border-radius: 999px; font-family: 'Fredoka', sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.3px; box-shadow: 0 4px 0 #1791ab; transition: transform 0.15s ease, box-shadow 0.15s ease; animation: pk-rise 0.5s ease 0.24s both; }
.jp-page .game-start-btn::before, .jp-page .game-start-btn::after { content: none; }
.jp-page .game-start-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #1791ab; }
.jp-page .game-start-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #1791ab; }
.jp-page .game-start-btn:disabled { opacity: 0.6; cursor: default; box-shadow: 0 4px 0 #1791ab; }

/* -- RANKING (aside) -- */
.jp-page .game-leaderboard { background: #101731; border: 1.5px solid #223055; border-radius: 20px; overflow: hidden; padding: 0; animation: pk-card-in 0.5s ease 0.1s both; }
.jp-page .game-leaderboard-head { padding: 20px 22px 14px; border-bottom: 1px solid #1a2547; display: flex; align-items: center; gap: 12px; margin: 0; }
.jp-page .game-leaderboard-title { display: flex; align-items: center; gap: 10px; font-family: 'Poetsen One', sans-serif; font-size: 1.15rem; letter-spacing: 0.6px; margin: 0; flex: 1; color: #eef2ff; }
.jp-trophy { width: 20px; height: 20px; flex-shrink: 0; }
.jp-page .leaderboard-filters { display: flex; gap: 6px; }
.jp-page .lb-filter { border: none; cursor: pointer; font-family: 'Fredoka', sans-serif; font-size: 0.76rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: transparent; color: #8b98bd; box-shadow: none; }
.jp-page .lb-filter:hover { color: #eef2ff; background: #1a2547; }
.jp-page .lb-filter.active { background: #ff7d00; color: #10152a; box-shadow: 0 2px 0 #c25f00; }

.jp-page .leaderboard-scroll { max-height: 430px; overflow-y: auto; scrollbar-width: thin; padding: 0; }
.jp-page .leaderboard-list { list-style: none; margin: 0; padding: 8px 12px; }
.jp-page .leaderboard-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; background: transparent; border: none; margin: 0; }
.jp-page .leaderboard-row.top-1 { background: rgba(255,203,5,0.05); }
.jp-page .leaderboard-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-family: 'Poetsen One', sans-serif; font-size: 0.82rem; background: transparent; color: #8b98bd; border: 1px solid #2c3d6b; }
.jp-page .leaderboard-row.top-1 .leaderboard-rank { background: #ffcb05; color: #10152a; border: none; }
.jp-page .leaderboard-row.top-2 .leaderboard-rank { background: #cbd5e1; color: #10152a; border: none; }
.jp-page .leaderboard-row.top-3 .leaderboard-rank { background: #fb923c; color: #10152a; border: none; }
.jp-page .leaderboard-name { flex: 1; min-width: 0; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #eef2ff; }
.jp-page .leaderboard-score { font-family: 'Poetsen One', sans-serif; font-size: 0.95rem; color: #38d9f5; }
.jp-page .leaderboard-score::before { content: '\00d7'; }
.jp-page .leaderboard-row.is-you { background: rgba(255,125,0,0.08); border: none; }
.jp-page .leaderboard-row.is-you .leaderboard-name { color: #ffb066; }
.jp-page .lb-you-tag { margin-left: 6px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.5px; color: #10152a; background: #ffb066; padding: 1px 6px; border-radius: 6px; box-shadow: 0 2px 0 #c25f00; transform: rotate(-2deg); display: inline-block; vertical-align: middle; }
.jp-page .leaderboard-loading, .jp-page .leaderboard-empty { padding: 16px; color: #8b98bd; text-align: center; font-size: 0.88rem; list-style: none; }

.jp-page .leaderboard-you-banner { padding: 12px 22px; border-top: 1px solid #1a2547; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.84rem; color: #8b98bd; }
.jp-page .leaderboard-you-banner strong { font-family: 'Poetsen One', sans-serif; color: #ffb066; }
.jp-page .leaderboard-jump-btn { border: none; cursor: pointer; font-family: 'Fredoka', sans-serif; font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: #ff7d00; color: #10152a; box-shadow: 0 2px 0 #c25f00; }
.jp-page .leaderboard-jump-btn:hover { transform: translateY(-1px); }

/* -- ARENA -- */
.jp-page .game-play { max-width: 880px; margin: 0 auto; }
.jp-page .game-play-header { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.jp-page .game-quit-btn { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #2c3d6b; background: transparent; cursor: pointer; color: #8b98bd; font-family: 'Fredoka', sans-serif; font-size: 0.86rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.jp-page .game-quit-btn:hover { color: #eef2ff; border-color: #38d9f5; }
.jp-page .game-streak-wrap { margin-left: auto; text-align: center; background: #101731; border: 1.5px solid rgba(56,217,245,0.5); border-radius: 14px; padding: 8px 26px; }
.jp-page .game-streak-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #8b98bd; }
.jp-page .game-streak-num { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.7rem; line-height: 1.1; color: #38d9f5; }
.jp-page .game-streak-num.bump { animation: jp-count-flip 0.3s ease both; }
.jp-page .game-best-wrap { text-align: center; padding: 8px 10px; }
.jp-page .game-best-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #5f6c93; }
.jp-page .game-best-num { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.25rem; line-height: 1.2; color: #8b98bd; }

.jp-page .game-arena { position: relative; display: flex; align-items: stretch; gap: 26px; margin-bottom: 30px; }
.jp-page .game-card { flex: 1; background: #101731; border: 1.5px solid #223055; border-radius: 18px; padding: 20px; text-align: center; }
.jp-page .game-card-next { border-color: rgba(56,217,245,0.45); }
.jp-page .game-card-img { width: 100%; max-width: 240px; margin: 0 auto 14px; }
.jp-page .game-card-img img { width: 100%; border-radius: 9px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5)); display: block; }
.jp-page .game-card-name { font-weight: 700; font-size: 1rem; color: #eef2ff; }
.jp-page .game-card-price-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #5f6c93; margin-top: 6px; }
.jp-page .game-card-next .game-card-price-label { color: #38d9f5; }
.jp-page .game-card-price { font-family: 'Poetsen One', sans-serif; font-size: 1.7rem; color: #ffb066; }
.jp-page .game-card-next .game-card-price { color: #38d9f5; }
.jp-page .game-card-next.revealing .game-card-price,
.jp-page .game-card-next.correct .game-card-price,
.jp-page .game-card-next.wrong .game-card-price { color: #ffb066; }
.jp-page .game-card-next.correct { border-color: #3de88a; }
.jp-page .game-card-next.wrong { border-color: #e8273b; }
.jp-page .game-vs { align-self: center; flex-shrink: 0; width: auto; height: auto; background: none; border: none; box-shadow: none; font-family: 'Poetsen One', sans-serif; font-size: 1.6rem; color: #ff8a97; text-shadow: 0 4px 18px rgba(232,39,59,0.4); animation: pk-pulse-vs 2.6s ease-in-out infinite; }

.jp-page .game-actions { display: flex; gap: 16px; justify-content: center; }
.jp-page .game-btn { border: none; cursor: pointer; min-width: 190px; padding: 15px 30px; border-radius: 999px; font-family: 'Fredoka', sans-serif; font-size: 1rem; font-weight: 800; letter-spacing: 1px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.jp-page .game-btn-arrow { font-size: 1.1rem; }
.jp-page .game-btn-higher { background: #3de88a; color: #10152a; box-shadow: 0 4px 0 #1e9455; }
.jp-page .game-btn-higher:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #1e9455; }
.jp-page .game-btn-higher:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #1e9455; }
.jp-page .game-btn-lower { background: #e8273b; color: #fff; box-shadow: 0 4px 0 #9c1425; }
.jp-page .game-btn-lower:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #9c1425; }
.jp-page .game-btn-lower:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #9c1425; }
.jp-page .game-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Placa de resultado (pop sobre la arena) */
.jp-page .result-overlay { position: fixed; inset: 0; z-index: 350; display: none; place-items: center; pointer-events: none; background: none; }
.jp-page .result-overlay.show { display: grid; }
.jp-page .result-icon { display: none; }
.jp-page .result-text { font-family: 'Poetsen One', sans-serif; font-size: 3.2rem; letter-spacing: 2px; text-shadow: 0 8px 30px rgba(0,0,0,0.7); background: rgba(10,15,30,0.85); border-radius: 20px; padding: 18px 40px; animation: jp-pop-result 1s ease both; }
.jp-page .result-overlay.correct .result-text { color: #3de88a; }
.jp-page .result-overlay.wrong .result-text { color: #ff8a97; }

/* -- GAME OVER (modal) -- */
.jp-page .mc-modal.jp-over { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(10,15,30,0.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.jp-page .jp-over-card { width: min(420px, calc(100vw - 48px)); background: #101731; border: 1.5px solid #223055; border-radius: 20px; padding: 32px 30px; text-align: center; animation: pk-card-in 0.35s ease both; }
.jp-over-sticker { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #10152a; background: #ff8a97; border-radius: 6px; padding: 4px 12px; box-shadow: 0 2px 0 #9c1425; transform: rotate(-2deg); margin-bottom: 16px; }
.jp-over-lead { margin: 0 0 4px; color: #8b98bd; font-size: 0.94rem; }
.jp-over-score { margin: 0 0 6px; font-family: 'Poetsen One', sans-serif; font-size: 3.4rem; line-height: 1.1; color: #38d9f5; }
.jp-page .jp-over-score .game-final-score { color: inherit; font-size: inherit; font-family: inherit; font-weight: inherit; }
.jp-page .jp-over .game-over-status { margin: 0 0 24px; font-size: 0.9rem; }
.jp-page .game-over-msg { color: #8b98bd; margin: 0; text-align: center; }
.jp-page .game-over-msg.game-over-ok { color: #3de88a; }
.jp-page .game-over-msg a { color: #38d9f5; }
.jp-page .jp-over .mc-modal-actions { display: flex; gap: 12px; justify-content: center; margin: 0; }
.jp-page .jp-over .btn-secondary { border: 1.5px solid #2c3d6b; background: transparent; cursor: pointer; color: #8b98bd; font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 700; padding: 12px 22px; border-radius: 999px; box-shadow: none; }
.jp-page .jp-over .btn-secondary::before { content: none; }
.jp-page .jp-over .btn-secondary:hover { color: #eef2ff; border-color: #38d9f5; }
.jp-page .jp-over .btn-primary { border: none; cursor: pointer; padding: 12px 26px; background: #38d9f5; color: #10152a; border-radius: 999px; font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 700; box-shadow: 0 3px 0 #1791ab; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.jp-page .jp-over .btn-primary::before { content: none; }
.jp-page .jp-over .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #1791ab; }
.jp-page .jp-over .btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #1791ab; }

/* -- Responsive -- */
@media (max-width: 900px) {
    .jp-page .game-intro { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .jp-page .game-howto { grid-template-columns: 1fr; }
    .jp-page .game-arena { flex-direction: column; gap: 14px; }
    .jp-page .game-card-img { max-width: 190px; }
    .jp-page .game-actions { gap: 12px; }
    .jp-page .game-btn { min-width: 0; flex: 1; padding: 16px 10px; }
    .jp-page .game-preview { gap: 12px; }
    .jp-page .result-text { font-size: 2.2rem; padding: 14px 26px; }
    .jp-page .game-start-btn { width: 100%; }
    .jp-page .jp-title-row { gap: 14px; }
    .jp-page .game-intro-title { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .jp-page .jp-spark, .jp-page .game-preview-known, .jp-page .game-preview-mystery,
    .jp-page .game-vs, .jp-page .game-preview-vs, .jp-page .game-streak-num.bump,
    .jp-page .result-text, .jp-page .jp-over-card, .jp-page .game-intro-header,
    .jp-page .game-preview, .jp-page .game-howto, .jp-page .game-start-btn, .jp-page .game-leaderboard { animation: none !important; }
}

/* ============================================================
   BATALLA DE TIPOS (pvp.html) — rediseno oscuro.
   Reestiliza los hooks .pvp-*/.game-leaderboard (la logica los
   conserva) bajo el scope .pvp-page.
   ============================================================ */

@keyframes pvp-radar   { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes pvp-ballroll { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pvp-tick    { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes pvp-pop     { 0% { opacity: 0; transform: scale(0.6); } 30% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }

/* Aura roja de la pagina */
body.pvp-page::after { background: radial-gradient(620px 400px at 90% -60px, rgba(232,39,59,0.08) 0%, transparent 70%), radial-gradient(800px 520px at -90px 45%, rgba(59,130,246,0.07) 0%, transparent 70%) !important; }

/* -- LOBBY: flex wrap (nunca grid rigido) -- */
.pvp-page .pvp-lobby { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pvp-page .pvp-lobby-main { flex: 1.5; min-width: 480px; }
.pvp-page .pvp-lobby .game-leaderboard { flex: 1; min-width: 300px; }

.pvp-page .pvp-lobby-header { margin-bottom: 24px; animation: pk-rise 0.5s ease both; }
.pvp-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.pvp-hero-tile { width: 68px; height: 68px; border-radius: 18px; background: #eef2ff; border: 2px solid rgba(232,39,59,0.65); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,0.5); flex-shrink: 0; }
.pvp-hero-tile .game-hero-logo { height: 42px; max-width: 48px; width: auto; object-fit: contain; display: block; margin: 0; }
.pvp-page .pvp-lobby-title { font-family: 'Poetsen One', sans-serif; font-size: 2.3rem; letter-spacing: 1.2px; margin: 0; line-height: 1.1; color: #eef2ff; }
.pvp-kicker { margin: 2px 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: #ff8a97; }
.pvp-page .pvp-lobby-sub { margin: 0; color: #8b98bd; font-size: 0.96rem; max-width: 560px; }
.pvp-page .pvp-lobby-sub strong { color: #eef2ff; }

/* Carnet de combate */
.pvp-page .pvp-rank-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; background: #101731; border: 1.5px solid #223055; border-radius: 18px; padding: 20px 26px; margin-bottom: 24px; animation: pk-rise 0.5s ease 0.08s both; }
.pvp-rank-stripes { position: absolute; top: 0; bottom: 0; right: -30px; width: 190px; background: repeating-linear-gradient(-55deg, rgba(255,203,5,0.05) 0 14px, transparent 14px 34px); pointer-events: none; }
.pvp-page .pvp-rank-emblem { position: relative; width: 78px; height: 78px; border-radius: 18px; background: #eef2ff; border: 2.5px solid #ffcb05; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 0 #b8912a; transform: rotate(-3deg); }
.pvp-page .pvp-rank-emblem img, .pvp-page .pvp-rank-img { width: 54px; height: 54px; object-fit: contain; display: block; }
.pvp-rank-body { position: relative; flex: 1; min-width: 0; }
.pvp-rank-kicker { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #5f6c93; }
.pvp-page .pvp-rank-name { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.7rem; letter-spacing: 0.8px; line-height: 1.15; }
.pvp-rank-eloline { display: block; font-size: 0.88rem; color: #8b98bd; }
.pvp-rank-eloline strong { font-family: 'Poetsen One', sans-serif; font-size: 1.1rem; color: #ffb066; }
.pvp-rank-stats { position: relative; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pvp-stat { text-align: center; border-radius: 10px; padding: 8px 16px; }
.pvp-stat strong { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.3rem; line-height: 1.1; }
.pvp-stat span { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.pvp-stat-win { background: #3de88a; color: #10152a; box-shadow: 0 3px 0 #1e9455; transform: rotate(-2deg); }
.pvp-stat-loss { background: #e8273b; color: #fff; box-shadow: 0 3px 0 #9c1425; transform: rotate(2deg); }
.pvp-stat-sep { font-family: 'Poetsen One', sans-serif; font-size: 0.95rem; color: #5f6c93; }

/* Como se juega: camino de pasos */
.pvp-page .pvp-howto { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; animation: pk-rise 0.5s ease 0.16s both; }
.pvp-page .pvp-howto::before { content: ''; position: absolute; top: 17px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, #e8273b 0%, #223055 100%); z-index: 0; }
.pvp-page .pvp-howto li { position: relative; text-align: center; padding: 0 10px; z-index: 1; }
.pvp-howto-coin { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e8273b; color: #fff; font-family: 'Poetsen One', sans-serif; font-size: 1rem; box-shadow: 0 3px 0 #9c1425, 0 0 0 4px #0a0f1e; margin-bottom: 10px; }
.pvp-page .pvp-howto li strong { display: block; font-size: 0.9rem; color: #eef2ff; }
.pvp-page .pvp-howto li p { margin: 3px 0 0; font-size: 0.79rem; color: #8b98bd; }

/* Boton buscar (crimson) */
.pvp-page .pvp-search-btn { border: none; cursor: pointer; padding: 15px 40px; background: #e8273b; color: #fff; border-radius: 999px; font-family: 'Fredoka', sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.3px; box-shadow: 0 4px 0 #9c1425; transition: transform 0.15s ease, box-shadow 0.15s ease; animation: pk-rise 0.5s ease 0.24s both; }
.pvp-page .pvp-search-btn::before, .pvp-page .pvp-search-btn::after { content: none; }
.pvp-page .pvp-search-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #9c1425; }
.pvp-page .pvp-search-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #9c1425; }
.pvp-page .pvp-search-btn:disabled { opacity: 0.6; cursor: default; box-shadow: 0 4px 0 #9c1425; }

/* Login required */
.pvp-page .pvp-login-required { margin-top: 14px; }
.pvp-page .pvp-login-required p { display: inline-flex; align-items: center; gap: 8px; color: #8b98bd; font-size: 0.9rem; background: #101731; border: 1.5px solid #223055; border-radius: 12px; padding: 10px 16px; margin: 0; }
.pvp-lock-ico { width: 16px; height: 16px; color: #ff8a97; flex-shrink: 0; }
.pvp-page .pvp-login-required a { color: #ffb066; font-weight: 700; text-decoration: underline; }

/* Escalera de rangos */
.pvp-ladder-section { margin-top: 34px; animation: pk-rise 0.5s ease 0.3s both; }
.pvp-ladder-title { font-family: 'Poetsen One', sans-serif; font-size: 1.1rem; letter-spacing: 0.6px; margin: 0 0 4px; color: #eef2ff; }
.pvp-ladder-sub { margin: 0 0 18px; font-size: 0.84rem; color: #8b98bd; }
.pvp-ladder { display: flex; align-items: flex-end; gap: 0; overflow-x: auto; padding: 24px 4px 6px; scrollbar-width: thin; }
.pvp-ladder-step { flex: 1; min-width: 86px; text-align: center; position: relative; padding: 0 6px; }
.pvp-ladder-you { position: absolute; top: -24px; left: 50%; transform: translateX(-50%) rotate(-4deg); font-size: 0.62rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #10152a; background: #ffb066; border-radius: 5px; padding: 2px 9px; box-shadow: 0 2px 0 #c25f00; white-space: nowrap; }
.pvp-ladder-tile { display: inline-grid; place-items: center; border-radius: 14px; background: #eef2ff; border: 2px solid #223055; margin-bottom: 8px; }
.pvp-ladder-tile img { width: 72%; height: 72%; object-fit: contain; display: block; }
.pvp-ladder-name { display: block; font-size: 0.78rem; font-weight: 700; }

/* -- RANKING PvP (aside) -- */
.pvp-page .game-leaderboard { background: #101731; border: 1.5px solid #223055; border-radius: 20px; overflow: hidden; padding: 0; animation: pk-card-in 0.5s ease 0.1s both; }
.pvp-page .game-leaderboard-head { padding: 20px 22px 14px; border-bottom: 1px solid #1a2547; display: flex; align-items: center; gap: 12px; margin: 0; }
.pvp-page .game-leaderboard-title { display: flex; align-items: center; gap: 10px; font-family: 'Poetsen One', sans-serif; font-size: 1.15rem; letter-spacing: 0.6px; margin: 0; flex: 1; color: #eef2ff; }
.pvp-page .leaderboard-filters { display: flex; gap: 6px; }
.pvp-page .lb-filter { border: none; cursor: pointer; font-family: 'Fredoka', sans-serif; font-size: 0.76rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: transparent; color: #8b98bd; box-shadow: none; }
.pvp-page .lb-filter:hover { color: #eef2ff; background: #1a2547; }
.pvp-page .lb-filter.active { background: #ff7d00; color: #10152a; box-shadow: 0 2px 0 #c25f00; }
.pvp-page .leaderboard-scroll { max-height: 480px; overflow-y: auto; scrollbar-width: thin; padding: 0; }
.pvp-page .leaderboard-list { list-style: none; margin: 0; padding: 8px 12px; }
.pvp-page .leaderboard-row { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; background: transparent; border: none; margin: 0; }
.pvp-page .leaderboard-row.top-1 { background: rgba(255,203,5,0.05); }
.pvp-page .leaderboard-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-family: 'Poetsen One', sans-serif; font-size: 0.82rem; background: transparent; color: #8b98bd; border: 1px solid #2c3d6b; }
.pvp-page .leaderboard-row.top-1 .leaderboard-rank { background: #ffcb05; color: #10152a; border: none; }
.pvp-page .leaderboard-row.top-2 .leaderboard-rank { background: #cbd5e1; color: #10152a; border: none; }
.pvp-page .leaderboard-row.top-3 .leaderboard-rank { background: #fb923c; color: #10152a; border: none; }
.pvp-lb-rank-tile { width: 24px; height: 24px; border-radius: 6px; background: #eef2ff; display: grid; place-items: center; flex-shrink: 0; }
.pvp-lb-rank-img { width: 19px; height: 19px; display: block; object-fit: contain; }
.pvp-page .leaderboard-name { flex: 1; min-width: 0; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #eef2ff; }
.pvp-page .leaderboard-score { font-family: 'Poetsen One', sans-serif; font-size: 0.92rem; color: #ff8a97; }
.pvp-page .leaderboard-row.is-you { background: rgba(255,125,0,0.08); }
.pvp-page .leaderboard-row.is-you .leaderboard-name { color: #ffb066; }
.pvp-page .lb-you-tag { margin-left: 6px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.5px; color: #10152a; background: #ffb066; padding: 1px 6px; border-radius: 6px; box-shadow: 0 2px 0 #c25f00; transform: rotate(-2deg); display: inline-block; vertical-align: middle; }
.pvp-page .leaderboard-loading, .pvp-page .leaderboard-empty { padding: 16px; color: #8b98bd; text-align: center; font-size: 0.88rem; list-style: none; }
.pvp-page .leaderboard-you-banner { padding: 12px 22px; border-top: 1px solid #1a2547; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.84rem; color: #8b98bd; }
.pvp-page .leaderboard-you-banner strong { font-family: 'Poetsen One', sans-serif; color: #ffb066; }
.pvp-page .leaderboard-jump-btn { border: none; cursor: pointer; font-family: 'Fredoka', sans-serif; font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: #ff7d00; color: #10152a; box-shadow: 0 2px 0 #c25f00; }
.pvp-page .leaderboard-jump-btn:hover { transform: translateY(-1px); }

/* -- BUSCANDO -- */
.pvp-page .pvp-searching-card { max-width: 440px; margin: 40px auto; text-align: center; background: #101731; border: 1.5px solid #223055; border-radius: 20px; padding: 44px 36px; animation: pk-card-in 0.35s ease both; }
.pvp-page .pvp-radar { position: relative; width: 120px; height: 120px; margin: 0 auto 22px; }
.pvp-radar-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(232,39,59,0.6); animation: pvp-radar 2s ease-out infinite; }
.pvp-radar-ring-2 { animation-delay: 1s; }
.pvp-radar-icon { position: absolute; inset: 30px; width: 60px; height: 60px; animation: pvp-ballroll 2.4s linear infinite; }
.pvp-page .pvp-searching-card h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.5rem; letter-spacing: 0.8px; margin: 0 0 8px; color: #eef2ff; }
.pvp-page .pvp-searching-elo { margin: 0 0 4px; color: #8b98bd; font-size: 0.9rem; }
.pvp-page .pvp-searching-elo strong { color: #ffb066; font-family: 'Poetsen One', sans-serif; }
.pvp-page .pvp-searching-bot { margin: 0 0 26px; color: #5f6c93; font-size: 0.82rem; }
.pvp-page .pvp-searching-bot strong { color: #8b98bd; }
.pvp-page .pvp-cancel-btn { border: 1.5px solid #2c3d6b; background: transparent; cursor: pointer; color: #8b98bd; font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 700; padding: 11px 24px; border-radius: 999px; box-shadow: none; }
.pvp-page .pvp-cancel-btn::before, .pvp-page .pvp-cancel-btn::after { content: none; }
.pvp-page .pvp-cancel-btn:hover { color: #eef2ff; border-color: #38d9f5; }

/* -- ARENA -- */
.pvp-page .pvp-game { max-width: 760px; margin: 0 auto; }
.pvp-page .pvp-game-header { display: flex; align-items: center; gap: 16px; background: #101731; border: 1.5px solid #223055; border-radius: 18px; padding: 14px 24px; margin-bottom: 8px; }
.pvp-mk { flex: 1; display: flex; align-items: center; gap: 11px; min-width: 0; }
.pvp-mk-b { justify-content: flex-end; }
.pvp-mk-rank { width: 34px; height: 34px; border-radius: 9px; background: #eef2ff; border: 2px solid #223055; display: grid; place-items: center; flex-shrink: 0; }
.pvp-mk-rank img { width: 24px; height: 24px; display: block; object-fit: contain; }
.pvp-mk-id { min-width: 0; }
.pvp-mk-id-right { text-align: right; }
.pvp-page .pvp-player-name { display: block; font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #eef2ff; }
.pvp-page .pvp-player-elo { display: block; font-size: 0.76rem; color: #8b98bd; }
.pvp-page .pvp-score { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pvp-page .pvp-score-num { font-family: 'Poetsen One', sans-serif; font-size: 2rem; line-height: 1; }
.pvp-page .pvp-score-a { color: #3de88a; }
.pvp-page .pvp-score-b { color: #ff8a97; }
.pvp-score-vs { font-family: 'Poetsen One', sans-serif; font-size: 1.1rem; color: #ff8a97; animation: pk-pulse-vs 2.6s ease-in-out infinite; }
.pvp-page .pvp-round-num { text-align: center; margin: 0 0 22px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #5f6c93; }
.pvp-page .pvp-round-num strong { color: #8b98bd; }

/* Seleccion de tipo */
.pvp-page .pvp-screen-type { background: #101731; border: 1.5px solid #223055; border-radius: 20px; overflow: hidden; text-align: center; animation: pk-card-in 0.3s ease both; }
.pvp-combat-head { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 24px; background: rgba(232,39,59,0.1); border-bottom: 1px solid rgba(232,39,59,0.3); }
.pvp-combat-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, rgba(232,39,59,0.06) 0 12px, transparent 12px 30px); pointer-events: none; }
.pvp-combat-head h2 { position: relative; font-family: 'Poetsen One', sans-serif; font-size: 1.3rem; letter-spacing: 0.6px; margin: 0; color: #eef2ff; }
.pvp-page .pvp-countdown { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: 'Poetsen One', sans-serif; font-size: 1.3rem; color: #10152a; background: #ffcb05; box-shadow: 0 3px 0 #b8912a; animation: pvp-tick 1s ease-in-out infinite; }
.pvp-page .pvp-countdown.urgent { background: #ff8a97; box-shadow: 0 3px 0 #9c1425; }
.pvp-type-body { padding: 24px 30px 28px; }
.pvp-page .pvp-types-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 560px; margin: 0 auto; }
.pvp-page .pvp-type-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 10px 4px; border-radius: 12px; border: 1.5px solid #223055; background: transparent; cursor: pointer; font-family: 'Fredoka', sans-serif; transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease; }
.pvp-page .pvp-type-btn:hover:not(:disabled) { border-color: #ff7d00; transform: translateY(-3px); }
.pvp-page .pvp-type-btn.selected { border-color: #ff7d00; background: rgba(255,125,0,0.12); }
.pvp-page .pvp-type-btn:disabled { cursor: default; }
.pvp-page .pvp-type-icon-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); display: block; }
.pvp-page .pvp-type-label { font-size: 0.72rem; font-weight: 700; color: #8b98bd; }
.pvp-page .pvp-type-btn.selected .pvp-type-label { color: #ffb066; }
.pvp-page .pvp-type-status { margin-top: 16px; font-size: 0.85rem; color: #8b98bd; }

/* Racing */
.pvp-page .pvp-screen-racing { background: #101731; border: 1.5px solid #223055; border-radius: 20px; padding: 28px 30px; text-align: center; animation: pk-card-in 0.3s ease both; }
.pvp-page .pvp-vs-types { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; }
.pvp-page .pvp-type-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.95rem; color: #10152a; border-radius: 8px; padding: 6px 16px; border: none; box-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.pvp-page .pvp-type-chip img, .pvp-reveal-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: block; }
.pvp-page .pvp-vs-and { font-family: 'Poetsen One', sans-serif; font-size: 1.3rem; color: #ff8a97; background: none; box-shadow: none; padding: 0; }
.pvp-page .pvp-racing-hint { margin: 0 0 20px; color: #8b98bd; font-size: 0.9rem; }
.pvp-page .pvp-racing-hint strong { color: #eef2ff; }
.pvp-page .pvp-input-wrap { display: flex; gap: 10px; max-width: 480px; margin: 0 auto 14px; }
.pvp-page .pvp-input { flex: 1; box-sizing: border-box; background: #0d1329; border: 1.5px solid #223055; border-radius: 12px; padding: 13px 18px; color: #eef2ff; font-size: 0.95rem; font-family: 'Fredoka', sans-serif; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.pvp-page .pvp-input::placeholder { color: #5f6c93; opacity: 1; }
.pvp-page .pvp-input:focus { border-color: #ff7d00; box-shadow: 0 0 0 3px rgba(255,125,0,0.16); }
.pvp-page .pvp-submit-btn { border: none; cursor: pointer; padding: 0 26px; background: #e8273b; color: #fff; border-radius: 999px; font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 700; box-shadow: 0 3px 0 #9c1425; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.pvp-page .pvp-submit-btn::before, .pvp-page .pvp-submit-btn::after { content: none; }
.pvp-page .pvp-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #9c1425; }
.pvp-page .pvp-submit-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #9c1425; }
.pvp-page .pvp-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 480px; margin: 0 auto 10px; }
.pvp-page .pvp-sug { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #223055; background: #121a36; cursor: pointer; color: #eef2ff; font-family: 'Fredoka', sans-serif; font-size: 0.85rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; transition: background 0.15s ease, border-color 0.15s ease; }
.pvp-page .pvp-sug:hover { background: #1a2547; border-color: #2c3d6b; }
.pvp-page .pvp-sug.invalid { color: #8b98bd; opacity: 0.7; }
.pvp-sug-check { width: 14px; height: 14px; color: #3de88a; flex-shrink: 0; }
.pvp-page .pvp-racing-timer { margin: 4px 0 0; font-size: 0.84rem; color: #5f6c93; }
.pvp-page .pvp-racing-timer strong { font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; color: #38d9f5; }
.pvp-page .pvp-racing-timer strong.urgent { color: #ff8a97; }
.pvp-page .pvp-input-msg { margin-top: 12px; font-size: 0.86rem; color: #ff8a97; min-height: 1em; }

/* Fin de ronda */
.pvp-page .pvp-screen-round-end { background: #101731; border: 1.5px solid #223055; border-radius: 20px; padding: 40px 30px; text-align: center; animation: pvp-pop 0.5s ease both; }
.pvp-page .pvp-screen-round-end.win { border-color: rgba(61,232,138,0.45); }
.pvp-page .pvp-screen-round-end.lose { border-color: rgba(232,39,59,0.45); }
.pvp-page .pvp-screen-round-end.tie { border-color: #223055; }
.pvp-page .pvp-round-result-icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; margin-bottom: 14px; }
.pvp-page .pvp-round-result-icon svg { width: 30px; height: 30px; }
.pvp-page .pvp-round-result-icon.win { background: #3de88a; color: #10152a; box-shadow: 0 4px 0 #1e9455; }
.pvp-page .pvp-round-result-icon.lose { background: #e8273b; color: #fff; box-shadow: 0 4px 0 #9c1425; }
.pvp-page .pvp-round-result-icon.tie { background: #2c3d6b; color: #eef2ff; box-shadow: 0 4px 0 #1a2547; }
.pvp-page .pvp-screen-round-end h3 { font-family: 'Poetsen One', sans-serif; font-size: 1.6rem; letter-spacing: 0.8px; margin: 0 0 6px; color: #eef2ff; }
.pvp-page .pvp-screen-round-end p { margin: 0 0 4px; color: #8b98bd; font-size: 0.94rem; }
.pvp-page .pvp-screen-round-end p strong { color: #eef2ff; }
.pvp-page .pvp-screen-round-end .pvp-round-next { color: #5f6c93; font-size: 0.84rem; }
.pvp-page .pvp-screen-round-end .pvp-round-next strong { color: #8b98bd; }
.pvp-round-types { margin-top: 6px; }
.pvp-round-types small { color: #5f6c93; font-size: 0.8rem; }
.pvp-round-types strong { color: #8b98bd; }

/* Fin de partida */
.pvp-page .pvp-screen-game-end { background: #101731; border: 1.5px solid #223055; border-radius: 20px; padding: 40px 30px; text-align: center; animation: pvp-pop 0.5s ease both; }
.pvp-page #pvp-game-result-title { display: none; }
.pvp-go-sticker { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #10152a; border-radius: 6px; padding: 4px 14px; transform: rotate(-2deg); margin-bottom: 16px; }
.pvp-go-sticker.win { background: #ffcb05; box-shadow: 0 2px 0 #b8912a; }
.pvp-go-sticker.lose { background: #ff8a97; box-shadow: 0 2px 0 #9c1425; }
.pvp-final-line { margin: 0 0 4px; font-family: 'Poetsen One', sans-serif; font-size: 2.6rem; line-height: 1.1; color: #eef2ff; }
.pvp-page .pvp-elo-delta { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 26px; background: #0d1329; border: 1px solid #1a2547; border-radius: 12px; padding: 10px 20px; font-size: 0.94rem; color: #8b98bd; }
.pvp-page .pvp-elo-delta strong { font-family: 'Poetsen One', sans-serif; color: #eef2ff; }
.pvp-elo-arrow { color: #5f6c93; }
.pvp-page .pvp-elo-new.positive { color: #3de88a; }
.pvp-page .pvp-elo-new.negative { color: #ff8a97; }
.pvp-page .pvp-elo-change { font-weight: 800; font-size: 0.8rem; color: #10152a; border-radius: 6px; padding: 2px 9px; }
.pvp-page .pvp-elo-change.positive { background: #3de88a; box-shadow: 0 2px 0 #1e9455; }
.pvp-page .pvp-elo-change.negative { background: #ff8a97; box-shadow: 0 2px 0 #9c1425; }
.pvp-page .pvp-game-end-actions { display: flex; gap: 12px; justify-content: center; }
.pvp-page .pvp-again-btn { border: none; cursor: pointer; padding: 12px 26px; background: #e8273b; color: #fff; border-radius: 999px; font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 700; box-shadow: 0 3px 0 #9c1425; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.pvp-page .pvp-again-btn::before, .pvp-page .pvp-again-btn::after { content: none; }
.pvp-page .pvp-again-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #9c1425; }
.pvp-page .pvp-again-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #9c1425; }
.pvp-page .pvp-menu-btn { border: 1.5px solid #2c3d6b; background: transparent; cursor: pointer; color: #8b98bd; font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 700; padding: 12px 22px; border-radius: 999px; box-shadow: none; }
.pvp-page .pvp-menu-btn::before, .pvp-page .pvp-menu-btn::after { content: none; }
.pvp-page .pvp-menu-btn:hover { color: #eef2ff; border-color: #38d9f5; }

/* Abandonar */
.pvp-abandon-wrap { text-align: center; margin: 22px 0 0; }
.pvp-page .pvp-abandon-btn { border: none; background: none; cursor: pointer; color: #5f6c93; font-family: 'Fredoka', sans-serif; font-size: 0.82rem; font-weight: 600; text-decoration: underline; }
.pvp-page .pvp-abandon-btn:hover { color: #ff8a97; }

/* Toast */
.pvp-page .pvp-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 500; background: #101731; border: 1.5px solid #223055; border-radius: 12px; padding: 12px 22px; font-size: 0.9rem; font-weight: 600; color: #eef2ff; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.pvp-page .pvp-toast-error { border-color: rgba(232,39,59,0.5); color: #ff8a97; }
.pvp-page .pvp-toast-success { border-color: rgba(61,232,138,0.5); color: #3de88a; }

/* -- Responsive -- */
@media (max-width: 920px) {
    .pvp-page .pvp-lobby-main { flex-basis: 100%; min-width: 0; }
    .pvp-page .pvp-lobby .game-leaderboard { flex-basis: 100%; min-width: 0; }
}
@media (max-width: 620px) {
    .pvp-page .pvp-howto { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
    .pvp-page .pvp-howto::before { display: none; }
    .pvp-page .pvp-rank-card { flex-wrap: wrap; }
    .pvp-page .pvp-search-btn { width: 100%; }
    .pvp-page .pvp-input-wrap { flex-direction: column; }
    .pvp-page .pvp-submit-btn { padding: 13px 26px; }
    .pvp-page .pvp-game-header { gap: 10px; padding: 12px 14px; }
    .pvp-page .pvp-score-num { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pvp-page .pvp-lobby-header, .pvp-page .pvp-rank-card, .pvp-page .pvp-howto,
    .pvp-page .pvp-search-btn, .pvp-page .pvp-ladder-section, .pvp-page .game-leaderboard,
    .pvp-page .pvp-searching-card, .pvp-radar-ring, .pvp-radar-icon, .pvp-score-vs,
    .pvp-page .pvp-countdown, .pvp-page .pvp-screen-type, .pvp-page .pvp-screen-racing,
    .pvp-page .pvp-screen-round-end, .pvp-page .pvp-screen-game-end { animation: none !important; }
}

/* ============================================================
   GUIA PILAR (guia-jcc-pokemon.html) — rediseno editorial.
   Reemplaza el <style> local. Namespace .gd-*.
   Regla: hairlines (#182448) y color en lugar de contenedores.
   ============================================================ */

/* Barra de progreso de lectura */
.gd-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: transparent; pointer-events: none; }
.gd-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #ff7d00, #ffb066); box-shadow: 0 0 8px rgba(255,125,0,0.6); transition: width 0.1s linear; }

/* Hero editorial */
.gd-hero { position: relative; overflow: hidden; border-bottom: 1px solid #182448; background: radial-gradient(760px 340px at 22% -60px, rgba(255,125,0,0.13) 0%, transparent 65%), rgba(13,19,41,0.6); }
.gd-hero-inner { max-width: 1180px; margin: 0 auto; padding: 52px 24px 44px; display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.gd-hero-text { flex: 1; min-width: 340px; animation: pk-rise 0.5s ease both; }
.gd-kicker { margin: 0 0 12px; font-size: 0.72rem; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: #ffb066; }
.gd-hero h1 { font-family: 'Poetsen One', sans-serif; font-size: 3.2rem; line-height: 1.08; letter-spacing: 0.6px; margin: 0 0 16px; text-wrap: balance; color: #eef2ff; }
.gd-lede { margin: 0 0 20px; font-size: 1.1rem; color: #c6cfe8; max-width: 640px; text-wrap: pretty; }
.gd-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gd-meta-item { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 600; color: #8b98bd; }
.gd-meta-item svg { width: 15px; height: 15px; }
.gd-meta-dot { color: #2c3d6b; }
.gd-hero-cards { flex-shrink: 0; display: flex; gap: 14px; align-items: flex-end; animation: pk-rise 0.5s ease 0.12s both; }
.gd-hero-cards img { width: 128px; border-radius: 7px; filter: drop-shadow(0 16px 32px rgba(0,0,0,0.65)); }
.gd-hero-cards img:first-child { transform: rotate(-7deg); }
.gd-hero-cards img:last-child { transform: rotate(6deg); }

/* Layout 2 columnas (flex wrap) */
.gd-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 70px; display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }

/* Indice lateral */
.gd-toc { position: sticky; top: 92px; flex: 0 1 240px; min-width: 200px; padding: 28px 0 0; }
.gd-toc-kicker { margin: 0 0 12px; font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #5f6c93; }
.gd-toc-list { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 190px); overflow-y: auto; scrollbar-width: thin; }
.gd-toc-list li { margin: 0; }
.gd-toc-link { display: flex; gap: 10px; padding: 6px 12px 6px 10px; border-left: 2px solid #223055; color: #8b98bd; font-size: 0.84rem; font-weight: 500; line-height: 1.35; text-decoration: none; transition: color 0.15s ease, border-color 0.15s ease; }
.gd-toc-link:hover { color: #eef2ff; border-left-color: #ff7d00; }
.gd-toc-link.active { color: #ffb066; font-weight: 700; border-left-color: #ff7d00; }
.gd-toc-n { color: #5f6c93; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.gd-toc-link.active .gd-toc-n { color: #ffb066; }

/* Cuerpo del articulo */
.gd-article { flex: 999 1 620px; min-width: 0; max-width: 780px; padding-top: 34px; font-size: 1.03rem; line-height: 1.78; color: #c6cfe8; }
.gd-ch { scroll-margin-top: 92px; }
.gd-ch-num { margin: 0 0 2px; font-family: 'Poetsen One', sans-serif; font-size: 0.9rem; letter-spacing: 1.6px; color: #ff7d00; }
.gd-article h2 { font-family: 'Poetsen One', sans-serif; font-size: 2rem; letter-spacing: 0.5px; line-height: 1.2; margin: 0 0 16px; color: #eef2ff; }
.gd-h3 { font-family: 'Poetsen One', sans-serif; font-size: 1.15rem; letter-spacing: 0.3px; margin: 26px 0 10px; color: #ffb066; }
.gd-article p { margin: 0 0 16px; }
.gd-article strong { color: #ffb066; font-weight: 600; }
.gd-article em { color: #eef2ff; font-style: italic; }
.gd-article a { color: #38d9f5; text-decoration: none; }
.gd-article a:hover { color: #7de9fb; }
.gd-sep { border: none; height: 1px; background: linear-gradient(90deg, #223055 0%, transparent 100%); margin: 40px 0; }

/* Listas sobre hairlines, con numero */
.gd-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; counter-reset: gdl; }
.gd-list li { counter-increment: gdl; position: relative; padding: 11px 0 11px 34px; border-top: 1px solid #182448; font-size: 0.95rem; line-height: 1.6; }
.gd-list li::before { content: counter(gdl, decimal-leading-zero); position: absolute; left: 0; top: 11px; font-family: 'Poetsen One', sans-serif; font-size: 0.8rem; color: #5f6c93; line-height: 1.7; }
.gd-list li strong { color: #eef2ff; font-weight: 600; }
.gd-list li a { color: #38d9f5; }

/* Tabla de eras */
.gd-era-table { border: 1.5px solid #223055; border-radius: 14px; overflow: hidden; overflow-x: auto; margin: 0 0 22px; }
.gd-era-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.gd-era-table thead tr { background: #0d1329; }
.gd-era-table th { text-align: left; padding: 11px 16px; font-family: 'Poetsen One', sans-serif; font-size: 0.8rem; letter-spacing: 1.2px; text-transform: uppercase; color: #ffb066; font-weight: 400; }
.gd-era-table tbody tr:nth-child(even) { background: rgba(13,19,41,0.5); }
.gd-era-table td { padding: 11px 16px; border-top: 1px solid #182448; color: #8b98bd; }
.gd-era-table td:first-child { font-weight: 700; color: #eef2ff; }
.gd-era-table td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-era-cell { display: flex; align-items: center; gap: 11px; }
.gd-era-logo { flex-shrink: 0; width: 60px; height: 28px; display: grid; place-items: center; }
.gd-era-logo img { max-height: 26px; max-width: 60px; object-fit: contain; display: block; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6)); }
.gd-era-name { min-width: 0; }

/* Avisos / blockquotes: barra vertical solida, sin caja tintada */
.gd-note { position: relative; margin: 0 0 22px; padding: 18px 22px 18px 26px; background: #101731; border: 1.5px solid #223055; border-radius: 14px; overflow: hidden; }
.gd-note-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #ff7d00; }
.gd-note p { margin: 0; }
.gd-note p + p { margin-top: 6px; }
.gd-note-title { display: flex; align-items: center; gap: 9px; font-family: 'Poetsen One', sans-serif; font-size: 0.9rem; letter-spacing: 1.2px; text-transform: uppercase; color: #ffb066; }
.gd-note-ico { width: 17px; height: 17px; flex-shrink: 0; }

/* Escala de condicion */
.gd-scale { position: relative; padding-left: 30px; margin: 0 0 26px; }
.gd-scale-rail { position: absolute; left: 5px; top: 12px; bottom: 12px; width: 4px; border-radius: 999px; }
.gd-grade { position: relative; display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid #182448; }
.gd-grade-dot { position: absolute; left: -29px; top: 21px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #0a0f1e; }
.gd-grade-code { flex-shrink: 0; width: 46px; font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; line-height: 1.3; }
.gd-grade-body { flex: 1; min-width: 0; font-size: 0.95rem; line-height: 1.6; }
.gd-grade-body strong { color: #eef2ff; font-weight: 600; }

/* CTA de registro (SI es un panel intencionado) */
.gd-cta { position: relative; overflow: hidden; margin: 0 0 8px; background: linear-gradient(135deg, #141c38 0%, #101731 100%); border: 1.5px solid rgba(255,125,0,0.4); border-radius: 18px; padding: 30px 32px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.gd-cta-ring { position: absolute; top: -46px; right: -46px; width: 190px; height: 190px; border-radius: 50%; border: 26px solid rgba(255,125,0,0.06); pointer-events: none; }
.gd-cta-body { flex: 1; min-width: 260px; }
.gd-cta-body h3 { font-family: 'Poetsen One', sans-serif; font-size: 1.4rem; letter-spacing: 0.5px; margin: 0 0 6px; color: #eef2ff; }
.gd-cta-body p { margin: 0; font-size: 0.94rem; color: #8b98bd; }
.gd-cta-btn { flex-shrink: 0; padding: 13px 30px; background: #ff7d00; color: #10152a; border-radius: 999px; font-size: 0.95rem; font-weight: 700; box-shadow: 0 3px 0 #c25f00; transition: transform 0.15s ease, box-shadow 0.15s ease; text-decoration: none; }
.gd-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #c25f00; color: #10152a; }
.gd-cta-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #c25f00; }

/* FAQ acordeon sin cajas */
.gd-faq { display: flex; flex-direction: column; }
.gd-faq-item { border-top: 1px solid #182448; }
.gd-faq-q { width: 100%; text-align: left; display: flex; align-items: baseline; gap: 16px; background: transparent; border: none; cursor: pointer; font-family: 'Fredoka', sans-serif; padding: 17px 4px 17px 0; color: #eef2ff; font-size: 1.04rem; font-weight: 600; line-height: 1.45; transition: color 0.15s ease; }
.gd-faq-q:hover { color: #ffb066; }
.gd-faq-item.open .gd-faq-q { color: #ffb066; }
.gd-faq-sign { flex-shrink: 0; width: 22px; text-align: center; font-family: 'Poetsen One', sans-serif; font-size: 1.25rem; line-height: 1; color: #5f6c93; }
.gd-faq-item.open .gd-faq-sign { color: #ff7d00; }
.gd-faq-a { display: none; }
.gd-faq-item.open .gd-faq-a { display: block; }
.gd-faq-a p { margin: 0; padding: 0 0 20px 38px; font-size: 0.94rem; color: #8b98bd; line-height: 1.75; max-width: 62ch; }

/* Pie */
.gd-page .site-footer { border-top: 1px solid #182448; }

/* Responsive: indice arriba por debajo de 1180px */
@media (max-width: 1180px) {
    .gd-toc { position: static; flex-basis: 100%; padding: 8px 0 0; }
    .gd-toc-list { max-height: none; display: flex; flex-wrap: wrap; gap: 2px 6px; }
    .gd-toc-link { border-left: none; border-top: 2px solid #223055; padding: 8px 10px 6px; }
    .gd-article { flex-basis: 100%; padding-top: 22px; }
}
@media (max-width: 640px) {
    .gd-hero-inner { padding: 34px 16px 30px; gap: 24px; }
    .gd-hero h1 { font-size: 2.2rem; }
    .gd-hero-cards img { width: 92px; }
    .gd-wrap { padding: 0 16px 50px; gap: 0; }
    .gd-list { grid-template-columns: 1fr; }
    .gd-article h2 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gd-hero-text, .gd-hero-cards { animation: none !important; }
    .gd-progress-fill, .gd-cta-btn, .gd-toc-link { transition: none !important; }
}

/* ============================================================
   GLOSARIO — indice A-Z (.gl-page) y ficha de termino (.gt-page).
   Reemplaza los <style> locales. Hairlines y color, sin cajas.
   Acento del glosario: morado #b06cff.
   ============================================================ */

body.gl-page::after, body.gt-page::after { background: radial-gradient(620px 400px at 92% -60px, rgba(176,108,255,0.08) 0%, transparent 70%), radial-gradient(800px 520px at -90px 40%, rgba(59,130,246,0.06) 0%, transparent 70%) !important; }

/* ---- A) INDICE A-Z ---- */
.gl-hero { border-bottom: 1px solid #182448; }
.gl-hero-inner { max-width: 1180px; margin: 0 auto; padding: 40px 24px 34px; animation: pk-rise 0.5s ease both; }
.gl-kicker { margin: 0 0 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: #b06cff; }
.gl-hero h1 { font-family: 'Poetsen One', sans-serif; font-size: 2.9rem; line-height: 1.1; letter-spacing: 0.6px; margin: 0 0 14px; color: #eef2ff; }
.gl-lede { margin: 0 0 24px; max-width: 640px; font-size: 1.05rem; color: #c6cfe8; text-wrap: pretty; }
.gl-lede a { color: #38d9f5; }
.gl-lede a:hover { color: #7de9fb; }
.gl-search-wrap { position: relative; max-width: 560px; }
.gl-search-wrap svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; pointer-events: none; }
.gl-search { width: 100%; box-sizing: border-box; background: transparent; border: none; border-bottom: 2px solid #223055; border-radius: 0; padding: 12px 0 12px 32px; color: #eef2ff; font-size: 1.15rem; font-family: 'Fredoka', sans-serif; font-weight: 500; outline: none; min-height: 44px; transition: border-color 0.2s ease; }
.gl-search::placeholder { color: #5f6c93; opacity: 1; }
.gl-search:focus { border-bottom-color: #ff7d00; }
.gl-status { margin: 10px 0 0; font-size: 0.84rem; color: #5f6c93; }

.gl-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 70px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.gl-rail { position: sticky; top: 92px; flex: 0 1 132px; min-width: 118px; padding: 30px 0 0; }
.gl-rail-kicker { margin: 0 0 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #5f6c93; }
.gl-rail-grid { display: flex; flex-wrap: wrap; gap: 3px; }
.gl-rail-grid a, .gl-rail-grid span { width: 26px; height: 26px; display: grid; place-items: center; font-family: 'Poetsen One', sans-serif; font-size: 0.85rem; border-radius: 6px; }
.gl-rail-grid a { color: #c6cfe8; transition: color 0.15s ease, background 0.15s ease; }
.gl-rail-grid a:hover { color: #ffb066; background: #1a2547; }
.gl-rail-grid span { color: #2c3d6b; }

.gl-terms { flex: 999 1 620px; min-width: 0; max-width: 800px; padding-top: 30px; }
.gl-page .glos-letter-group { margin-bottom: 34px; scroll-margin-top: 92px; }
.gl-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.gl-page .glos-letter-group h2 { font-family: 'Poetsen One', sans-serif; font-size: 2.4rem; line-height: 1; letter-spacing: 1px; margin: 0; color: #b06cff; border: none; padding: 0; }
.gl-group-line { flex: 1; height: 1px; background: linear-gradient(90deg, #223055 0%, transparent 100%); }
.gl-group-count { font-size: 0.76rem; font-weight: 700; color: #5f6c93; white-space: nowrap; }
.gl-page dl { margin: 0; }
.gl-page .glos-term { margin: 0; padding: 15px 0; background: none; border: none; border-top: 1px solid #182448; border-radius: 0; }
.gl-page .glos-term dt { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; font-family: 'Poetsen One', sans-serif; font-size: 1.15rem; letter-spacing: 0.3px; color: #ffb066; font-weight: 400; }
.gl-page .glos-term dd { margin: 0; font-size: 0.96rem; line-height: 1.68; color: #c6cfe8; max-width: 68ch; }
.gl-page .glos-term dd em { color: #eef2ff; font-style: italic; }
.gl-page .glos-more { display: inline-flex; align-items: center; gap: 5px; font-family: 'Fredoka', sans-serif; font-size: 0.78rem; font-weight: 700; color: #38d9f5; background: none; border: none; padding: 0; border-radius: 0; letter-spacing: 0; text-transform: none; }
.gl-page .glos-more:hover { color: #7de9fb; background: none; }
.gl-page .glos-more svg { width: 11px; height: 11px; }
.gl-page .glos-term.is-hidden { display: none; }

.gl-page .glos-empty { display: none; padding: 46px 0; text-align: center; background: none; border: none; border-radius: 0; margin: 0; color: #8b98bd; }
.gl-page .glos-empty.is-visible { display: block; }
.gl-empty-ico { width: 42px; height: 42px; margin-bottom: 12px; }
.gl-empty-title { margin: 0 0 4px; font-family: 'Poetsen One', sans-serif; font-size: 1.2rem; color: #eef2ff; }
.gl-empty-sub { margin: 0; font-size: 0.92rem; color: #8b98bd; }

.gl-cta { position: relative; overflow: hidden; margin-top: 30px; background: linear-gradient(135deg, #141c38 0%, #101731 100%); border: 1.5px solid rgba(255,125,0,0.4); border-radius: 18px; padding: 28px 32px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.gl-cta-ring { position: absolute; top: -46px; right: -46px; width: 190px; height: 190px; border-radius: 50%; border: 26px solid rgba(255,125,0,0.06); pointer-events: none; }
.gl-cta-body { flex: 1; min-width: 240px; }
.gl-cta-body h3 { font-family: 'Poetsen One', sans-serif; font-size: 1.35rem; letter-spacing: 0.4px; margin: 0 0 6px; color: #eef2ff; }
.gl-cta-body p { margin: 0; font-size: 0.94rem; color: #8b98bd; }
.gl-cta-btn { flex-shrink: 0; padding: 13px 30px; background: #ff7d00; color: #10152a; border-radius: 999px; font-size: 0.95rem; font-weight: 700; box-shadow: 0 3px 0 #c25f00; transition: transform 0.15s ease, box-shadow 0.15s ease; text-decoration: none; }
.gl-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #c25f00; color: #10152a; }
.gl-cta-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #c25f00; }

@media (max-width: 1180px) {
    .gl-rail { position: static; flex-basis: 100%; padding-top: 6px; }
    .gl-terms { flex-basis: 100%; padding-top: 18px; }
}
@media (max-width: 640px) {
    .gl-hero-inner { padding: 30px 16px 26px; }
    .gl-hero h1 { font-size: 2.1rem; }
    .gl-wrap { padding: 0 16px 50px; gap: 20px; }
    .gl-cta { padding: 22px; }
}

/* ---- B) FICHA DE TERMINO ---- */
.gt-crumb { border-bottom: 1px solid #182448; background: rgba(13,19,41,0.5); }
.gt-crumb-inner { max-width: 1180px; margin: 0 auto; padding: 11px 24px; display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.gt-crumb-back { display: inline-flex; align-items: center; gap: 7px; color: #8b98bd; font-weight: 600; text-decoration: none; }
.gt-crumb-back:hover { color: #ffb066; }
.gt-crumb-back svg { width: 14px; height: 14px; }
.gt-crumb-sep { color: #2c3d6b; }
.gt-crumb-here { color: #5f6c93; font-weight: 600; }

.gt-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 70px; display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.gt-page .term-wrap { flex: 999 1 600px; min-width: 0; max-width: 760px; margin: 0; padding: 36px 0 0; font-size: 1.03rem; line-height: 1.78; color: #c6cfe8; }
.gt-head { margin-bottom: 30px; animation: pk-rise 0.5s ease both; }
.gt-head-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.gt-sticker { flex-shrink: 0; font-family: 'Poetsen One', sans-serif; font-size: 1.5rem; color: #10152a; background: #ffcb05; border-radius: 10px; padding: 8px 18px; box-shadow: 0 3px 0 #b8912a; transform: rotate(-2deg); }
.gt-kicker { font-size: 0.76rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #b06cff; }
.gt-page .term-hero { padding: 0; border: none; margin: 0; }
.gt-page .term-hero h1, .gt-page .gt-head h1 { font-family: 'Poetsen One', sans-serif; font-size: 2.4rem; line-height: 1.15; letter-spacing: 0.4px; margin: 0 0 14px; text-wrap: balance; color: #eef2ff; }
.gt-page .term-hero .lede, .gt-page .gt-head .lede { margin: 0; font-size: 1.1rem; color: #c6cfe8; max-width: 62ch; }

.gt-page .term-wrap h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.6rem; letter-spacing: 0.4px; margin: 34px 0 14px; color: #eef2ff; }
.gt-page .term-wrap p { margin: 0 0 18px; }
.gt-page .term-wrap strong { color: #ffb066; font-weight: 600; }
.gt-page .term-wrap em { color: #eef2ff; font-style: italic; }
.gt-page .term-wrap a { color: #38d9f5; text-decoration: none; border: none; }
.gt-page .term-wrap a:hover { color: #7de9fb; }
.gt-page .term-wrap ul, .gt-page .term-wrap ol { list-style: none; margin: 0 0 22px; padding: 0; }
.gt-page .term-wrap li { padding: 12px 0; border-top: 1px solid #182448; font-size: 0.97rem; line-height: 1.65; }
.gt-page .term-wrap li strong { color: #eef2ff; }

/* FAQ (details reestilizado) */
.gt-page .term-faq { margin: 8px 0 34px; }
.gt-page .term-faq details { margin: 0; padding: 0; background: none; border: none; border-top: 1px solid #182448; border-radius: 0; }
.gt-page .term-faq summary { display: flex; align-items: baseline; gap: 16px; list-style: none; cursor: pointer; padding: 17px 4px 17px 0; color: #eef2ff; font-size: 1.02rem; font-weight: 600; line-height: 1.45; position: static; transition: color 0.15s ease; }
.gt-page .term-faq summary::-webkit-details-marker { display: none; }
.gt-page .term-faq summary:hover { color: #ffb066; }
.gt-page .term-faq summary::before { content: '+'; flex-shrink: 0; width: 22px; text-align: center; font-family: 'Poetsen One', sans-serif; font-size: 1.25rem; line-height: 1; color: #5f6c93; position: static; }
.gt-page .term-faq details[open] summary { color: #ffb066; }
.gt-page .term-faq details[open] summary::before { content: '−'; color: #ff7d00; }
.gt-page .term-faq details p { margin: 0; padding: 0 0 20px 38px; font-size: 0.94rem; color: #8b98bd; line-height: 1.75; max-width: 62ch; }

/* "Sigue tirando del hilo" (rutas sobre hairlines) */
.gt-page .term-related { margin: 0; padding: 0; background: none; border: none; border-radius: 0; }
.gt-page .term-related h3 { font-family: 'Poetsen One', sans-serif; font-size: 1.6rem; letter-spacing: 0.4px; margin: 0 0 6px; color: #eef2ff; }
.gt-route { display: flex; align-items: center; gap: 18px; padding: 18px 6px; border-top: 1px solid #182448; color: inherit; text-decoration: none; transition: padding 0.2s ease; }
.gt-route:hover { padding-left: 14px; color: inherit; }
.gt-route-num { flex-shrink: 0; width: 30px; font-family: 'Poetsen One', sans-serif; font-size: 1.4rem; line-height: 1; }
.gt-route-body { flex: 1; min-width: 0; }
.gt-route-title { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.14rem; letter-spacing: 0.3px; color: #eef2ff; line-height: 1.25; }
.gt-route-desc { display: block; margin-top: 2px; font-size: 0.86rem; color: #8b98bd; }
.gt-route svg { flex-shrink: 0; width: 19px; height: 19px; }

/* Aside "Terminos cercanos" */
.gt-aside { position: sticky; top: 92px; flex: 0 1 230px; min-width: 200px; padding: 40px 0 0; }
.gt-aside-kicker { margin: 0 0 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #5f6c93; }
.gt-near-link { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid #182448; font-size: 0.88rem; font-weight: 600; color: #c6cfe8; text-decoration: none; transition: color 0.15s ease; }
.gt-near-link:hover { color: #ffb066; }
.gt-near-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; }

@media (max-width: 1180px) {
    .gt-aside { position: static; flex-basis: 100%; padding-top: 6px; }
    .gt-page .term-wrap { flex-basis: 100%; }
}
@media (max-width: 640px) {
    .gt-crumb-inner { padding: 11px 16px; }
    .gt-wrap { padding: 0 16px 50px; gap: 24px; }
    .gt-page .term-wrap { padding-top: 24px; }
    .gt-page .term-hero h1, .gt-page .gt-head h1 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gl-hero-inner, .gt-head { animation: none !important; }
    .gl-search, .gl-cta-btn, .gt-route, .gl-rail-grid a { transition: none !important; }
}

/* Tabla de ficha de glosario (tarifas / comparativas) */
.gt-table { border: 1.5px solid #223055; border-radius: 14px; overflow: hidden; overflow-x: auto; margin: 0 0 26px; }
.gt-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.gt-table thead tr { background: #0d1329; }
.gt-table th { padding: 11px 16px; font-family: 'Poetsen One', sans-serif; font-size: 0.78rem; letter-spacing: 1.2px; text-transform: uppercase; color: #ffb066; font-weight: 400; text-align: left; }
.gt-table tbody tr:nth-child(even) { background: rgba(13,19,41,0.5); }
.gt-table td { padding: 11px 16px; border-top: 1px solid #182448; color: #8b98bd; }
.gt-table td:first-child { font-weight: 700; color: #eef2ff; }
.gt-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.gt-table th.gt-num, .gt-table td.gt-num { text-align: right; }
.gt-table td.gt-num { font-family: 'Poetsen One', sans-serif; color: #ffb066; font-variant-numeric: tabular-nums; }

/* Escala de grados en ficha de glosario (rail vertical, calca el prototipo) */
.gt-scale { position: relative; padding-left: 30px; margin: 0 0 26px; }
.gt-scale-rail { position: absolute; left: 5px; top: 12px; bottom: 12px; width: 4px; border-radius: 999px; }
.gt-grade { position: relative; display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid #182448; }
.gt-grade-dot { position: absolute; left: -29px; top: 21px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #0a0f1e; }
.gt-grade-code { flex-shrink: 0; width: 62px; font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; line-height: 1.3; }
.gt-grade-body { flex: 1; min-width: 0; font-size: 0.95rem; line-height: 1.6; }
.gt-page .gt-grade-body strong { color: #eef2ff; font-weight: 600; }

/* ============================================================
   PAGINAS BASICAS — 404 (.nf-), contrasena (.pw-), legales (.lx-)
   ============================================================ */

@keyframes nf-fan-left  { 0%, 100% { transform: rotate(-15deg) translateY(0); } 50% { transform: rotate(-15deg) translateY(-11px); } }
@keyframes nf-fan-right { 0%, 100% { transform: rotate(13deg) translateY(0); } 50% { transform: rotate(13deg) translateY(-11px); } }
@keyframes nf-float     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pw-pop       { 0% { opacity: 0; transform: scale(0.7); } 60% { opacity: 1; transform: scale(1.07); } 100% { opacity: 1; transform: scale(1); } }

body.nf-page::after { background: radial-gradient(620px 400px at 50% -80px, rgba(255,125,0,0.09) 0%, transparent 70%), radial-gradient(800px 520px at -90px 60%, rgba(59,130,246,0.06) 0%, transparent 70%) !important; }
body.pw-page::after { background: radial-gradient(620px 400px at 50% -80px, rgba(255,125,0,0.08) 0%, transparent 70%), radial-gradient(800px 520px at -90px 60%, rgba(59,130,246,0.06) 0%, transparent 70%) !important; }

/* ---- 404 ---- */
.nf-main { max-width: 1000px; margin: 0 auto; padding: 60px 24px 80px; display: flex; gap: 56px; align-items: center; flex-wrap: wrap; justify-content: center; }
.nf-fan { position: relative; flex-shrink: 0; width: 272px; height: 320px; animation: pk-rise 0.5s ease both; }
.nf-spark { position: absolute; }
.nf-spark-1 { top: -6px; right: 6px; color: #ffb066; font-size: 1.05rem; animation: pk-sparkle 3.6s ease-in-out infinite; }
.nf-spark-2 { bottom: 34px; left: -14px; color: #38d9f5; font-size: 0.85rem; animation: pk-sparkle 3.1s ease-in-out 1.3s infinite; }
.nf-card { position: absolute; border-radius: 8px; }
.nf-card-l { left: 0; bottom: 26px; width: 150px; filter: drop-shadow(0 16px 32px rgba(0,0,0,0.6)) brightness(0.82); animation: nf-fan-left 7.5s ease-in-out infinite; }
.nf-card-r { right: 0; bottom: 34px; width: 150px; filter: drop-shadow(0 16px 32px rgba(0,0,0,0.6)) brightness(0.82); animation: nf-fan-right 7.5s ease-in-out 0.6s infinite; }
.nf-card-c { left: 50%; bottom: 0; width: 168px; margin-left: -84px; filter: drop-shadow(0 22px 40px rgba(0,0,0,0.7)); animation: nf-float 6.5s ease-in-out infinite; }
.nf-text { flex: 1; min-width: 320px; max-width: 520px; }
.nf-num { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; animation: pk-rise 0.5s ease both; }
.nf-num-big { font-family: 'Poetsen One', sans-serif; font-size: 3.6rem; line-height: 1; letter-spacing: 1px; color: #ff7d00; }
.nf-num-sm { font-family: 'Poetsen One', sans-serif; font-size: 1.4rem; color: #5f6c93; }
.nf-kicker { margin: 0 0 14px; font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #5f6c93; animation: pk-rise 0.5s ease 0.04s both; }
.nf-h1 { font-family: 'Poetsen One', sans-serif; font-size: 2.5rem; line-height: 1.12; letter-spacing: 0.5px; margin: 0 0 12px; text-wrap: balance; color: #eef2ff; animation: pk-rise 0.5s ease 0.08s both; }
.nf-lede { margin: 0 0 26px; font-size: 1.05rem; color: #c6cfe8; text-wrap: pretty; animation: pk-rise 0.5s ease 0.14s both; }
.nf-search-wrap { position: relative; margin: 0 0 30px; animation: pk-rise 0.5s ease 0.2s both; }
.nf-search-wrap svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; pointer-events: none; }
.nf-search { width: 100%; box-sizing: border-box; background: transparent; border: none; border-bottom: 2px solid #223055; border-radius: 0; padding: 11px 0 11px 32px; color: #eef2ff; font-size: 1.08rem; font-family: 'Fredoka', sans-serif; font-weight: 500; outline: none; min-height: 44px; transition: border-color 0.2s ease; }
.nf-search::placeholder { color: #5f6c93; opacity: 1; }
.nf-search:focus { border-bottom-color: #ff7d00; }
.nf-routes { display: flex; flex-direction: column; animation: pk-rise 0.5s ease 0.26s both; }
.nf-route { display: flex; align-items: center; gap: 16px; padding: 15px 6px; border-top: 1px solid #182448; color: inherit; text-decoration: none; transition: padding 0.2s ease; }
.nf-route:hover { padding-left: 14px; color: inherit; }
.nf-route-num { flex-shrink: 0; width: 26px; font-family: 'Poetsen One', sans-serif; font-size: 1.25rem; line-height: 1; }
.nf-route-body { flex: 1; min-width: 0; }
.nf-route-title { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.08rem; letter-spacing: 0.3px; color: #eef2ff; line-height: 1.3; }
.nf-route-desc { display: block; margin-top: 1px; font-size: 0.85rem; color: #8b98bd; }
.nf-route svg { flex-shrink: 0; width: 18px; height: 18px; }
.nf-contact { margin: 26px 0 0; font-size: 0.86rem; color: #5f6c93; animation: pk-rise 0.5s ease 0.32s both; }
.nf-contact a { color: #38d9f5; }
.nf-contact a:hover { color: #7de9fb; }
@media (max-width: 640px) {
    .nf-main { padding: 40px 16px 60px; gap: 32px; }
    .nf-fan { transform: scale(0.85); }
    .nf-h1 { font-size: 2rem; }
}

/* ---- CONTRASENA (forgot / reset) ---- */
.pw-page-main { max-width: 900px; margin: 0 auto; padding: 44px 24px 80px; }
.pw-col { max-width: 460px; margin: 0 auto; }
.pw-view { animation: pk-rise 0.5s ease both; }
.pw-logo { display: block; margin-bottom: 16px; width: 46px; height: 46px; animation: pk-ball-bob 4.5s ease-in-out infinite; }
.pw-h1 { font-family: 'Poetsen One', sans-serif; font-size: 2.05rem; line-height: 1.15; letter-spacing: 0.4px; margin: 0 0 10px; color: #eef2ff; }
.pw-lede { margin: 0 0 30px; font-size: 1rem; color: #c6cfe8; }
.pw-lede .pw-email { color: #ffb066; font-weight: 600; }
.pw-sub { margin: 0 0 28px; font-size: 0.9rem; color: #8b98bd; }
.pw-page .auth-form { display: flex; flex-direction: column; gap: 20px; padding: 0; }
.pw-page .form-field { display: block; margin: 0; }
.pw-page .form-label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.4px; color: #8b98bd; margin-bottom: 7px; }
.pw-page .form-field input { width: 100%; box-sizing: border-box; background: transparent; border: none; border-bottom: 2px solid #223055; border-radius: 0; padding: 10px 0; color: #eef2ff; font-size: 1.08rem; font-family: 'Fredoka', sans-serif; outline: none; min-height: 44px; transition: border-color 0.2s ease; }
.pw-page .form-field input::placeholder { color: #5f6c93; opacity: 1; }
.pw-page .form-field input:focus { border-bottom-color: #ff7d00; }
.pw-captcha { min-height: 66px; display: flex; align-items: center; border-top: 1px solid #182448; border-bottom: 1px solid #182448; padding: 12px 0; }
.pw-btn { border: none; cursor: pointer; padding: 14px 0; background: #ff7d00; color: #10152a; border-radius: 999px; font-family: 'Fredoka', sans-serif; font-size: 0.98rem; font-weight: 700; letter-spacing: 0.3px; box-shadow: 0 3px 0 #c25f00; transition: transform 0.15s ease, box-shadow 0.15s ease; width: 100%; }
.pw-btn::before, .pw-btn::after { content: none; }
.pw-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #c25f00; }
.pw-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #c25f00; }
.pw-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: 0 3px 0 #c25f00; }
.pw-btn-inline { width: auto; padding: 12px 26px; }
.pw-btn-ghost { border: 1.5px solid #2c3d6b; background: transparent; cursor: pointer; color: #8b98bd; font-family: 'Fredoka', sans-serif; font-size: 0.9rem; font-weight: 700; padding: 12px 24px; border-radius: 999px; transition: color 0.15s ease, border-color 0.15s ease; }
.pw-btn-ghost:hover { color: #eef2ff; border-color: #38d9f5; }
.pw-foot { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #182448; font-size: 0.9rem; color: #8b98bd; }
.pw-page .auth-link { color: #38d9f5; font-weight: 600; text-decoration: none; }
.pw-page .auth-link:hover { color: #7de9fb; }
.pw-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pw-sent-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #3de88a; color: #10152a; margin-bottom: 18px; box-shadow: 0 4px 0 #1e9455; animation: pw-pop 0.45s ease both; }
.pw-sent-ico svg { width: 27px; height: 27px; }
/* strength meter */
.pw-strength { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pw-strength-bars { flex: 1; display: flex; gap: 5px; }
.pw-str-bar { flex: 1; height: 4px; border-radius: 999px; background: #1a2547; transition: background 0.25s ease; }
.pw-str-label { flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: #5f6c93; }
/* match validation */
.pw-match { display: block; margin-top: 9px; font-size: 0.82rem; font-weight: 600; min-height: 1em; }
.pw-match.bad { color: #ff8a97; }
.pw-match.ok { display: flex; align-items: center; gap: 7px; color: #3de88a; }
.pw-match svg { width: 13px; height: 13px; }
/* auth messages */
.pw-page .auth-msg:empty { display: none; }
.pw-page .auth-msg { margin-top: 16px; padding: 11px 15px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; border: 1px solid transparent; }
.pw-page .auth-msg.msg-error { background: rgba(232,39,59,0.10); color: #ff8a97; border-color: rgba(232,39,59,0.4); }
.pw-page .auth-msg.msg-success { background: rgba(61,232,138,0.10); color: #3de88a; border-color: rgba(61,232,138,0.4); }
.pw-page .auth-msg.msg-info { background: rgba(59,130,246,0.12); color: #8fb7ff; }
@media (max-width: 640px) {
    .pw-page-main { padding: 32px 16px 60px; }
    .pw-h1 { font-size: 1.8rem; }
}

/* ---- LEGALES (privacidad / aviso-legal) ---- */
.lx-main { max-width: 1000px; margin: 0 auto; padding: 34px 24px 80px; display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.lx-article { flex: 999 1 560px; min-width: 0; max-width: 700px; font-size: 1.02rem; line-height: 1.78; color: #c6cfe8; }
.lx-head { margin-bottom: 30px; animation: pk-rise 0.5s ease both; }
.lx-kicker { margin: 0 0 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: #8b98bd; }
.lx-head h1 { font-family: 'Poetsen One', sans-serif; font-size: 2.4rem; line-height: 1.15; letter-spacing: 0.4px; margin: 0 0 14px; text-wrap: balance; color: #eef2ff; }
.lx-draft { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 0.86rem; color: #ffb066; font-weight: 600; }
.lx-draft svg { width: 15px; height: 15px; flex-shrink: 0; }
.lx-intro { margin: 0 0 24px; }
.lx-points { display: flex; flex-direction: column; }
.lx-point { display: flex; gap: 16px; align-items: baseline; padding: 17px 0; border-top: 1px solid #182448; }
.lx-point-n { flex-shrink: 0; width: 26px; font-family: 'Poetsen One', sans-serif; font-size: 0.85rem; color: #5f6c93; line-height: 1.9; }
.lx-point-body { flex: 1; min-width: 0; }
.lx-point-title { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; letter-spacing: 0.3px; color: #eef2ff; line-height: 1.4; margin-bottom: 2px; }
.lx-point-desc { display: block; font-size: 0.96rem; line-height: 1.7; max-width: 64ch; }
.lx-article a { color: #38d9f5; text-decoration: none; }
.lx-article a:hover { color: #7de9fb; }
.lx-rgpd { margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid #182448; }
.lx-rgpd-title { display: flex; align-items: center; gap: 11px; margin: 0 0 8px; font-family: 'Poetsen One', sans-serif; font-size: 1.15rem; letter-spacing: 0.4px; color: #38d9f5; }
.lx-rgpd-title svg { width: 19px; height: 19px; flex-shrink: 0; }
.lx-rgpd p { margin: 0; max-width: 64ch; }
.lx-rgpd em { color: #8b98bd; font-style: italic; }
.lx-cross { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid #182448; font-size: 0.9rem; color: #8b98bd; }
.lx-aside { position: sticky; top: 92px; flex: 0 1 210px; min-width: 190px; padding: 6px 0 0; }
.lx-aside-kicker { margin: 0 0 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #5f6c93; }
.lx-doc { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid #182448; font-size: 0.88rem; font-weight: 600; color: #c6cfe8; text-decoration: none; transition: color 0.15s ease; }
.lx-doc:hover { color: #ffb066; }
.lx-doc.is-current { color: #ffb066; }
.lx-doc-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #2c3d6b; }
.lx-doc.is-current .lx-doc-dot { background: #ff7d00; }
.lx-updated { margin: 18px 0 0; font-size: 0.8rem; color: #5f6c93; line-height: 1.6; }
.lx-updated span { color: #8b98bd; }
@media (max-width: 640px) {
    .lx-main { padding: 24px 16px 60px; gap: 28px; }
    .lx-head h1 { font-size: 1.9rem; }
    .lx-aside { position: static; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .nf-fan, .nf-spark, .nf-card, .nf-num, .nf-kicker, .nf-h1, .nf-lede, .nf-search-wrap, .nf-routes, .nf-contact,
    .pw-view, .pw-logo, .pw-sent-ico, .pw-str-bar, .lx-head { animation: none !important; }
    .nf-search, .nf-route, .pw-btn, .pw-btn-ghost, .lx-doc { transition: none !important; }
}
.lx-article strong { color: #ffb066; font-weight: 600; }
.lx-article em { color: #8b98bd; font-style: italic; }

/* ============================================================
   TOP 10 RANKINGS (.tx-page) — reutiliza .gd-* (wrap/toc/article/
   cta/faq/route/sep) + guia.js; añade lo específico del ranking.
   ============================================================ */

body.tx-page::after { background: radial-gradient(680px 420px at 78% -70px, rgba(255,203,5,0.09) 0%, transparent 70%), radial-gradient(800px 520px at -90px 45%, rgba(59,130,246,0.06) 0%, transparent 70%) !important; }

/* progreso e índice en dorado */
.tx-page .gd-progress-fill { background: linear-gradient(90deg, #ffcb05, #ffb066); box-shadow: 0 0 8px rgba(255,203,5,0.5); }
.tx-page .gd-toc-link:hover { border-left-color: #ffcb05; }
.tx-page .gd-toc-link.active { color: #ffb066; border-left-color: #ffcb05; }
.tx-page .gd-toc-n { font-family: 'Poetsen One', sans-serif; color: #5f6c93; }
.tx-page .gd-toc-link.active .gd-toc-n { color: #ffcb05; }

/* Hero con foco dorado */
.tx-hero { position: relative; overflow: hidden; border-bottom: 1px solid #182448; background: radial-gradient(760px 360px at 24% -70px, rgba(255,203,5,0.1) 0%, transparent 65%), rgba(13,19,41,0.6); }
.tx-hero-inner { max-width: 1180px; margin: 0 auto; padding: 48px 24px 42px; animation: pk-rise 0.5s ease both; }
.tx-kicker { margin: 0 0 12px; font-size: 0.72rem; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: #ffcb05; }
.tx-hero h1 { font-family: 'Poetsen One', sans-serif; font-size: 3rem; line-height: 1.08; letter-spacing: 0.5px; margin: 0 0 16px; text-wrap: balance; color: #eef2ff; }
.tx-lede { margin: 0 0 22px; font-size: 1.08rem; color: #c6cfe8; max-width: 620px; text-wrap: pretty; }
.tx-lede strong { color: #ffb066; font-weight: 600; }
.tx-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tx-meta-item { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 600; color: #8b98bd; }
.tx-meta-item svg { width: 15px; height: 15px; }
.tx-meta-dot { color: #2c3d6b; }

/* Ranking de un vistazo (tabla) */
.tx-quick { margin-bottom: 40px; }
.tx-quick h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.5rem; letter-spacing: 0.4px; margin: 0 0 6px; color: #eef2ff; }
.tx-quick-sub { margin: 0 0 18px; font-size: 0.92rem; color: #8b98bd; }
.tx-quick-box { border: 1.5px solid #223055; border-radius: 14px; overflow: hidden; overflow-x: auto; }
.tx-quick table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 480px; }
.tx-quick thead tr { background: #0d1329; }
.tx-quick th { padding: 10px 14px; font-family: 'Poetsen One', sans-serif; font-size: 0.74rem; letter-spacing: 1.2px; text-transform: uppercase; color: #ffb066; font-weight: 400; text-align: left; }
.tx-quick th.tx-num, .tx-quick td.tx-num { text-align: right; }
.tx-quick tbody tr:nth-child(even) { background: rgba(13,19,41,0.5); }
.tx-quick td { padding: 10px 14px; border-top: 1px solid #182448; }
.tx-quick td.tx-name { font-weight: 700; color: #eef2ff; }
.tx-quick td.tx-name a { color: inherit; border: none; }
.tx-quick td.tx-name a:hover { color: #ffb066; }
.tx-quick td.tx-raw { color: #8b98bd; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-quick td.tx-rec { font-family: 'Poetsen One', sans-serif; color: #ffb066; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-quick-medal { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-family: 'Poetsen One', sans-serif; font-size: 0.76rem; color: #8b98bd; border: 1px solid #2c3d6b; }
.tx-quick-medal.m1 { background: #ffcb05; color: #10152a; border: none; }
.tx-quick-medal.m2 { background: #cbd5e1; color: #10152a; border: none; }
.tx-quick-medal.m3 { background: #fb923c; color: #10152a; border: none; }

/* Fichas del ranking */
.tx-entry { border-top: 1px solid #182448; padding-top: 30px; margin-bottom: 42px; animation: pk-card-in 0.5s ease both; }
.tx-entry-head { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.tx-rank-num { font-family: 'Poetsen One', sans-serif; font-size: 2.6rem; line-height: 1; }
.tx-entry-year { font-size: 0.7rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #5f6c93; }
.tx-page .tx-entry h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.75rem; line-height: 1.18; letter-spacing: 0.3px; margin: 0 0 16px; color: #eef2ff; text-wrap: balance; }
.tx-figs { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 20px; }
.tx-fig { min-width: 0; }
.tx-fig-label { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #5f6c93; margin-bottom: 1px; }
.tx-fig-raw { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.3rem; line-height: 1.2; color: #eef2ff; font-variant-numeric: tabular-nums; }
.tx-fig-psa { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.55rem; line-height: 1.2; color: #ffcb05; font-variant-numeric: tabular-nums; }
.tx-fig-when { display: block; font-size: 0.78rem; color: #8b98bd; }
.tx-fig-sep { width: 1px; background: #223055; align-self: stretch; }
.tx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin-bottom: 20px; }
.tx-fact { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid #182448; font-size: 0.9rem; }
.tx-fact-l { color: #8b98bd; font-weight: 600; flex-shrink: 0; }
.tx-fact-v { text-align: right; color: #eef2ff; font-weight: 600; }
.tx-page .tx-entry p { margin: 0 0 16px; }

/* h2 de secciones extra (menciones, por qué, cierre, faq, más rankings) */
.tx-page .tx-article > h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.8rem; letter-spacing: 0.4px; margin: 40px 0 18px; color: #eef2ff; }

@media (max-width: 1180px) {
    .tx-page .gd-toc { position: static; flex-basis: 100%; padding: 8px 0 0; }
    .tx-page .gd-toc-list { max-height: none; display: flex; flex-wrap: wrap; gap: 2px 6px; }
    .tx-page .gd-toc-link { border-left: none; border-top: 2px solid #223055; padding: 8px 10px 6px; }
    .tx-page .gd-article { flex-basis: 100%; padding-top: 22px; }
}
@media (max-width: 640px) {
    .tx-hero-inner { padding: 34px 16px 30px; }
    .tx-hero h1 { font-size: 2.1rem; }
    .tx-figs { gap: 16px; }
    .tx-fig-sep { display: none; }
    .tx-facts { grid-template-columns: 1fr; }
    .tx-rank-num { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tx-hero-inner, .tx-entry { animation: none !important; }
}
.tx-page .tx-routes-sec h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.8rem; letter-spacing: 0.4px; margin: 40px 0 6px; color: #eef2ff; }
.tx-source { margin-top: 34px; padding-top: 22px; border-top: 1px solid #182448; }
.tx-source p { margin: 0 0 8px; font-size: 0.84rem; color: #5f6c93; line-height: 1.6; }
.tx-source p:last-child { margin-bottom: 0; }
.tx-source strong { color: #8b98bd; }

/* ── Enlaces al contenido editorial ──────────────────────────────────────────
   Bloque discreto para llevar tráfico y autoridad desde la home y desde
   /colecciones hacia las top-10, la guía y el glosario. Son <a href> normales
   en el HTML servido, NO inyectados por JS: si los pintase el cliente, Google
   podría no verlos, y ahora mismo son su única vía de descubrimiento. */
.lp-editorial { max-width: 1280px; margin: 0 auto; padding: 0 24px 70px; }
.lp-editorial > h2 { font-family: 'Poetsen One', sans-serif; font-size: 1.9rem; letter-spacing: 1.5px; margin: 0 0 6px; }
.lp-editorial > p { margin: 0 0 18px; color: #8b98bd; font-size: 0.92rem; }
.lp-ed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lp-ed-card {
    display: block; padding: 16px 18px; border-radius: 14px;
    background: #101a35; border: 1px solid #182448;
    text-decoration: none; transition: border-color 0.18s ease, transform 0.18s ease;
}
.lp-ed-card:hover { border-color: var(--ed-c, #ff7d00); transform: translateY(-2px); }
.lp-ed-card strong { display: block; font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; color: #eef2ff; letter-spacing: 0.3px; margin-bottom: 4px; }
.lp-ed-card span { display: block; font-size: 0.86rem; color: #8b98bd; line-height: 1.5; }
.lp-ed-card:hover strong { color: var(--ed-c, #ff7d00); }
@media (prefers-reduced-motion: reduce) {
    .lp-ed-card:hover { transform: none; }
}

/* Bloque "Más rankings" de las tres top-10 (body.tx-page). El marcado ya
   existía en el HTML pero .gd-route* no estaba definido en NINGUNA hoja: se
   renderizaba sin estilo. Mismo tratamiento que .lp-ed-card; el color de
   acento viaja en --ed-c, puesto inline en cada enlace (es el mismo que ya
   llevaban el número y la flecha). */
.gd-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.gd-route {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: 14px;
    background: #101a35; border: 1px solid #182448;
    text-decoration: none; transition: border-color 0.18s ease, transform 0.18s ease;
}
.gd-route:hover { border-color: var(--ed-c, #ff7d00); transform: translateY(-2px); }
.gd-route-num { font-family: 'Poetsen One', sans-serif; font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.gd-route-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gd-route-title { font-family: 'Poetsen One', sans-serif; font-size: 1.05rem; color: #eef2ff; letter-spacing: 0.3px; }
.gd-route-desc { font-size: 0.86rem; color: #8b98bd; line-height: 1.5; }
.gd-route:hover .gd-route-title { color: var(--ed-c, #ff7d00); }
.gd-route svg { width: 20px; height: 20px; flex-shrink: 0; margin-left: auto; opacity: 0.55; transition: opacity 0.18s ease, transform 0.18s ease; }
.gd-route:hover svg { opacity: 1; transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
    .gd-route:hover, .gd-route:hover svg { transform: none; }
}
