/* porsitoca — tokens y componentes. Base: design/tokens.css, copiado sin "mejorarlo" (CLAUDE.md §15).
 *
 * Lo que se añade aquí y no está en el mockup es solo lo que la web real necesita y el mockup no
 * cubría: portada, errores de formulario, paginación, pie legal y las pantallas de admin. Todo con
 * los mismos tokens, la misma tipografía y el mismo tono.
 *
 * Nunito va autoalojada: cargarla de Google Fonts sería una llamada a terceros con la IP de cada
 * miembro, y la CSP del sitio es default-src 'self'.
 */

/* Variable font: un solo fichero por subconjunto cubre de 400 a 800. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
                 U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
                 U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
                 U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff; --surface: #f3f6f5; --text: #1a201d; --muted: #5b6662;
  --border: rgba(20,30,26,.14); --border-strong: rgba(20,30,26,.28);
  --accent: #0f6e56; --on-accent: #e1f5ee;
  --tint: #e1f5ee; --on-tint: #04342c; --on-tint-muted: #0f6e56;
  --warn-bg: #faeeda; --warn-ink: #633806;
  --bad-bg: #fcebeb; --bad-ink: #791f1f;
  --av-1: #9fe1cb; --av-2: #f5c4b3; --av-3: #cecbf6; --av-4: #fac775; --av-5: #b5d4f4; --av-6: #f4c0d1;
  /* Los seis circulos son pastel en los dos temas, asi que su tinta no cambia con el tema:
     con --on-tint las iniciales salian menta sobre pastel y no se leian en oscuro. */
  --av-ink: #04342c;
  --radius: 12px; --pill: 999px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --bg:#131816; --surface:#1c2320; --text:#edf1ef; --muted:#a4ada9;
  --border:rgba(237,241,239,.16); --border-strong:rgba(237,241,239,.32); --accent:#5dcaa5; --on-accent:#04342c;
  --tint:#0b3a2e; --on-tint:#9fe1cb; --on-tint-muted:#5dcaa5; --warn-bg:#412402; --warn-ink:#fac775; --bad-bg:#501313; --bad-ink:#f7c1c1;
  color-scheme: dark; } }
:root[data-theme="dark"] { --bg:#131816; --surface:#1c2320; --text:#edf1ef; --muted:#a4ada9;
  --border:rgba(237,241,239,.16); --border-strong:rgba(237,241,239,.32); --accent:#5dcaa5; --on-accent:#04342c;
  --tint:#0b3a2e; --on-tint:#9fe1cb; --on-tint-muted:#5dcaa5; --warn-bg:#412402; --warn-ink:#fac775; --bad-bg:#501313; --bad-ink:#f7c1c1;
  color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; padding-bottom: 80px; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -100vw; top: 8px; z-index: 60; background: var(--bg); border: 1.5px solid var(--accent);
        border-radius: var(--pill); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { left: 12px; }
svg.i { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2;
        stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }

/* Cabecera y navegación */
header.app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 0; gap: 12px; }
/* Marca (public/assets/brand, 13/09/2026): trébol con la hoja de la suerte en dorado, que no cambia con el tema;
   el verde de las otras tres, del tallo y de «toca» es el acento, así que en oscuro sube de tono solo. */
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 20px; letter-spacing: -0.3px;
        text-decoration: none; color: var(--text); }
