/* ==========================================================================
   GameMediaX — Capa "minimal premium" (se carga al final, después de cada hoja de sección)
   Tipografía Geist, superficies sin bordes duros, profundidad con sombras suaves,
   un solo acento (naranja) y movimiento sutil. Respeta prefers-reduced-motion.
   ========================================================================== */

/* ── Tipografía ──────────────────────────────────────────────────────── */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.6; letter-spacing: -.003em; font-feature-settings: 'ss01', 'cv11'; }
h1, h2, h3, h4 { letter-spacing: -.022em; text-wrap: balance; }
p, li { text-wrap: pretty; }
.cat-title, .pn-title, .panel-title, .adm-h1, .notif-title, .profile-username, .game-hero-title {
    letter-spacing: -.035em !important; font-weight: 650 !important; line-height: 1.05;
}
.cat-section-head h2, .section-title, .gm-h2, .reviews-title, .gc-title, .pn-section > h2 { letter-spacing: -.02em; font-weight: 600; }
.cat-sub, .pn-sub, .panel-sub { color: var(--text-dim); max-width: 62ch; }
.adm-stat-val, .pn-kpi b, .dsc-cal b, .stat-value, [data-count] { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* ── Fondo con profundidad y grano ───────────────────────────────────── */
body {
    background:
        radial-gradient(1200px 520px at 12% -8%, rgba(255,109,36,.075), transparent 60%),
        radial-gradient(900px 600px at 100% 0%, rgba(255,255,255,.035), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Encabezado y navegación ─────────────────────────────────────────── */
body > header { background: rgba(11,11,13,.72); border-bottom-color: var(--border); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.topbar { background: transparent; border-bottom: 1px solid var(--border); }
.primary-nav a { font-weight: 500; letter-spacing: -.01em; transition: color var(--dur-fast); }
.primary-nav a[aria-current="page"] { color: var(--white); }
.primary-nav a[aria-current="page"]::after { background: var(--orange); }
.subnav { background: transparent; border-bottom: 1px solid var(--border); backdrop-filter: none; -webkit-backdrop-filter: none; }
.subnav-inner a { font-weight: 500; color: var(--text-dim); border-radius: 8px; transition: color var(--dur-fast), background var(--dur-fast); }
.subnav-inner a:hover { color: var(--white); background: var(--glass-md); }
.logo .logo-accent, .footer-logo .acc { text-shadow: none; }
.logo-dot { box-shadow: none; }

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn { font-weight: 600; letter-spacing: -.005em; border-radius: 10px;
       transition: background var(--dur-mid) var(--ease-out), border-color var(--dur-mid), color var(--dur-mid), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-mid); }
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px -8px rgba(255,109,36,.65); }
.btn-primary:hover { background: #ff7d3b; color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 24px -10px rgba(255,109,36,.75); }
.btn-ghost { background: rgba(255,255,255,.035); border: 1px solid var(--border-md); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: var(--white); }
.btn-danger:hover { transform: translateY(-1px); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* ── Superficies: menos bordes, más sombra ───────────────────────────── */
.panel, .wz-card, .pn-kpi, .soc-card, .soc-person, .dsc-presscard, .dsc-evcard, .dsc-opcard, .mod-item, .notif-item, .msg-item, .pr-card,
.reviews-section, .gc-section, .settings-card, .sidebar-card, .cat-panel {
    border-color: var(--border) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), var(--shadow-sm);
}
.soc-card, .dsc-evcard, .dsc-opcard, .notif-item, .msg-item, .pn-studio, .lib-list, .cr-card {
    transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid), border-color var(--dur-mid), background var(--dur-mid);
}
.soc-card:hover, .dsc-evcard:hover, .dsc-opcard:hover, .notif-item:hover, .msg-item:hover, .pn-studio:hover, .lib-list:hover, .cr-card:hover {
    transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow); border-color: rgba(255,255,255,.12) !important;
}
.form-input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], input[type="date"], select, textarea {
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}

/* ── Tarjetas de juego ───────────────────────────────────────────────── */
.gx-card { border: 0; background: var(--bg2); border-radius: var(--radius-lg); overflow: hidden;
           box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
           transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); }
