/* Arbolito IA team: página principal */
body {
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(40, 80, 140, .28), transparent 70%),
    linear-gradient(180deg, #010d24 0%, #03152f 14%, #061a3a 40%, #08204a 70%, #04122b 100%);
  background-color: var(--noche);
  overflow-x: hidden;
}

/* ---------- Barra ---------- */
.barra {
  position: fixed; z-index: 30; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 12px; pointer-events: none;
  transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.barra > * { pointer-events: auto; }
.barra.solida { background: rgba(3, 13, 34, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--linea); }
.marca { display: inline-flex; align-items: center; gap: 9px; color: var(--crema); text-decoration: none; font: 400 21px/1 var(--f-display); letter-spacing: .01em; }
.marca svg { width: 22px; height: 22px; color: var(--oro); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--tinta); text-decoration: none; font: 600 14px/1 var(--f-texto); padding: 11px 14px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: rgba(255, 255, 255, .07); }
.nav .nav-sorteo { background: rgba(245, 196, 81, .14); color: var(--oro); border: 1px solid rgba(245, 196, 81, .35); }
@media (max-width: 759px) { .nav a:not(.nav-sorteo) { display: none; } }

/* ---------- Hero con el árbol ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 55% at 50% 60%, rgba(40, 80, 140, .35), rgba(40, 80, 140, 0) 70%),
    linear-gradient(180deg, #010d24 0%, #03152f 32%, #071d38 58%, #0f2848 80%, #163259 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(4, 18, 43, .9)); pointer-events: none; z-index: 2; }
.stage { position: absolute; inset: 0; touch-action: pan-y; outline: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; cursor: grab; }
.stage.drag { cursor: grabbing; }
.stage:focus-visible { box-shadow: inset 0 0 0 2px var(--oro); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s ease; }
.hero.vivo #gl { opacity: 1; }
.hero.sin-3d .cargando { opacity: 1; max-width: 30ch; text-align: center; }
.hero.sin-3d .estrellita { animation: none; }
.hero:fullscreen { height: 100vh; }
.ascii { position: absolute; inset: 0; display: none; overflow: hidden; pointer-events: none; }
.ascii table { font-weight: 600; }
.stage.ascii #gl { opacity: 0 !important; }
.stage.ascii .ascii { display: block; }
.capa { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }

/* Tarjetitas que flotan (etiquetas de regalo) */
.tag {
  position: absolute; left: 0; top: 0; width: max-content; max-width: 196px; padding: 9px 12px 9px 22px;
  background: linear-gradient(180deg, #fffaf0, #f6e6c8); color: #2b1a0e; border-radius: 6px 12px 12px 6px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); will-change: transform, opacity; opacity: 0;
}
.tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #0a1f44; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .6); }
.tag p { margin: 0; font: 700 13.5px/1.32 var(--f-texto); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tag b { display: inline; font: 700 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #a51d2a; }
.tag span { font: 500 10.5px/1.2 var(--f-mono); color: #6b5640; letter-spacing: .04em; }
.tag b:not(:empty)::before { content: ""; display: block; height: 6px; }
.tag.vacio { background: rgba(6, 20, 48, .85); color: var(--oro-luz); clip-path: none; border: 1px dashed rgba(245, 196, 81, .6); border-radius: 12px; padding: 10px 14px; }
.tag.vacio::before { display: none; }
.tag.nuevo { animation: tag-nuevo 1.1s var(--ease); }
@keyframes tag-nuevo { 0% { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)) brightness(1.6); } 100% { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)) brightness(1); } }