.logo .mark { width: 32px; height: 32px; flex: none; }
.logo .mark .leaf { fill: var(--accent); }
.logo .mark .stem { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.logo .mark .lucky { fill: #fac775; }
.logo .accent { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 4px; }
.lang { display: inline-flex; gap: 2px; }
.lang a { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700;
          padding: 6px 9px; border-radius: var(--pill); min-height: 36px; cursor: pointer;
          display: inline-flex; align-items: center; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--tint); color: var(--on-tint); }
.theme { border: 0; background: transparent; color: var(--muted); width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
         font-size: 20px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* Sin tema elegido (#59) salen dos enlaces: el del sol lleva al oscuro y el de la luna al claro, y se ve
   solo el que corresponde al tema que está pintando el sistema. */
.theme.when-dark { display: none; }
@media (prefers-color-scheme: dark) { .theme.when-light { display: none; } .theme.when-dark { display: inline-flex; } }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--border);
             display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 0 max(8px, env(safe-area-inset-bottom)); z-index: 30; }
.bottomnav a { text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; display: flex; flex-direction: column;
               align-items: center; gap: 2px; padding: 6px 0; }
.bottomnav a svg.i { font-size: 22px; }
.bottomnav a[aria-current="page"] { color: var(--accent); }
/* Desde 821 px manda el menú lateral de shell.css (#66); por debajo, esta barra, como siempre. */
@media (min-width: 821px) { .bottomnav { display: none; } body { padding-bottom: 40px; } }

/* Botones, chips, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
       border-radius: var(--pill); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
       border: 1.5px solid var(--border); background: transparent; color: var(--text); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.danger { color: var(--bad-ink); border-color: var(--bad-ink); }
.btn.on { background: var(--tint); color: var(--on-tint); border-color: var(--tint); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
/* Una opcion de un grupo corto, con la forma de chip del mockup pero con su radio de verdad:
   sin el radio, quien no tenga :has() no ve cual esta elegida. */
.chip-radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 0; }
.chip-radio input { width: 18px; height: 18px; }
.chip-radio:has(input:checked) { background: var(--tint); color: var(--on-tint); border-color: var(--tint); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--tint); color: var(--on-tint); }
.badge.pending { background: var(--warn-bg); color: var(--warn-ink); }
.badge.bad { background: var(--bad-bg); color: var(--bad-ink); }
.badge.neutral { background: var(--surface); color: var(--muted); }

/* Tarjetas, listas, formularios */
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.card.tint { background: var(--tint); color: var(--on-tint); }
.card.tint .muted { color: var(--on-tint-muted); }

/* La tarjeta de premio gordo (#40). Es la unica vez en todo el ano que esta web da una noticia buena,
   asi que se sale del acento unico de §15 a proposito: confeti de colores y un latido. Se queda
   quieta si el sistema pide menos movimiento, y no lleva ningun color de fondo distinto para que el
   texto conserve el contraste de siempre en los dos temas. */
.party { position: relative; overflow: hidden; border: 2px solid var(--accent); }
.party .h-20 { letter-spacing: .2px; }
.party .party-amount { font-size: clamp(30px, 9vw, 44px); font-weight: 800; line-height: 1.05; margin-top: 6px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 2px; opacity: .9;
              animation: fall 4.5s linear infinite; }
