/* =====================================================================
   OpinionApp — sistema de diseño (rediseño 2026)
   Sin dependencias ni paso de compilación. Tema claro/oscuro con
   variables CSS: <html data-theme="dark"> o preferencia del sistema.
   ===================================================================== */

:root {
  --bg: #FFFFFF;
  --bg2: #F5F7F8;
  --bg3: #EDF0F2;
  --fg: #0F1419;
  --mut: #536471;
  --line: #E6E9EC;
  --acc: #087A5F;
  --acc-hover: #06684F;
  --acc-soft: #E3F4EE;
  --acc-fg: #FFFFFF;
  --bar: #EEF1F3;
  --bar-win: #C9EBDF;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --warn-soft: #FFF6E0;
  --shadow: 0 1px 2px rgba(15, 20, 25, .06), 0 8px 24px rgba(15, 20, 25, .06);
  --shadow-lift: 0 2px 4px rgba(15, 20, 25, .06), 0 14px 34px rgba(15, 20, 25, .13);
  --radius: 16px;
  --radius-sm: 12px;
  /* Paleta de opciones de OpinionApp (la de siempre) */
  --opt-0: #FF6400; --opt-1: #624AE9; --opt-2: #09C557; --opt-3: #F100C2; --opt-4: #A1A3A4;
  --opt-5: #A153A4; --opt-6: #3653A4; --opt-7: #36532B; --opt-8: #D5382B; --opt-9: #D5EE0E;
  --opt-10: #19EE0E; --opt-11: #19BCE0; --opt-12: #ED29E0; --opt-13: #8829E0; --opt-14: #882925;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0A0C0F;
  --bg2: #15191E;
  --bg3: #1C2228;
  --fg: #E7E9EA;
  --mut: #8B98A5;
  --line: #262C33;
  --acc: #2FD3A2;
  --acc-hover: #4FE0B5;
  --acc-soft: #0F2E25;
  --acc-fg: #04140F;
  --bar: #1B2026;
  --bar-win: #174536;
  --danger: #FF8A80;
  --danger-soft: #3A1715;
  --warn-soft: #3A3015;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .5), 0 16px 38px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0A0C0F; --bg2: #15191E; --bg3: #1C2228; --fg: #E7E9EA; --mut: #8B98A5;
    --line: #262C33; --acc: #2FD3A2; --acc-hover: #4FE0B5; --acc-soft: #0F2E25;
    --acc-fg: #04140F; --bar: #1B2026; --bar-win: #174536; --danger: #FF8A80;
    --danger-soft: #3A1715; --warn-soft: #3A3015;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 16px 38px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--mut); }
.small { font-size: 13px; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; flex: none; }
.icon-xs { width: 15px; height: 15px; flex: none; }

/* ---------- Shell de la app ---------- */
.app {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 275px minmax(0, 620px) minmax(0, 360px);
  justify-content: center; min-height: 100vh;
}
.side-nav {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 2px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 10px 12px 18px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.nav-item {
  display: flex; align-items: center; gap: 16px; padding: 12px 14px;
  border-radius: 999px; font-size: 19px; width: fit-content;
}
.nav-item:hover { background: var(--bg2); }
.nav-item[aria-current="page"] { font-weight: 700; }
.nav-item .icon { width: 26px; height: 26px; }
.nav-cta { margin-top: 16px; width: 100%; height: 52px; font-size: 17px; }
.nav-user {
  margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 999px;
}
.nav-user:hover { background: var(--bg2); }
.nav-user-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav-user-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main-col {
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  min-height: 100vh; min-width: 0; padding-bottom: 40px;
}
.aside-col {
  padding: 12px 24px 40px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto;
}

.page-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.page-head-row {
  display: flex; align-items: center; gap: 16px; padding: 10px 16px; min-height: 53px;
}
.page-title { font-size: 20px; font-weight: 800; }
.page-sub { font-size: 13px; color: var(--mut); }

/* Barra superior y barra inferior en móvil */
.mobile-top, .bottom-bar, .fab { display: none; }

@media (max-width: 1180px) {
  .app { grid-template-columns: 88px minmax(0, 620px) minmax(0, 340px); }
  .side-nav { align-items: center; padding: 12px 8px; }
  .brand-name, .nav-label, .nav-user-text, .nav-user > .icon { display: none; }
  .nav-item { padding: 12px; }
  .nav-cta { width: 52px; padding: 0; }
  .nav-cta .nav-label { display: none; }
}
@media (max-width: 1000px) {
  .app { grid-template-columns: 88px minmax(0, 640px); }
  .aside-col { display: none; }
}
@media (max-width: 700px) {
  .app { display: block; }
  .side-nav { display: none; }
  .main-col { border: 0; padding-bottom: 96px; }
  .mobile-top {
    display: flex; align-items: center; justify-content: space-between;
    height: 54px; padding: 0 12px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30; background: var(--bg);
  }
  .page-head { top: 54px; }
  .bottom-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg); border-top: 1px solid var(--line);
  }
  .bottom-bar a {
    height: 52px; display: flex; align-items: center; justify-content: center; color: var(--mut);
  }
  .bottom-bar a[aria-current="page"] { color: var(--fg); }
  .bottom-bar .icon { width: 26px; height: 26px; }
  .fab {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 18px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 41;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--acc); color: var(--acc-fg); box-shadow: 0 8px 20px rgba(8, 122, 95, .35);
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap; background: transparent;
  transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--acc); color: var(--acc-fg); }