.gx-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 22px 40px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,109,36,.08); border-color: transparent; }
.gx-cover { background: linear-gradient(135deg, var(--bg4), var(--bg3)); }
.gx-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); opacity: 0; transition: opacity var(--dur-slow); pointer-events: none; }
.gx-card:hover .gx-cover::after { opacity: 1; }
.gx-cover img { transition: transform .9s var(--ease-out), opacity .5s; }
.gx-card:hover .gx-cover img { transform: scale(1.06); }
.gx-card:hover .gx-title { color: var(--white); }
.gx-title { font-weight: 600; letter-spacing: -.015em; }

/* Imágenes: aparecen suaves al cargar */
img.gx-fade { opacity: 0; }
img.gx-fade.is-loaded { opacity: 1; transition: opacity .45s var(--ease-out); }

/* ── Chips, badges y pestañas ────────────────────────────────────────── */
.cat-chip, .nf-chip { transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast); }
.cat-chip:active, .nf-chip:active { transform: scale(.97); }
.badge { letter-spacing: .02em; font-weight: 600; }
.tabs a, .tabs button { font-weight: 500; transition: color var(--dur-fast), border-color var(--dur-fast); }

/* ── Movimiento: aparición al hacer scroll (solo con JS y sin "reducir movimiento") ── */
html.gx-motion [data-reveal] { opacity: 0; transform: translateY(14px); }
html.gx-motion [data-reveal].is-in { opacity: 1; transform: none;
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }

/* Transiciones entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: gx-vt-out .18s ease both; }
::view-transition-new(root) { animation: gx-vt-in .28s var(--ease-out) both; }
@keyframes gx-vt-out { to { opacity: 0; } }
@keyframes gx-vt-in { from { opacity: 0; transform: translateY(6px); } }

/* Esqueleto de carga (para bloques que se completan por JS) */
.gx-skeleton { background: linear-gradient(90deg, var(--bg3) 0%, var(--bg4) 50%, var(--bg3) 100%); background-size: 200% 100%; animation: gx-shimmer 1.4s linear infinite; border-radius: var(--radius); }
@keyframes gx-shimmer { to { background-position: -200% 0; } }

/* ── Pie ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(0,0,0,.25)); }

@media (prefers-reduced-motion: reduce) {
    html.gx-motion [data-reveal] { opacity: 1; transform: none; }
    .gx-card:hover, .soc-card:hover { transform: none; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ── Portada: hero con el arte de los juegos ─────────────────────────── */
.hx { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; min-height: clamp(420px, 62vh, 600px);
      margin-bottom: 1.25rem; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg); display: flex; }
.hx-media { position: absolute; inset: 0; z-index: -1; }
.hx-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
            transition: opacity 1.1s var(--ease-out), transform 7s linear; }
.hx-slide.is-active { opacity: 1; transform: scale(1); }
.hx-shade { position: absolute; inset: 0;
            background: linear-gradient(90deg, rgba(11,11,13,.96) 0%, rgba(11,11,13,.82) 38%, rgba(11,11,13,.35) 70%, rgba(11,11,13,.55) 100%),
                        linear-gradient(0deg, rgba(11,11,13,.9) 0%, transparent 45%); }
.hx-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; align-items: end;
            padding: clamp(1.6rem, 4.5vw, 3.5rem); }
.hx-copy { max-width: 620px; align-self: center; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 500; color: var(--text-dim); letter-spacing: .01em; margin-bottom: 1.1rem; }
.hx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,109,36,.15); }
.hx-title { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 650; letter-spacing: -.045em; line-height: .98; color: var(--white); margin-bottom: 1.1rem; }
.hx-title .hl { color: var(--orange); }
.hx-sub { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--text); max-width: 46ch; line-height: 1.55; margin-bottom: 1.8rem; }
.hx-cta { display: flex; gap: .65rem; flex-wrap: wrap; }
.hx-cta .btn-lg { padding: .85rem 1.35rem; font-size: .92rem; border-radius: 12px; }
.hx-cta .btn-ghost { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hx-now { position: relative; justify-self: end; width: min(100%, 340px); display: grid; }
.hx-card { grid-area: 1 / 1; display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: 14px; text-decoration: none;
           background: rgba(18,18,21,.6); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
           box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), inset 0 1px 0 rgba(255,255,255,.08);
           opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.hx-card.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hx-card:hover { box-shadow: inset 0 0 0 1px rgba(255,109,36,.45), inset 0 1px 0 rgba(255,255,255,.08); }
.hx-card-kicker { font-size: .7rem; font-weight: 600; color: var(--orange); letter-spacing: .02em; }
.hx-card strong { font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; color: var(--white); }
.hx-card-meta { font-size: .8rem; color: var(--text-dim); }
.hx-card-meta .is-free { color: var(--green); }
.hx-dots { display: flex; gap: .4rem; margin-top: .8rem; justify-content: flex-end; }
.hx-dotbtn { width: 22px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.22); cursor: pointer; transition: width .35s var(--ease-out), background .35s; }
.hx-dotbtn.is-active { width: 38px; background: var(--orange); }
.hx-empty { gap: .5rem; padding: 1.1rem; border-radius: 14px; background: rgba(18,18,21,.6); box-shadow: inset 0 0 0 1px var(--border); }
.hx-empty strong { color: var(--white); } .hx-empty span { font-size: .85rem; color: var(--text-dim); }
.hx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-bottom: 2.5rem; border-radius: 16px; overflow: hidden;
            background: var(--border); box-shadow: inset 0 0 0 1px var(--border); }
