/* =====================================================================
 * styles.css — Componentes de Vivero Financiero (Beta3)
 * ---------------------------------------------------------------------
 * Los colores y tipografías salen de css/tokens.css. Acá viven la base,
 * los componentes y lo que cambia de forma entre "papel" (recortes) y
 * "tinta" (bordes y trama). Mobile primero: la columna de juego mide
 * como máximo --ancho y se centra en pantallas grandes.
 * ===================================================================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1.4;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
  transition: background-color .35s, color .35s;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: var(--peso-titulo); margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.num { font-family: var(--f-num); font-weight: var(--peso-num); font-variant-numeric: tabular-nums; }
.ic { width: 1.4em; height: 1.4em; flex: none; display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[data-theme^="tinta"] :focus-visible { outline-color: var(--sun); }

/* Trama de puntos de imprenta, solo en los temas de tinta. */
body[data-theme^="tinta"]::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .1;
  background: radial-gradient(var(--ink) 1px, transparent 1.4px) 0 0 / 7px 7px;
}
#app-root { position: relative; z-index: 1; }

/* ---------- Superficies ---------- */
/* papel: recorte desparejo con sombra de papel apoyado.
   tinta: recuadro de imprenta, sin relleno. */
.sup { background: var(--surface); color: var(--surface-ink); padding: var(--e-3); }
[data-theme="papel"] .sup {
  clip-path: polygon(0 3%, 3% 0, 97% 1%, 100% 5%, 99% 96%, 96% 100%, 3% 99%, 0 95%);
  filter: drop-shadow(3px 4px 0 var(--sombra));
}
[data-theme^="tinta"] .sup { border: 2.5px solid var(--line); background: var(--bg); }

