/* Portada (con la Casa Rosada) y menú principal al estilo de los juegos de estrategia electoral. */

/* ---------------------------------------------------------------- portada */
.portada { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 24px 16px 0; cursor: pointer; overflow: hidden; text-align: center; }
.pt-cintas { position: absolute; top: 28px; left: 0; right: 0; height: 64px; pointer-events: none; }
.pt-cinta { position: absolute; top: 0; width: 24%; height: 64px; background: linear-gradient(#75aadb 0 33%, #fff 33% 66%, #75aadb 66%); box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.pt-cinta.izq { left: 0; clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%); }
.pt-cinta.der { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8% 50%); }
.pt-titulo { position: relative; margin: 0; font: 800 clamp(48px, 9vw, 104px)/.9 var(--titulos); color: #1c4f86; letter-spacing: .01em; text-transform: uppercase; }
.pt-titulo b { display: inline-block; margin-left: .2em; color: #d7263d; }
.pt-lema { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin: 8px 0 0; font: 800 clamp(16px, 2.4vw, 26px) var(--titulos); letter-spacing: .06em; text-transform: uppercase; }
.pt-lema span:first-child { color: #d7263d; }
.pt-lema span:last-child { color: #1c4f86; }
.pt-casa { width: min(900px, 96vw); margin-top: 14px; filter: drop-shadow(0 8px 18px rgba(169, 83, 107, .25)); }
.pt-toca { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; font: 700 18px var(--titulos); letter-spacing: .14em; text-transform: uppercase; color: #1c4f86; animation: pt-latido 1.6s ease-in-out infinite; }
@keyframes pt-latido { 50% { opacity: .45; transform: scale(.97); } }

/* ---------------------------------------------------------------- menú principal */
.menu-ppal { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; padding: 18px clamp(12px, 4vw, 60px) 24px; gap: 10px; }
.mn-cinta { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 8px 22px; background: #fff; border-radius: 6px; box-shadow: 0 6px 18px rgba(20, 30, 45, .15); }
.mn-cinta::before, .mn-cinta::after { content: ""; position: absolute; top: -6px; bottom: -6px; width: 34px; background: linear-gradient(#75aadb 0 33%, #fff 33% 66%, #75aadb 66%); z-index: -1; }
.mn-cinta::before { left: -26px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.mn-cinta::after { right: -26px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
.mn-titulo { margin: 0; font: 800 clamp(26px, 4vw, 44px)/1 var(--titulos); color: #1c4f86; text-transform: uppercase; white-space: nowrap; }
.mn-titulo b { color: #d7263d; margin-left: .2em; }
.mn-est { margin: 0 .6em; font-size: .45em; letter-spacing: .3em; vertical-align: middle; color: #75aadb; }
.mn-accesos { display: flex; gap: 14px; }
.mn-accesos:last-child { justify-content: flex-end; }
.mn-acceso { display: grid; justify-items: center; gap: 4px; border: 0; background: none; cursor: pointer; font: 600 13px var(--texto); color: var(--tinta); }
.mn-acceso > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #3c4a5c; color: #fff; font-size: 22px; border: 4px solid #fff; box-shadow: 0 0 0 2px #c3cbd3, 0 4px 10px rgba(0, 0, 0, .2); }
.mn-acceso:hover > span { background: #1c4f86; }
.mn-modos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: clamp(16px, 5vw, 70px); }
.mn-modo { display: grid; justify-items: center; gap: 6px; border: 0; background: none; cursor: pointer; width: 220px; }
.mn-circ { display: grid; place-items: center; width: clamp(130px, 16vw, 190px); aspect-ratio: 1; border-radius: 50%; background: #fff; border: 14px solid var(--mc); color: var(--mc); font-size: clamp(44px, 5vw, 64px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); transition: transform .15s; }
.mn-modo:hover .mn-circ { transform: scale(1.05); }
.mn-modo strong { font: 800 26px var(--titulos); text-transform: uppercase; color: var(--mc); }
.mn-modo small { font: 600 15px var(--texto); text-transform: uppercase; color: var(--tinta); letter-spacing: .03em; }

@media (max-width: 760px) {
  .mn-cinta { grid-template-columns: 1fr; justify-items: center; padding: 8px 12px; }
  .mn-cinta::before, .mn-cinta::after { display: none; }
  .mn-titulo { order: -1; }
  .mn-est { display: none; }
  .mn-accesos { gap: 10px; }
  .mn-acceso > span { width: 40px; height: 40px; font-size: 17px; border-width: 3px; }
  .mn-modos { gap: 14px; align-content: start; padding-top: 10px; }
  .mn-modo { width: 150px; }
  .mn-circ { width: 110px; border-width: 10px; font-size: 38px; }
  .mn-modo strong { font-size: 19px; }
  .mn-modo small { font-size: 12px; }
  .pt-cinta { width: 18%; height: 44px; }
}

/* ---------------------------------------------------------------- tutorial */
.tut-ayuda { text-align: center; max-width: 560px; margin: 4px auto 0; }
.consejo { position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 60; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: min(640px, calc(100% - 24px)); padding: 12px 14px; background: #fff; border-radius: 14px; border: 3px solid #2e9e44; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: cj-entra .35s ease-out; }
.cj-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #2e9e44; color: #fff; font-size: 20px; }
.consejo strong { font: 800 18px var(--titulos); text-transform: uppercase; color: #1d6b2e; }
.consejo p { margin: 2px 0 0; font-size: 14px; line-height: 1.35; }
.cj-btns { display: grid; gap: 4px; justify-items: center; }
.cj-saltar { border: 0; background: none; color: var(--gris); font-size: 12px; cursor: pointer; text-decoration: underline; }
@keyframes cj-entra { from { opacity: 0; transform: translate(-50%, 20px); } }
@media (max-width: 760px) {
  .consejo { grid-template-columns: 1fr; bottom: 64px; text-align: center; justify-items: center; }
  .cj-ico { display: none; }
}

/* ---------------------------------------------------------------- cuenta */
.caja-modal.cuenta { width: min(420px, 100%); }
.cuenta .cuerpo-modal { display: grid; gap: 12px; justify-items: center; text-align: center; }
.cu-botones { display: grid; gap: 10px; justify-items: center; }
.cu-google, .cu-apple { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 260px; height: 42px; border-radius: 999px; border: 0; font: 600 15px var(--texto); cursor: pointer; }
.cu-google { background: #1a73e8; color: #fff; }
.cu-apple { background: #000; color: #fff; }
.cu-google:disabled, .cu-apple:disabled { opacity: .45; cursor: not-allowed; }
.cu-aviso { margin: 0; }
.cu-error { margin: 0; color: var(--rojo); font-weight: 600; }
.cu-hola { font-size: 18px; margin: 0; }
.cu-stats { display: flex; gap: 30px; }
.cu-stats div { display: grid; }
.cu-stats b { font: 800 34px var(--titulos); color: #1c4f86; }
.cu-stats small { color: var(--gris); }
.caja-modal.cuenta header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.caja-modal.cuenta header .cerrar-x { position: static; flex: none; }

/* Continuar una partida guardada: más visible que "Cómo se juega". */
.mn-como.mn-seguir { background: #f2711c; color: #fff; border-color: #f2711c; font-weight: 700; }

/* Ranking */
.rk-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 55vh; overflow: auto; }
.rk-lista li { display: grid; grid-template-columns: 36px 1fr auto 90px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: #f3f5f8; }
.rk-lista li.yo { background: #fff3ea; box-shadow: inset 0 0 0 2px #f2711c; }
.rk-lista small { color: #5d646c; text-align: right; }
.rk-pos { text-align: center; font-size: 16px; }
.rk-yo { margin-top: 10px; }

/* Un jugador: dificultad en círculos y tiempo en fichas */
.un-jugador { overflow-y: auto; }
.uj-etiqueta { margin: 14px 0 4px; text-align: center; font: 800 15px "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #5d646c; }
.uj-difs .mn-modo { opacity: .55; transition: opacity .2s, transform .2s; }
.uj-difs .mn-modo:hover { opacity: .85; }
.uj-difs .mn-modo.activo { opacity: 1; transform: scale(1.06); }
.uj-difs .mn-modo.activo .mn-circ { box-shadow: 0 0 0 6px color-mix(in srgb, var(--mc) 30%, transparent), 0 8px 18px rgba(0,0,0,.18); }
.uj-difs .mn-modo.activo strong::after { content: " ✓"; }
.uj-tiempos { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.uj-tiempos button { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 2px solid #d9dee4; background: #fff;
  font: 700 15px "Barlow", sans-serif; color: #1d2530; cursor: pointer; transition: transform .15s; }
.uj-tiempos button i { color: #2f8fd8; }
.uj-tiempos button.activo { border-color: #2f8fd8; background: #2f8fd8; color: #fff; transform: translateY(-2px); }
.uj-tiempos button.activo i { color: #fff; }
.uj-ayuda { text-align: center; margin: 12px auto 6px; }
.uj-jugar { display: flex; gap: 10px; align-items: center; margin: 6px auto 18px; padding-left: 34px; padding-right: 34px; }
@media (orientation: landscape) and (max-height: 520px) {
  .uj-etiqueta { margin: 6px 0 2px; }
  .uj-difs .mn-circ { width: 64px; height: 64px; }
  .uj-ayuda { margin: 6px auto 4px; }
  .uj-jugar { margin-bottom: 8px; }
}
.un-jugador .uj-difs { flex: none; margin: 4px 0 0; }

/* ---------------------------------------------------------------- Cómo se juega (guía ilustrada) */
.caja-modal.guia { --g: #2f8fd8; position: relative; width: min(94vw, 520px); padding: 0; overflow: hidden; text-align: center; }
.guia .cerrar-x { position: absolute; right: 10px; top: 10px; z-index: 2; }
.guia-arte { display: grid; place-items: center; height: 200px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--g) 55%, #fff), var(--g) 70%); color: #fff;
  animation: guia-entra .45s ease-out; overflow: hidden; }
.guia-texto { padding: 16px 22px 6px; animation: guia-entra .45s .08s ease-out both; }
.guia-texto small { color: var(--g); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.guia-texto h3 { margin: 2px 0 8px; font: 800 30px "Barlow Condensed", sans-serif; text-transform: uppercase; color: #1d2530; }
.guia-texto p { margin: 0; font-size: 15px; line-height: 1.45; color: #3a434f; min-height: 88px; }
.guia-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 16px; }
.guia-puntos { display: flex; gap: 6px; }
.guia-puntos button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #d9dee4; cursor: pointer; transition: width .2s, background .2s; }
.guia-puntos button.activo { width: 24px; border-radius: 5px; background: var(--g); }
.guia .link-creditos { margin: -6px 0 12px; }
@keyframes guia-entra { from { opacity: 0; transform: translateY(12px); } }
/* Ilustraciones animadas */
.ga-urna { position: relative; font-size: 90px; text-shadow: 0 6px 0 rgba(0,0,0,.15); }
.ga-voto { position: absolute; left: 50%; top: -30px; width: 34px; height: 24px; margin-left: -17px; border-radius: 3px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); animation: ga-cae 2.4s infinite; }
.ga-voto::after { content: ""; position: absolute; inset: 6px 8px; border-top: 3px solid var(--g); border-bottom: 3px solid var(--g); }
.ga-voto.v2 { animation-delay: .8s; } .ga-voto.v3 { animation-delay: 1.6s; }
@keyframes ga-cae { 0% { transform: translateY(-40px) rotate(-10deg); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(40px) rotate(0); opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
.ga-niveles { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 130px; }
.ga-niveles span { width: 16px; height: calc(12px + var(--i) * 11px); border-radius: 4px; background: #fff; opacity: .25; animation: ga-sube 3s calc(var(--i) * .22s) infinite; }
.ga-candado { position: absolute; right: -34px; top: -6px; font-size: 30px; animation: ga-candado 3s infinite; }
@keyframes ga-sube { 0%, 8% { opacity: .25; } 15%, 85% { opacity: 1; box-shadow: 0 0 10px #fff; } 100% { opacity: .25; } }
@keyframes ga-candado { 0%, 70% { transform: scale(0); } 78% { transform: scale(1.3); } 85%, 100% { transform: scale(1); } }
.ga-choque { position: relative; width: 240px; height: 90px; }
.ga-choque span { position: absolute; top: 20px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; font: 800 22px "Barlow Condensed", sans-serif; color: #fff; }
.ga-choque .m1 { left: 0; background: #7b3fb8; animation: ga-izq 2.4s infinite; } .ga-choque .m2 { right: 0; background: #2f8fd8; animation: ga-der 2.4s infinite; }
.ga-choque i { position: absolute; left: 50%; top: 50%; font-size: 64px; color: #ffd34d; transform: translate(-50%, -50%) scale(0); animation: ga-bum 2.4s infinite; }
@keyframes ga-izq { 0%, 10% { transform: translateX(0); } 45% { transform: translateX(78px); } 60% { transform: translateX(10px); } 100% { transform: translateX(0); } }
@keyframes ga-der { 0%, 10% { transform: translateX(0); } 45% { transform: translateX(-78px); } 60% { transform: translateX(-10px); } 100% { transform: translateX(0); } }
@keyframes ga-bum { 0%, 40% { transform: translate(-50%, -50%) scale(0); } 48% { transform: translate(-50%, -50%) scale(1.2); } 65%, 100% { transform: translate(-50%, -50%) scale(0); } }
.ga-lobby { display: grid; justify-items: center; gap: 14px; }
.ga-barra { position: relative; width: 240px; height: 22px; border-radius: 11px; background: rgba(255,255,255,.3); overflow: hidden; }
.ga-barra span { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; animation: ga-llena 3s infinite; }
.ga-barra i { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 3px; background: #1d2530; }
.ga-plata { font: 800 46px "Barlow Condensed", sans-serif; animation: ga-salta 3s infinite; }
@keyframes ga-llena { 0% { width: 0; } 60%, 90% { width: 64%; } 100% { width: 0; } }
@keyframes ga-salta { 0%, 50% { transform: scale(.6); opacity: .4; } 62% { transform: scale(1.25); opacity: 1; } 75%, 90% { transform: scale(1); opacity: 1; } 100% { opacity: .4; } }
.ga-region { display: grid; grid-template-columns: repeat(5, 34px); gap: 10px; }
.ga-region span { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.3); animation: ga-prende 3s calc(var(--i) * .3s) infinite; }
@keyframes ga-prende { 0%, 10% { background: rgba(255,255,255,.3); } 20%, 80% { background: #fff; box-shadow: 0 0 12px #fff; } 100% { background: rgba(255,255,255,.3); } }
.ga-cand { position: relative; width: 260px; height: 190px; }
.ga-cand img { position: absolute; left: 50%; bottom: 0; height: 180px; transform: translateX(-50%); }
.ga-cand span { position: absolute; padding: 4px 10px; border-radius: 999px; background: #fff; color: #1d2530; font-size: 13px; font-weight: 800; box-shadow: 0 3px 8px rgba(0,0,0,.25); animation: ga-chip 3s infinite; }
.ga-cand .c1 { left: -6px; top: 30px; } .ga-cand .c2 { right: -10px; top: 70px; animation-delay: .4s; } .ga-cand .c3 { left: 6px; top: 120px; animation-delay: .8s; }
@keyframes ga-chip { 0% { transform: scale(0); } 15%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
.ga-cartas { display: flex; gap: 14px; }
.ga-cartas span { width: 58px; height: 82px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--g); font: 800 30px "Barlow Condensed", sans-serif;
  box-shadow: 0 6px 12px rgba(0,0,0,.2); animation: ga-voltea 3s infinite; }
.ga-cartas span:nth-child(2) { animation-delay: .3s; } .ga-cartas span:nth-child(3) { animation-delay: .6s; }
@keyframes ga-voltea { 0%, 20% { transform: rotateY(0); } 35% { transform: rotateY(180deg) translateY(-8px); } 50%, 100% { transform: rotateY(360deg); } }
.ga-hemi { position: relative; width: 240px; height: 120px; }
.ga-hemi span { position: absolute; left: 50%; bottom: 0; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: rgba(255,255,255,.35);
  transform: rotate(calc(-90deg + var(--i) * 12.8deg)) translateY(-96px); animation: ga-prende 3s calc(var(--i) * .1s) infinite; }
.ga-portal { position: relative; width: 170px; height: 170px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px #c9a227, 0 0 30px #c9a227; }
.ga-portal span { position: absolute; inset: -30%; background: repeating-conic-gradient(rgba(150,120,255,0) 0 12deg, rgba(180,150,255,.8) 14deg 20deg, rgba(0,0,0,0) 22deg 30deg), #120d3a; animation: tm-gira 2s linear infinite; }
.ga-portal img { position: absolute; left: 50%; bottom: 0; height: 150px; transform: translateX(-50%); animation: ga-aparece 3s infinite; }
@keyframes ga-aparece { 0%, 30% { opacity: 0; filter: brightness(0); transform: translateX(-50%) scale(.4); } 55% { opacity: 1; filter: brightness(0); transform: translateX(-50%) scale(.9); } 65%, 100% { filter: none; transform: translateX(-50%) scale(1); opacity: 1; } }
@media (orientation: landscape) and (max-height: 520px) {
  .caja-modal.guia { display: grid; grid-template-columns: 42% 1fr; width: min(96vw, 760px); text-align: left; }
  .guia-arte { grid-row: span 3; height: auto; min-height: 100%; }
  .guia-texto { padding: 14px 16px 2px; }
  .guia-texto h3 { font-size: 24px; }
  .guia-texto p { font-size: 13px; min-height: 0; }
  .guia-pie { padding: 8px 14px 10px; }
  .guia .link-creditos { grid-column: 2; }
}

/* ---------------------------------------------------------------- Tutorial interactivo */
.tut-foco { position: relative; z-index: 55; animation: tut-late 1.2s ease-in-out infinite; border-radius: 10px; }
#mapa .tut-foco { animation: tut-prov 1.2s ease-in-out infinite; }
.tut-mano { position: fixed; z-index: 70; margin-left: -10px; font-size: 34px; color: #f2711c; pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); animation: tut-mano 1s ease-in-out infinite; }
.cj-ico { animation: tut-salta 2s ease-in-out infinite; }
.cj-paso { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #2e9e44; }
.cj-barra { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: #e3efe6; overflow: hidden; }
.cj-barra span { display: block; height: 100%; background: #2e9e44; transition: width .4s; }
@keyframes tut-late { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,113,28,.9); } 50% { box-shadow: 0 0 0 10px rgba(242,113,28,0); } }
@keyframes tut-prov { 0%, 100% { filter: drop-shadow(0 0 0 #f2711c); } 50% { filter: drop-shadow(0 0 10px #f2711c) brightness(1.15); } }
@keyframes tut-mano { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(-6px); } }
@keyframes tut-salta { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