.hx-stat { background: var(--bg2); padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .15rem; }
.hx-stat b { font-size: 1.9rem; font-weight: 650; color: var(--white); letter-spacing: -.04em; line-height: 1.1; }
.hx-stat span { font-size: .8rem; color: var(--text-dim); }
@media (max-width: 860px) {
    .hx { min-height: 0; border-radius: 18px; }
    .hx-inner { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-top: 5rem; }
    .hx-now { justify-self: stretch; width: 100%; }
    .hx-shade { background: linear-gradient(0deg, rgba(11,11,13,.97) 0%, rgba(11,11,13,.85) 55%, rgba(11,11,13,.45) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hx-slide, .hx-card { transition: none; } }

/* ── Ficha del juego ─────────────────────────────────────────────────── */
html body .game-hero { height: min(520px, 60vw); border-radius: 0 0 22px 22px; }
html body .game-hero-bg { filter: brightness(.62) saturate(1.05); transform: scale(1.02); }
html body .game-hero-overlay { background: linear-gradient(0deg, rgba(11,11,13,.97) 0%, rgba(11,11,13,.55) 42%, rgba(11,11,13,.08) 75%),
                                 linear-gradient(90deg, rgba(11,11,13,.7) 0%, transparent 55%); }
html body .game-hero-cover { border: 0; border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.12); }
html body .game-hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem) !important; }
html body .game-hero-genre { background: rgba(255,255,255,.08); color: var(--text); border: 0; border-radius: var(--radius-pill);
                   text-transform: none; letter-spacing: 0; font-size: .74rem; font-weight: 500; padding: .2rem .65rem;
                   backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background var(--dur-fast); }
html body .game-hero-genre:hover { background: rgba(255,109,36,.2); color: var(--white); }
html body .plat-badge { border-radius: var(--radius-pill); background: rgba(255,255,255,.06); border: 0; gap: .3rem; }
html body .plat-badge svg { width: 12px; height: 12px; }
/* reseñas y comentarios alineados con el contenido de la ficha */
html body .reviews-section, html body .gc-section { max-width: calc(1200px - 2 * var(--gap)); width: calc(100% - 2 * var(--gap)); border-radius: var(--radius-lg); }
html body .screenshots-grid img { border-radius: var(--radius); transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid); }
html body .screenshots-grid img:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── Repaso: coherencia entre secciones ──────────────────────────────── */
html body .dsc-desc { margin-bottom: 1.6rem; }
html body .settings-title, html body .notif-title { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 650; letter-spacing: -.035em; gap: .6rem; }
html body .settings-title svg, html body .notif-title svg { display: none; }

/* ── Encabezado: íconos y panel de notificaciones ────────────────────── */
.header-actions { display: flex; align-items: center; gap: .35rem; }
.hd-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px;
           color: var(--text-dim); transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast); }