/* ---------- Botones ---------- */
.btn {
  appearance: none; border: 0; min-height: var(--toque); padding: 10px 18px;
  font-family: var(--f-display); font-weight: var(--peso-titulo); font-size: var(--t-l); line-height: 1.1;
  background: var(--surface); color: var(--surface-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2);
  transition: transform .08s;
}
.btn:active { transform: translateY(3px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primario { background: var(--primary); color: var(--primary-ink); }
.btn.peligro { background: var(--danger); color: var(--bg); }
.btn.grande { width: 100%; min-height: 60px; font-size: var(--t-xl); }
.btn.chico { font-size: var(--t-m); min-height: 44px; padding: 8px 14px; }
[data-theme="papel"] .btn { border-radius: 999px 940px 999px 960px; filter: drop-shadow(0 4px 0 var(--ink)); }
[data-theme="papel"] .btn:active { filter: drop-shadow(0 1px 0 var(--ink)); }
[data-theme^="tinta"] .btn { border: 2.5px solid var(--line); background: var(--bg); color: var(--ink); text-transform: uppercase; letter-spacing: .02em; box-shadow: 4px 4px 0 var(--line); }
[data-theme^="tinta"] .btn.primario { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
[data-theme^="tinta"] .btn.peligro { background: var(--danger); color: var(--bg); border-color: var(--danger); }
[data-theme^="tinta"] .btn:active { box-shadow: 1px 1px 0 var(--line); }
.btn-link { background: none; border: 0; min-height: 44px; padding: 8px; text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.icono-btn {
  width: var(--toque); height: var(--toque); border: 0; background: var(--surface); color: var(--surface-ink);
  display: grid; place-items: center; position: relative; flex: none;
}
[data-theme="papel"] .icono-btn { border-radius: 46% 54% 50% 50%; filter: drop-shadow(2px 3px 0 var(--sombra)); }
[data-theme^="tinta"] .icono-btn { border: 2.5px solid var(--line); background: var(--bg); color: var(--ink); }
.icono-btn .cuenta {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px;
  background: var(--primary); color: var(--primary-ink); font: var(--peso-num) .78rem/22px var(--f-num); text-align: center;
}

/* ---------- Pantallas ---------- */
.screen {
  min-height: 100vh; min-height: 100dvh; width: 100%; max-width: var(--ancho); margin: 0 auto;
  padding: var(--e-4); display: flex; flex-direction: column; gap: var(--e-4);
}

/* ---------- Entrada ---------- */
.entrada { justify-content: center; gap: var(--e-5); }
.marca { font-size: var(--t-xxl); }
[data-theme="papel"] .marca { transform: rotate(-2deg); }
[data-theme^="tinta"] .marca { text-transform: uppercase; letter-spacing: -.03em; text-shadow: 3px 3px 0 var(--primary); font-size: 2.5rem; }
.bajada { font-size: var(--t-l); max-width: 22ch; }
.escena { display: flex; align-items: flex-end; gap: var(--e-3); height: 110px; position: relative; padding: 0 var(--e-3); }
.escena::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: -8px; height: 26px; background: var(--ground); z-index: -1; }
.escena .mac { width: 76px; display: flex; flex-direction: column; align-items: center; }
.escena .mac svg { width: 100%; height: auto; transform-origin: 50% 100%; animation: mecer 4s ease-in-out infinite; }
.escena .mac:nth-child(2) svg { animation-delay: -1.3s; } .escena .mac:nth-child(3) svg { animation-delay: -2.6s; }
.escena .sol { position: absolute; right: 8px; top: -6px; }
@keyframes mecer { 50% { transform: rotate(3deg) scale(1.03); } }
.paso { display: flex; flex-direction: column; gap: var(--e-3); }
.paso h2 { font-size: var(--t-xl); }
.publicos { display: grid; gap: var(--e-3); }
.publico {
  border: 0; background: var(--surface); color: var(--surface-ink); min-height: 76px; padding: var(--e-2) var(--e-4);
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: var(--e-3); text-align: left;
  transition: transform .12s var(--rebote);
}
.publico:hover, .publico:focus-visible { transform: scale(1.02) rotate(-.6deg); }
.publico svg.fig { width: 56px; height: 56px; }
.publico strong { font-family: var(--f-display); font-weight: var(--peso-titulo); font-size: var(--t-xl); display: block; line-height: 1; }
.publico span { font-size: var(--t-s); }
[data-theme="papel"] .publico { clip-path: polygon(0 6%, 2% 0, 98% 3%, 100% 10%, 99% 94%, 97% 100%, 2% 97%, 0 90%); }
[data-theme="papel"] .publicos { filter: drop-shadow(3px 4px 0 var(--sombra)); }
[data-theme="papel"] .publico:nth-child(2) { background: var(--nota); }
[data-theme^="tinta"] .publico { border: 2.5px solid var(--line); background: var(--bg); color: var(--ink); box-shadow: 4px 4px 0 var(--sombra); }
.seguir { display: flex; flex-wrap: wrap; gap: var(--e-2); align-items: center; }
.campo { display: flex; flex-direction: column; gap: var(--e-2); font-family: var(--f-display); font-weight: var(--peso-titulo); font-size: var(--t-xl); }
.campo input {
  min-height: 60px; padding: 10px 16px; border: 3px solid var(--line); background: var(--surface); color: var(--surface-ink);
  font-family: var(--f-body); font-weight: 800; font-size: var(--t-l); width: 100%; border-radius: 0;
}
[data-theme="papel"] .campo input { border-radius: 14px 18px 12px 20px; }
.ayuda, .privado { font-size: var(--t-s); color: var(--ink-suave); }
.privado { margin-top: auto; padding-top: var(--e-4); }

/* ---------- Sol y tanque ---------- */
.sol { width: 44px; height: 44px; background: var(--sun); flex: none; animation: sol 5s ease-in-out infinite; }
[data-theme="papel"] .sol {
  filter: drop-shadow(3px 3px 0 var(--sombra));
  clip-path: polygon(50% 0, 61% 18%, 82% 9%, 81% 31%, 100% 40%, 84% 55%, 95% 75%, 73% 76%, 65% 97%, 50% 82%, 33% 97%, 27% 75%, 5% 73%, 17% 55%, 0 39%, 20% 31%, 19% 9%, 40% 18%);
}
[data-theme^="tinta"] .sol { border-radius: 50%; box-shadow: 5px 3px 0 var(--primary); }
.sol.fuerte { animation: solFuerte .9s ease-in-out 2; }
@keyframes sol { 50% { transform: scale(1.1) rotate(14deg); } }
@keyframes solFuerte { 50% { transform: scale(1.5) rotate(40deg); } }

.tanque { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: var(--e-3); align-items: center; position: relative; }
.vaso { height: 56px; border: 3px solid var(--surface-ink); position: relative; overflow: hidden; background: var(--bg); }
[data-theme="papel"] .vaso { border-radius: 4px 4px 14px 14px; }
[data-theme^="tinta"] .vaso { border-color: var(--line); }
.vaso b { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: var(--water); transition: height .9s var(--rebote); }
.tanque small { display: block; font-size: var(--t-s); font-weight: 800; }
.tanque strong { display: block; font-family: var(--f-num); font-weight: var(--peso-num); font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tanque-extra { display: block; font-size: var(--t-xs); margin-top: 2px; }
.tanque-extra b.mal { color: var(--danger); }

/* ---------- Juego ---------- */
.juego { gap: var(--e-2); padding-bottom: 184px; }
.barra { display: flex; align-items: center; gap: var(--e-2); }
.barra .espacio { flex: 1; }
.chip {
  min-height: 40px; padding: 4px 12px; border: 0; background: var(--surface); color: var(--surface-ink);
  font-family: var(--f-display); font-weight: var(--peso-titulo); font-size: var(--t-m);
  display: inline-flex; align-items: center; gap: 6px;
}
[data-theme="papel"] .chip { background: var(--nota); color: var(--nota-ink); transform: rotate(-2deg); filter: drop-shadow(2px 2px 0 var(--sombra)); }
[data-theme="papel"] .chip + .chip { transform: rotate(1.5deg); background: var(--surface); }
[data-theme^="tinta"] .chip { border: 2.5px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--f-num); text-transform: uppercase; font-size: var(--t-s); }

.mision {
  border: 0; background: none; padding: 0; min-height: 44px; width: 100%; text-align: left;
  display: flex; align-items: center; gap: var(--e-2); font-weight: 800; font-size: var(--t-m);
}
.mision .etq { font-family: var(--f-display); font-weight: var(--peso-titulo); background: var(--primary); color: var(--primary-ink); padding: 2px 8px; font-size: var(--t-s); flex: none; }
[data-theme^="tinta"] .mision .etq { text-transform: uppercase; }
.mision .txt { flex: 1; min-width: 0; }
.pips { display: flex; gap: 4px; flex: none; }
.pips i { width: 14px; height: 14px; border: 2.5px solid var(--ink); display: block; }
[data-theme="papel"] .pips i { border-radius: 50%; }
.pips i.on { background: var(--primary); }
.mision.lista { animation: latido .6s var(--rebote) 2; }

.patio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-3) var(--e-2); }
.maceta {
  border: 0; background: none; padding: 0; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.maceta .planta { width: 100%; max-width: 84px; height: 58px; display: flex; align-items: flex-end; justify-content: center; }
.maceta .planta svg { width: 100%; height: 100%; transform-origin: 50% 100%; transition: transform .6s var(--rebote); }
.maceta.s1 .planta svg { transform: scale(.55); } .maceta.s2 .planta svg { transform: scale(.78); } .maceta.s3 .planta svg { transform: scale(1); }
.maceta.pop .planta svg { animation: pop .5s; }
@keyframes pop { 30% { transform: scale(1.25, .78); } 60% { transform: scale(.9, 1.14); } }
.tiesto { width: 78%; max-width: 72px; height: 24px; background: var(--pot); position: relative; }
[data-theme="papel"] .tiesto { clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); }
[data-theme="papel"] .maceta { filter: drop-shadow(3px 3px 0 var(--sombra)); }
[data-theme="papel"] .maceta:nth-child(odd) { transform: rotate(-1.5deg); } [data-theme="papel"] .maceta:nth-child(even) { transform: rotate(1.2deg); }
[data-theme^="tinta"] .tiesto { border-radius: 0 0 40px 40px; background: var(--pot) radial-gradient(var(--bg) 1.3px, transparent 1.6px) 0 0 / 6px 6px; }
[data-theme^="tinta"] .maceta .planta svg { filter: drop-shadow(2px 1px 0 var(--sun)); }
.maceta .nombre { font-size: var(--t-xs); font-weight: 800; margin-top: 4px; text-align: center; line-height: 1.1; min-height: 1.1em; }
.maceta .valor { font-family: var(--f-num); font-weight: var(--peso-num); font-size: var(--t-s); font-variant-numeric: tabular-nums; background: var(--surface); color: var(--surface-ink); padding: 0 5px; margin-top: 2px; }
[data-theme^="tinta"] .maceta .valor { background: var(--ground); color: var(--ground-ink); }
.maceta .lock { position: absolute; top: 0; left: calc(50% + 18px); width: 26px; height: 26px; display: grid; place-items: center; background: var(--nota); color: var(--nota-ink); border-radius: 50%; }
[data-theme^="tinta"] .maceta .lock { background: var(--sun); color: var(--ground-ink); }
.maceta .lock .ic { width: 16px; height: 16px; }
.maceta.vacia .planta { color: var(--ink); }
.maceta.vacia .planta svg { transform: scale(.6); }
.maceta.vacia .valor { background: none; color: var(--ink); font-family: var(--f-body); }
.maceta.guia .tiesto { animation: latido 1.1s ease-in-out infinite; }
.maceta.guia .planta { animation: sube 1.1s ease-in-out infinite; }
@keyframes latido { 50% { transform: scale(1.12); } }
@keyframes sube { 50% { transform: translateY(-6px); } }

/* Pie fijo: Zucho con su globo y la acción principal. */
.pie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg);
  padding: var(--e-2) var(--e-4) calc(var(--e-3) + env(safe-area-inset-bottom, 0px));
  border-top: 3px solid var(--line);
}
[data-theme="papel"] .pie { border-top: 0; box-shadow: 0 -4px 0 var(--sombra); }
.pie-in { max-width: calc(var(--ancho) - 2 * var(--e-4)); margin: 0 auto; display: flex; flex-direction: column; gap: var(--e-2); }
.btn.guia { outline: 3px solid var(--ink); animation: aro 1.1s ease-in-out infinite; }
@keyframes aro { 50% { outline-offset: 7px; } }

