/*
 * Zenith Finance, el mismo design system de la app, copiado de shared/ui/Theme.kt.
 *
 * Solo tema claro con acentos navy. Es el unico colorMode que definio el sistema, y la app
 * tomo la misma decision: inventar una paleta oscura seria diseno, no implementacion.
 *
 * Inter primero, con la pila del sistema detras. La app la empaqueta (1.3 MB de cuatro pesos);
 * aca no vale traerla de un CDN externo por coherencia tipografica: seria una peticion a otro
 * dominio en cada visita, en un sitio cuya politica de privacidad promete lo contrario.
 */
:root {
  --navy: #031631;
  --navy-container: #1a2b47;
  --navy-soft: #8293b4;
  --emerald: #006c4a;
  --emerald-container: #82f5c1;
  --emerald-bright: #059669;
  --bg: #f9f9ff;
  --surface: #ffffff;
  --surface-low: #f0f3ff;
  --surface-mid: #e7eefe;
  --text: #151c27;
  --muted: #4b5563;
  --line: #c5c6ce;
  --line-soft: #e3e7ef;
  --error: #ba1a1a;
  --amber: #f59e0b;

  --r: 8px;
  --r-lg: 16px;
  --r-pill: 999px;

  --u: 4px;
  --page: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }

a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Cabecera ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 249, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

/* La marca va en una placa clara, como el icono del lanzador: el trazo es navy solido y
   sobre cualquier fondo que no sea claro deja de leerse. La placa lo garantiza. */
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); }
.brand:hover { text-decoration: none; }
/*
 * La placa es del mismo color en las dos cabeceras y en el pie. Empezo siendo un degradado
 * casi blanco y sobre la barra —que tambien es casi blanca— no se veia: la marca quedaba
 * flotando suelta y descuadrada. Un solo tono solido que contrasta con el fondo claro de
 * arriba y con el navy de abajo resuelve los dos sitios sin una regla por contexto.
 *
 * El viewBox de la marca trae ~9% de aire por lado, asi que el glifo se ve mas chico que su
 * caja: por eso la imagen ocupa casi toda la placa y el aire lo pone el padding visual.
 */
.mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  background: var(--surface-mid);
  border: 1px solid #cddbf5;
  border-radius: 11px;
}
.mark img { width: 30px; height: 30px; display: block; }
.brand span { font-weight: 700; letter-spacing: -0.025em; font-size: 1.0625rem; }