.hd-icon:hover, .nfp.is-open .hd-icon { background: rgba(255,255,255,.07); color: var(--white); }
.hd-icon:active { transform: scale(.94); }
.hd-icon svg { width: 19px; height: 19px; }
.hd-icon .nav-badge { top: 3px; right: 2px; box-shadow: 0 0 0 2px var(--bg); }
.hd-icon.is-ping svg { animation: nfp-ring .9s var(--ease-out); transform-origin: 50% 10%; }
@keyframes nfp-ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.nfp { position: relative; }
.nfp-panel { position: absolute; right: -6px; top: calc(100% + 10px); z-index: 120; width: min(400px, calc(100vw - 24px)); max-height: min(560px, 75vh);
             display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
             background: rgba(20,20,24,.92); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
             box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.06), 0 30px 70px -20px rgba(0,0,0,.85);
             opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out); }
.nfp.is-open .nfp-panel { opacity: 1; transform: none; }
.nfp-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1rem .6rem; }
.nfp-head strong { color: var(--white); font-size: .98rem; font-weight: 600; letter-spacing: -.015em; }
.nfp-link { background: none; border: 0; padding: .25rem .4rem; border-radius: 6px; font: inherit; font-size: .78rem; color: var(--orange); cursor: pointer; }
.nfp-link:hover { background: rgba(255,109,36,.1); }
.nfp-list { list-style: none; overflow-y: auto; padding: 0 .4rem .3rem; flex: 1; overscroll-behavior: contain; }
.nfp-list > li { animation: nfp-in .32s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes nfp-in { from { opacity: 0; transform: translateY(4px); } }
.nfp-item { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem .6rem; border-radius: 11px; text-decoration: none; color: inherit; transition: background var(--dur-fast); }
.nfp-item:hover { background: rgba(255,255,255,.055); }
.nfp-item.is-unread { background: rgba(255,109,36,.06); }
.nfp-item.is-unread:hover { background: rgba(255,109,36,.1); }
.nfp-av { position: relative; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--bg5); display: inline-flex; align-items: center; justify-content: center;
          font-weight: 700; color: var(--orange); font-size: .9rem; }
.nfp-av img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.nfp-cat { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
           background: var(--bg4); color: #fff; box-shadow: 0 0 0 2px rgb(20,20,24); }
.nfp-cat svg { width: 10px; height: 10px; }
.nfp-cat-messages { background: #3b82f6; } .nfp-cat-collabs { background: #8b5cf6; } .nfp-cat-comments { background: var(--orange); } .nfp-cat-reactions { background: #e8476a; }
.nfp-cat-following { background: #0ea5e9; } .nfp-cat-social { background: var(--green); } .nfp-cat-studios { background: #f59e0b; } .nfp-cat-system { background: var(--red); }
.nfp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.nfp-msg { font-size: .85rem; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.nfp-msg strong { color: var(--white); font-weight: 600; }
.nfp-item:not(.is-unread) .nfp-msg { color: var(--text-dim); }
.nfp-time { font-size: .72rem; color: var(--text-muted); }
.nfp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: .45rem; flex-shrink: 0; }
.nfp-empty { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.2rem 1rem; color: var(--text-muted); font-size: .86rem; text-align: center; }
.nfp-empty svg { width: 30px; height: 30px; }
.nfp-skel { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .6rem; }
.nfp-skel .gx-skeleton { height: 10px; border-radius: 6px; } .nfp-skel .gx-skeleton:last-child { width: 55%; }
.nfp-foot { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1rem; border-top: 1px solid rgba(255,255,255,.06); font-size: .82rem; }
.nfp-foot a { color: var(--text-dim); display: inline-flex; align-items: center; gap: .35rem; }
.nfp-foot a:hover { color: var(--white); }
.nfp-foot svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
    .nfp-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; transform-origin: top center; }
}

/* ── Hilo de la comunidad ────────────────────────────────────────────── */
html body .thread-post, html body .comments-section { background: var(--bg2); border: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); }
html body .p-vote-btn, html body .c-vote-btn { border-radius: 8px; transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast); }
html body .p-vote-btn:hover, html body .c-vote-btn:hover { background: rgba(255,109,36,.12); color: var(--orange); }
html body .p-vote-btn:active, html body .c-vote-btn:active { transform: scale(.9); }
html body .comment { border-left: 2px solid rgba(255,255,255,.06); padding-left: 1rem; transition: border-color var(--dur-mid); }
html body .comment:hover { border-left-color: rgba(255,109,36,.4); }
html body .comment-author { font-weight: 600; }
html body .new-comment-form textarea, html body .reply-form textarea { background: var(--bg3) !important; border-radius: 14px !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--border); }
html body .new-comment-form textarea:focus, html body .reply-form textarea:focus { box-shadow: inset 0 0 0 1px var(--orange), 0 0 0 3px var(--orange-glow-sm); }