.btn-primary:hover { background: var(--acc-hover); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { opacity: .88; }
.btn-outline { border-color: var(--line); background: var(--bg); }
.btn-outline:hover { background: var(--bg2); }
.btn-ghost:hover { background: var(--bg2); }
.btn-danger { border-color: var(--line); color: var(--danger); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.icon-btn:hover { background: var(--bg2); }

/* ---------- Chips, badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--bg);
}
.chip:hover { border-color: var(--acc); color: var(--acc); }
.chip.is-active, .chip[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.tag-neutral { background: var(--bg2); color: var(--mut); }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--acc); color: var(--acc-fg); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Avatar ---------- */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  color: #FFFFFF; font-weight: 700; background: #1F6F8B; position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.avatar-xs { width: 32px; height: 32px; font-size: 12px; }
.avatar-sm { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 132px; height: 132px; font-size: 44px; border: 4px solid var(--bg); }
.av-0 { background: #1F6F8B; } .av-1 { background: #5B4B8A; } .av-2 { background: #2E7D4F; }
.av-3 { background: #8B5E3C; } .av-4 { background: #A23E48; } .av-5 { background: #3D5A80; }

/* ---------- Tabs ---------- */
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.tabs-fill > * { flex: 1; }
.tab {
  position: relative; height: 52px; padding: 0 18px; display: inline-flex; align-items: center;
  justify-content: center; gap: 6px; color: var(--mut); font-weight: 600; white-space: nowrap;
}
.tab:hover { background: var(--bg2); }
.tab[aria-current="page"], .tab.is-active { color: var(--fg); font-weight: 700; }
.tab[aria-current="page"]::after, .tab.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 4px; background: var(--acc);
}

/* ---------- Tarjetas y secciones ---------- */
.panel { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.panel-pad { padding: 16px; }
.panel-title { font-size: 20px; font-weight: 800; padding: 14px 16px 6px; }
.panel-link { display: block; padding: 14px 16px; color: var(--acc); font-weight: 600; }
.panel-link:hover, .row-link:hover { background: var(--bg2); }
.row-link { display: flex; gap: 12px; padding: 10px 16px; }
.section { padding: 20px 16px; border-bottom: 1px solid var(--line); }
.section-title { font-size: 18px; font-weight: 800; }

/* ---------- Composer rápido ---------- */
.composer { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.composer-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.composer-prompt { padding: 10px 0; font-size: 20px; color: var(--mut); }
.composer-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.composer-tools .tool-icons { display: flex; gap: 2px; color: var(--acc); }

/* ---------- Tarjeta de Opin ---------- */
.opin {
  display: flex; gap: 12px; padding: 16px; margin: 8px 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease;
}
.opin:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }
html[data-theme="dark"] .opin:hover { border-color: var(--line); }
.opin-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.opin-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.opin-author { font-weight: 700; }
.opin-meta .tag { margin-left: auto; }
.opin-q { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.opin-q-lg { font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.opin-img {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  max-height: 420px; background: var(--bg2);
}
.opin-img img { width: 100%; max-height: 420px; object-fit: cover; }
.opin-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--mut); font-size: 14px;
}
.opin-foot .sep { opacity: .7; }
.opin-actions {
  display: flex; justify-content: space-between; max-width: 440px; color: var(--mut); font-size: 14px;
}
.act {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px; margin: 0 -6px;
  border: 0; background: transparent; color: inherit; border-radius: 999px;
}
.act:hover { color: var(--acc); }
.act.is-on { color: var(--acc); }
.act.is-on svg { fill: currentColor; }

/* Opciones de voto */
.poll { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; }
.poll-question { font-weight: 700; margin-bottom: 2px; }
.poll-opt {
  width: 100%; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg); font-weight: 600; text-align: left;
  display: flex; align-items: center; gap: 10px;
}
.poll-opt:hover { border-color: var(--acc); background: var(--acc-soft); }
.poll-opt input { accent-color: var(--acc); width: 18px; height: 18px; margin: 0; flex: none; }
.poll-opt:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.poll.is-busy { opacity: .6; pointer-events: none; }

/* Resultados: texto arriba y barra sólida debajo (opción C), colores de siempre */
.result { display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.result-row { display: flex; align-items: baseline; gap: 8px; font-weight: 500; }
.result.is-lead .result-row { font-weight: 700; }
.result-label { overflow-wrap: anywhere; }
.result-mine { display: inline-flex; align-items: center; gap: 4px; color: var(--acc); font-size: 13px; font-weight: 600; white-space: nowrap; }
.result-pct { margin-left: auto; padding-left: 8px; white-space: nowrap; }
.result-count { color: var(--mut); font-size: 13px; font-weight: 500; margin-right: 8px; }
.result-track { height: 24px; border-radius: 12px; background: var(--bg2); overflow: hidden; }
.result-bar {
  height: 100%; border-radius: 12px; background: var(--c, var(--acc));
  transition: width 1s cubic-bezier(.2, .8, .2, 1);
}
.poll .result + .result { margin-top: 6px; }

/* Segmentos (barras apiladas) */
.seg-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 72px; align-items: center; gap: 12px; }
.seg-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--bar); }
.seg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mut); font-size: 13px; }
.seg-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.s0 { background: var(--opt-0); } .s1 { background: var(--opt-1); } .s2 { background: var(--opt-2); } .s3 { background: var(--opt-3); } .s4 { background: var(--opt-4); }
.s5 { background: var(--opt-5); } .s6 { background: var(--opt-6); } .s7 { background: var(--opt-7); } .s8 { background: var(--opt-8); } .s9 { background: var(--opt-9); }
.s10 { background: var(--opt-10); } .s11 { background: var(--opt-11); } .s12 { background: var(--opt-12); } .s13 { background: var(--opt-13); } .s14 { background: var(--opt-14); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 700; }
.hint { color: var(--mut); font-size: 13px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--fg); outline: none;
}
.textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.input-lg { min-height: 56px; font-size: 18px; font-weight: 600; }
.input.is-invalid { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: 13px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fieldset legend { padding: 0 0 8px; font-weight: 700; }

/* Control segmentado (radios) */
.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px;
  border-radius: var(--radius-sm); background: var(--bg2);
}
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex; align-items: center; justify-content: center; height: 38px; padding: 0 10px;
  border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--mut);
}
.segmented input:checked + span { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.segmented input:focus-visible + span { outline: 2px solid var(--acc); }

/* Pestañas con botones dentro de un control segmentado */
.seg-tabs button { border: 0; background: transparent; padding: 0; }
.seg-tabs button span {
  display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 12px;
  border-radius: 9px; font-weight: 600; color: var(--mut);
}
.seg-tabs button[aria-selected="true"] span { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.btn.is-on { color: var(--acc); border-color: var(--acc); }
.btn.is-on svg { fill: currentColor; }

/* Chips de selección (radios) */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1.5px solid var(--line);
  border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.chip-radio input:checked + span { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }

.option-row { display: flex; align-items: center; gap: 8px; }
.option-num { width: 28px; text-align: center; color: var(--mut); font-weight: 600; flex: none; }
.dashed-btn {
  height: 46px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: transparent;
  color: var(--acc); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.dashed-btn:hover { border-color: var(--acc); }
.upload {
  position: relative; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--mut); font-weight: 600;
  cursor: pointer; text-align: center;
}
.upload:hover { border-color: var(--acc); color: var(--acc); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { border-radius: var(--radius); overflow: hidden; max-height: 260px; }
.upload-preview img { width: 100%; max-height: 260px; object-fit: cover; }

/* ---------- Mensajes ---------- */
.flash {
  margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 10px; font-weight: 500;
}
.flash-ok { background: var(--acc-soft); color: var(--fg); }
.flash-error { background: var(--danger-soft); color: var(--fg); }
.flash ul { margin: 0; padding-left: 18px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 700px) { .toast { bottom: calc(90px + env(safe-area-inset-bottom)); } }

.empty {
  padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty h2 { font-size: 22px; font-weight: 800; }
.empty p { color: var(--mut); max-width: 360px; }

/* ---------- Perfil ---------- */
.cover { height: 180px; background: var(--acc-soft); position: relative; overflow: hidden; }
.cover-bars { position: absolute; right: 40px; bottom: 28px; display: flex; align-items: flex-end; gap: 10px; }
.cover-bars span { width: 18px; border-radius: 6px; background: var(--acc); }
.profile-head { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.profile-top { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -64px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.stat { padding: 12px; border-radius: 14px; background: var(--bg2); display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 20px; font-weight: 800; }
.stat span { color: var(--mut); font-size: 13px; }
.mini-bar { height: 8px; border-radius: 999px; background: var(--bar); overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--acc); }

/* ---------- Explorar ---------- */
.hero-opin {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
  padding: 24px; border-radius: 24px; background: var(--acc-soft);
}
.hero-kicker { color: var(--acc); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-q { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.topic-tile {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1.5px solid var(--line); border-radius: 18px;
}
.topic-tile:hover { border-color: var(--acc); }
.topic-tile.is-active { border-color: var(--acc); background: var(--acc-soft); }
.search-box {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--bg2); color: var(--mut); border: 1.5px solid transparent;
}
.search-box:focus-within { border-color: var(--acc); background: var(--bg); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); outline: none; font-size: 16px; }

/* ---------- Paginación ---------- */
.pager { display: flex; justify-content: center; gap: 8px; padding: 20px 16px; }

/* ---------- Acceso (invitados) ---------- */
.guest {
  min-height: 100vh; display: flex; flex-direction: column;
}
.guest-wrap {
  flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 48px 32px;
  display: flex; flex-wrap: wrap; gap: 64px; align-items: center;
}
.guest-hero { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.guest-title { font-size: clamp(40px, 6vw, 64px); font-weight: 900; line-height: 1.02; letter-spacing: -0.04em; }
.guest-title em { font-style: normal; color: var(--acc); }
.guest-lead { color: var(--mut); font-size: 19px; line-height: 1.5; max-width: 520px; }
.guest-card { flex: 0 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.guest-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.guest-foot {
  padding: 20px 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  color: var(--mut); font-size: 13px;
}
.divider { display: flex; align-items: center; gap: 12px; color: var(--mut); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 700px) {
  .guest-wrap { padding: 28px 20px; gap: 36px; }
  .guest-hero .sample { display: none; }
}

/* ---------- Utilidades ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.p-16 { padding: 16px; }
.hide-mobile { }
@media (max-width: 700px) { .hide-mobile { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Puntos y ranking */
.fg { color: var(--fg); }
.avatar-md { width: 56px; height: 56px; font-size: 18px; }
.lvl {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.lvl.is-off { background: var(--bg2); color: var(--mut); }
.lvl.is-current { background: var(--acc); color: #fff; }
.lvl-progress { height: 8px; border-radius: 4px; background: var(--bg2); overflow: hidden; }
.lvl-progress span { display: block; height: 100%; border-radius: 4px; background: var(--acc); }
.me-card { display: flex; gap: 14px; align-items: flex-start; }
.me-strip { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.me-strip:hover { background: var(--bg2); }
.rank-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.rank-row:hover { background: var(--bg2); }
.rank-row.is-me { background: var(--acc-soft); }
.rank-pos {
  min-width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--mut); flex: none;
}
.rank-pos.top { color: #2C2C2A; }
.rank-pos.top-1 { background: #F6D57A; }
.rank-pos.top-2 { background: #D9DDE3; }
.rank-pos.top-3 { background: #E9B98F; }
.rank-pts { font-weight: 800; white-space: nowrap; }
.rank-pts small { font-weight: 500; color: var(--mut); font-size: 12px; }
.rules { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rule { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.rule + .rule { border-top: 1px solid var(--line); }
.rule-pts {
  min-width: 52px; text-align: center; padding: 4px 8px; border-radius: 10px;
  background: var(--acc-soft); color: var(--acc); font-weight: 800;
}
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.badges-compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.badges-compact .muted { display: none; }
.badge-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.badge-item.is-off { opacity: .55; }
.badge-icon { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #2C2C2A; }
.badge-icon svg { width: 18px; height: 18px; }
.badge-primer_opin { background: #8FB9A8; }
.badge-constante { background: #F6B88B; }
.badge-explorador { background: #8DB6FF; }
.badge-popular { background: #E7A1B0; }
.badge-viral { background: #F6D57A; }
.badge-item.is-off .badge-icon { background: var(--bg2); color: var(--mut); }

/* Publicidad */
.ad-slot { padding: 12px 16px 16px; margin: 8px 10px; border: 1px solid var(--line); border-radius: 20px; }
.ad-label { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); margin-bottom: 8px; }
.ad-demo {
  display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 16px;
  border: 1px dashed var(--line); border-radius: 14px; color: var(--mut); font-size: 14px; text-align: center;
}

/* Aviso de puntos */
.pts-toast {
  position: fixed; top: 18px; right: 18px; z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  background: #F6D57A; color: #2C2C2A; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0; transform: translateY(-16px) scale(.96); pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.4, .4, 1);
}
.pts-toast.is-on { opacity: 1; transform: none; }
.pts-toast strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.pts-toast small { display: block; font-size: 13px; opacity: .8; }
.pts-toast-icon {
  width: 38px; height: 38px; border-radius: 999px; background: rgba(255, 255, 255, .55);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.pts-toast-icon svg { width: 20px; height: 20px; }
.pts-toast.is-on .pts-toast-icon { animation: pts-pop .6s ease .1s; }
@keyframes pts-pop { 0% { transform: scale(.6) rotate(-12deg); } 60% { transform: scale(1.15) rotate(6deg); } 100% { transform: none; } }
@media (max-width: 700px) { .pts-toast { left: 50%; right: auto; top: 12px; transform: translate(-50%, -16px) scale(.96); } .pts-toast.is-on { transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .pts-toast, .pts-toast.is-on .pts-toast-icon { transition: none; animation: none; } }
.rank-free { margin: 4px 16px 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--mut); font-size: 13px; }

/* Movimiento: tarjetas que aparecen y transiciones entre páginas */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .side-nav { view-transition-name: oa-nav; }
  .bottom-bar { view-transition-name: oa-bottom; }
  ::view-transition-old(root) { animation: oa-out .18s ease both; }
  ::view-transition-new(root) { animation: oa-in .32s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes oa-out { to { opacity: 0; } }
@keyframes oa-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .opin, .opin:hover { transition: none; transform: none; }
  .result-bar { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Imagen ampliable */
.opin-img-zoom { display: block; width: 100%; padding: 0; cursor: zoom-in; font: inherit; }
.opin-img-zoom img { display: block; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.opin-img-zoom:hover img { transform: scale(1.02); }
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; background: rgba(8, 10, 12, .9); cursor: zoom-out;
  opacity: 0; transition: opacity .22s ease;
}
.lightbox.is-on { opacity: 1; }
.lightbox img {
  max-width: 100%; max-height: 100%; height: auto; object-fit: contain; border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  transform: scale(.9); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.lightbox.is-on img { transform: none; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox img, .opin-img-zoom img { transition: none; } }
.me-card-box { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--acc-soft); }
.rank-head { padding: 18px 16px 0; border-bottom: 1px solid var(--line); }
.rank-head .tabs { margin: 10px -16px 0; }
.me-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }

/* Filtro «Sin votar» */
.filter-row { display: flex; gap: 8px; padding: 0 16px 10px; flex-wrap: wrap; }
.chip-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 700; }
.pending-note { display: flex; align-items: center; gap: 8px; margin: 12px 16px 2px; color: var(--mut); font-size: 14px; }
.pending-note strong { color: var(--acc); }
.pending-cta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--acc-soft); border: 1px solid transparent; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.pending-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.pending-cta-icon { width: 42px; height: 42px; border-radius: 14px; background: #F6D57A; color: #2C2C2A; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* Estadísticas (administradores) */
.nav-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); font-size: 12px; font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: live-pulse 2s infinite; display: inline-block; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stat-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; }
.stat-card strong { font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat-label { display: inline-flex; align-items: center; gap: 8px; color: var(--mut); font-size: 13px; font-weight: 600; }
.stat-live { background: var(--acc-soft); border-color: transparent; }
.mini-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 160px; }
.mini-col { display: flex; flex-direction: column; align-items: center; height: 160px; gap: 4px; min-width: 0; }
.mini-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.mini-bar { width: 100%; max-width: 28px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--acc); opacity: .85; }
.mini-col:last-child .mini-bar { opacity: 1; }
.mini-val { font-size: 11px; color: var(--mut); font-weight: 600; }
.mini-day { font-size: 11px; color: var(--mut); }
@media (max-width: 1180px) { .nav-live { display: none; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Página de bienvenida (debajo del acceso) */
.land-band { background: var(--acc-soft); padding: 28px 20px; }
.land-stats { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.land-stats strong { display: block; font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -0.03em; color: var(--acc); }
.land-stats span { color: var(--mut); font-weight: 600; }
.land-section { max-width: 1100px; margin: 0 auto; padding: 56px 20px; }
.land-h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 28px; }
.land-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .land-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .land-grid { grid-template-columns: 1fr; } }
.land-card { padding: 20px; border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.land-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.land-card h3 { font-size: 19px; font-weight: 800; }
.land-card p { color: var(--mut); line-height: 1.5; }
.land-ico { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #2C2C2A; }
.land-ico svg { width: 22px; height: 22px; }
.land-apps { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.land-final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .land-stats { grid-template-columns: 1fr; } .land-section { padding: 40px 20px; } }

/* Portada pública */
.lp-in { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.lp-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.lp-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.lp-brand { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.lp-links { display: flex; gap: 22px; color: var(--mut); font-weight: 600; }
.lp-links a:hover { color: var(--fg); }
.lp-hero { padding: 64px 0 56px; }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.lp-hero-txt { display: flex; flex-direction: column; gap: 22px; }
.lp-kicker { color: var(--acc); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lp-title { font-size: clamp(36px, 5vw, 60px); font-weight: 900; line-height: 1.02; letter-spacing: -0.04em; }
.lp-title em { font-style: normal; }
.lp-title span, .lp-title em { display: block; }
.lp-pre { margin: -8px 0 -10px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--fg); }
.lp-title span:first-child { text-wrap: balance; }
.lp .lp-title { width: fit-content; padding-bottom: .14em; margin-bottom: -.14em; }
.lp-lead { color: var(--mut); font-size: 19px; line-height: 1.55; max-width: 540px; }
.lp-secret { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 999px; background: var(--acc-soft); color: var(--fg); align-self: flex-start; font-size: 15px; font-weight: 600; }
.lp-secret svg { color: var(--acc); flex: none; }
.lp-secret strong { font-weight: 800; color: var(--acc); }
.lp-opin { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 26px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lift); transform: rotate(-1deg); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.lp-opin:hover { transform: rotate(0) translateY(-4px); }
.lp-opin-q { font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.lp-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.lp-opin-cta { color: var(--acc); font-weight: 700; }
.lp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; }
.lp-steps li { padding: 22px; border-radius: 22px; background: var(--bg2); display: flex; flex-direction: column; gap: 8px; }
.lp-steps h3 { font-size: 21px; font-weight: 800; }
.lp-steps p { color: var(--mut); line-height: 1.5; }
.lp-step-n { width: 36px; height: 36px; border-radius: 12px; background: var(--acc); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.lp-rank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; border-top: 1px solid var(--line); }
.lp-podium { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-podium li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 18px; }
.lp-temas .chip { font-size: 15px; padding: 8px 16px; }
@media (max-width: 900px) {
  .lp-hero-in, .lp-rank { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-links { display: none; }
  .lp-hero { padding: 40px 0; }
  .lp-opin { transform: none; }
}

/* Portada pública: degradados de marca (verde → turquesa → azul → violeta) */
.lp {
  --grad: linear-gradient(115deg, #0B9E7A 0%, #14B8A6 30%, #3B82F6 65%, #8B5CF6 100%);
  --grad-title: linear-gradient(170deg, #0B9E7A 5%, #14B8A6 28%, #3B82F6 55%, #8B5CF6 82%);
  --grad-soft: linear-gradient(115deg, rgba(11, 158, 122, .12), rgba(59, 130, 246, .10) 55%, rgba(139, 92, 246, .12));
}
html[data-theme="dark"] .lp, .lp[data-theme="dark"] {
  --grad: linear-gradient(115deg, #2FD3A2 0%, #22D3EE 35%, #60A5FA 65%, #A78BFA 100%);
  --grad-title: linear-gradient(170deg, #2FD3A2 5%, #22D3EE 28%, #60A5FA 55%, #A78BFA 82%);
  --grad-soft: linear-gradient(115deg, rgba(47, 211, 162, .14), rgba(96, 165, 250, .12) 55%, rgba(167, 139, 250, .14));
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .lp {
    --grad: linear-gradient(115deg, #2FD3A2 0%, #22D3EE 35%, #60A5FA 65%, #A78BFA 100%);
    --grad-title: linear-gradient(170deg, #2FD3A2 5%, #22D3EE 28%, #60A5FA 55%, #A78BFA 82%);
    --grad-soft: linear-gradient(115deg, rgba(47, 211, 162, .14), rgba(96, 165, 250, .12) 55%, rgba(167, 139, 250, .14));
  }
}
.lp .grad-text, .lp .lp-title, .lp .lp-kicker, .lp .land-stats strong {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp .lp-title { background: var(--grad-title); -webkit-background-clip: text; background-clip: text; }
.lp .btn-primary {
  background: var(--grad); background-size: 200% 100%; background-position: 0% 50%; border: 0; color: #fff;
  box-shadow: 0 8px 22px -8px rgba(59, 130, 246, .55);
  transition: background-position .6s ease, transform .2s ease, box-shadow .3s ease;
}
.lp .btn-primary:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(139, 92, 246, .55); }
.lp-hero { position: relative; overflow: hidden; isolation: isolate; }
.lp-hero::before, .lp-hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none;
}
.lp-hero::before { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, #3B82F6, transparent 65%); }
.lp-hero::after { width: 460px; height: 460px; left: -160px; bottom: -200px; background: radial-gradient(circle, #14B8A6, transparent 65%); }
.lp .lp-opin {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
}
.lp .land-band { background: var(--grad-soft); }
.lp .lp-step-n { background: var(--grad); }
.lp .land-final {
  margin: 40px auto 56px; max-width: 1100px; padding: 56px 24px; border-radius: 32px; border-top: 0;
  background: var(--grad-soft); position: relative; overflow: hidden;
}
.lp .land-final .land-h2 { max-width: 760px; }
@media (prefers-reduced-motion: reduce) { .lp .btn-primary { transition: none; } }

/* Portada: sección para creadores y medios */
.lp-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 40px; border-radius: 32px; border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad, var(--acc)) border-box; }
.lp-media-txt { display: flex; flex-direction: column; gap: 18px; }
.lp-checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-checks li { position: relative; padding-left: 30px; line-height: 1.45; }
.lp-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 999px; background: var(--grad, var(--acc)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E") center/contain; }
.lp-checks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.lp-media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lp-aud { padding: 18px; border-radius: 20px; background: var(--bg2); display: flex; flex-direction: column; gap: 8px; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.lp-aud:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.lp-aud h3 { font-size: 17px; font-weight: 800; }
.lp-aud p { color: var(--mut); font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) { .lp-media { grid-template-columns: 1fr; padding: 24px; } }
@media (max-width: 520px) { .lp-media-grid { grid-template-columns: 1fr; } }