/* Navegacion: pildoras con estado. La activa se marca con aria-current, no con una clase,
   asi el lector de pantalla anuncia lo mismo que se ve. */
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.navlink {
  position: relative;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  transition: color 0.15s ease, background 0.15s ease;
}
.navlink:hover { background: var(--surface-mid); color: var(--navy); text-decoration: none; }
.navlink[aria-current] { color: var(--navy); font-weight: 600; }
.navlink[aria-current]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--emerald);
}
.topbar nav .btn { margin-left: 8px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-container); }
.btn-accent { background: var(--emerald); color: #fff; }
.btn-accent:hover { background: #00563a; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-mid); }
.btn-quiet { background: var(--surface-low); color: var(--muted); }
.btn-quiet:hover { background: var(--surface-mid); color: var(--navy); }
.btn-sm { padding: 7px 14px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 420px at 78% -8%, rgba(130, 245, 193, 0.16), transparent 60%),
    radial-gradient(700px 340px at 10% 110%, rgba(130, 147, 180, 0.22), transparent 62%),
    var(--navy);
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede {
  color: #c8d3e6;
  font-size: 1.1875rem;
  max-width: 46ch;
  margin-top: 20px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(130, 245, 193, 0.14);
  color: var(--emerald-container);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.hero-note { margin-top: 20px; color: var(--navy-soft); font-size: 0.875rem; }

/* ---------- Telefono ---------- */

/*
 * Marco de dispositivo. El contenido de dentro es intercambiable: una captura real
 * (`<img class="shot">`). Hasta el 6 de agosto de 2026 llevaba una maqueta dibujada con CSS,
 * porque no habia capturas; se quito al llegar la real. Una maqueta se desincroniza de la app sin
 * que nadie lo note, y esta ya mostraba un saldo y unos movimientos que no existian.
 * El marco no cambia en ninguno de los dos casos.
 *
 * La relacion de aspecto la fija el CSS y no la imagen, para que una captura de cualquier
 * telefono entre sin deformar el marco: sobra alto, se recorta abajo, que es donde vive la
 * barra de navegacion y no aporta nada.
 */
.device { width: 292px; margin: 0 auto; }
.device-frame {
  position: relative;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(150deg, #3b4a63 0%, #16233a 32%, #0a1425 68%, #26344c 100%);
  box-shadow:
    0 2px 4px rgba(255, 255, 255, 0.18) inset,
    0 40px 80px -18px rgba(0, 0, 0, 0.62),
    0 12px 28px -10px rgba(0, 0, 0, 0.5);
}
/* Botones laterales: volumen a la izquierda, encendido a la derecha. */
.device-frame::before,
.device-frame::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2b3a52, #16233a);
}
.device-frame::before { left: -3px; top: 118px; height: 58px; }
.device-frame::after { right: -3px; top: 132px; height: 82px; }

.device-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
/* Absoluta y con `object-fit`, no `width: 100%`.
   Con el ancho al 100% la imagen sigue dependiendo de su tamano natural para el alto, y basta que
   otra regla gane el ancho para que se pinte a 600 px dentro de un marco de 292 y se vea el 48 % de
   arriba, que es exactamente lo que pasaba. Asi el marco manda: la captura llena la pantalla, y si
   la relacion de aspecto no coincide se recorta abajo, donde vive la barra de navegacion. */
.device-screen .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* Isla central, encima de lo que haya en la pantalla. */
.device-screen::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 19px;
  border-radius: var(--r-pill);
  background: #05101f;
  z-index: 2;
}

/* Fila de capturas para la seccion "Asi se ve". Marcos mas chicos y en linea. */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.shots .device { width: 100%; max-width: 262px; }
.shots figure { margin: 0; }
.shots figcaption {
  margin-top: 18px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}
.shots figcaption strong { display: block; color: var(--text); font-size: 0.9375rem; }

/* ---------- Secciones ---------- */

section { padding: 88px 0; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 + p { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }
.section-head .kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--emerald);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Tira de datos duros justo bajo el hero: rompe el salto del bloque navy al fondo claro. */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.facts div {
  background: var(--bg); padding: 34px 24px; text-align: center;
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
}
.facts b {
  display: block;
  /* Cifra grande y con `tabular-nums`: las cuatro columnas comparten linea de base optica y no
     bailan segun el numero. Antes iban al mismo tamano que un titulo de tarjeta y la franja se
     leia como texto corrido en vez de como datos. */
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.facts span { font-size: 0.8125rem; color: var(--muted); line-height: 1.35; max-width: 22ch; margin: 0 auto; }

/* En movil, cuatro columnas dejan las cifras en 40px de ancho. Dos por fila y respiran. */
@media (max-width: 700px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div { padding: 24px 16px; }
  .facts b { font-size: 1.625rem; }
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: 0 14px 30px -14px rgba(3, 22, 49, 0.22);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.9375rem; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(150deg, var(--surface-mid), var(--surface-low));
  border: 1px solid var(--line-soft);
  color: var(--navy);
  display: grid; place-items: center; margin-bottom: 18px;
  font-size: 1.125rem; font-weight: 700;
}
/* Las dos primeras tarjetas son las que sostienen el argumento peruano: acento emerald. */
.card:nth-child(-n+2) .ico {
  background: linear-gradient(150deg, var(--emerald-container), #d5fbe9);
  border-color: #a8e9cb;
  color: #00432c;
}

.alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* Pasos numerados con una linea que los une: se leen como secuencia, no como tres tarjetas. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.step { counter-increment: s; position: relative; padding-top: 6px; }
.step::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 18px;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 0.9375rem; font-weight: 700;
  position: relative; z-index: 1;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 46px;
  right: -32px;
  height: 2px;
  background: linear-gradient(90deg, var(--line), var(--line-soft));
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9375rem; }

.callout {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.callout h2 { color: #fff; }
.callout p { color: #c8d3e6; margin-top: 12px; max-width: 52ch; }
.callout .btn-accent { margin-left: auto; }

footer {
  background: var(--navy);
  color: var(--navy-soft);
  padding: 56px 0 40px;
  font-size: 0.875rem;
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
footer a { color: #c8d3e6; }
footer a:hover { color: #fff; }
footer .foot-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 700; letter-spacing: -0.02em; }
footer .foot-brand + p { margin-top: 14px; max-width: 34ch; }
footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li + li { margin-top: 8px; }
footer .legal {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(200, 211, 230, 0.14);
  font-size: 0.8125rem;
}

/* ---------- Tablero de ideas ---------- */

.board-head { padding: 48px 0 32px; }
.board-head h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.board-head p { color: var(--muted); margin-top: 12px; max-width: 60ch; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 24px;
}
.panel + .panel { margin-top: 20px; }

.gate {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface-low);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 20px 24px;
}
.gate .grow { flex: 1; min-width: 240px; }
.gate strong { display: block; margin-bottom: 4px; }
.gate p { color: var(--muted); font-size: 0.9375rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em;
  background: var(--emerald-container); color: #00432c;
}
.badge-quiet { background: var(--surface-mid); color: var(--muted); }

label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input[type="text"], textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 11px 14px;
  resize: vertical;
}
input[type="text"]:focus, textarea:focus {
  outline: 2px solid var(--emerald);
  outline-offset: -1px;
  border-color: var(--emerald);
}
.field + .field { margin-top: 16px; }
.counter { font-size: 0.75rem; color: var(--muted); text-align: right; margin-top: 4px; }

/* Control segmentado: un carril con la pastilla activa dentro, no dos botones sueltos.
   Asi se lee que son dos vistas de la misma lista y no dos acciones distintas. */
.tabs {
  display: inline-flex;
  gap: 4px;
  margin: 36px 0 20px;
  padding: 4px;
  background: var(--surface-low);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
}
.tab {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(3, 22, 49, 0.14);
}
.tab:not([aria-selected="true"]):hover { color: var(--navy); }
.tab:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }

/* Cabecera de la lista: el control a la izquierda y el conteo a la derecha. */
.list-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.list-head .count { margin-left: auto; font-size: 0.875rem; color: var(--muted); }

.idea {
  display: flex; gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.idea + .idea { margin-top: 14px; }
.idea-body { flex: 1; min-width: 0; }
.idea h3 { margin-bottom: 6px; word-wrap: break-word; }
.idea .text { color: var(--muted); font-size: 0.9375rem; white-space: pre-wrap; word-wrap: break-word; }
.idea .meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; font-size: 0.8125rem; color: var(--muted); }
.idea .meta button {
  background: none; border: 0; padding: 0; font: inherit; font-size: 0.8125rem;
  color: var(--muted); cursor: pointer; text-decoration: underline;
}
.idea .meta button:hover { color: var(--navy); }

.vote {
  flex: 0 0 62px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 0;
  background: var(--surface-low);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  font: inherit;
  cursor: pointer;
  color: var(--navy);
  align-self: flex-start;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.vote:hover:not(:disabled) { background: var(--surface-mid); }
.vote:disabled { cursor: not-allowed; }
.vote[aria-pressed="true"] { background: var(--emerald-container); border-color: var(--emerald); color: #00432c; }
.vote .arrow { font-size: 0.9375rem; line-height: 1; }
.vote .n { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }

.comments { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.comment { font-size: 0.9375rem; padding: 8px 0; }
.comment + .comment { border-top: 1px solid var(--line-soft); }
.comment .who { font-weight: 600; font-size: 0.8125rem; color: var(--navy); }
.comment .when { font-size: 0.75rem; color: var(--muted); margin-left: 8px; }
.comment p { color: var(--muted); white-space: pre-wrap; word-wrap: break-word; }
.comment-form { display: flex; gap: 10px; margin-top: 14px; }
.comment-form input { flex: 1; }

.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 1.0625rem; }

.notice {
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 0.9375rem;
  margin-top: 16px;
}
.notice-error { background: #ffdad6; color: #93000a; }
.notice-ok { background: var(--emerald-container); color: #00432c; }

.skeleton { height: 96px; border-radius: var(--r-lg); background: var(--surface-mid); animation: pulse 1.4s ease-in-out infinite; }
.skeleton + .skeleton { margin-top: 14px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.hidden { display: none !important; }

/* ---------- Documento legal ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.1875rem; margin: 44px 0 12px; }
.doc h3 { margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); font-size: 0.9375rem; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .card { margin: 24px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc th { color: var(--muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }
.doc .wrapx { overflow-x: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 72px; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .shots { grid-template-columns: 1fr; justify-items: center; gap: 44px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .callout { padding: 32px 28px; }
  .callout .btn-accent { margin-left: 0; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .foot-brand-col { grid-column: 1 / -1; }

  /* La navegacion no se esconde: tres enlaces caben si se aprietan. Un menu hamburguesa
     para tres destinos es mas codigo y un toque mas para el usuario. */
  .navlink { padding: 8px 10px; font-size: 0.875rem; }
  .topbar .wrap { gap: 8px; }
  .topbar nav { gap: 0; }
  .topbar nav .btn { margin-left: 4px; }
  .brand span { display: none; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: none; }
}


/* --- Rondas de votacion --- */

.rounds { margin: 28px 0 4px; }

.round-head { display: flex; flex-direction: column; gap: 4px; }
.round-head strong { font-size: 1.0625rem; }

/* Un desplegable y no una fila de pastillas: al ano hay siete rondas, y siete pastillas empujan el
   tablero hacia abajo y compiten con "Mas votadas", que es otra cosa. El desplegable ocupa lo mismo
   con una ronda que con veinte. */
.round-picker { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; }
.round-picker select {
  font: inherit; font-size: 0.875rem; cursor: pointer;
  padding: 7px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.round-picker select:disabled { cursor: default; color: var(--muted); }

/* Quien va ganando, o quien gano. Va antes de la lista y con el fondo de marca: es la respuesta a
   la pregunta con la que entra la gente, no una fila mas del tablero. */
.leader {
  background: var(--surface-mid);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.leader strong { font-size: 1.125rem; color: var(--navy); }
.leader .muted { font-size: 0.8125rem; }

/* El boton de retirar un comentario, discreto: vive dentro de la linea del autor. */
.comment-del {
  font: inherit; font-size: 0.75rem; cursor: pointer;
  background: none; border: 0; padding: 0 0 0 8px;
  color: var(--muted); text-decoration: underline;
}
.comment-del:hover { color: var(--navy); }

/* El sello de la cuenta oficial. Se dibuja por uid, nunca por nombre: ver `authorTag` en app.js. */
.verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 5px;
  border-radius: 50%; background: var(--emerald); color: #fff;
  font-size: 0.625rem; line-height: 1; vertical-align: middle;
}

.round-picker .muted { font-size: 0.8125rem; }

/* Mientras llega la lista nueva se atenua la que hay, en vez de vaciarla: sin esto, cambiar de
   ronda o de orden mostraba los esqueletos por un instante y se leia como si algo se rompiera. */
#ideas.loading { opacity: 0.45; transition: opacity 120ms ease-out; pointer-events: none; }
