
:root {
  --yellow: #f5d000;
  --yellow-soft: #ffe566;
  --green: #1f6b2e;
  --green-deep: #145222;
  --ink: #142018;
  --muted: #3f5347;
  --card: rgba(255, 255, 255, 0.96);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --shell: min(680px, 100%);
  --pad-x: clamp(0.9rem, 4vw, 1.5rem);
  --pad-y: clamp(1rem, 3.5vh, 1.75rem);
  --radius: clamp(18px, 4vw, 28px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: #fff8e1;
  display: grid;
  place-items: start center;
  padding: calc(var(--pad-y) + var(--safe-t)) var(--pad-x) calc(var(--pad-y) + var(--safe-b));
  line-height: 1.5;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 480px at 50% -8%, rgba(245, 208, 0, 0.5), transparent 68%),
    radial-gradient(560px 400px at 12% 85%, rgba(31, 107, 46, 0.16), transparent 60%),
    radial-gradient(520px 360px at 90% 70%, rgba(245, 208, 0, 0.18), transparent 55%),
    linear-gradient(180deg, #fff4c4 0%, #fffdf2 42%, #e9f6ec 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(31, 107, 46, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 107, 46, 0.05) 1px, transparent 1px);
  background-size: 100% 28px, 28px 100%;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

.floaters { position: absolute; inset: 0; }

.floater {
  position: absolute;
  display: block;
  opacity: 0.5;
  filter: drop-shadow(0 8px 14px rgba(20, 82, 34, 0.12));
  animation: drift 14s ease-in-out infinite;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.f1 {
  width: 78px; height: 78px; top: 10%; left: 7%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='10' y='12' width='44' height='40' rx='4' fill='%231f6b2e'/%3E%3Crect x='14' y='16' width='36' height='32' rx='2' fill='%23fff8e1'/%3E%3Cpath d='M32 16v32' stroke='%23f5d000' stroke-width='2'/%3E%3Cpath d='M18 24h10M18 30h10M36 24h10M36 30h10' stroke='%231f6b2e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.f2 {
  width: 84px; height: 84px; top: 14%; right: 6%; animation-delay: -2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M4 26l28-12 28 12-28 12L4 26z' fill='%23145222'/%3E%3Cpath d='M16 30v10c0 4 16 8 16 8s16-4 16-8V30' fill='%231f6b2e'/%3E%3Cpath d='M54 26v14' stroke='%23f5d000' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='54' cy='42' r='3' fill='%23f5d000'/%3E%3C/svg%3E");
}
.f3 {
  width: 70px; height: 70px; bottom: 18%; left: 8%; animation-delay: -4s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg transform='rotate(-35 32 32)'%3E%3Crect x='28' y='8' width='8' height='40' rx='2' fill='%23f5d000'/%3E%3Crect x='28' y='8' width='8' height='8' fill='%231f6b2e'/%3E%3Cpath d='M28 48l4 10 4-10z' fill='%23c47a3a'/%3E%3Cpath d='M30 54l2 4 2-4z' fill='%23142018'/%3E%3C/g%3E%3C/svg%3E");
}
.f4 {
  width: 64px; height: 64px; bottom: 14%; right: 9%; animation-delay: -6s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 14c2-6 8-8 12-8-2 6-6 8-12 8z' fill='%231f6b2e'/%3E%3Cpath d='M40 22c6 0 12 8 12 18s-6 16-12 16-6-2-8-2-2 2-8 2-12-6-12-16 6-18 12-18 6 2 8 2 2-2 8-2z' fill='%23d64545'/%3E%3C/svg%3E");
}
.f5 {
  width: 48px; height: 48px; top: 42%; left: 4%; animation-delay: -1s; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 4l6 18h18l-14 11 6 18-16-12-16 12 6-18L8 22h18z' fill='%23f5d000'/%3E%3C/svg%3E");
}
.f6 {
  width: 90px; height: 90px; top: 58%; right: 4%; animation-delay: -8s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg transform='rotate(25 32 32)'%3E%3Crect x='8' y='26' width='48' height='12' rx='2' fill='%23ffe566' stroke='%231f6b2e' stroke-width='2'/%3E%3Cpath d='M14 26v6M20 26v4M26 26v6M32 26v4M38 26v6M44 26v4M50 26v6' stroke='%231f6b2e' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
.f7 {
  width: 58px; height: 58px; top: 28%; left: 18%; animation-delay: -3.5s; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 6c-10 0-18 8-18 18 0 8 4 12 8 16v6h20v-6c4-4 8-8 8-16 0-10-8-18-18-18z' fill='%23f5d000'/%3E%3Crect x='24' y='48' width='16' height='6' rx='2' fill='%231f6b2e'/%3E%3Cpath d='M26 30h12M28 36h8' stroke='%23145222' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.f8 {
  width: 66px; height: 66px; top: 72%; left: 46%; animation-delay: -5.5s; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M20 10h24v8H20z' fill='%231f6b2e'/%3E%3Ccircle cx='32' cy='38' r='16' fill='%23f5d000'/%3E%3Ccircle cx='32' cy='38' r='10' fill='%23145222'/%3E%3Cpath d='M32 30l2.5 5 5.5.8-4 3.9.9 5.5L32 42.5 27.1 45.2l.9-5.5-4-3.9 5.5-.8z' fill='%23ffe566'/%3E%3C/svg%3E");
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.35rem);
  justify-items: stretch;
  margin-inline: auto;
}

.head {
  width: 100%;
  text-align: center;
}

.logo {
  width: clamp(76px, 18vw, 104px);
  height: clamp(76px, 18vw, 104px);
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.12));
}

.brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: clamp(0.72rem, 2.5vw, 0.84rem);
  color: var(--green);
  margin-bottom: 0.45rem;
}