.confetti i:nth-child(1) { left: 6%;  background: #e4572e; animation-delay: 0s;   }
.confetti i:nth-child(2) { left: 18%; background: #f3a712; animation-delay: .7s;  }
.confetti i:nth-child(3) { left: 31%; background: #17bebb; animation-delay: 1.4s; }
.confetti i:nth-child(4) { left: 44%; background: #e4572e; animation-delay: 2.1s; }
.confetti i:nth-child(5) { left: 57%; background: #7b6cf6; animation-delay: .35s; }
.confetti i:nth-child(6) { left: 69%; background: #f3a712; animation-delay: 1.75s;}
.confetti i:nth-child(7) { left: 82%; background: #17bebb; animation-delay: 2.8s; }
.confetti i:nth-child(8) { left: 93%; background: #7b6cf6; animation-delay: 1.05s;}
@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .9; }
  100% { transform: translateY(240px) rotate(540deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti i { animation: none; opacity: .55; top: 10px; }
}
.card.outline { background: transparent; border: 1.5px solid var(--border); }
.list { border-top: 1px solid var(--border); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.row.top { align-items: flex-start; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 700; }
.row .end { text-align: right; flex: none; }
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
      font-weight: 700; font-size: 14px; color: var(--on-tint); }
.stack { display: flex; margin-left: 10px; }
.stack .av { width: 34px; height: 34px; margin-left: -10px; border: 3px solid var(--bg); font-size: 12px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=file], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 16px; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--border-strong); background: var(--bg); color: var(--text); }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; flex: none; accent-color: var(--accent); margin: 0; }
input[type=file] { padding: 9px 12px; }
textarea { min-height: 90px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.err { font-size: 13px; font-weight: 700; color: var(--bad-ink); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 16px; margin: 0 0 12px; cursor: pointer; }
.check input { margin-top: 2px; }
.code-input { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: 8px; min-height: 56px;
              font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.rule { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.rule label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 16px; margin: 0; cursor: pointer; color: var(--text); }
.rule input[type=checkbox] { width: 24px; height: 24px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.rule details { margin-top: 8px; margin-left: 36px; font-size: 14px; color: var(--muted); }
.rule summary { cursor: pointer; font-weight: 700; color: var(--on-tint-muted); list-style: none; }
.rule summary::-webkit-details-marker { display: none; }
.rule summary::before { content: "\203A\00a0"; }
.rule details[open] summary::before { content: "\2304\00a0"; }
/* Who pays whom (/reparto): the sankey of design/reparto-graficos.html, drawn by reparto.js. Hidden
   until it draws, and hidden for good without JavaScript. */
.sankey { display: none; }
.sankey.ready { display: block; }
.sankey-svg { display: block; max-width: 100%; height: auto; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.sankey-bg { fill: transparent; }
.sankey .hit { fill: transparent; stroke: transparent; }
.sankey .ribbon .hit { fill: none; pointer-events: stroke; }
.sankey .ribbon, .sankey .node { cursor: pointer; outline: none; }
.sankey .band { fill: #1D9E75; opacity: .3; transition: opacity .2s; }
.sankey .ribbon:focus-visible .band { opacity: .6; }
.sankey .node .bar { transition: opacity .2s; }
.sankey .payer .bar { fill: #D85A30; }
.sankey .receiver .bar { fill: #1D9E75; }
.sankey svg text { font-family: var(--font); fill: var(--text); transition: opacity .2s; pointer-events: none; }
.sankey text.name { font-size: 14px; font-weight: 700; }
.sankey text.amount { font-size: 13px; fill: var(--muted); }
.sankey .node:focus-visible text.name { text-decoration: underline; }
.sankey .active .ribbon .band { opacity: .07; }
.sankey .active .ribbon.on .band { opacity: .75; }
.sankey .active .node text, .sankey .active .node .bar { opacity: .3; }
.sankey .active .node.on text, .sankey .active .node.on .bar { opacity: 1; }
.sankey .active .node.partial text.amount { fill: var(--accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .sankey .band, .sankey .bar, .sankey svg text { transition: none; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; }
.legend i.pays { background: #D85A30; }
.legend i.source { background: #185FA5; }
.legend i.receives { background: var(--accent); }
.legend i.transfer { background: var(--accent); opacity: .3; width: 18px; }
.fold summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "\203A\00a0"; }
.fold[open] summary::before { content: "\2304\00a0"; }
.photo { border: 2px dashed var(--border-strong); border-radius: var(--radius); min-height: 120px; display: flex; flex-direction: column;
         align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-weight: 700; padding: 12px; text-align: center; }
.photo svg.i { font-size: 28px; color: var(--accent); }
.photo input[type=file] { border: 0; background: transparent; min-height: 0; padding: 0; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.stat { background: var(--tint); color: var(--on-tint); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 24px; line-height: 1.1; font-weight: 800; }
.stat span { display: block; margin-top: 2px; font-size: 13px; color: var(--on-tint-muted); }
.section { margin: 22px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.decimo-num { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; font-size: 20px; letter-spacing: 3px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.steps span.on { background: var(--accent); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice.ok { background: var(--tint); color: var(--on-tint); }
.notice.bad { background: var(--bad-bg); color: var(--bad-ink); }
.notice.plain { background: var(--surface); color: var(--text); }
.notice svg.i { font-size: 18px; flex: none; margin-top: 1px; }
/* El aviso de reglas nuevas es el unico que interrumpe y lleva su propio boton (CLAUDE.md §2.1):
   el boton hereda la tinta del aviso para que se lea igual en los dos temas. */
.notice .stack { display: grid; gap: 6px; justify-items: start; }
.notice .stack .btn { margin-top: 4px; color: inherit; border-color: currentColor; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } .stat { display: flex; align-items: baseline; gap: 10px; } .stat b { font-size: 20px; } .stat span { margin: 0; } }

/* ------------------------------------------------------------------ portada */

.hero { padding: 26px 0 10px; }
.hero-stack { display: flex; margin: 0 0 22px 12px; }
.hero-stack .av { width: 46px; height: 46px; margin-left: -12px; border: 3px solid var(--bg); font-size: 14px;
                  color: var(--av-ink); }
.hero-stack .av.more { background: var(--tint); color: var(--on-tint); font-size: 15px; }
.hero h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.5px; }
.hero .sub { margin: 16px 0 26px; font-size: 17px; color: var(--muted); max-width: 36ch; }
.hero .btn-row { gap: 10px; }
.foot-lines { margin: 34px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .hero .btn-row { flex-direction: column; } .hero .btn { width: 100%; } }

/* --------------------------------------------------------- extras de la web */

/* Sub-navegación (peñas del usuario, secciones de admin): mismos chips que la barra superior. */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.chips a { text-decoration: none; padding: 8px 14px; border-radius: var(--pill); font-weight: 700; font-size: 14px;
           color: var(--muted); border: 1.5px solid var(--border); }
.chips a[aria-current] { background: var(--tint); color: var(--on-tint); border-color: var(--tint); }

.mono-block { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-break: break-all;
              background: var(--surface); border-radius: 10px; padding: 12px; font-size: 13px; }
/* Tus transferencias: a quién, su IBAN y el concepto, en un bloque por persona que se copia de un toque. */
.pay-to { flex-basis: 100%; padding: 10px 12px; background: var(--surface); border-radius: 10px; }
.pay-to .copyable { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px;
                    word-break: break-word; -webkit-user-select: all; user-select: all; margin: 2px 0 8px; }
.pay-to .copyable:last-child { margin-bottom: 0; }
.pay-to .no-iban { background: var(--bad-bg); color: var(--bad-ink); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.readonly { background: var(--surface); border-radius: 10px; padding: 12px 14px; word-break: break-word; }
.qr { text-align: center; margin: 16px 0; }
.qr img { width: 220px; height: 220px; background: #fff; padding: 8px; border-radius: var(--radius); }
.steps-list { padding-left: 20px; margin: 0 0 16px; }
.steps-list li { margin-bottom: 6px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0; }
.payload { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0 0; font-size: 13px; }
.payload dt { color: var(--muted); }
.payload dd { margin: 0; word-break: break-word; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.shot { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
/* Visor de foto (issue #51): la miniatura amplia sobre la pantalla en vez de navegar al JPEG, que
   dejaba al admin volviendo con el boton de atras. Sin JavaScript: lo abre y lo cierra `:target`. */
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center;
            padding: 16px; background: rgba(3, 12, 9, .92); }
.lightbox:target { display: flex; }
.lightbox-bg { position: absolute; inset: 0; }
.lightbox img { position: relative; max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain;
                border-radius: var(--radius); }
/* Los botones van sobre la foto y siempre con la misma tinta clara: el fondo del visor no cambia
   con el tema, asi que heredar el color del tema los dejaria invisibles en claro. */
.lightbox-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px;
                justify-content: center; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
.lightbox-bar .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; }
/* Lo que cambia de una version de las reglas a la siguiente. El amarillo por defecto del navegador
   no existe en esta paleta y en oscuro es ilegible, asi que va con los tokens del aviso. */
.rule-text ins { background: var(--warn-bg); color: var(--warn-ink); text-decoration: none;
                 border-radius: 4px; padding: 0 3px; font-weight: 700; }
.rule-text del { color: var(--muted); text-decoration: line-through; }
/* Las casillas por decimo solo hacen falta si se aceptan las reglas para algunos y no para todos.
   Sin JavaScript (§5): lo esconde :has(). Donde :has() no llegue se ven siempre, que de los dos
   fallos posibles es el que menos estorba. */
.field:has(input[value="all"]:checked) + .pick-some { display: none; }
.pick-some { display: grid; gap: 2px; }
.note-edit { margin-top: 10px; }
.note-edit summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--on-tint-muted); list-style: none; }
.note-edit summary::-webkit-details-marker { display: none; }
.note-edit summary::before { content: "\203A\00a0"; }
.note-edit[open] summary::before { content: "\2304\00a0"; }

/* Pie: los enlaces legales tienen que estar accesibles sin login (CLAUDE.md §11). */
.site-foot { border-top: 1px solid var(--border); margin-top: 36px; padding: 16px 0 8px;
             display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .end { margin-left: auto; }
/* «Salir» is a form (#90): a button that reads like the links beside it. */
.site-foot button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
                         display: inline-flex; align-items: center; gap: 4px; }
.site-foot button.link:hover { text-decoration: underline; }
/* Crédito del autor (Vitalie, 17/09/2026): en su propia línea, para que no se lea como un enlace
   legal más, y en el gris del pie, que es lo que pedía el `color` en línea del original (la CSP
   descarta los atributos `style`, §5). */
.site-foot .credit { flex-basis: 100%; }
.site-foot .credit a { color: var(--muted); }
.site-foot .credit a:hover { color: var(--text); }

/* Preguntas frecuentes (#93): el buscador arriba, el índice de grupos y una pregunta por desplegable,
   como las reglas del alta, para que medio centenar quepa de un vistazo y se abra solo la que interesa. */
.faq-search { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.faq-search .field { margin: 0; flex: 1 1 260px; }
.faq-index { margin-bottom: 8px; }   /* lo demás lo pone .chips, que es lo que ya son */
.faq-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "\203A\00a0"; color: var(--accent); }
.faq-item[open] summary::before { content: "\2304\00a0"; }
.faq-item p { margin: 8px 0 0; max-width: 72ch; color: var(--muted); }

@media (max-width: 480px) {
  .field-2 { grid-template-columns: 1fr; gap: 0; }
  h1 { font-size: 25px; }
}

/* ---------------------------------------------------------------- utilidades
 *
 * Los mockups llevan los ajustes finos en atributos `style`. Aquí no valen: la CSP del sitio es
 * `style-src 'self'`, así que el navegador tira un atributo style sin decir nada y el ajuste
 * desaparece en silencio. Son las mismas medidas, redondeadas a una escala de 4 px.
 */

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-7 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.my-3 { margin: 12px 0; }
.my-4 { margin: 16px 0; }
.my-5 { margin: 20px 0; }
.my-6 { margin: 24px 0; }
.pull-up { margin-top: -8px; }

/* La línea que va debajo de un título y explica la pantalla. */
.lead { margin: 6px 0 20px; }

.center { text-align: center; }
.nb { font-weight: 400; }
.b  { font-weight: 700; }
.plain { text-decoration: none; }
.faded { opacity: .6; }
.ink-warn { color: var(--warn-ink); }
.ink-bad  { color: var(--bad-ink); }
.h-18 { font-size: 18px; font-weight: 800; line-height: 1.2; }
.h-20 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.h-22 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.h-26 { font-size: 26px; font-weight: 800; line-height: 1.1; }

/* Colores de los círculos. Son decoración: nada de la app significa nada por el color. */
.av.c1, .av.c2, .av.c3, .av.c4, .av.c5, .av.c6 { color: var(--av-ink); }
.av.c1 { background: var(--av-1); }
.av.c2 { background: var(--av-2); }
.av.c3 { background: var(--av-3); }
.av.c4 { background: var(--av-4); }
.av.c5 { background: var(--av-5); }
.av.c6 { background: var(--av-6); }
.av.tinted { background: var(--tint); color: var(--on-tint); }
.av.av-warn { background: var(--warn-bg); color: var(--warn-ink); }

/* Un bloque a lo ancho colgado de una fila, alineado con el texto y no con el círculo. */
.indent { width: 100%; padding-left: 52px; }
@media (max-width: 420px) { .indent { padding-left: 0; } }

.flush { border-bottom: 0; padding: 8px 0; }
.on-tint-rule { border-top-color: var(--on-tint-muted); }
.flush-card { padding: 0; overflow: hidden; }
.card-body { padding: 16px; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.split-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.inline-head { display: flex; align-items: center; gap: 10px; }

.num-input { font-size: 24px; }
.num-sm { font-size: 16px; letter-spacing: 2px; }
.num-lg { font-size: 26px; }
.num-xl { font-size: 28px; }
.ls-short { letter-spacing: 4px; }

.link-summary { cursor: pointer; font-weight: 700; color: var(--on-tint-muted); }

/* Resultados (#34): los ocho números del quinto caben en filas de dos en un móvil y en cuatro en
   escritorio; sin esto, ocho campos a lo alto son ocho pantallas. */
.num-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .num-grid { grid-template-columns: repeat(4, 1fr); } }

/* Los premios de un décimo: nombre a la izquierda, importe a la derecha, y el total separado. */
.prize-lines { list-style: none; margin: 10px 0 0; padding: 0; }
.prize-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.prize-lines li:last-child { border-bottom: 0; }
.prize-lines .total { border-top: 1.5px solid var(--border); margin-top: 4px; padding-top: 8px; }

/* Páginas legales (#38): texto largo para leer, no para escanear. */
.prose { margin: 0 0 20px; }
.prose h2 { font-size: 18px; margin: 22px 0 6px; }
.prose p { margin: 0 0 10px; max-width: 62ch; }
.prose.full p { max-width: none; }   /* el aviso legal y la privacidad, a todo el ancho (#92) */

/* Una regla sin casilla, como en la página pública: el desplegable no tiene que dejar sitio a nada. */
.rule.plain details { margin-left: 0; }
[hidden] { display: none !important; }
/* El rol en la peña en la ficha de usuario (#57): el campo y el botón en la misma fila, sin el margen del formulario. */
.role-row { align-items: flex-end; }
.role-row .field { margin-bottom: 0; }
/* Quien paga el premio en el diagrama de quién paga a quién (#58): el banco, la administración o la web. */
.sankey .node.source .bar { fill: #185FA5; }

/* ------------------------------------------------------- armazón de escritorio
 *
 * shell.css es design/desktop/shell.css tal cual y solo pone la disposición (#66). Esto es lo que la web
 * real necesita encima: los iconos son SVG en línea y no la fuente de Tabler del mockup, el logo es el
 * trébol con su palabra, y en el móvil la barra superior se pinta como el título de siempre para que el
 * móvil no cambie. Todo con prefijo .shell porque shell.css se carga después.
 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
           clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shell .nav a.item svg.i { font-size: 21px; }
.shell .nav .brand .mark { width: 26px; height: 26px; }
.shell .nav .foot .lang a { min-height: 32px; }
/* El título de cada página, al tamaño de siempre también en escritorio (Vitalie, 14/09/2026): a los 22 px
   del mockup se leía pequeño junto al texto. */
.shell .topbar h1 { font-size: 28px; }
.shell .topbar .right { flex-wrap: wrap; }
.shell .topbar .sub { margin-top: 2px; }
.shell .page > main.narrow { max-width: 760px; }
@media (min-width: 821px) { .shell header.app { display: none; } }
/* Plegado caben 52 px: idioma, tema y plegar van uno debajo de otro. */
.shell.mini .nav .foot, .shell.mini .nav .foot .lang { flex-direction: column; align-items: center; }
@media (max-width: 1000px) {
  .shell .nav .nav-toggle { display: none; }
  .shell .nav .foot, .shell .nav .foot .lang { flex-direction: column; align-items: center; }
}
@media (max-width: 820px) {
  .shell header.app { padding: 14px var(--gut); }
  .shell .topbar { position: static; background: transparent; border-bottom: 0; padding: 0 var(--gut);
                   margin: 8px 0 12px; align-items: baseline; justify-content: space-between; gap: 12px; }
  .shell .topbar .sub { font-size: 16px; }
  .shell .page { padding-top: 0; }
  .shell .tabs + .page { padding-top: 16px; }
}
@media (max-width: 480px) { .shell .topbar h1 { font-size: 25px; } }

/* Mis décimos (Vitalie, 14/09/2026): el estado pegado al número, y en escritorio dos columnas de
   décimos dentro de un ancho que no estira el aviso ni la tarjeta del cierre. En el móvil, una. */
.decimo-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Las dos columnas dependen del sitio que queda al lado del raíl (design/desktop/d-decimos-rail.html),
   no del ancho de la ventana: con el raíl al lado, 1.300 px de ventana son 600 de décimos. */
.decimos-main { container-type: inline-size; min-width: 0; }
@container (min-width: 760px) {
  /* align-items: start: abrir la nota de un décimo no estira el de al lado (#72). */
  .decimo-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
}
/* Debajo de 1180 px el raíl va en fila bajo los décimos: sin esto el botón se estira a la altura de las
   tarjetas y queda como una píldora de 120 px. */
@media (max-width: 1180px) { .shell .rail { align-items: flex-start; } }
.rail .share-big { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 4px 0 6px; }
.rail .days-big { font-size: 26px; font-weight: 800; line-height: 1.1; margin-top: 10px; }

/* Panel de administración (design/desktop/c-admin-submenu.html). */
.col-stack { display: flex; flex-direction: column; gap: 14px; }
.panel .list { border-top: 0; }
.panel .list .row:last-child { border-bottom: 0; }
.av.sm { width: 30px; height: 30px; font-size: 12px; }
.review { margin-bottom: 14px; }
.review-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.review-photo { background: var(--surface); aspect-ratio: 3 / 2; display: flex; flex-direction: column; align-items: center;
                justify-content: center; gap: 6px; color: var(--muted); overflow: hidden; }
.review-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review-photo svg.i { font-size: 30px; }
.review-body { padding: 16px 18px; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.review-actions form { margin: 0; }
.review-reject { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.review-reject select { min-height: 38px; width: auto; font-size: 14px; padding: 6px 10px; }
@media (max-width: 560px) { .review-grid { grid-template-columns: minmax(0, 1fr); } .review-reject { margin-left: 0; } }

/* Menos scroll en escritorio (Vitalie, 14/09/2026, #72): las pantallas con sesión usan todo el ancho, y lo
   largo se reparte en columnas. Nada de esto cambia el orden: en el móvil todo vuelve a una columna y se lee
   en el mismo orden que antes. */
.shell .tabs { overflow-y: hidden; }
.w-narrow { max-width: 760px; }
/* Bloques lado a lado: dos iguales, 5 + 7, o tres. */
.cols { display: grid; gap: 20px 28px; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.w57 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols > * { min-width: 0; }
.cols > * > :first-child, .cols .section:first-child { margin-top: 0; }
@media (max-width: 1180px) {
  .cols.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols.w57 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) { .cols, .cols.three { grid-template-columns: minmax(0, 1fr); } }
/* Una lista de filas en tantas columnas como quepan. Cada fila guarda su línea de abajo; la fila de al lado
   no se estira hacia abajo por dentro, se queda arriba. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile, 340px)), 1fr)); column-gap: 32px; }
.tiles.sm { --tile: 250px; }
.tiles.lg { --tile: 440px; }
.tiles > .row { align-content: flex-start; }
/* Tarjetas en rejilla: abrir el detalle de una no estira las de su fila. */
.cards { display: grid; gap: 16px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile, 320px)), 1fr)); }
.cards.lg { --tile: 420px; }
.cards > * { margin-top: 0; margin-bottom: 0; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stats.four { grid-template-columns: 1fr; } }
/* La tarjeta del premio gordo va a lo ancho aunque esté en una rejilla de tarjetas. */
.cards > .party { grid-column: 1 / -1; }
/* Los números de los premios, en media pantalla: cuatro por fila no caben entre 821 y 1180 px. */
@media (min-width: 821px) and (max-width: 1180px) { .cols .num-grid { grid-template-columns: repeat(2, 1fr); } }
/* Un campo de una línea que baja a dos si no cabe (#73, el IBAN del perfil). Donde field-sizing no llegue,
   se ve de dos líneas siempre. */
textarea.one-line { min-height: 0; resize: none; field-sizing: content; }
@supports not (field-sizing: content) { textarea.one-line { height: 5.2em; } }
/* Inicio (#73): el premio gordo y lo de quien mira en la misma tarjeta, separados por una línea. */
.cols.stretch { align-items: stretch; }
@media (min-width: 821px) { .party .party-mine { border-left: 1px solid var(--on-tint-muted); padding-left: 28px; } }
@media (max-width: 820px) { .party .party-mine { border-top: 1px solid var(--on-tint-muted); padding-top: 16px; } }
/* Portada (#71): el subtítulo en dos líneas parejas y no en tres de 36 caracteres con una palabra suelta. */
.hero .sub { max-width: 60ch; text-wrap: balance; }
/* Con iniciales (#71) el círculo de encima tapaba la segunda letra: menos solape y letra un punto más pequeña. */
.hero-stack .av { margin-left: -8px; font-size: 13px; }
/* El subtítulo lleva una frase por línea (#74): el salto va en el texto de cada idioma. */
.hero .sub { white-space: pre-line; }
/* Elegir peña (#76): la tarjeta entera es el enlace. */
a.card.choose { display: block; text-decoration: none; color: inherit; }
a.card.choose:hover .h-20, a.card.choose:focus-visible .h-20 { text-decoration: underline; }
