/* Pixelario · estilos de componentes
   Los tokens de marca (color, tipo, radios, movimiento) están aquí arriba;
   los componentes propios de la marca (logo, botones, tarjetas, iconos) en css/brand.css.
   Guía completa: BRAND.md */
@property --pack { syntax: "<color>"; inherits: true; initial-value: #6c5cff; }

:root {
  /* ---- Paleta de marca ---- */
  --ink-950: #0f0e0d;   /* Grafito: fondo */
  --ink-900: #171614;
  --ink-850: #1d1c19;
  --ink-800: #252320;
  --ink-700: #312f2b;
  --ink-600: #3e3b36;
  --paper-50: #f4efe6;  /* Papel: texto principal */
  --paper-200: #d9d3c7;
  --paper-400: #a39c90; /* Piedra: texto secundario */
  --paper-500: #8a8378;
  --indigo-300: #a79cff;
  --indigo-500: #6c5cff; /* Índigo Pixelario: color de marca */
  --indigo-700: #4a3bd6;
  --mandarina-500: #ff8a3d; /* Mandarina: destacados y premium */
  --mandarina-300: #ffb27a;

  /* ---- Tokens semánticos (los nombres de siempre, para no romper nada) ---- */
  --bg: var(--ink-950);
  --bg-2: var(--ink-900);
  --surface: var(--ink-900);
  --surface-2: var(--ink-850);
  --surface-3: var(--ink-800);
  --surface-4: var(--ink-700);
  --line: rgba(244, 239, 230, .08);
  --line-2: rgba(244, 239, 230, .14);
  --line-3: rgba(244, 239, 230, .24);
  --fg: var(--paper-50);
  --muted: var(--paper-400);
  --faint: var(--paper-500);
  --brand: var(--mandarina-500);
  --brand-ink: #1e1206;
  --pack: #6c5cff;       /* acento vivo: cambia con el pack elegido */
  --pack-ink: #ffffff;   /* texto sobre --pack; core.js lo ajusta según el contraste */
  --spark: var(--pack);  /* la ventana del logo y el acento de la interfaz */
  --link: var(--indigo-300);

  /* ---- Estados ---- (texto sobre fondo, relleno sólido y fondo suave) */
  --ok: #3dd68c;    --ok-ink: #06150d;   --ok-soft: #13261c;
  --warn: #ffc247;  --warn-ink: #1c1303; --warn-soft: #2a2210;
  --bad: #ff6b6b;   --bad-ink: #1d0606;  --bad-soft: #2c1414;
  --info: #a79cff;  --info-ink: #0e0a2b; --info-soft: #1c1930;

  /* ---- Tipografía ---- */
  --display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-hero: clamp(48px, 7vw, 96px);
  --fs-h1: clamp(36px, 5vw, 64px);
  --fs-h2: clamp(28px, 3.4vw, 40px);
  --fs-h3: 26px;
  --fs-h4: 19px;
  --fs-lg: 18px;
  --fs-md: 15px;
  --fs-sm: 13.5px;
  --fs-xs: 12px;
  --fs-2xs: 11.5px;
  --lh-tight: .94;
  --lh-snug: 1.2;
  --lh-body: 1.55;
  --tr-display: -.035em;
  --tr-label: .12em;

  /* ---- Espaciado (base 4 px) ---- */
  --s-0: 2px; --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* ---- Bordes ---- */
  --bw: 1px;
  --bw-2: 2px;
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--spark); /* anillo de foco */

  /* ---- Radios ---- (la esquina superior derecha siempre es la "de píxel") */
  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-px: 3px;
  --r-full: 999px;
  --shape-sm: var(--r-sm) 2px var(--r-sm) var(--r-sm);
  --shape: var(--r) var(--r-px) var(--r) var(--r);
  --shape-lg: var(--r-lg) var(--r-px) var(--r-lg) var(--r-lg);
  --shape-xl: var(--r-xl) 4px var(--r-xl) var(--r-xl);

  /* ---- Sombras ---- */
  --sh-1: 0 1px 0 rgba(244, 239, 230, .04) inset, 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 1px 0 rgba(244, 239, 230, .05) inset, 0 8px 24px -8px rgba(0, 0, 0, .55);
  --sh-3: 0 1px 0 rgba(244, 239, 230, .06) inset, 0 18px 48px -12px rgba(0, 0, 0, .7);
  --sh-4: 0 1px 0 rgba(244, 239, 230, .07) inset, 0 40px 100px -20px rgba(0, 0, 0, .8);
  --sh-glow: 0 0 0 1px color-mix(in oklab, var(--spark) 55%, transparent), 0 10px 30px -10px color-mix(in oklab, var(--spark) 60%, transparent);

  /* ---- Elevación: 0 página · 1 en flujo · 2 elevado · 3 flotante · 4 modal ---- */
  --elev-0-bg: var(--bg);        --elev-0-sh: none;
  --elev-1-bg: var(--surface);   --elev-1-sh: var(--sh-1);
  --elev-2-bg: var(--surface-2); --elev-2-sh: var(--sh-2);
  --elev-3-bg: var(--surface-2); --elev-3-sh: var(--sh-3);
  --elev-4-bg: var(--surface);   --elev-4-sh: var(--sh-4);
  --z-nav: 60; --z-dropdown: 70; --z-toast: 90; --z-modal: 100; --z-tooltip: 110;

  /* ---- Movimiento ---- */
  --dur-1: 120ms;
  --dur-2: 240ms;
  --dur-3: 480ms;
  --dur-4: 900ms;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-px: steps(4, end); /* pasos de píxel para microinteracciones */

  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
  transition: --pack .9s var(--ease);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: color-mix(in oklab, var(--pack) 45%, transparent); }