.head h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 6.2vw, 2.55rem);
  line-height: 1.15;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.head h1 span {
  color: var(--green-deep);
  background: linear-gradient(120deg, var(--yellow), var(--yellow-soft));
  padding: 0 0.35rem;
  border-radius: 0.35rem;
  display: inline-block;
}

.instructions {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 107, 46, 0.14);
  border-radius: var(--radius);
  padding: clamp(1.05rem, 3.5vw, 1.4rem) clamp(1rem, 3.5vw, 1.45rem);
  box-shadow: 0 14px 34px rgba(20, 82, 34, 0.08);
  text-align: left;
}

.greeting {
  font-family: var(--display);
  font-size: clamp(1.25rem, 4.2vw, 1.55rem);
  color: var(--green-deep);
  font-weight: 700;
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.guide {
  color: var(--ink);
  font-size: clamp(1.05rem, 3.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.guide strong {
  color: var(--green-deep);
  font-weight: 800;
}

.card {
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(31, 107, 46, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 3.5vw, 1.7rem);
  box-shadow: 0 24px 50px rgba(20, 82, 34, 0.12);
  text-align: left;
  backdrop-filter: blur(8px);
}

.label {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1rem, 3.2vw, 1.12rem);
  color: var(--green-deep);
  margin-bottom: 0.7rem;
}

#documento {
  display: block;
  width: 100%;
  border: 3px solid rgba(31, 107, 46, 0.2);
  border-radius: clamp(14px, 3vw, 20px);
  padding: clamp(0.95rem, 3vw, 1.2rem) 1rem;
  font: inherit;
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  outline: none;
  background: #fff;
  margin-bottom: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

#documento:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(31, 107, 46, 0.12);
}

.btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: clamp(14px, 3vw, 20px);
  min-height: clamp(54px, 12vw, 64px);
  font: inherit;
  font-weight: 800;
  font-size: clamp(1.05rem, 3.5vw, 1.18rem);
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 14px 28px rgba(20, 82, 34, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.75; cursor: wait; }

.btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.result {
  margin-top: 1.1rem;
  animation: in 0.45s ease;
}

@keyframes in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.win {
  border-radius: clamp(16px, 3vw, 22px);
  padding: clamp(1.05rem, 3.2vw, 1.4rem);
  color: #fff;
  background: linear-gradient(155deg, #145222, #1f6b2e 55%, #2f8f3f);
}

.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: clamp(0.72rem, 2.6vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.win h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  line-height: 1.25;
  margin-bottom: 0.95rem;
  word-break: break-word;
}

.facts { display: grid; gap: 0.55rem; }

.fact {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}

.fact span {
  display: block;
  font-size: clamp(0.7rem, 2.4vw, 0.76rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-bottom: 0.2rem;
}

.fact strong {
  font-size: clamp(0.98rem, 3.3vw, 1.08rem);
  line-height: 1.35;
  word-break: break-word;
}

.prize {
  margin-top: 0.9rem;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.prize em {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

.prize strong {
  font-family: var(--display);
  font-size: clamp(1.2rem, 4.2vw, 1.45rem);
}

.lose, .warn {
  text-align: center;
  background: #fff;
  border: 1px solid rgba(20, 32, 24, 0.08);
  border-radius: clamp(16px, 3vw, 20px);
  padding: clamp(1.1rem, 3.5vw, 1.35rem) 1rem;
}

.lose h2, .warn h2 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.lose p, .warn p {
  color: var(--muted);
  line-height: 1.6;
  font-size: clamp(0.98rem, 3.3vw, 1.08rem);
}

.icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f3f0;
  font-size: 1.35rem;
}

.upload-box {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: clamp(0.95rem, 3vw, 1.1rem);
}

.upload-box p {
  font-size: clamp(0.98rem, 3.3vw, 1.08rem);
  line-height: 1.6;
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(48px, 11vw, 54px);
  margin-top: 0.25rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1rem, 3.4vw, 1.08rem);
  color: var(--ink);
  background: var(--yellow);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.foot {
  color: var(--muted);
  font-size: clamp(0.82rem, 2.8vw, 0.92rem);
  line-height: 1.45;
  text-align: center;
  padding-bottom: 0.25rem;
}

@media (max-width: 900px) {
  .f5, .f7, .f8 { display: none; }
  .floater { opacity: 0.32; }
}

@media (max-width: 600px) {
  .f3, .f4, .f6 { opacity: 0.22; }
  .f1, .f2 { width: 52px; height: 52px; opacity: 0.3; }
  .prize { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .floaters { display: none; }
  .head h1 { font-size: 1.55rem; }
}

@media (min-width: 900px) {
  body { place-items: center; }
  .shell { gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .floater, .result, .btn-spinner { animation: none !important; }
}


.win {
  border-radius: clamp(16px, 3vw, 22px);
  padding: clamp(1.05rem, 3.2vw, 1.4rem);
  color: #fff;
  background: linear-gradient(155deg, #145222, #1f6b2e 55%, #2f8f3f);
}

.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: clamp(0.74rem, 2.6vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.win h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4.8vw, 1.7rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  word-break: break-word;
}

.facts { display: grid; gap: 0.6rem; }

.fact {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

.fact span {
  display: block;
  font-size: clamp(0.72rem, 2.5vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.fact strong {
  font-size: clamp(1.05rem, 3.5vw, 1.15rem);
  line-height: 1.4;
  word-break: break-word;
  font-weight: 700;
}

.prize {
  margin-top: 0.95rem;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.prize em {
  font-style: normal;
  font-weight: 800;
  font-size: clamp(0.95rem, 3.2vw, 1.05rem);
}

.prize strong {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4.5vw, 1.6rem);
}

.next-card {
  margin-top: 1rem;
  background: #fffdf5;
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(1rem, 3.2vw, 1.25rem);
  border: 2px solid rgba(245, 208, 0, 0.65);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.next-title {
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.8vw, 1.3rem);
  color: var(--green-deep);
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.next-text {
  font-size: clamp(1.02rem, 3.5vw, 1.12rem);
  line-height: 1.65;
  color: #1b2a20;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.next-text strong {
  color: var(--green-deep);
  font-weight: 800;
}

.parent-chip {
  background: #eaf6ec;
  border: 1px solid rgba(31, 107, 46, 0.2);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.95rem;
}

.parent-chip span {
  display: block;
  font-size: clamp(0.8rem, 2.8vw, 0.88rem);
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.parent-chip strong {
  display: block;
  font-size: clamp(1.08rem, 3.8vw, 1.22rem);
  color: var(--green-deep);
  line-height: 1.35;
  word-break: break-word;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(52px, 12vw, 58px);
  margin-top: 0.15rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1.05rem, 3.5vw, 1.12rem);
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 10px 20px rgba(20, 82, 34, 0.22);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}



.shell-wide {
  width: min(920px, 100%);
}

.head-lead {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 3.2vw, 1.12rem);
  font-weight: 600;
}

.lists-panel {
  width: 100%;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(31, 107, 46, 0.12);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.35rem);
  box-shadow: 0 18px 40px rgba(20, 82, 34, 0.1);
}

.lists-intro h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  color: var(--green-deep);
  margin-bottom: 0.35rem;
}

.lists-intro p {
  color: var(--muted);
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.lists-loading, .lists-error {
  text-align: center;
  color: var(--muted);
  padding: 1.2rem;
  font-weight: 600;
}

.cat-block {
  border: 1px solid rgba(31, 107, 46, 0.14);
  border-radius: 16px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.cat-block summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #f7fff8, #fff9e0);
  font-weight: 750;
  color: var(--green-deep);
  -webkit-tap-highlight-color: transparent;
}

.cat-block summary::-webkit-details-marker { display: none; }

.cat-name {
  font-size: clamp(0.98rem, 3.3vw, 1.12rem);
  line-height: 1.35;
  text-align: left;
}

.cat-count {
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  min-width: 2.2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.cat-list {
  padding: 0.35rem 0.55rem 0.7rem;
  max-height: min(60vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.winner-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  padding: 0.75rem 0.55rem;
  border-bottom: 1px solid rgba(20, 32, 24, 0.06);
}

.winner-row:last-child { border-bottom: 0; }

.w-index {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #eaf6ec;
  color: var(--green-deep);
  font-weight: 800;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  margin-top: 0.15rem;
}

.w-name {
  font-size: clamp(1rem, 3.4vw, 1.1rem);
  font-weight: 750;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.w-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: #eef5ef;
  color: var(--green-deep);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.tag-prize {
  background: #fff3b0;
  color: #5a4800;
}

.w-meta {
  margin-top: 0.25rem;
  background: #f7faf7;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.w-meta span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.w-meta strong {
  font-size: clamp(0.92rem, 3.1vw, 1rem);
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}

.verify-block {
  width: 100%;
  display: grid;
  gap: 1rem;
  scroll-margin-top: 1rem;
}

@media (max-width: 600px) {
  .cat-list { max-height: 55vh; }
  .winner-row { gap: 0.55rem; }
}



.shell-wide {
  width: min(1100px, 100%);
}

.head-lead {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 3.2vw, 1.12rem);
  font-weight: 600;
}

.lists-panel {
  width: 100%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(31, 107, 46, 0.12);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 18px 40px rgba(20, 82, 34, 0.1);
}

.lists-intro h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--green-deep);
  margin-bottom: 0.35rem;
}

.lists-intro p {
  color: var(--muted);
  font-size: clamp(0.98rem, 3vw, 1.08rem);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.lists-loading, .lists-error {
  text-align: center;
  color: var(--muted);
  padding: 1.2rem;
  font-weight: 600;
}

.lists-toolbar {
  margin-bottom: 1.1rem;
}

.lists-total {
  font-size: clamp(1rem, 3.2vw, 1.1rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.lists-total strong {
  color: var(--green-deep);
  font-size: 1.2em;
}

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
}

.toc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--green-deep);
  background: linear-gradient(135deg, #f3faf4, #fff8d9);
  border: 1px solid rgba(31, 107, 46, 0.14);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  font-size: clamp(0.86rem, 2.8vw, 0.95rem);
  line-height: 1.3;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.toc-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 82, 34, 0.1);
}

.toc-item strong {
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  min-width: 1.8rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
  font-size: 0.82rem;
}

.cat-section {
  margin-top: 1.35rem;
  scroll-margin-top: 1rem;
  padding-top: 0.25rem;
  border-top: 2px solid rgba(31, 107, 46, 0.1);
}

.cat-section:first-of-type {
  border-top: 0;
  margin-top: 0.5rem;
}

.cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0.85rem 0 0.85rem;
}

.cat-head h3 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3.8vw, 1.45rem);
  color: var(--green-deep);
  line-height: 1.25;
}

.cat-count {
  background: #eaf6ec;
  color: var(--green-deep);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.g-card {
  background: #fff;
  border: 1px solid rgba(31, 107, 46, 0.12);
  border-radius: 16px;
  padding: 0.9rem 0.95rem;
  box-shadow: 0 8px 18px rgba(20, 82, 34, 0.05);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.g-name {
  font-size: clamp(1rem, 3.3vw, 1.08rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}

.g-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: #eef5ef;
  color: var(--green-deep);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag-prize {
  background: #fff3b0;
  color: #5a4800;
}

.card-parent {
  margin-top: 0.15rem;
  font-size: clamp(0.88rem, 2.9vw, 0.95rem);
  line-height: 1.4;
  color: #314539;
  background: #f6faf6;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.card-parent span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 0.12rem;
}

.verify-block {
  width: 100%;
  display: grid;
  gap: 1rem;
  scroll-margin-top: 1rem;
}

@media (max-width: 700px) {
  .g-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
  }
  .g-card {
    min-height: 0;
    padding: 0.8rem;
  }
  .toc {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .g-grid {
    grid-template-columns: 1fr;
  }
  .toc {
    grid-template-columns: 1fr;
  }
}



/* === Lista full-width (voz a voz) === */
.shell-wide {
  width: min(1280px, 100%);
}

.lists-panel {
  padding: clamp(0.85rem, 2vw, 1.25rem);
}

.toc {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.cat-section {
  margin-top: 1.1rem;
}

.cat-head {
  margin: 0.6rem 0 0.55rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(135deg, #eaf6ec, #fff6c9);
  border-radius: 12px;
}

.g-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border: 1px solid rgba(31, 107, 46, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.g-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 1.3fr);
  align-items: center;
  gap: 0.55rem 1rem;
  min-height: 0 !important;
  margin: 0;
  padding: 0.72rem 1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(20, 32, 24, 0.08) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff;
}

.g-card:nth-child(even) {
  background: #f7fbf7;
}

.g-card:last-child {
  border-bottom: 0 !important;
}

.g-name {
  margin: 0 !important;
  font-size: clamp(0.98rem, 2.2vw, 1.1rem) !important;
  font-weight: 800;
  line-height: 1.3 !important;
}

.g-tags {
  justify-content: flex-end;
  margin: 0;
  flex-shrink: 0;
}

.card-parent {
  margin: 0 !important;
  padding: 0.4rem 0.6rem !important;
  font-size: clamp(0.86rem, 2vw, 0.96rem) !important;
}

.card-parent span {
  display: inline !important;
  margin-right: 0.35rem;
  font-size: 0.72rem;
}

.card-parent-empty {
  background: transparent !important;
  padding: 0 !important;
  min-height: 0;
}

@media (max-width: 800px) {
  .g-card {
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
    padding: 0.75rem 0.85rem !important;
  }
  .g-tags {
    justify-content: flex-start;
  }
}

@media (min-width: 1100px) {
  body {
    place-items: start center;
  }
  .shell-wide {
    width: min(1360px, calc(100vw - 2rem));
  }
}



/* === Top: lista + verificador derecha === */
.shell-wide {
  width: min(1360px, calc(100vw - 1.5rem));
}

.top-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.head-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(31,107,46,0.12);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: 0 12px 28px rgba(20,82,34,0.08);
}

.head-left .logo {
  margin: 0;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
}

.head-left h1 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  margin-bottom: 0.2rem;
}

.verify-side {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(31,107,46,0.14);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 16px 36px rgba(20,82,34,0.12);
}

.verify-side .greeting {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--green-deep);
  margin-bottom: 0.35rem;
}

.verify-side .guide.compact {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.verify-side .label {
  text-align: left;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.verify-side #documento {
  font-size: 1.15rem;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.65rem;
}

.verify-side .btn {
  min-height: 50px;
  font-size: 1rem;
}

.cat-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.cat-tab {
  border: 1px solid rgba(31,107,46,0.16);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  font-size: clamp(0.82rem, 2.2vw, 0.92rem);
  color: var(--green-deep);
  text-align: left;
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.cat-tab strong {
  background: #eaf6ec;
  color: var(--green-deep);
  border-radius: 999px;
  min-width: 1.7rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  font-size: 0.8rem;
}

.cat-tab.is-active {
  background: linear-gradient(135deg, #1f6b2e, #145222);
  border-color: #145222;
  color: #fff;
  box-shadow: 0 8px 18px rgba(20,82,34,0.22);
}

.cat-tab.is-active strong {
  background: var(--yellow);
  color: var(--ink);
}

.g-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border: 1px solid rgba(31, 107, 46, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.g-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 1.3fr);
  align-items: center;
  gap: 0.55rem 1rem;
  min-height: 0 !important;
  margin: 0;
  padding: 0.72rem 1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(20, 32, 24, 0.08) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff;
}

.g-card:nth-child(even) { background: #f7fbf7; }
.g-card:last-child { border-bottom: 0 !important; }

.card-parent-empty {
  background: transparent !important;
  padding: 0 !important;
}

@media (max-width: 980px) {
  .top-layout {
    grid-template-columns: 1fr;
  }
  .verify-side {
    order: -1;
  }
  .head-left {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 800px) {
  .g-card {
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
  }
  .g-tags { justify-content: flex-start; }
}



/* Resultado compacto: no satura la pantalla */
.win.win-compact {
  padding: 0.85rem 0.9rem 0.95rem !important;
  border-radius: 16px !important;
}

.win-compact .win-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
}

.win-compact .badge {
  margin: 0 !important;
  font-size: 0.72rem !important;
  padding: 0.28rem 0.55rem !important;
  letter-spacing: 0.02em;
}

.win-compact h2 {
  font-size: clamp(1.05rem, 3.2vw, 1.25rem) !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  flex: 1 1 160px;
}

.win-compact .win-parent {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  line-height: 1.35;
  opacity: 0.95;
}

.win-compact .win-parent strong {
  font-weight: 800;
}

.win-compact .win-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.win-compact .win-meta > span {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.win-compact .win-meta .win-premio {
  background: var(--yellow);
  color: var(--ink);
  border-color: transparent;
}

.win-compact .next-card.next-compact {
  margin-top: 0 !important;
  padding: 0.7rem 0.75rem !important;
  border-radius: 12px !important;
  border-width: 1.5px !important;
  box-shadow: none !important;
}

.win-compact .next-compact .next-text {
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
  margin-bottom: 0.55rem !important;
}

.win-compact .btn-upload {
  min-height: 42px !important;
  font-size: 0.95rem !important;
  border-radius: 10px !important;
  margin-top: 0 !important;
}

.verify-side .result {
  margin-top: 0.75rem;
}

.verify-side .lose,
.verify-side .warn {
  padding: 0.85rem 0.75rem !important;
}

.verify-side .lose h2,
.verify-side .warn h2 {
  font-size: 1.05rem !important;
}

.verify-side .lose p,
.verify-side .warn p {
  font-size: 0.9rem !important;
}

.verify-side .icon {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}