/* ---------- Zucho ---------- */
#zucho-dock { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--e-3); align-items: center; }
#zucho-avatar {
  width: 56px; height: 84px; border: 0; background: none; padding: 0; position: relative; display: block;
  animation: idle 3.4s ease-in-out infinite; transform-origin: 50% 100%;
}
#zucho-avatar canvas, #zucho-avatar img { width: 100% !important; height: 100% !important; display: block; object-fit: contain; object-position: bottom; }
#zucho-avatar.con-3d img { display: none; }
#zucho-dock.habla #zucho-avatar { animation: salto .5s; }
#zucho-dock.festeja #zucho-avatar { animation: festejo .9s; }
@keyframes idle { 50% { transform: translateY(-3px) rotate(-1.5deg); } }
@keyframes salto { 40% { transform: translateY(-12px) scale(1.06); } }
@keyframes festejo { 25% { transform: translateY(-16px) rotate(-10deg); } 50% { transform: translateY(0) rotate(8deg); } 75% { transform: translateY(-10px) rotate(-6deg); } }
[data-theme="papel"] #zucho-avatar { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(3px 4px 0 var(--sombra)); }
/* tinta: Zucho a una sola tinta, parado delante de un disco amarillo. */
[data-theme^="tinta"] #zucho-avatar { isolation: isolate; }
[data-theme^="tinta"] #zucho-avatar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 1; border-radius: 50%; background: var(--sun); z-index: -1; }
[data-theme^="tinta"] #zucho-avatar canvas, [data-theme^="tinta"] #zucho-avatar img { filter: grayscale(1) contrast(1.3); }
[data-theme="tinta-papel"] #zucho-avatar canvas, [data-theme="tinta-papel"] #zucho-avatar img { mix-blend-mode: multiply; }
#zucho-bubble, .globo {
  background: var(--nota); color: var(--nota-ink); padding: 10px 12px; position: relative;
  font-family: var(--f-nota); font-size: 1.12rem; line-height: 1.25; min-height: 48px; display: flex; align-items: center;
}
[data-theme="papel"] #zucho-bubble, [data-theme="papel"] .globo { transform: rotate(-.8deg); filter: drop-shadow(3px 3px 0 var(--sombra)); }
[data-theme="papel"] #zucho-bubble::before, [data-theme="papel"] .globo::before { content: ""; position: absolute; top: -8px; left: 40%; width: 52px; height: 15px; background: rgba(239, 91, 76, .75); transform: rotate(-3deg); }
[data-theme^="tinta"] #zucho-bubble, [data-theme^="tinta"] .globo { border: 2.5px solid var(--line); font-size: var(--t-m); font-weight: 700; }