/* ── Perfil ──────────────────────────────────────────────────────────── */
html body .profile-wrap { max-width: 1040px; }
html body .profile-hero { position: relative; overflow: hidden; border: 0; border-radius: 22px; padding: 4.5rem 1.8rem 1.6rem; align-items: flex-end;
    background: radial-gradient(600px 220px at 15% 0%, rgba(255,109,36,.22), transparent 70%), radial-gradient(500px 200px at 100% 0%, rgba(255,255,255,.05), transparent 70%), var(--bg2);
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); }
html body .profile-avatar, html body .profile-avatar-placeholder { width: 96px; height: 96px; border-radius: 30%; border: 0;
    box-shadow: 0 0 0 4px var(--bg2), 0 16px 32px -12px rgba(0,0,0,.7); }
html body .profile-avatar-placeholder { background: linear-gradient(145deg, #2a2a31, #1d1d22); font-family: var(--font-display); font-weight: 650; }
html body .profile-username { font-size: clamp(1.7rem, 4vw, 2.3rem) !important; }
html body .profile-bio { color: var(--text); max-width: 60ch; }
html body .profile-stats { display: flex; gap: 0; margin: 1rem 0 1.4rem; padding: 0; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); background: var(--border); }
html body .profile-stats .stat-card { flex: 1; background: var(--bg2); border: 0; border-radius: 0; padding: .85rem 1.1rem; margin-left: 1px; align-items: flex-start; text-align: left; }
html body .profile-stats .stat-card:first-child { margin-left: 0; }
html body .profile-stats .stat-value { font-size: 1.45rem; font-weight: 650; color: var(--white); letter-spacing: -.035em; }
html body .profile-stats .stat-label { font-size: .76rem; color: var(--text-dim); text-transform: none; letter-spacing: 0; }
html body .profile-tabs { border-bottom: 1px solid var(--border); gap: .25rem; margin-bottom: 1.1rem; }
html body .ptab { font-weight: 500; color: var(--text-dim); border-radius: 10px 10px 0 0; transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast); }
html body .ptab:hover { background: rgba(255,255,255,.04); color: var(--white); }
html body .ptab.active { color: var(--white); border-bottom-color: var(--orange); }
html body .ptab-content { animation: gx-tab-in .32s var(--ease-out); }
@keyframes gx-tab-in { from { opacity: 0; transform: translateY(6px); } }
html body .profile-list-item { background: var(--bg2); border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border);
    transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid); }
html body .profile-list-item:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), var(--shadow); }
html body .pli-type { border-radius: var(--radius-pill); text-transform: none; letter-spacing: 0; font-weight: 500; }
html body .btn-edit-profile { border-radius: 10px; background: rgba(255,255,255,.05); border-color: var(--border-md); font-weight: 500; }
html body .btn-edit-profile:hover { background: rgba(255,255,255,.09); color: var(--white); border-color: rgba(255,255,255,.16); }
@media (max-width: 600px) { html body .profile-hero { padding: 3.5rem 1.2rem 1.3rem; } html body .profile-stats { flex-wrap: wrap; } }
@media (max-width: 480px) {
    html body .header-inner { gap: .4rem; }
    html body .logo { font-size: 1.12rem; letter-spacing: 0; }
    html body .logo-dot { display: none; }
    html body .hd-icon { width: 34px; height: 34px; }
    html body .header-actions { gap: .15rem; }
    html body .header-actions .btn-sm { padding: .45rem .6rem; }
    html body .nav-burger { width: 34px; height: 34px; }
}

/* ── Microinteracciones globales (campana, seguir) ───────────────────── */
.nav-badge.is-bump { animation: gx-bump .5s var(--ease-spring); }
@keyframes gx-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
[data-follow-count].is-pop { display: inline-block; animation: gx-bump .45s var(--ease-spring); }
[data-follow].fx-follow { animation: gx-follow .5s var(--ease-spring); }
@keyframes gx-follow { 0% { transform: scale(1); } 35% { transform: scale(.9); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { html:not(.cm-motion-on) .nav-badge.is-bump, html:not(.cm-motion-on) [data-follow-count].is-pop, html:not(.cm-motion-on) [data-follow].fx-follow { animation: none; } }