/* Texto del hero */
.hero-txt { position: absolute; z-index: 5; left: clamp(24px, 5vw, 84px); top: 50%; transform: translateY(-46%); width: min(470px, 36vw); pointer-events: none; }
.hero-txt > * { pointer-events: auto; }
.kicker { margin: 0 0 12px; font: 700 22px/1.2 var(--f-acento); color: var(--oro-luz); }
.kicker b { color: var(--oro); font-weight: 700; }
#titulo { font-size: clamp(48px, 5.8vw, 96px); font-weight: 400; color: var(--crema); text-shadow: 0 2px 18px rgba(1, 8, 24, .85); }
.bajada { margin: 18px 0 0; font-size: 17px; color: #c6d0ec; max-width: 36ch; text-shadow: 0 1px 10px rgba(1, 8, 24, .9); }
.cuenta { margin-top: 30px; text-shadow: 0 1px 10px rgba(1, 8, 24, .9); }
.cuenta .k { margin: 0 0 8px; font: 600 12px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
#fig { margin: 0; font: 800 18px/1.06 var(--f-mono); color: var(--oro); white-space: pre; }
.cuenta-pie { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
#cap { margin: 0; font: 600 15px/1.3 var(--f-mono); }
#units { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; font-family: var(--f-mono); }
#units[hidden] { display: none; }
#units b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
#units span { margin-left: 3px; font-size: 11px; color: var(--mute); }

.hero-acc { position: absolute; z-index: 6; left: clamp(24px, 5vw, 84px); bottom: clamp(28px, 7vh, 72px); display: flex; gap: 12px; flex-wrap: wrap; }
.herr { position: absolute; z-index: 6; right: clamp(16px, 3vw, 40px); bottom: clamp(28px, 7vh, 72px); display: flex; gap: 8px; }
.herr button {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: var(--tinta); background: rgba(6, 18, 44, .62); border: 1px solid var(--linea-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, color .2s, border-color .2s;
}
.herr button svg { width: 20px; height: 20px; }
.herr button:hover { border-color: rgba(245, 196, 81, .7); }
.herr button[aria-pressed=true] { background: var(--oro); color: #1b1304; border-color: var(--oro); }
.herr button[hidden] { display: none; }
.cargando { position: absolute; z-index: 4; left: 50%; top: 52%; transform: translate(-50%, -50%); margin: 0; display: grid; justify-items: center; gap: 14px; font: 600 13px var(--f-mono); color: var(--mute); transition: opacity .6s; pointer-events: none; }
.hero.listo .cargando { opacity: 0; }
.estrellita { width: 34px; height: 34px; background: var(--oro); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l3.4 7.2 7.6 1-5.6 5.4 1.4 7.7L12 18.5 5.2 22.3l1.4-7.7L1 9.2l7.6-1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l3.4 7.2 7.6 1-5.6 5.4 1.4 7.7L12 18.5 5.2 22.3l1.4-7.7L1 9.2l7.6-1z'/%3E%3C/svg%3E") center/contain no-repeat; animation: estrellita 1.4s ease-in-out infinite; }
@keyframes estrellita { 50% { transform: scale(1.25) rotate(36deg); opacity: .7; } }
.pista { position: absolute; z-index: 5; left: 50%; bottom: clamp(36px, 8vh, 80px); transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(3, 13, 34, .55); font: 600 12px var(--f-mono); color: var(--mute); pointer-events: none; transition: opacity .8s; white-space: nowrap; }
.pista.fuera { opacity: 0; }
.mira { position: absolute; z-index: 4; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--oro-luz); opacity: 0; pointer-events: none; transition: opacity .4s; }
.tt-pie { display: none; }
/* Cartelito con el nombre del muñequito bajo el mouse */
.etiqueta { position: absolute; left: 0; top: 0; z-index: 30; padding: 6px 12px; border-radius: 999px; background: var(--crema); color: #2b1a0e; font: 400 15px/1 var(--f-display); white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7); }
.etiqueta.ver { opacity: 1; }
.etiqueta::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--crema); transform: rotate(45deg); }

@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .hero-txt { left: 16px; right: 16px; top: calc(max(12px, env(safe-area-inset-top)) + 54px); transform: none; width: auto; text-align: center; }
  .kicker { display: none; }
  #titulo { font-size: clamp(30px, 8.6vw, 48px); }
  .bajada { display: none; }
  .cuenta { margin-top: 10px; }
  .cuenta .k { display: none; }
  #fig { display: inline-block; text-align: left; }
  .cuenta-pie { justify-content: center; margin-top: 6px; gap: 10px; }
  #cap { font-size: 13px; }
  #units b { font-size: 14px; }
  .hero-acc { left: 16px; right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-acc .btn { padding: 0 10px; font-size: 14.5px; }
  .herr { right: 8px; top: 36%; bottom: auto; flex-direction: column; gap: 6px; }
  .herr button { width: 38px; height: 38px; background: rgba(6, 18, 44, .45); }
  .herr button svg { width: 18px; height: 18px; }
  .pista { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 66px); }
  .tag { max-width: 150px; padding: 7px 10px 7px 19px; }
  .tag p { font-size: 12px; -webkit-line-clamp: 3; }
  .tag b, .tag span { font-size: 9.5px; }
}

/* ---------- Modo TikTok: 9:16, sin controles, árbol más grande ---------- */
html.tiktok, html.tiktok body { height: 100%; overflow: hidden; background: #000; }
.tiktok .barra, .tiktok .saltos, .tiktok .seccion, .tiktok .pie, .tiktok .herr, .tiktok .hero-acc, .tiktok .pista, .tiktok .saltar { display: none !important; }
.tiktok .hero {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(100vw, 56.25vh); height: min(100vh, 177.78vw); min-height: 0; container-type: size;
}
@media (max-aspect-ratio: 9/16) { .tiktok .hero { width: 100vw; height: 100vh; height: 100dvh; } }
.tiktok .hero::after { height: 34cqh; background: linear-gradient(180deg, transparent, rgba(2, 9, 24, .92)); }
.tiktok .stage { cursor: default; }
.tiktok .hero-txt { left: 6cqw; right: 6cqw; top: 4.2cqh; transform: none; width: auto; text-align: center; }
.tiktok .kicker { display: block; margin-bottom: 1cqh; font-size: 4.6cqw; }
.tiktok #titulo { font-size: 10.4cqw; }
.tiktok .bajada { display: none; }
.tiktok .cuenta { margin-top: 1.8cqh; }
.tiktok .cuenta .k { display: none; }
.tiktok #fig { display: inline-block; text-align: left; }
.tiktok .cuenta-pie { justify-content: center; gap: 2.4cqw; margin-top: 1cqh; }
.tiktok #cap { font-size: 3.4cqw; }
.tiktok #units b { font-size: 3.4cqw; }
.tiktok #units span { font-size: 2.3cqw; }
.tiktok .tag { max-width: 36cqw; padding: 1.6cqw 2.2cqw 1.6cqw 4cqw; }
.tiktok .tag p { font-size: 3.1cqw; }
.tiktok .tag b, .tiktok .tag span { font-size: 2.2cqw; }
.tiktok .mira { border-width: .5cqw; }
.tiktok .tt-pie { display: grid; gap: 2cqh; position: absolute; z-index: 6; left: 5cqw; right: 5cqw; bottom: 4cqh; }
.tt-ficha {
  display: flex; align-items: center; gap: 4cqw; padding: 3cqw 4cqw; border-radius: 5cqw;
  background: linear-gradient(180deg, rgba(20, 48, 98, .82), rgba(6, 18, 44, .9)); border: 1px solid rgba(245, 196, 81, .45);
  box-shadow: 0 3cqw 8cqw -2cqw rgba(0, 0, 0, .8); min-height: 22cqw;
}
.tt-ficha .ava { --t: 17cqw !important; }
.tt-ficha .tt-n { margin: 0; font: 400 6.4cqw/1 var(--f-display); color: var(--crema); }
.tt-ficha .tt-r { margin: 1cqw 0 0; font: 700 2.4cqw/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.tt-ficha .tt-m { margin: 1.4cqw 0 0; font: italic 600 3.4cqw/1.3 var(--f-texto); color: #e6ebfb; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-llamado { margin: 0; justify-self: center; padding: 2cqw 4.4cqw; border-radius: 999px; background: linear-gradient(180deg, #ffd97a, var(--oro) 45%, var(--oro-2)); color: #241703; font: 800 3.3cqw/1.1 var(--f-texto); text-align: center; }

/* ---------- Saltos (celular) ---------- */
.saltos { display: none; }
@media (max-width: 759px) {
  .saltos { display: flex; gap: 8px; overflow-x: auto; padding: 18px 16px 0; scrollbar-width: none; }
  .saltos a { flex: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--linea-2); color: var(--tinta); text-decoration: none; font-weight: 600; font-size: 14px; background: rgba(6, 18, 44, .5); }
}

/* ---------- Secciones ---------- */
main { position: relative; }
.seccion { position: relative; padding: clamp(72px, 11vw, 140px) 0; scroll-margin-top: 40px; }
.seccion + .seccion { border-top: 1px solid rgba(170, 190, 240, .07); }
.envoltura { width: min(1180px, 100% - 32px); margin: 0 auto; }
.envoltura.dos { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .envoltura.dos { grid-template-columns: 1fr 1.05fr; } }
.ojo { margin: 0 0 14px; font: 700 12px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--oro); }
.seccion h2 { font-size: clamp(38px, 5.2vw, 68px); color: var(--crema); }
.bajada-sec { margin: 16px 0 0; font-size: clamp(16px, 1.4vw, 19px); color: #c0cae6; max-width: 46ch; }
.intro-sec.centro { text-align: center; margin: 0 auto clamp(32px, 5vw, 56px); }
.intro-sec.centro .bajada-sec { margin-inline: auto; }
.nota { margin: 2px 0 0; font-size: 13px; color: var(--mute-2); }
.revelar { opacity: 0; transform: translateY(26px); }

/* Pasos */
.pasos { list-style: none; counter-reset: p; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.pasos li { counter-increment: p; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; color: #c0cae6; }
.pasos li::before { content: counter(p); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--f-mono); color: #241703; background: linear-gradient(180deg, #ffd97a, var(--oro-2)); }
.pasos b { color: var(--crema); }

/* ---------- Caritas: recorte circular ---------- */
.form-carita { padding: clamp(20px, 3vw, 32px); display: grid; gap: 26px; }
@media (min-width: 640px) { .form-carita { grid-template-columns: auto 1fr; align-items: center; } }
.recorte { display: grid; justify-items: center; gap: 14px; }
.recorte-aro {
  position: relative; width: min(270px, 72vw); aspect-ratio: 1; border-radius: 50%; padding: 13px; margin-top: 26px;
  background: conic-gradient(from 210deg, #8a5a12, #ffe7a6, #e0a93a, #7a4c0e, #f9d978, #b07a1c, #8a5a12);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(0, 0, 0, .3);
}
.recorte-aro::before { content: ""; position: absolute; left: 50%; top: -16px; width: 34px; height: 22px; margin-left: -17px; border-radius: 5px 5px 3px 3px; background: linear-gradient(90deg, #8a5a12, #ffe7a6 45%, #b07a1c); }
.recorte-aro::after { content: ""; position: absolute; left: 50%; top: -34px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; border: 3px solid #e0a93a; }
.recorte-vista { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1d3f78, #071733); touch-action: none; cursor: grab; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .5); }
.recorte-vista.moviendo { cursor: grabbing; }
.recorte-vista canvas { width: 100%; height: 100%; display: block; }
.recorte-vacio { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--oro-luz); font-weight: 600; cursor: pointer; border-radius: 50%; border: 2px dashed rgba(245, 196, 81, .55); margin: 10px; transition: background .2s; }
.recorte-vacio:hover { background: rgba(245, 196, 81, .08); }
.recorte-vacio[hidden] { display: none; }
.recorte-vacio svg { width: 44px; height: 44px; }
.recorte-ctrl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.recorte-ctrl[hidden] { display: none; }
.zoom { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.zoom svg { width: 20px; height: 20px; }
input[type=range] { accent-color: var(--oro); width: 140px; height: 32px; }
.campos { display: grid; gap: 16px; }

/* ---------- Muro de mensajes ---------- */
.muro-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .muro-grid { grid-template-columns: 360px 1fr; gap: 44px; } .form-msg { position: sticky; top: 92px; } }
.form-msg, .form-sorteo { padding: clamp(20px, 3vw, 28px); display: grid; gap: 16px; }
.muro { columns: 1; column-gap: 16px; }
@media (min-width: 640px) { .muro { columns: 2; } }
@media (min-width: 1240px) { .muro { columns: 3; } }
.nota-msg {
  --c: var(--rojo); position: relative; break-inside: avoid; margin: 0 0 16px; padding: 22px 18px 14px;
  background: linear-gradient(180deg, #fffaf0, #f7ead2); color: #2b1a0e; border-radius: 16px;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8); transform: rotate(var(--rot, 0deg)); transition: transform .35s var(--ease);
}
.nota-msg:hover { transform: rotate(0) translateY(-3px); }
.nota-msg::before { content: ""; position: absolute; left: 50%; top: 8px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); }
.nota-msg:nth-child(3n+2) { --c: var(--pino); }
.nota-msg:nth-child(3n) { --c: var(--oro-2); }
.nota-msg p { margin: 0; font: 600 18px/1.42 var(--f-texto); overflow-wrap: anywhere; }
.nota-msg footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 12px; font-size: 13px; color: #6b5640; }
.nota-msg footer b { font: 700 14px var(--f-texto); color: #2b1a0e; }
.nota-msg footer .area { font: 600 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #a51d2a; }
.nota-msg footer time { margin-left: auto; font-size: 12px; }
.nota-msg.nuevo { animation: nota-nueva .9s var(--ease); }
@keyframes nota-nueva { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.vacio-muro { padding: 28px; border-radius: 16px; border: 1px dashed var(--linea-2); color: var(--mute); text-align: center; break-inside: avoid; }

/* ---------- Equipo ---------- */
.retrato { margin: 0; }
.retrato-marco {
  position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 688 / 1024; max-height: 82vh; margin: 0 auto;
  border: 1px solid rgba(245, 196, 81, .35); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9);
}
.retrato-marco img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 30%; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.2%, -1.5%, 0); } }
.retrato-brillo { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 240, 200, .22) 50%, transparent 65%); transform: translateX(-120%); animation: brillo 7s ease-in-out 2s 3; mix-blend-mode: screen; }
@keyframes brillo { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.retrato-nieve { position: absolute; left: 0; right: 0; top: -100%; height: 200%; pointer-events: none; opacity: .85;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.5px 1.5px at 80px 120px, #fff, transparent), radial-gradient(2.5px 2.5px at 150px 60px, rgba(255, 255, 255, .9), transparent), radial-gradient(1.5px 1.5px at 210px 170px, #fff, transparent), radial-gradient(2px 2px at 120px 200px, rgba(255, 255, 255, .8), transparent);
  background-size: 240px 240px; animation: nieve-cae 16s linear infinite; }
@keyframes nieve-cae { to { transform: translate3d(0, 50%, 0); } }
.retrato figcaption { margin-top: 14px; text-align: center; font: 700 22px var(--f-acento); color: var(--oro-luz); }
.gente { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 26px) 10px; }
.gente button { width: 100%; display: grid; justify-items: center; gap: 10px; padding: 8px 4px; border: 0; border-radius: 18px; background: none; color: inherit; cursor: pointer; font: inherit; transition: background .25s; }
.gente button:hover { background: rgba(255, 255, 255, .04); }
.gente .ava { --t: clamp(78px, 9vw, 108px); transition: transform .45s var(--ease); }
.gente button:hover .ava { transform: translateY(-4px) rotate(-4deg); }
.gente b { font: 400 clamp(17px, 1.7vw, 21px)/1.1 var(--f-display); color: var(--crema); text-align: center; }
.gente small { margin-top: -6px; font: 600 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--oro); text-align: center; }

/* ---------- Sorteo ---------- */
.sorteo-grid { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 900px) { .sorteo-grid { grid-template-columns: 1.25fr 1fr; } }
.premio-hoy { padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; align-content: start; }
.premio-hoy .ph-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.premio-hoy .ph-cab p { margin: 0; font: 700 12px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--oro); }
.premio-hoy .ph-cab span { font-size: 14px; color: var(--mute); }
.premio { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.premio + .premio { padding-top: 18px; border-top: 1px solid var(--linea); }
.premio-img { width: 112px; aspect-ratio: 1; border-radius: 18px; object-fit: cover; background: rgba(255, 255, 255, .05); border: 1px solid var(--linea); }
.premio-regalo { width: 112px; aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2a5aa0, #0b2350); border: 1px solid var(--linea); }
.premio-regalo svg { width: 62px; height: 62px; }
.premio h4 { margin: 0; font: 400 clamp(23px, 2.5vw, 30px)/1.1 var(--f-display); color: var(--crema); }
.premio p { margin: 6px 0 0; color: #c0cae6; font-size: 15px; }
.gano { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(245, 196, 81, .12); border: 1px solid rgba(245, 196, 81, .4); font-weight: 600; font-size: 14px; }
.gano .ava { --t: 30px; padding: 2px; }
.sin-premio { color: #c0cae6; }
.sin-premio b { color: var(--crema); }
.form-sorteo h3 { font-size: 30px; color: var(--crema); }
.anotados { margin: -6px 0 0; color: var(--mute); }
.anotados b { font: 400 42px/1 var(--f-display); color: var(--oro); margin-right: 6px; }
.ya { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(47, 122, 85, .22); border: 1px solid rgba(110, 200, 150, .4); font-weight: 600; }
.ya[hidden] { display: none; }
.en-vivo { justify-self: center; font-weight: 600; text-decoration: none; padding: 6px; }
.calendario, .ganadores { margin-top: clamp(40px, 6vw, 64px); }
.calendario h3, .ganadores h3 { font-size: clamp(24px, 2.6vw, 32px); color: var(--crema); margin-bottom: 18px; }
.dias { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dia { scroll-snap-align: start; padding: 18px; border-radius: 18px; background: rgba(8, 24, 56, .6); border: 1px solid var(--linea); display: grid; gap: 12px; align-content: start; }
.dia.hoy { border-color: rgba(245, 196, 81, .7); background: linear-gradient(180deg, rgba(245, 196, 81, .12), rgba(8, 24, 56, .6)); }
.dia.pasado { opacity: .62; }
.dia header { display: flex; align-items: baseline; gap: 10px; }
.dia header b { font: 400 36px/1 var(--f-display); color: var(--crema); }
.dia header span { font: 600 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.dia header em { margin-left: auto; font: 700 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--oro); font-style: normal; }
.dia ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dia li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; font-size: 14.5px; }
.dia li img, .dia li .mini-regalo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, .06); display: grid; place-items: center; }
.dia li .mini-regalo svg { width: 24px; height: 24px; }
.dia li small { display: block; color: var(--oro); font-weight: 600; font-size: 12.5px; }
.lista-ganadores { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lista-ganadores li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(8, 24, 56, .6); border: 1px solid var(--linea); }
.lista-ganadores b { display: block; font: 400 20px/1.15 var(--f-display); color: var(--crema); }
.lista-ganadores span { display: block; font-size: 13.5px; color: var(--mute); }
.lista-ganadores em { display: block; font-style: normal; color: var(--oro); font-weight: 600; font-size: 14px; margin-top: 2px; }
.vacio-lista { color: var(--mute); padding: 18px; border-radius: 16px; border: 1px dashed var(--linea-2); text-align: center; }

/* ---------- Pie ---------- */
.pie { padding: 48px 16px calc(48px + env(safe-area-inset-bottom)); text-align: center; color: var(--mute); border-top: 1px solid var(--linea); }
.pie p { margin: 6px 0; }
.pie-links a { color: var(--mute); }
.pie-links a:hover { color: var(--oro); }

/* Formularios cerrados desde el panel */
form.cerrado { position: relative; }
form.cerrado > * { opacity: .35; pointer-events: none; }
form.cerrado::after { content: "Cerrado por ahora"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 26px var(--f-display); color: var(--crema); }

/* Enlace a "Crea tu muñequito" */
.otra-opcion { margin-top: 26px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: #c0cae6; background: rgba(8, 24, 56, .6); border: 1px solid var(--linea-2); transition: border-color .2s, transform .3s var(--ease); }
.otra-opcion:hover { border-color: rgba(245, 196, 81, .7); transform: translateY(-2px); }
.otra-opcion b { display: block; color: var(--crema); font: 400 19px/1.15 var(--f-display); margin-bottom: 2px; }
.otra-icono { flex: none; width: 34px; height: 52px; border-radius: 17px 17px 12px 12px; background: radial-gradient(circle at 50% 24%, #f3c9ab 0 30%, transparent 31%), linear-gradient(180deg, transparent 0 44%, #c8202c 44% 100%); box-shadow: inset 0 -6px 0 #f4f6ff; }