/* Intro de Zucho */
.intro { justify-content: center; align-items: center; gap: var(--e-5); text-align: left; }
.intro-zucho-slot { width: 150px; }
.intro-zucho-slot #zucho-dock { display: block; }
.intro-zucho-slot #zucho-avatar { width: 150px; height: 225px; }
.intro-zucho-slot #zucho-bubble { display: none; }
.intro .globo { font-size: 1.3rem; padding: var(--e-4); width: 100%; }
[data-theme^="tinta"] .intro .globo { font-size: var(--t-l); }

/* ---------- Hojas (paneles que suben desde abajo) ---------- */
.hoja-fondo { position: fixed; inset: 0; z-index: 200; background: rgba(20, 18, 40, .6); display: flex; align-items: flex-end; justify-content: center; animation: aparece .2s; }
.hoja {
  width: 100%; max-width: var(--ancho); max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--ink); padding: var(--e-4) var(--e-4) calc(var(--e-5) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: var(--e-3); animation: sube-hoja .3s var(--rebote);
  border-top: 3px solid var(--line);
}
[data-theme="papel"] .hoja { border-top: 0; border-radius: 22px 26px 0 0; }
@media (min-width: 620px) { .hoja-fondo { align-items: center; } .hoja { border: 3px solid var(--line); } [data-theme="papel"] .hoja { border: 0; border-radius: 22px 26px 20px 28px; } }
.hoja-head { display: flex; align-items: center; gap: var(--e-3); }
.hoja-head h2 { font-size: var(--t-xl); flex: 1; min-width: 0; }
[data-theme^="tinta"] .hoja-head h2 { text-transform: uppercase; }
.hoja-acciones { display: flex; gap: var(--e-3); flex-wrap: wrap; }
.hoja-acciones .btn { flex: 1 1 140px; }
@keyframes aparece { from { opacity: 0; } }
@keyframes sube-hoja { from { transform: translateY(40px); opacity: 0; } }