:focus-visible { outline: 2px solid var(--pack); outline-offset: 3px; border-radius: 8px; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { max-width: 1220px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* ---------- Tipografía ---------- */
.display { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.035em; line-height: .94; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(40px, 6.1vw, 92px); }
.h2 { font-size: clamp(34px, 5.4vw, 76px); }
.h3 { font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -.035em; line-height: 1; }
.dim { color: var(--faint); }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lede { color: var(--muted); max-width: 48ch; margin: 0; font-size: 16px; }
.lede b, .muted b { color: var(--fg); font-weight: 600; }
.grad { background: linear-gradient(180deg, color-mix(in oklab, var(--pack) 30%, #fff) 8%, var(--pack) 96%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }

/* Entrada de titulares por palabras */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; }
.intro .split .w > span { animation: word-up 1.05s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes word-up { from { transform: translateY(105%) rotate(4deg); } }
.intro .fade-up { animation: fade-up 1s var(--ease) both; animation-delay: var(--d, .4s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@supports (animation-timeline: view()) {
  .split.scroll .w { overflow: visible; }
  .split.scroll .w > span { animation: word-soft linear both; animation-timeline: view(); animation-range: entry calc(2% + var(--i) * 4%) cover calc(22% + var(--i) * 4%); }
  @keyframes word-soft { from { opacity: .3; transform: translateY(38%); filter: blur(5px); } }
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
  @keyframes reveal { from { opacity: .35; transform: translateY(44px) scale(.98); } }
}

/* ---------- Botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035); padding: 9px 15px; border-radius: 11px; font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; transition: background .25s, border-color .25s, color .25s, transform .3s var(--ease), box-shadow .3s; }
.btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-pack { background: var(--pack); color: var(--pack-ink); border-color: transparent; box-shadow: 0 10px 34px -12px var(--pack), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-pack:hover { background: color-mix(in oklab, var(--pack) 86%, #fff); border-color: transparent; }
.btn-brand { background: var(--brand); color: var(--brand-ink); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-brand:hover { background: color-mix(in oklab, var(--brand) 86%, #fff); border-color: transparent; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); }
.btn-lg { padding: 13px 20px; font-size: 15px; border-radius: 13px; }
.btn-pill { border-radius: 999px; }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.icon-btn { width: 38px; height: 38px; padding: 0; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; padding-block: 10px; }
.nav-bar { display: flex; align-items: center; gap: 4px; background: rgba(23, 22, 20, .74); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 12px; }
.nav-links { display: flex; gap: 2px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 7px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, .05); }
.nav-search { flex: 1; min-width: 0; position: relative; margin-left: 8px; max-width: 420px; }
.nav-search input { width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; padding: 8px 56px 8px 34px; font-size: 13.5px; transition: border-color .2s, background .2s; }
.nav-search input:focus { border-color: var(--line-2); background: rgba(255, 255, 255, .06); outline: none; }
.nav-search input::placeholder { color: var(--muted); }
.nav-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.nav-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; border-radius: 11px; padding: 4px 8px 4px 4px; font-size: 13px; font-weight: 600; }
.user-btn img, .user-btn canvas { width: 28px; height: 28px; border-radius: 8px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transform-origin: top right; animation: menu-in .25s var(--ease); z-index: 70; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu a, .menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; text-align: left; padding: 9px 11px; border-radius: 9px; border: 0; background: transparent; text-decoration: none; font-size: 13.5px; color: var(--fg); }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, .06); }
.menu .head { padding: 10px 11px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .head b { display: block; font-size: 14px; }
.menu .head span { font-size: 12px; color: var(--muted); }
.menu-wrap { position: relative; }
@media (max-width: 1040px) { .nav-links { display: none; } }
@media (max-width: 640px) { .nav-search { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 22px; isolation: isolate; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -10% -20% 0; z-index: -2; background: radial-gradient(55% 50% at 50% 42%, color-mix(in oklab, var(--pack) 14%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 80% at 50% 100%, transparent 55%, var(--bg) 92%); }
.hero-head { text-align: center; }
.hero-title .l2 { display: block; }
.search-row { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.search-row .field { position: relative; width: min(380px, 100%); }
.search-row input { width: 100%; background: rgba(255, 255, 255, .045); border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 18px 12px 40px; font-size: 14.5px; transition: border-color .2s, background .2s; }
.search-row input:focus { outline: none; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); }
.search-row svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
@media (max-width: 480px) { .search-row { flex-direction: column; align-items: stretch; } .search-row .field { width: 100%; } }

.stage { position: relative; height: clamp(440px, 46vw, 600px); margin-top: -40px; }
.stage canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline: none; }
.stage canvas.gl:active { cursor: grabbing; }
.stage .fallback { position: absolute; left: 50%; top: 46%; width: min(260px, 52%); transform: translate(-50%, -50%) rotate(-10deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.floaty { position: absolute; font-family: var(--display); color: rgba(255, 255, 255, .14); letter-spacing: -.04em; pointer-events: none; white-space: nowrap; animation: floaty 8s ease-in-out infinite; }
.floaty b { font-size: clamp(24px, 2.8vw, 38px); font-weight: 800; }
.floaty small { font-family: var(--body); font-size: 12px; font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.f1 { left: 3%; top: 50%; transform: perspective(700px) rotateY(34deg) rotateZ(-4deg); }
.f2 { left: 13%; top: 25%; transform: perspective(700px) rotateY(26deg) rotateZ(-2deg); animation-delay: -2s; }
.f3 { right: 13%; top: 23%; transform: perspective(700px) rotateY(-26deg) rotateZ(2deg); animation-delay: -4s; }
.f4 { right: 3%; top: 48%; transform: perspective(700px) rotateY(-34deg) rotateZ(5deg); animation-delay: -1s; }
@keyframes floaty { 50% { translate: 0 -9px; } }
.co { position: absolute; font-size: 12px; color: var(--muted); pointer-events: none; }
.co .k { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.co strong { display: block; color: var(--fg); font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.co a { pointer-events: auto; text-decoration: none; }
.co a:hover strong { color: var(--pack); }
.co .line { position: absolute; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.co-l { right: calc(50% + min(180px, 17vw)); top: 48%; text-align: right; }
.co-l .line { right: 0; top: 100%; height: 130px; margin-top: 8px; }
.co-r1 { left: calc(50% + min(150px, 14vw)); top: 25%; display: flex; gap: 7px; align-items: center; color: var(--fg); font-family: var(--mono); }
.co-r1 i { width: 6px; height: 6px; border-radius: 50%; background: var(--pack); box-shadow: 0 0 12px var(--pack); }
.co-r1 .line { left: 2px; top: 18px; height: 200px; }
.co-r2 { left: calc(50% + min(200px, 19vw)); top: 56%; }
.co-r2 .line { left: 0; top: 100%; height: 86px; margin-top: 8px; }
.swap { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.stage-foot { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
.stage-foot a { pointer-events: auto; text-decoration: none; transition: color .2s; }
.stage-foot a:hover { color: var(--fg); }
.stage-foot b { color: var(--fg); font-family: var(--mono); font-weight: 500; }
@media (max-width: 760px) {
  .stage { margin-top: 10px; height: 470px; }
  .f2, .f3, .co-r2 { display: none; }
  .co-l { right: auto; left: 0; top: 6%; text-align: left; } .co-l .line { display: none; }
  .co-r1 { left: auto; right: 0; top: 7%; } .co-r1 .line { display: none; }
  .f1 { top: 64%; left: -2%; } .f4 { top: 64%; right: -2%; }
  .stage-foot span { display: none; }
}

.picker-row { display: flex; justify-content: center; position: relative; z-index: 3; margin-top: 4px; }
.picker-wrap { position: relative; max-width: 100%; }
.picker { display: flex; align-items: center; gap: 3px; background: rgba(18, 20, 25, .82); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; padding: 5px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.picker::-webkit-scrollbar { display: none; }
.toggle { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 9px; border-radius: 999px; border: 0; background: transparent; font-size: 13px; color: var(--fg); flex: none; }
.toggle .sw { width: 30px; height: 17px; border-radius: 999px; background: var(--faint); position: relative; transition: background .3s; }
.toggle .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.toggle[aria-pressed="true"] .sw { background: color-mix(in oklab, var(--pack) 72%, #1a1a1a); }
.toggle[aria-pressed="true"] .sw::after { transform: translateX(13px); }
.sword-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: transparent; display: grid; place-items: center; flex: none; padding: 0; transition: border-color .3s, background .3s; }
.sword-btn canvas, .sword-btn img { width: 25px; height: 25px; transition: transform .4s var(--ease); }
.sword-btn:hover canvas, .sword-btn:hover img { transform: scale(1.2) rotate(-8deg); }
.sword-btn[aria-pressed="true"] { border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .05); }
.picker-tip { position: absolute; bottom: calc(100% + 10px); left: 0; transform: translateX(-50%) translateY(4px); background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease), left .3s var(--ease); }
.picker-tip.on { opacity: 1; transform: translateX(-50%); }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(72px, 10vw, 140px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-head .note { max-width: 34ch; font-size: 13px; color: var(--muted); margin: 0; }
.sec-head .note b { color: var(--fg); }

/* Comparar */
.cmp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; margin-top: 36px; align-items: start; }
@media (max-width: 900px) { .cmp { grid-template-columns: minmax(0, 1fr); } }
.shot { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: var(--surface); border: 1px solid var(--line); }
.shot > canvas, .shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease), transform 6s linear; }
.shot > .b { opacity: 0; }
.shot > .on { transform: scale(1.04); }
.shot .badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; background: rgba(15, 14, 13, .72); backdrop-filter: blur(8px); color: #fff; padding: 4px 10px; border-radius: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--surface); opacity: .5; transition: opacity .3s, border-color .3s; }
.thumbs button:hover { opacity: .8; }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--line-2); }
.thumbs canvas, .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--pack); }
.thumbs button[aria-current="true"] .bar { animation: fill var(--dur, 5s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.cmp-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cmp-name { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.045em; line-height: 1; margin: 0; }
.by { color: var(--muted); font-size: 13px; }
.by b, .by a { color: var(--fg); font-weight: 600; text-decoration: none; }
.by a:hover { color: var(--pack); }
.ver-big { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.03em; }
.seg { position: relative; display: flex; flex-wrap: wrap; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 7px 10px; font-size: 12.5px; font-family: var(--mono); color: var(--muted); border-radius: 9px; transition: color .25s; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { color: var(--bg); }
.seg .pill { position: absolute; z-index: 0; background: var(--fg); border-radius: 9px; transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease); }
.rows { display: grid; gap: 4px; }
.rows .r { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 11px; border: 1px solid transparent; transition: background .3s, border-color .3s; background: transparent; text-align: left; width: 100%; }
.rows .r[aria-current="true"] { background: var(--surface); border-color: var(--line); }
.rows .r canvas, .rows .r img { width: 26px; height: 26px; }
.rows .r span { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.three b { color: var(--fg); }
@media (max-width: 720px) { .three { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Tarjetas de pack */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.card .img { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: var(--surface); border: 1px solid var(--line); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .3s; }
.card .img canvas, .card .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.card:hover .img { border-color: var(--line-2); }
.card:hover .img canvas, .card:hover .img img { transform: scale(1.06); }
.card .img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover .img::after { opacity: 1; }
.card .res { position: absolute; top: 10px; left: 10px; z-index: 2; }
.card .meta { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
.card .rank { font-family: var(--display); font-weight: 800; font-size: 58px; line-height: .78; letter-spacing: -.06em; }
.card .t { min-width: 0; flex: 1; }
.card h3 { margin: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.card.feat h3 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.035em; }
.card .sub { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.card .sub .au { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card .sub canvas, .card .sub img { width: 15px; height: 15px; border-radius: 4px; flex: none; }
.card.feat .img canvas, .card.feat .img img { animation: pan 16s ease-in-out infinite alternate; }
@keyframes pan { from { transform: scale(1.08) translateX(-2%); } to { transform: scale(1.15) translateX(2%); } }
.trend { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 16px; margin-top: 32px; }
.trend-side { display: grid; gap: 16px; align-content: start; }
.trend-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
@media (max-width: 900px) { .trend { grid-template-columns: minmax(0, 1fr); } .trend-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Subida en pasos */
.split-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: end; }
@media (max-width: 900px) { .split-head { grid-template-columns: minmax(0, 1fr); } }
.split-head p { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.split-head p b { color: var(--fg); }
.split-head small { display: block; color: var(--faint); font-size: 12px; margin-top: 14px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; margin-top: 48px; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .flow { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -25px; top: 72px; color: var(--faint); }
@media (max-width: 900px) { .step::after { display: none; } }
.step .vis { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; display: grid; place-items: center; }
.step h4 { margin: 0; font-size: 14px; font-weight: 600; }
.step h4 span { color: var(--muted); font-family: var(--mono); font-weight: 400; margin-right: 7px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }
.zip { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.zip .f { width: 56px; height: 70px; background: linear-gradient(#2a2e38, #1b1e25); border-radius: 7px; position: relative; display: grid; place-items: end center; padding-bottom: 9px; font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--fg); clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); animation: bob 2.6s var(--ease) infinite; }
.zip .f::before { content: ""; position: absolute; left: 50%; top: 7px; width: 6px; height: 30px; transform: translateX(-50%); background: repeating-linear-gradient(#59606d 0 3px, transparent 3px 6px); }
.zip b { color: var(--fg); font-weight: 600; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 15% { transform: translateY(-9px); } 32% { transform: translateY(0); } }
.ingame { position: absolute; inset: 0; }
.ingame > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ingame .strip { position: absolute; left: 7px; right: 7px; bottom: 7px; display: flex; gap: 4px; }
.ingame .strip canvas { flex: 1; min-width: 0; aspect-ratio: 16 / 9; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .25); opacity: .55; transition: opacity .3s, border-color .3s; }
.ingame .strip canvas.on { opacity: 1; border-color: #fff; }
.ingame .badge { position: absolute; left: 7px; top: 7px; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px; width: 100%; }
.vgrid span { font-family: var(--mono); font-size: 11.5px; text-align: center; padding: 6px 4px; border-radius: 7px; background: rgba(255, 255, 255, .04); color: var(--muted); transition: background .35s, color .35s; }
.vgrid span.on { background: rgba(255, 255, 255, .12); color: var(--fg); }
.vgrid span.more { background: transparent; }
.page-prev { position: absolute; inset: 0; display: flex; flex-direction: column; }
.page-prev canvas { width: 100%; flex: 1; min-height: 0; display: block; }
.page-prev .pp { padding: 9px 11px; font-size: 11.5px; background: var(--surface-2); }
.page-prev .pp b { display: block; font-size: 13px; }
.page-prev .pp span { color: var(--muted); }

/* Herramientas */
.tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
@media (max-width: 900px) { .tools { grid-template-columns: minmax(0, 1fr); } }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 24px; }
.tab { position: relative; border: 1px solid transparent; background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); overflow: hidden; transition: color .25s, background .25s, border-color .25s; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--fg); border-color: var(--line); }
.tab .bar { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; opacity: .55; }
.tab[aria-selected="true"].playing .bar { animation: grow var(--dur, 6.5s) linear forwards; }
@keyframes grow { to { transform: scaleX(1); } }
.playbtn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; padding: 0; color: var(--fg); }
.tool-body { margin-top: 20px; min-height: 180px; }
.tool-body p { margin: 0 0 14px; color: var(--muted); max-width: 44ch; }
.tool-body p b { color: var(--fg); font-weight: 600; }
.swatches { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.swatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; padding: 0; transition: transform .25s var(--ease); }
.swatches button[aria-pressed="true"] { border-color: #fff; transform: scale(1.15); }
.tl { display: flex; align-items: flex-start; }
.tl .v { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 84px; position: relative; }
.tl .v i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); transition: background .35s, box-shadow .35s; }
.tl .v.on i { background: var(--fg); box-shadow: 0 0 12px rgba(255, 255, 255, .5); }
.tl .v:not(:last-child)::before { content: ""; position: absolute; left: 11px; right: 0; top: 3px; height: 1px; background: var(--faint); }
.tl .v b { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .35s; }
.tl .v.on b { color: var(--fg); }
.tl .v small { font-size: 11px; color: var(--faint); }
.path { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 16px; word-break: break-all; }
.path b { color: var(--fg); font-weight: 500; }
.result { display: inline-flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 13px; font-size: 13px; }
.result canvas { width: 26px; height: 26px; }
.result b { font-family: var(--mono); color: var(--pack); }
input[type="range"] { accent-color: var(--fg); }
.tool-foot { display: flex; gap: 14px; align-items: center; margin-top: 20px; font-size: 12px; color: var(--muted); }
.canvas-box { position: relative; width: min(470px, 100%); justify-self: center; }
.frame { position: relative; padding: 16px; }
.frame .c { position: absolute; width: 16px; height: 16px; border-color: var(--muted); border-style: solid; }
.frame .c1 { left: 0; top: 0; border-width: 1px 0 0 1px; } .frame .c2 { right: 0; top: 0; border-width: 1px 1px 0 0; }
.frame .c3 { left: 0; bottom: 0; border-width: 0 0 1px 1px; } .frame .c4 { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.pgrid { display: grid; grid-template-columns: repeat(16, 1fr); aspect-ratio: 1; max-width: 100%; position: relative; overflow: hidden; border-radius: 4px; }
.pgrid > div:not(.scan) { transition: background-color .5s ease var(--d, 0ms), transform .5s var(--ease) var(--d, 0ms); }
.pgrid.wave > div:not(.scan) { animation: flash .7s var(--ease) var(--d) both; }
@keyframes flash { 40% { filter: brightness(1.9); transform: scale(.78); } }
.pgrid.paint > div:not(.scan) { cursor: crosshair; }
.pgrid.paint > div:not(.scan):hover { outline: 1px solid rgba(255, 255, 255, .55); outline-offset: -1px; }
.scan { position: absolute; left: 0; right: 0; height: 20%; top: -22%; background: linear-gradient(transparent, color-mix(in oklab, var(--pack) 38%, transparent)); border-bottom: 1px solid var(--pack); pointer-events: none; opacity: 0; }
.pgrid.finding .scan { opacity: 1; animation: scan 2.3s var(--ease-io) infinite; }
@keyframes scan { to { top: 102%; } }
.canvas-cap { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; font-family: var(--mono); }

/* Corona */
.crown { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 900px) { .crown { grid-template-columns: minmax(0, 1fr); } }
.tier-name { display: flex; align-items: baseline; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.tier-name strong { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -.05em; line-height: 1; }
.tier-name span { font-size: 12.5px; color: var(--muted); }
.tier-name span b { color: var(--fg); font-weight: 600; }
.track { position: relative; margin-top: 16px; max-width: 380px; }
.track .icons { position: relative; height: 24px; }
.track .icons i { position: absolute; top: 4px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); border-radius: 3px; background: var(--c); opacity: .22; transition: opacity .35s, transform .45s var(--ease), box-shadow .35s; }
.track .icons i.on { opacity: 1; }
.track .icons i.cur { transform: translateX(-50%) rotate(45deg) scale(1.35); box-shadow: 0 0 18px var(--c); }
.track input { width: 100%; margin: 6px 0 0; }
.track .ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.crown-cta { display: flex; gap: 16px; align-items: center; margin-top: 26px; font-weight: 600; flex-wrap: wrap; }
.crown-stage { position: relative; height: clamp(440px, 46vw, 580px); }
.crown-stage canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline: none; }
.nametag { position: absolute; left: 50%; top: 7%; transform: translateX(-50%); display: flex; gap: 9px; align-items: center; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); border-radius: 8px; padding: 6px 12px 6px 9px; font-weight: 700; font-size: clamp(15px, 1.7vw, 19px); color: #fff; white-space: nowrap; pointer-events: none; }
.nametag i { width: 13px; height: 13px; transform: rotate(45deg); border-radius: 3px; background: var(--tier, #e07a3c); box-shadow: 0 0 14px var(--tier, #e07a3c); transition: background .5s, box-shadow .5s; }
.crown-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 50% at 50% 62%, color-mix(in oklab, var(--tier, #e07a3c) 20%, transparent), transparent 70%); transition: background .7s; }
.drag-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); pointer-events: none; white-space: nowrap; }
.ptable { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 900px) { .ptable { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .ptable { grid-template-columns: minmax(0, 1fr); } }
.pcell { border-top: 1px solid var(--line-2); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.pcell .big { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.04em; line-height: 1; }
.pcell .big small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 4px; font-family: var(--body); }
.pcell .free { font-size: 12px; color: var(--faint); }
.pcell p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Páginas internas ---------- */
.page-head { padding-block: clamp(36px, 6vw, 72px) 26px; }
.page-head .h2 { margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 13px; font-size: 13px; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 26px; }
.toolbar .count { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.select, .input, .textarea { background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; font-size: 14px; width: 100%; transition: border-color .2s; }
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: rgba(255, 255, 255, .32); }
.textarea { min-height: 110px; resize: vertical; }
.toolbar .select { width: auto; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 56px 16px; border: 1px dashed var(--line-2); border-radius: 16px; }
.empty strong { color: var(--fg); display: block; font-size: 16px; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0, var(--surface-2) 40%, var(--surface) 80%); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 15px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Página de pack */
.pk { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; padding-top: 22px; align-items: start; }
@media (max-width: 960px) { .pk { grid-template-columns: minmax(0, 1fr); } }
.pk-info { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 960px) { .pk-info { position: static; } }
.pk-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -.05em; line-height: .95; margin: 0; text-wrap: balance; word-break: break-word; }
.creator { display: flex; align-items: center; gap: 12px; }
.creator .av { width: 42px; height: 42px; border-radius: 11px; overflow: hidden; flex: none; background: var(--surface-2); }
.creator .av canvas, .creator .av img { width: 100%; height: 100%; object-fit: cover; }
.creator .n { min-width: 0; flex: 1; }
.creator .n a { font-weight: 600; text-decoration: none; }
.creator .n a:hover { color: var(--pack); }
.creator .n span { display: block; font-size: 12px; color: var(--muted); }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stats3 div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stats3 div + div { border-left: 1px solid var(--line); }
.stats3 b { font-family: var(--mono); font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; }
.stats3 span { font-size: 11.5px; color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-family: var(--mono); color: var(--muted); border: 1px solid var(--line-2); padding: 3px 9px; border-radius: 7px; text-decoration: none; }
a.tag:hover { color: var(--fg); }
.items { display: flex; gap: 8px; flex-wrap: wrap; }
.items figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.items .ic { width: 58px; height: 58px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.items canvas, .items img { width: 38px; height: 38px; }
.items figcaption { font-size: 11px; color: var(--muted); }
.viewer { position: relative; height: 380px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(60% 70% at 50% 60%, color-mix(in oklab, var(--pack) 12%, var(--bg-2)), var(--bg-2)); overflow: hidden; margin-top: 16px; }
.viewer canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; outline: none; }
.viewer .badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.desc { color: var(--muted); white-space: pre-line; max-width: 64ch; }
.report { background: none; border: 0; color: var(--faint); font-size: 12px; text-decoration: underline; padding: 0; justify-self: start; }
.report:hover { color: var(--muted); }

/* Perfil de creador */
.banner { height: 180px; border-radius: 20px; margin-top: 12px; position: relative; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(70% 140% at 20% 0%, color-mix(in oklab, var(--pack) 35%, transparent), transparent 60%), radial-gradient(60% 120% at 90% 100%, color-mix(in oklab, var(--brand) 18%, transparent), transparent 60%), var(--surface); }
.prof { position: relative; z-index: 1; display: flex; gap: 20px; align-items: flex-end; margin-top: -52px; padding-inline: 20px; flex-wrap: wrap; }
.prof .who { padding-top: 60px; }
.prof .av { width: 104px; height: 104px; border-radius: 24px; overflow: hidden; border: 4px solid var(--bg); background: var(--surface-2); flex: none; }
.prof .av canvas, .prof .av img { width: 100%; height: 100%; object-fit: cover; }
.prof .who { flex: 1; min-width: 220px; padding-bottom: 6px; }
.prof .who h1 { margin: 0; }
.prof .who p { margin: 4px 0 0; color: var(--muted); }
.prof .acts { display: flex; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }

/* Formularios */
.form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 600; }
.field .help { font-size: 12px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.drop { position: relative; border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 30px 18px; text-align: center; background: var(--surface); transition: border-color .25s, background .25s; }
.drop.over { border-color: var(--pack); background: color-mix(in oklab, var(--pack) 6%, var(--surface)); }
.drop p { margin: 8px 0 16px; color: var(--muted); font-size: 13.5px; }
.drop .file-ok { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--ok); word-break: break-all; }
.drop .file-err { margin-top: 14px; font-size: 13px; color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--pack); width: 16px; height: 16px; flex: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.switch b { display: block; font-size: 14px; }
.switch span { font-size: 12.5px; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.shots .s { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; border: 1px dashed var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--faint); font-size: 18px; }
.shots .s img { width: 100%; height: 100%; object-fit: cover; }
.shots .s button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; padding: 0; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--pack); border-radius: 999px; transition: width .2s; }
.found { display: grid; gap: 6px; font-size: 12.5px; }
.found div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; background: var(--surface); }
.found .y { color: var(--ok); } .found .n { color: var(--faint); }

/* Panel */
.tabs-page { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tabs-page button { border: 0; background: transparent; padding: 11px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-page button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--pack); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11px; font-family: var(--mono); color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl-pack { display: flex; align-items: center; gap: 10px; }
.tbl-pack .th { width: 64px; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: var(--surface-2); flex: none; }
.tbl-pack .th canvas, .tbl-pack .th img { width: 100%; height: 100%; object-fit: cover; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.publicado { color: var(--ok); background: color-mix(in oklab, var(--ok) 12%, transparent); }
.status.pendiente { color: var(--warn); background: color-mix(in oklab, var(--warn) 12%, transparent); }
.status.rechazado { color: var(--bad); background: color-mix(in oklab, var(--bad) 12%, transparent); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.04em; margin-top: 4px; }
.notice { border: 1px solid color-mix(in oklab, var(--warn) 35%, transparent); background: color-mix(in oklab, var(--warn) 7%, transparent); color: var(--fg); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
.notice b { color: var(--warn); }

/* Legal */
.prose { max-width: 72ch; color: #cfd0d4; }
.prose h2 { font-family: var(--display); letter-spacing: -.03em; font-size: 26px; margin: 46px 0 10px; color: var(--fg); scroll-margin-top: 100px; }
.prose h3 { font-size: 16px; margin: 24px 0 6px; color: var(--fg); }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--pack); }
.prose mark { background: color-mix(in oklab, var(--warn) 25%, transparent); color: var(--fg); padding: 0 4px; border-radius: 4px; }

/* ---------- Final y pie ---------- */
.find { text-align: center; padding-block: clamp(90px, 11vw, 150px) 40px; }
footer { border-top: 1px solid var(--line); margin-top: 60px; }
footer .wrap.cols { padding-block: 44px 28px; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { footer .wrap.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer .about { grid-column: 1 / -1; } }
footer h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
footer a { text-decoration: none; color: var(--muted); transition: color .2s; }
footer a:hover { color: var(--fg); }
footer .about p { color: var(--muted); font-size: 13px; max-width: 46ch; }
.legal { border-top: 1px solid var(--line); }
.legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 16px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: var(--faint); }
.legal a { color: var(--faint); }

/* ---------- Modales, avisos ---------- */
dialog { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); border-radius: 20px; padding: 0; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); }
dialog::backdrop { background: rgba(3, 4, 6, .74); backdrop-filter: blur(5px); }
dialog[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.965); } }
.dlg { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 15px; }
.dlg h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.04em; line-height: 1; }
.dlg p { margin: 0; color: var(--muted); font-size: 13.5px; }
.dlg .x { position: absolute; right: 14px; top: 14px; border: 0; background: rgba(255, 255, 255, .07); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.prov { display: grid; gap: 8px; }
.prov button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s; }
.prov button:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.prov i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-style: normal; background: var(--surface-3); }
.prov i svg { width: 14px; height: 14px; }
.prov .fine { margin-left: auto; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.email-row { display: flex; gap: 8px; }
.email-row .input { flex: 1; min-width: 0; }
.fine { font-size: 11.5px; color: var(--faint); }
.fine a { color: var(--muted); }
.gate { display: grid; gap: 10px; }
.gstep { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .4s, background .4s; }
.gstep .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); flex: none; font-size: 14px; transition: background .4s; }
.gstep .tx { flex: 1; min-width: 0; font-size: 13px; }
.gstep .tx b { display: block; font-size: 14px; }
.gstep .tx span { color: var(--muted); }
.gstep.done { border-color: color-mix(in oklab, var(--ok) 40%, transparent); }
.gstep.done .ic { background: color-mix(in oklab, var(--ok) 22%, transparent); color: var(--ok); }
.gstep.need { border-color: color-mix(in oklab, var(--warn) 40%, transparent); }
.ad-slot { position: relative; border: 1px dashed var(--line-2); border-radius: 14px; min-height: 100px; display: grid; place-items: center; color: var(--faint); font-size: 12px; font-family: var(--mono); overflow: hidden; }
.ad-slot::before { content: "Anuncio"; position: absolute; top: 6px; left: 9px; font-size: 10px; }
.ring { width: 36px; height: 36px; flex: none; }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: var(--line-2); }
.ring .fg { stroke: var(--pack); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; stroke-dasharray: 88; stroke-dashoffset: 88; transition: stroke-dashoffset 1s linear; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 18px); background: var(--fg); color: var(--bg); padding: 11px 17px; border-radius: 12px; font-weight: 600; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); z-index: 90; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cookies { position: fixed; left: calc(14px + env(safe-area-inset-left, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 80; max-width: 520px; background: rgba(16, 18, 23, .94); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: fade-up .7s var(--ease) .8s both; }
.cookies p { margin: 0; font-size: 13px; color: var(--muted); }
.cookies p b { color: var(--fg); }
.cookies .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.demo-bar { position: relative; z-index: 61; background: color-mix(in oklab, var(--brand) 14%, var(--bg)); color: var(--fg); font-size: 12.5px; text-align: center; padding: 7px var(--gr) 7px var(--gl); border-bottom: 1px solid color-mix(in oklab, var(--brand) 30%, transparent); }
.demo-bar b { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .split.scroll .w > span, .reveal { animation: none !important; }
}
.demo-tg { margin-left: 8px; font: inherit; font-weight: 600; color: var(--link, var(--brand)); background: none; border: 0; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }
.demo-tg:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
