/* Tema de la landing nueva (/nueva/) para las páginas que usan tokens.css: /comunidad/ y /empezar/.
   Solo redefine tokens y unos pocos detalles; no toca tokens.css, base.css ni components.css, que también usa /cajita/.
   Claro por defecto y oscuro según el sistema: estas páginas no llevan guion para recordar la elección. */
@font-face { font-family: "Instrument Sans"; src: url(../fonts/InstrumentSans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f2f4f2; --bg-sunken: #e3e7e3; --bg-screen: #060807;
  --surface-1: rgba(11, 16, 15, .03); --surface-2: rgba(11, 16, 15, .055); --surface-3: rgba(11, 16, 15, .09);
  --text: #0b100f; --text-2: #343d37; --text-3: #5b645d; --text-4: #8b948d; --text-inverse: #edf5ed;
  --line-soft: rgba(11, 16, 15, .06); --line: rgba(11, 16, 15, .11); --line-strong: rgba(11, 16, 15, .26);
  --accent: #477608; --accent-hover: #5a9010; --accent-soft: rgba(195, 250, 108, .42); --accent-text: #477608;
  --ok: #1e8a4c; --ok-soft: rgba(30, 138, 76, .08); --ok-line: rgba(30, 138, 76, .35); --ok-text: #1b7541;
  --warn: #a86b00; --warn-soft: rgba(168, 107, 0, .08); --warn-line: rgba(168, 107, 0, .35); --warn-text: #8a5800;
  --error: #c2362e; --error-soft: rgba(194, 54, 46, .07); --error-line: rgba(194, 54, 46, .4); --error-text: #b02a23;
  --focus: #0b100f;
  --font-display: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking-display: -.038em; --tracking-heading: -.03em;
  --r-md: 14px; --r-lg: 18px; --r-xl: 28px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 14px 30px -18px rgba(11, 16, 15, .2);
  --shadow-pop: 0 24px 60px -20px rgba(11, 16, 15, .3);
  --glow-accent: 0 40px 100px -50px rgba(71, 118, 8, .35);
  --lima: #c3fa6c;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1311; --bg-sunken: #050706;
    --surface-1: #ffffff08; --surface-2: #ffffff0f; --surface-3: #ffffff17;
    --text: #edf5ed; --text-2: #edf5edc7; --text-3: #edf5ed9e; --text-4: #edf5ed66; --text-inverse: #0b100f;
    --line-soft: #ffffff0d; --line: #ffffff1a; --line-strong: #ffffff42;
    --accent: #c3fa6c; --accent-hover: #d4ff8f; --accent-soft: rgba(195, 250, 108, .16); --accent-text: #c3fa6c;
    --ok: #3ddc84; --ok-soft: #3ddc8412; --ok-line: #3ddc8459; --ok-text: #7ee8ad;
    --warn: #ffb224; --warn-soft: #ffb22410; --warn-line: #ffb22459; --warn-text: #ffcf7a;
    --error: #ff6b6b; --error-soft: #ff6b6b12; --error-line: #ff6b6b66; --error-text: #ff9f9f;
    --focus: #c3fa6c;
    --shadow-1: 0 1px 0 #ffffff0f inset, 0 8px 24px #00000040; --shadow-pop: 0 24px 64px #00000080;
    --glow-accent: 0 40px 120px -40px rgba(195, 250, 108, .25);
  }
}

body { background: var(--bg-sunken); }
h1, h2, h3, h4 { font-weight: 600; }
::selection { background: var(--lima); color: #0b100f; }
/* el contenido va en un panel redondeado, como las secciones de la landing */
main:not(.shell) { background: var(--bg); border-radius: 32px; margin: 0 14px 14px; overflow: clip; }
@media (max-width: 600px) { main:not(.shell) { margin: 0 8px 8px; border-radius: 24px; } }
/* Comunidad lleva el contenido en una columna angosta: ahí el fondo es parejo */
.community-page { background: var(--bg); }
/* bloques que eran negros fijos: siguen oscuros, con su texto claro */
.preview { color: #c9d3cb; }
/* la guía de inicio marcaba el paso actual en azul: ahora usa el acento del tema */
.step[aria-current=step] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft) inset; }
.chip[aria-pressed=true] { border-color: var(--accent); }
.led .halo { fill: #c3fa6c; } .led .bulb { fill: #e9ffc4; }
/* botones con el mismo gesto que la landing: el relleno lima sube en círculo */
.btn:not(.btn--ghost) { position: relative; overflow: hidden; isolation: isolate; transition: color .35s, transform .25s; }
.btn:not(.btn--ghost)::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 130%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; scale: 0; background: var(--lima); transition: scale .6s cubic-bezier(.65, 0, .25, 1); }
@media (hover: hover) {
  .btn:not(.btn--ghost):not(:disabled):not([aria-disabled="true"]):hover { color: #0b100f; background: var(--text); }
  .btn--secondary:not(:disabled):not([aria-disabled="true"]):hover { background: transparent; }
  .btn:not(.btn--ghost):not(:disabled):not([aria-disabled="true"]):hover::before { scale: 2.3; }
}
@media (prefers-reduced-motion: reduce) { .btn::before { transition: none; } }