/* Elegir planta */
.plantas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-3); }
.planta-card {
  border: 0; background: var(--surface); color: var(--surface-ink); padding: var(--e-2) var(--e-2) var(--e-3); min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; position: relative;
}
[data-theme="papel"] .plantas { filter: drop-shadow(3px 3px 0 var(--sombra)); }
[data-theme="papel"] .planta-card { clip-path: polygon(0 3%, 4% 0, 96% 2%, 100% 6%, 98% 97%, 95% 100%, 3% 98%, 0 94%); }
[data-theme^="tinta"] .planta-card { border: 2.5px solid var(--line); background: var(--bg); color: var(--ink); }
.planta-card svg.fig { width: 64px; height: 64px; }
.planta-card strong { font-family: var(--f-display); font-weight: var(--peso-titulo); font-size: var(--t-l); line-height: 1.05; }
.planta-card .corto { font-size: var(--t-xs); line-height: 1.2; }
.planta-card.bloqueada { opacity: .6; }
.planta-card .abre { font-size: var(--t-xs); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.riesgo { display: flex; gap: 3px; align-items: center; font-size: var(--t-xs); font-weight: 800; margin-top: 2px; }
.riesgo i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; display: block; }
.riesgo i.on { background: currentColor; }

/* Elegir cuánto */
.monto { display: flex; flex-direction: column; gap: var(--e-3); align-items: center; text-align: center; }
.monto .fig { width: 96px; height: 96px; }
.monto-valor { font-family: var(--f-num); font-weight: var(--peso-num); font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: var(--e-4); }
.stepper .icono-btn { width: 60px; height: 60px; }
.presets { display: flex; gap: var(--e-2); flex-wrap: wrap; justify-content: center; }
.monto input[type=number] { min-height: 48px; width: 11ch; text-align: center; border: 2.5px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--f-num); font-weight: 700; font-size: var(--t-l); border-radius: 0; }

/* Máquina del tiempo */
.tm { width: 100%; text-align: left; display: flex; flex-direction: column; gap: var(--e-2); }
.tm h3 { font-size: var(--t-l); display: flex; align-items: center; gap: var(--e-2); }
[data-theme^="tinta"] .tm h3 { text-transform: uppercase; }
.tm label { font-size: var(--t-s); font-weight: 800; }
.tm input[type=range] { width: 100%; min-height: 40px; accent-color: var(--primary); }
.tm-barras { display: grid; gap: var(--e-2); }
.tm-barra { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: var(--e-2); align-items: center; font-size: var(--t-s); font-weight: 800; }
.tm-barra u { display: block; height: 16px; background: var(--leaf); text-decoration: none; transition: width .2s; min-width: 2px; }
.tm-barra.quieta u { background: var(--primary); }
.tm-nota { font-size: var(--t-s); }

