/* =====================================================================
   CANJEZ — Design system "Oscuro premium"
   Negro profundo · dorado · acento neón · tipografía editorial
   Sin frameworks: un solo archivo CSS (~30 KB) para carga instantánea.
   ===================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #070709;
  --bg-2: #0b0b10;
  --surface: #111117;
  --surface-2: #17171f;
  --surface-3: #1e1e28;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f1e8;
  --muted: #a8a397;
  --faint: #6f6b63;
  --gold: #e8c36a;
  --gold-2: #f6dc92;
  --gold-deep: #b48a2c;
  --gold-rgb: 232, 195, 106;
  --gold2-rgb: 246, 220, 146;
  --ink: #16120a;
  --neon: #c8ff3e;
  --violet: #8c7bff;
  --ok: #53e08f;
  --warn: #f5b93f;
  --danger: #ff6b6b;
  --info: #6aa8ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(var(--gold-rgb), 0.25), 0 18px 50px -18px rgba(var(--gold-rgb), 0.35);
  --font: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.gold { color: var(--gold); }
.neon { color: var(--neon); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #111; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 10vw, 120px); position: relative; }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- Botones ---------- */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--b); color: var(--text); border: 1px solid var(--line-2);
  font: 600 .95rem/1 var(--font); letter-spacing: -.005em; cursor: pointer;
  transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.28); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  color: var(--ink); border-color: transparent; box-shadow: var(--glow);
}
.btn-gold:hover { color: var(--ink); box-shadow: 0 0 0 1px rgba(var(--gold2-rgb),.5), 0 22px 60px -18px rgba(var(--gold-rgb),.55); }
.btn-ghost { background: transparent; }
.btn-neon { background: var(--neon); color: #0b0f00; border-color: transparent; }
.btn-neon:hover { color: #0b0f00; }
.btn-danger { background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.4); color: #ffb3b3; }
.btn-sm { min-height: 36px; padding: .45rem .9rem; font-size: .85rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.link { color: var(--gold); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(7,7,9,.72);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.03em; font-size: 1.35rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 210deg, var(--gold-2), var(--gold-deep), var(--gold), var(--gold-2));
  color: #1a1408; font-size: .8rem; font-weight: 800; box-shadow: inset 0 0 0 3px rgba(0,0,0,.25);
}
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { white-space: nowrap; padding: .5rem .8rem; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-cta { display: flex; gap: .5rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
@media (max-width: 980px) {
  .nav-links, .nav-cta .hide-m { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav.open + .mobile-menu { display: block; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 1rem 0 1.5rem; }
.mobile-menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; }
.mobile-menu .btn { margin-top: 1rem; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(70px, 11vw, 140px) clamp(60px, 8vw, 110px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -2;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(var(--gold-rgb),.20), transparent 70%),
    radial-gradient(35% 45% at 12% 18%, rgba(140,123,255,.16), transparent 70%),
    radial-gradient(30% 35% at 55% 95%, rgba(200,255,62,.07), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; max-width: 300px; margin: 0 auto; } }
.hero h1 {
  font-size: clamp(3rem, 9.2vw, 7.6rem); line-height: .88; letter-spacing: -.055em; font-weight: 800;
  text-transform: uppercase; margin-bottom: .35em;
}
.hero h1 .serif { text-transform: none; font-size: 1.08em; letter-spacing: -.03em; color: var(--gold); display: inline-block; padding-right: .06em; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-note { margin-top: 1.4rem; display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.hero-note span::before { content: "✓ "; color: var(--neon); font-weight: 700; }

/* Moneda 3D animada (CSS puro) */
.coin-stage { perspective: 900px; display: grid; place-items: center; aspect-ratio: 1; }
.coin {
  width: min(78%, 330px); aspect-ratio: 1; border-radius: 50%; position: relative;
  transform-style: preserve-3d; animation: spin 9s linear infinite;
}
.coin-face {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 32%),
    conic-gradient(from 180deg, #f7e2a3, #c99a3a, #f1d27f, #9c7424, #f7e2a3);
  box-shadow: inset 0 0 0 10px rgba(0,0,0,.14), inset 0 0 0 14px rgba(255,236,180,.45), 0 40px 90px -30px rgba(var(--gold-rgb),.6);
}
.coin-face.back { transform: rotateY(180deg); }
.coin-face b { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -.06em; color: #3a2a08; text-shadow: 0 1px 0 rgba(255,240,200,.6); }
.coin-face small { position: absolute; bottom: 22%; font-size: .7rem; letter-spacing: .3em; font-weight: 700; color: #4a360c; }
.coin-ring { position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(var(--gold-rgb),.35); animation: rot 40s linear infinite; }
.coin-ring::after { content: ""; position: absolute; top: 8%; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 20px var(--neon); }
@keyframes spin { from { transform: rotateY(0) rotateX(8deg); } to { transform: rotateY(360deg) rotateX(8deg); } }
@keyframes rot { to { transform: rotate(360deg); } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 3rem; width: max-content; padding: 1.1rem 0; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; color: var(--faint); white-space: nowrap; }
.marquee-track span:nth-child(3n) { color: var(--gold); font-family: var(--serif); font-style: italic; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px);
  position: relative;
}
.card.hover { transition: border-color .2s, transform .2s, box-shadow .2s; }
.card.hover:hover { border-color: rgba(var(--gold-rgb),.35); transform: translateY(-3px); box-shadow: var(--shadow); }
.card.glow { box-shadow: var(--glow); border-color: rgba(var(--gold-rgb),.35); }
.card-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 .3rem; letter-spacing: -.015em; }
.card h3 a:hover { color: var(--gold-2); }
.card .num { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--gold); font-family: var(--serif); font-style: italic; }
.divider-dot { color: var(--faint); margin: 0 .35rem; }

.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: rgba(var(--gold-rgb),.1); border: 1px solid rgba(var(--gold-rgb),.25); color: var(--gold); font-size: 1.3rem;
}

/* Tarjeta de oportunidad */
.opp { display: flex; flex-direction: column; gap: .8rem; height: 100%; }
.opp-top { display: flex; align-items: center; gap: .7rem; }
.logo-box {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line); font-weight: 800; color: var(--gold); font-size: .9rem;
}
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.opp h3 { font-size: 1.12rem; margin: 0; line-height: 1.2; }
.opp-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.opp-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.opp-value { font-weight: 700; }
.match { font-size: .78rem; font-weight: 700; color: var(--neon); }

/* Tarjeta de creador */
.creator-card { text-align: left; display: flex; flex-direction: column; gap: .8rem; height: 100%; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); display: grid; place-items: center;
  border: 1px solid var(--line-2); font-weight: 800; color: var(--gold); overflow: hidden;
}
.avatar.xl { width: 120px; height: 120px; font-size: 2.2rem; border: 2px solid rgba(var(--gold-rgb),.5); box-shadow: var(--glow); }
.avatar.sm { width: 36px; height: 36px; font-size: .8rem; }
.stats-inline { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.stats-inline b { color: var(--text); font-weight: 700; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.pill.gold { color: var(--gold-2); border-color: rgba(var(--gold-rgb),.35); background: rgba(var(--gold-rgb),.08); }
.pill.neon { color: var(--neon); border-color: rgba(200,255,62,.3); background: rgba(200,255,62,.06); }
.pill.ok { color: var(--ok); border-color: rgba(83,224,143,.3); background: rgba(83,224,143,.08); }
.pill.info { color: var(--info); border-color: rgba(106,168,255,.3); background: rgba(106,168,255,.08); }
.pill.warn { color: var(--warn); border-color: rgba(245,185,63,.3); background: rgba(245,185,63,.08); }
.pill.muted { color: var(--faint); }
.pill.danger { color: var(--danger); border-color: rgba(255,107,107,.3); background: rgba(255,107,107,.08); }
.badge-verified { color: var(--info); font-size: .9em; }
.score-ring {
  --p: 60; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 64px;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score-ring span { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 1rem; }

/* ---------- Secciones de marketing ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.steps { counter-reset: step; }
.step { position: relative; padding-top: 3.2rem; }
.step::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--gold);
}
.tabs { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; gap: 4px; margin-bottom: 2rem; }
.tabs button { background: none; border: 0; color: var(--muted); font: 600 .95rem var(--font); padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--gold); color: #16120a; }
.tab-panel[hidden] { display: none !important; }

.big-quote { font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.big-quote .serif { color: var(--gold); }

.product-card { min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.product-card .kicker { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.product-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb),.18), transparent 70%); pointer-events: none;
}
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-band > div { padding: 1.6rem; border-right: 1px solid var(--line); background: var(--bg-2); }
.stat-band > div:last-child { border-right: 0; }
.stat-band b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat-band span { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .stat-band { grid-template-columns: 1fr 1fr; } .stat-band > div:nth-child(2) { border-right: 0; } .stat-band > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  background: radial-gradient(60% 120% at 100% 0%, rgba(var(--gold-rgb),.28), transparent 60%), linear-gradient(135deg, #16130b, #0d0d12 60%);
  border: 1px solid rgba(var(--gold-rgb),.3);
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.8rem); text-transform: uppercase; letter-spacing: -.045em; line-height: .95; }

/* Precios */
.price-card { display: flex; flex-direction: column; gap: 1rem; }
.price-card.featured { border-color: rgba(var(--gold-rgb),.5); box-shadow: var(--glow); }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checklist li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--neon); font-weight: 800; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: .8rem 0 0; }

/* Prosa (blog, legal) */
.prose { font-size: 1.08rem; line-height: 1.75; color: #ddd8cc; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; color: var(--text); }
.prose h3 { font-size: 1.3rem; margin-top: 1.8rem; color: var(--text); }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose strong { color: var(--text); }

.breadcrumbs { font-size: .85rem; color: var(--faint); margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { color: var(--faint); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label, .label { font-weight: 600; font-size: .9rem; }
.hint { font-size: .8rem; color: var(--faint); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .75rem 1rem; border-radius: 12px;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2);
  font: 400 1rem var(--font); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb),.18); }
.input[type="file"] { padding: .6rem; min-height: auto; }
.field-error { color: var(--danger); font-size: .82rem; margin: 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: .25rem; accent-color: var(--gold); width: 18px; height: 18px; flex: 0 0 auto; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; font-size: .9rem; font-weight: 500; transition: all .15s; }
.choice input:checked + span { background: rgba(var(--gold-rgb),.12); border-color: var(--gold); color: var(--gold-2); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.role-card { cursor: pointer; }
.role-card input { position: absolute; opacity: 0; }
.role-card .card { height: 100%; transition: border-color .15s, box-shadow .15s; }
.role-card input:checked + .card { border-color: var(--gold); box-shadow: var(--glow); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin: 0; }
legend { padding: 0 .5rem; font-weight: 700; color: var(--gold); }

.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 48px var(--gutter); }
.auth-card { width: 100%; max-width: 460px; }

/* ---------- Alertas ---------- */
.alert { padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 1rem; font-size: .95rem; }
.alert.success { border-color: rgba(83,224,143,.4); background: rgba(83,224,143,.08); }
.alert.error { border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.08); }
.alert.info { border-color: rgba(106,168,255,.4); background: rgba(106,168,255,.08); }
.alert.warn { border-color: rgba(245,185,63,.45); background: rgba(245,185,63,.08); }
.flash-stack { position: fixed; top: 84px; right: 16px; z-index: 80; width: min(420px, calc(100% - 32px)); }
.flash-stack .alert { box-shadow: var(--shadow); animation: slideIn .3s ease; }
@keyframes slideIn { from { transform: translateY(-8px); opacity: 0; } }

.empty { text-align: center; padding: clamp(32px, 6vw, 64px) 1rem; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty .big { font-size: 2.4rem; margin-bottom: .5rem; }

/* ---------- Filtros / paginación ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.6rem; }
.filters .input, .filters .select { min-height: 44px; width: auto; flex: 1 1 180px; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.pagination .current { background: var(--gold); color: #16120a; border-color: transparent; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 64px calc(32px + env(safe-area-inset-bottom, 0px)); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer ul a { color: var(--muted); font-size: .92rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--faint); font-size: .85rem; }
.giant-word { font-size: clamp(3.5rem, 15vw, 13rem); font-weight: 800; letter-spacing: -.07em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(var(--gold-rgb),.28); margin-top: 48px; user-select: none; overflow: hidden; white-space: nowrap; }

/* ---------- App (panel) ---------- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 70px); }
.sidebar { border-right: 1px solid var(--line); background: var(--bg-2); padding: 1.4rem 1rem; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar .group { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 1.2rem .8rem .4rem; }
.sidebar a { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .93rem; }
.sidebar a:hover { background: var(--surface); color: var(--text); }
.sidebar a[aria-current="page"] { background: rgba(var(--gold-rgb),.1); color: var(--gold-2); }
.sidebar a .count { margin-left: auto; background: var(--gold); color: #16120a; border-radius: 999px; font-size: .7rem; font-weight: 800; padding: .05rem .45rem; }
.sidebar .wallet-chip { margin: 0 .4rem 1rem; padding: 1rem; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--gold-rgb),.16), rgba(var(--gold-rgb),.03)); border: 1px solid rgba(var(--gold-rgb),.28); }
.wallet-chip b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.app-main { padding: clamp(20px, 3vw, 40px); min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: .8rem; }
  .sidebar nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar a { white-space: nowrap; flex: 0 0 auto; }
  .sidebar .group, .sidebar .wallet-chip { display: none; }
}
.kpi { padding: 1.2rem 1.3rem; }
.kpi b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .85rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: .9rem 1rem; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,.015); }
.amount-pos { color: var(--ok); font-weight: 700; }
.amount-neg { color: var(--danger); font-weight: 700; }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 1rem; }
.kcol { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; min-height: 320px; display: flex; flex-direction: column; gap: .7rem; }
.kcol.drag-over { border-color: var(--gold); background: rgba(var(--gold-rgb),.04); }
.kcol-head { display: flex; justify-content: space-between; align-items: center; padding: .2rem .3rem .5rem; font-weight: 700; font-size: .9rem; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem; cursor: grab; }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .5; }
.kcard p { font-size: .88rem; color: var(--muted); margin: .5rem 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kcard .select { min-height: 36px; font-size: .82rem; padding: .3rem .8rem; }

/* Chat */
.chat { display: flex; flex-direction: column; height: 560px; max-height: 70vh; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.msg { max-width: 78%; padding: .65rem .9rem; border-radius: 16px; background: var(--surface-2); font-size: .94rem; line-height: 1.45; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, rgba(var(--gold-rgb),.22), rgba(var(--gold-rgb),.1)); border: 1px solid rgba(var(--gold-rgb),.3); }
.msg.system { align-self: center; max-width: 92%; background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-size: .84rem; text-align: center; }
.msg time { display: block; font-size: .7rem; color: var(--faint); margin-top: .25rem; }
.msg .masked-note { display: block; font-size: .72rem; color: var(--warn); margin-top: .2rem; }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.chat-form .textarea { min-height: 46px; height: 46px; resize: none; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.deliverable { display: grid; gap: .6rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }

/* Perfil público */
.profile-hero { padding-block: 56px 32px; position: relative; }
.profile-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 260px; z-index: -1; background: radial-gradient(60% 100% at 30% 0%, rgba(var(--gold-rgb),.16), transparent 70%); }
.profile-top { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.metric { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.metric b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.metric span { font-size: .8rem; color: var(--muted); }
.portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.portfolio a, .portfolio div { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; display: block; }
.portfolio img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.portfolio a:hover img { transform: scale(1.04); }
.review { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.stars { color: var(--gold); letter-spacing: 2px; }

.sticky-aside { position: sticky; top: 90px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .sticky-aside { position: static; } }

.notice-bar { background: linear-gradient(90deg, rgba(var(--gold-rgb),.18), rgba(140,123,255,.14)); border-bottom: 1px solid var(--line); font-size: .88rem; text-align: center; padding: .55rem var(--gutter); }
.notice-bar a { color: var(--gold-2); font-weight: 700; }

.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); border-radius: inherit; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.bars span { flex: 1; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.funnel-row { display: grid; grid-template-columns: 220px 1fr 70px; gap: 1rem; align-items: center; padding: .5rem 0; }
@media (max-width: 640px) { .funnel-row { grid-template-columns: 1fr 60px; } .funnel-row .progress { grid-column: 1 / -1; order: 3; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .sidebar, .btn { display: none !important; } body { background: #fff; color: #000; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: #25d366; color: #06290f; font-weight: 800; padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); font-size: .92rem; }
.wa-float:hover { color: #06290f; transform: translateY(-2px); }
@media print { .wa-float { display: none; } }

/* =====================================================================
   CANJEZ Music — mismo sistema, otra energía: violeta + magenta neón.
   Todo el sitio Music hereda estos tokens (botones, acentos, brillos).
   ===================================================================== */
.theme-music {
  --gold: #b794ff;
  --gold-2: #dcc8ff;
  --gold-deep: #7a45ff;
  --gold-rgb: 183, 148, 255;
  --gold2-rgb: 220, 200, 255;
  --ink: #12071f;
  --magenta: #ff4fd8;
  --glow: 0 0 0 1px rgba(183,148,255,.28), 0 18px 50px -18px rgba(255,79,216,.35);
}
.theme-music .hero::before {
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(183,148,255,.24), transparent 70%),
    radial-gradient(35% 45% at 12% 18%, rgba(255,79,216,.16), transparent 70%),
    radial-gradient(30% 35% at 55% 95%, rgba(80,220,255,.08), transparent 70%);
}
.theme-music ::selection { background: var(--gold); color: var(--ink); }
.brand-sub { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); margin-left: .15rem; }

/* Selector de sitio: Creadores | Music */
.site-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); gap: 2px; }
.site-switch a { white-space: nowrap; padding: .38rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1; }
.site-switch a[aria-current] { background: var(--surface-3); color: var(--text); }
.site-switch a.m[aria-current] { background: linear-gradient(135deg, #dcc8ff, #b794ff 45%, #7a45ff); color: #12071f; }
.site-switch a.c[aria-current] { background: linear-gradient(135deg, #f6dc92, #e8c36a 45%, #b48a2c); color: #16120a; }
@media (max-width: 980px) { .nav .site-switch { display: none; } .mobile-menu .site-switch { display: inline-flex; margin-bottom: .6rem; } }
@media (min-width: 981px) { .mobile-menu .site-switch { display: none; } }
@media (max-width: 1440px) { .nav-links a { padding: .45rem .55rem; font-size: .88rem; } .nav { gap: .7rem; } .nav-cta .btn-sm { padding-inline: .75rem; } }

/* Portal: dos sitios en uno */
.portal { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 90px) clamp(40px, 6vw, 80px); isolation: isolate; }
.portal-head { text-align: center; max-width: 820px; margin: 0 auto 2.4rem; }
.portal-head h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }
.door {
  position: relative; display: flex; flex-direction: column; gap: 1rem; min-height: 460px; padding: clamp(24px, 4vw, 44px);
  border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden; isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.door.creators::before { background: radial-gradient(70% 60% at 85% 10%, rgba(232,195,106,.30), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(200,255,62,.10), transparent 70%), #0e0d0b; }
.door.music::before { background: radial-gradient(70% 60% at 85% 10%, rgba(183,148,255,.34), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(255,79,216,.18), transparent 70%), #0d0a14; }
.door:hover { transform: translateY(-4px); }
.door.creators:hover { border-color: rgba(232,195,106,.55); box-shadow: 0 30px 80px -30px rgba(232,195,106,.45); }
.door.music:hover { border-color: rgba(183,148,255,.6); box-shadow: 0 30px 80px -30px rgba(255,79,216,.45); }
.door h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 0; }
.door .tag { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: .4rem .75rem; border-radius: 999px; border: 1px solid currentColor; }
.door.creators .tag, .door.creators em { color: #e8c36a; }
.door.music .tag, .door.music em { color: #b794ff; }
.door ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.door li { display: flex; gap: .6rem; align-items: baseline; color: var(--muted); }
.door li::before { content: "✦"; font-size: .8rem; }
.door.creators li::before { color: #e8c36a; }
.door.music li::before { color: #ff4fd8; }
.door .door-cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.door.music .btn-gold { background: linear-gradient(135deg, #dcc8ff, #b794ff 45%, #7a45ff); color: #12071f; box-shadow: 0 18px 50px -18px rgba(255,79,216,.45); }
.door-visual { position: absolute; right: -50px; bottom: -50px; width: 240px; height: 240px; opacity: .55; z-index: -1; }
.door h2, .door p, .door ul { max-width: 34ch; }
.door.music .door-visual { border-radius: 50%; background: repeating-radial-gradient(circle, #1a1326 0 3px, #120d1c 3px 6px); box-shadow: 0 0 0 1px rgba(183,148,255,.25); animation: spin 14s linear infinite; }
.door.music .door-visual::after { content: "♫"; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff4fd8, #7a45ff); color: #fff; font-size: 1.6rem; }
.door.creators .door-visual { border-radius: 50%; background: conic-gradient(from 210deg, #f6dc92, #b48a2c, #e8c36a, #f6dc92); box-shadow: inset 0 0 0 10px rgba(0,0,0,.25); display: grid; place-items: center; font-weight: 800; color: #1a1408; font-size: 2.4rem; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .door.music .door-visual { animation: none; } }
@media (max-width: 560px) { .door-visual { width: 150px; height: 150px; right: -40px; bottom: -40px; opacity: .35; } .door { min-height: 0; } }

/* Music: tarjetas de curador, envío y reproductor */
.curator-card { display: flex; flex-direction: column; gap: .8rem; }
.curator-card .top { display: flex; gap: .8rem; align-items: center; }
.curator-card .avatar { width: 52px; height: 52px; flex: 0 0 52px; font-size: .95rem; }
.kpis { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); }
.kpis b { color: var(--text); }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.pick:has(input:checked) { border-color: var(--gold); box-shadow: var(--glow); }
.pick input { width: 20px; height: 20px; accent-color: var(--gold); }
.match { font-weight: 700; font-size: .8rem; padding: .25rem .55rem; border-radius: 999px; background: rgba(var(--gold-rgb), .14); color: var(--gold); white-space: nowrap; }
.send-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-radius: 18px; background: rgba(17,17,23,.92); backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; background: var(--gold); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; } .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.timer-note { font-size: .85rem; color: var(--muted); }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { cursor: pointer; font-size: 1.4rem; color: var(--faint); }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: var(--gold); }
.vinyl { position: relative; width: min(380px, 78vw); aspect-ratio: 1; margin: auto; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 31%, rgba(183,148,255,.10) 31.5% 32%, transparent 32.5%), repeating-radial-gradient(circle, #1a1326 0 3px, #110c1b 3px 6px);
  box-shadow: 0 0 0 1px rgba(183,148,255,.28), 0 40px 120px -30px rgba(255,79,216,.45); animation: spin 16s linear infinite; }
.vinyl::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 20%, rgba(255,255,255,.07) 25%, transparent 30% 70%, rgba(255,255,255,.05) 75%, transparent 80%); }
.vinyl::after { content: "♫"; position: absolute; inset: 0; margin: auto; width: 30%; height: 30%; border-radius: 50%; display: grid; place-items: center; font-size: clamp(1.6rem, 4vw, 2.6rem); color: #fff; background: linear-gradient(135deg, #ff4fd8, #7a45ff); box-shadow: inset 0 0 0 6px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) { .vinyl { animation: none; } }