/* Ficha de una planta ya plantada */
.ficha { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--e-3); align-items: center; }
.ficha .fig { width: 96px; height: 96px; }
.ficha .v { font-family: var(--f-num); font-weight: var(--peso-num); font-size: 1.9rem; line-height: 1; }
.sube { color: var(--ok); } .baja { color: var(--danger); }
.aviso { background: var(--nota); color: var(--nota-ink); padding: var(--e-3); font-weight: 800; display: flex; gap: var(--e-2); align-items: flex-start; }
[data-theme^="tinta"] .aviso { border: 2.5px solid var(--danger); }
.aviso .ic { margin-top: 2px; }

/* Reporte del mes */
.rep-total { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.rep-total .v { font-family: var(--f-num); font-weight: var(--peso-num); font-size: 2.3rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rep-total .d { font-family: var(--f-num); font-weight: var(--peso-num); font-size: var(--t-l); }
.rep-clima { text-align: center; font-weight: 800; }
.rep-filas { display: flex; flex-direction: column; }
.rep-fila { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--e-2); align-items: center; padding: 8px 0; border-bottom: 2px dashed var(--ink-suave); font-weight: 800; }
.rep-fila .lbl { display: flex; align-items: center; gap: 4px; min-width: 0; }
.rep-fila .val { font-family: var(--f-num); font-weight: var(--peso-num); font-variant-numeric: tabular-nums; }
.rep-fila.pos .val { color: var(--ok); } .rep-fila.neg .val { color: var(--danger); }
.rep-fila svg.fig { width: 28px; height: 28px; }
.info-btn { border: 0; background: none; width: 44px; height: 44px; margin: -10px -8px; display: grid; place-items: center; color: inherit; flex: none; }
.info-btn .ic { width: 20px; height: 20px; }
.rep-info { background: var(--nota); color: var(--nota-ink); padding: var(--e-3); font-family: var(--f-nota); font-size: 1.08rem; line-height: 1.3; margin: 4px 0 8px; }
[data-theme^="tinta"] .rep-info { border: 2.5px solid var(--line); font-size: var(--t-s); font-weight: 600; }
.racha { display: flex; align-items: center; justify-content: center; gap: var(--e-2); font-weight: 800; }

/* Quiz */
.quiz-q { font-size: var(--t-l); font-weight: 800; }
.quiz-opts { display: flex; flex-direction: column; gap: var(--e-3); }
.quiz-opts .btn { font-family: var(--f-body); font-weight: 800; font-size: var(--t-m); text-transform: none; letter-spacing: 0; justify-content: flex-start; text-align: left; }
.quiz-opts .btn.correcta { background: var(--ok); color: var(--bg); }
.quiz-opts .btn.incorrecta { background: var(--danger); color: var(--bg); }
.quiz-fb { font-weight: 800; min-height: 2.8em; }

/* Álbum de figuritas */
.album { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-2); }
.figu {
  border: 2.5px dashed var(--ink-suave); background: none; color: var(--ink-suave); aspect-ratio: 1 / 1.1; min-width: 0; padding: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: var(--t-xs); font-weight: 800; text-align: center; line-height: 1.1;
}
.figu svg { width: 38px; height: 38px; opacity: .45; }
.figu.ok { border: 3px solid var(--surface); outline: 2px solid var(--ink); color: var(--ink); }
.figu.ok svg { opacity: 1; }
.figu.ok:nth-child(6n+1) { background: #7fd3a4; } .figu.ok:nth-child(6n+2) { background: #ffd23f; } .figu.ok:nth-child(6n+3) { background: #f79a8f; }
.figu.ok:nth-child(6n+4) { background: #9fc2ff; } .figu.ok:nth-child(6n+5) { background: #f4b6d2; } .figu.ok:nth-child(6n+6) { background: #ffb561; }
.figu.ok { color: #23203a; }
.figu.nueva { animation: pega .6s var(--rebote); }
@keyframes pega { from { transform: scale(1.9) rotate(-14deg); opacity: 0; } }
.figu-dorso { background: var(--surface); color: var(--surface-ink); padding: var(--e-3); font-size: var(--t-m); }
.figu-dorso strong { font-family: var(--f-display); font-weight: var(--peso-titulo); font-size: var(--t-l); display: block; }

/* Lista de opciones (menú "Más") */
.lista-op { display: flex; flex-direction: column; gap: var(--e-2); }
.op { border: 0; background: var(--surface); color: var(--surface-ink); min-height: 56px; padding: 8px 14px; display: flex; align-items: center; gap: var(--e-3); text-align: left; font-weight: 800; font-size: var(--t-m); width: 100%; }
[data-theme^="tinta"] .op { border: 2.5px solid var(--line); background: var(--bg); color: var(--ink); }
.op.activa { background: var(--nota); color: var(--nota-ink); }
[data-theme^="tinta"] .op.activa { background: var(--sun); color: var(--ground-ink); border-color: var(--sun); }
.op small { display: block; font-weight: 600; font-size: var(--t-xs); }
.op .ic { width: 28px; height: 28px; }
.fila-mep { display: flex; gap: var(--e-2); align-items: center; flex-wrap: wrap; }
.fila-mep input { flex: 1 1 120px; min-height: 48px; min-width: 0; padding: 8px 12px; border: 2.5px solid var(--line); background: var(--surface); color: var(--surface-ink); font-family: var(--f-num); font-weight: 700; border-radius: 0; }
.hist { display: flex; align-items: flex-end; gap: 3px; height: 96px; }
.hist i { flex: 1; background: var(--leaf); min-height: 3px; display: block; }
.hist-lista { list-style: none; margin: 0; padding: 0; font-size: var(--t-s); }
.hist-lista li { display: flex; justify-content: space-between; gap: var(--e-3); padding: 4px 0; border-bottom: 2px dashed var(--ink-suave); }

/* Chat con Zucho */
.chat-historial { display: flex; flex-direction: column; gap: var(--e-2); max-height: 38vh; overflow-y: auto; }
.chat-historial p { margin: 0; padding: 10px 12px; max-width: 88%; font-size: var(--t-m); line-height: 1.35; }
.zucho-message { background: var(--nota); color: var(--nota-ink); align-self: flex-start; font-family: var(--f-nota); font-size: 1.1rem !important; }
[data-theme^="tinta"] .zucho-message { border: 2.5px solid var(--line); font-size: var(--t-m) !important; }
.user-message { background: var(--surface); color: var(--surface-ink); align-self: flex-end; }
[data-theme^="tinta"] .user-message { background: var(--ink); color: var(--bg); }
.chat-preguntas { display: flex; flex-direction: column; gap: var(--e-2); }
.chat-preguntas .op { min-height: 48px; }
.chat-fila { display: flex; gap: var(--e-2); }
.chat-fila input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 12px; border: 2.5px solid var(--line); background: var(--surface); color: var(--surface-ink); border-radius: 0; }
.chat-cuota { font-size: var(--t-xs); color: var(--ink-suave); }

/* Tormenta de Santa Rosa */
.santa { background: #5c0f12; color: #fff; align-items: center; }
.santa .hoja { background: none; color: #fff; border: 0; text-align: center; align-items: center; }
.santa h2 { font-size: var(--t-xxl); }
.santa .cuenta { font-family: var(--f-num); font-weight: 700; font-size: 3rem; }
.santa .ic { width: 72px; height: 72px; animation: latido .7s ease-in-out infinite; }

/* ---------- Respuestas a la acción ---------- */
.flota {
  position: absolute; left: 50%; top: 0; z-index: 5; pointer-events: none; white-space: nowrap;
  font-family: var(--f-num); font-weight: var(--peso-num); font-size: var(--t-m);
  background: var(--surface); color: var(--ok); padding: 1px 6px; animation: flota 1.5s ease-out forwards;
}
.flota.mal { color: var(--danger); }
[data-theme^="tinta"] .flota { background: var(--ink); color: var(--bg); }
[data-theme^="tinta"] .flota.mal { background: var(--primary); color: var(--primary-ink); }
@keyframes flota { from { transform: translate(-50%, 14px); opacity: 0; } 20% { opacity: 1; } to { transform: translate(-50%, -50px); opacity: 0; } }
.conf { position: fixed; width: 10px; height: 10px; left: 50%; top: 42%; z-index: 400; pointer-events: none; animation: conf 1.2s ease-out forwards; }
@keyframes conf { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
#vf-toast {
  position: fixed; left: 50%; bottom: 210px; transform: translateX(-50%); z-index: 500; max-width: min(92vw, 460px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; font-weight: 800; text-align: center; transition: opacity .3s;
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 620px) {
  .patio { gap: var(--e-6) var(--e-4); }
  .maceta .planta { max-width: 110px; height: 96px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flota { opacity: 1; top: -22px; }
}
