/* App del jugador · tokens a7 del sitio (paneles #121812, lima #C0F08A, Roboto Condensed). */
:root {
  --fondo: #0A0D0A; --panel: #121812; --cab: #0D120D; --borde: #222C21; --fila: #1A2219;
  --texto: #F2F5EF; --sec: #B9C2B6; --tenue: #9AA597; --acento: #C0F08A;
  --am: #FFD23F; --ro: #FF5A4F;
  --cond: 'Roboto Condensed', 'Arial Narrow', sans-serif; --cuerpo: 'Roboto', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 16px/1.5 var(--cuerpo); padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--acento); }
h1, h2, h3 { font-family: var(--cond); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin: 0; }

.a7j-barra { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 16px; padding-top: env(safe-area-inset-top); background: #000; border-bottom: 1px solid var(--borde); }
.a7j-marca { display: flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; font-family: var(--cond); font-weight: 800; font-size: 20px; }
.a7j-marca img { border-radius: 8px; }
.a7j-marca span { color: var(--acento); }
.a7j-instalar { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--acento); color: var(--fondo); font: 800 14px var(--cond); text-transform: uppercase; }

main { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 22px; }
.a7j-cargando, .a7j-tenue { color: var(--tenue); }
.a7j-eyebrow { margin: 0 0 6px; font: 700 13px var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--acento); }
.a7j-panel { background: var(--panel); border: 1px solid var(--borde); border-radius: 16px; padding: 18px; }
.a7j-panel p { margin: 0; }

/* Bienvenida y buscador */
.a7j-bienvenida { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.a7j-bienvenida h1 { font-size: 36px; }
.a7j-bienvenida label { font: 700 13px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--sec); margin-top: 8px; }
.a7j-bienvenida input { min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid #3B4A39; background: var(--panel); color: var(--texto); font: 17px var(--cuerpo); }
.a7j-bienvenida input:focus { outline: 2px solid rgba(192, 240, 138, .35); border-color: var(--acento); }
.a7j-resultados { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.a7j-res { width: 100%; min-height: 60px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--borde); background: var(--panel); color: var(--texto); text-align: left; cursor: pointer; }
.a7j-res strong { font: 700 17px var(--cond); text-transform: uppercase; }
.a7j-res span { font-size: 14px; color: var(--tenue); }
.a7j-res:active, .a7j-res:hover { border-color: var(--acento); }

/* Cabecera del jugador */
.a7j-cab { display: flex; align-items: center; gap: 14px; }
.a7j-cab h1 { font-size: 28px; }
.a7j-cab p { margin: 4px 0 0; color: var(--sec); font-size: 15px; }
.a7j-foto { flex: none; width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.a7j-ini { display: inline-flex; align-items: center; justify-content: center; background: var(--fila); color: var(--acento); font: 800 24px var(--cond); }

.a7j-sec { display: flex; flex-direction: column; gap: 10px; }
.a7j-sec-cab h2 { font-size: 22px; }

/* Próximo partido */
.a7j-prox { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.a7j-prox-vs { display: flex; align-items: center; gap: 14px; font: 800 18px var(--cond); color: var(--tenue); }
.a7j-escudo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: var(--fila); font-size: 18px; }
.a7j-prox-rival { font: 800 24px var(--cond); text-transform: uppercase; color: var(--texto); text-decoration: none; }
.a7j-prox-cuando { color: var(--sec); }
.a7j-cuenta { font: 700 15px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--tenue); }
.a7j-cuenta strong { color: var(--acento); font-size: 20px; }

/* Botones */
.a7j-boton { min-height: 48px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--acento); color: var(--fondo);
  font: 800 16px var(--cond); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.a7j-boton-2 { background: transparent; color: var(--texto); border: 1px solid #5E685C; margin-top: 6px; }
.a7j-link { background: none; border: 0; color: var(--tenue); text-decoration: underline; font: 15px var(--cuerpo); min-height: 44px; cursor: pointer; }
.a7j-acciones { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }

/* Números */
.a7j-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a7j-num { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.a7j-num strong { font: 800 30px var(--cond); line-height: 1; }
.a7j-num span { font-size: 12.5px; color: var(--tenue); line-height: 1.25; }
.a7j-num-grande strong { color: var(--acento); font-size: 40px; }
.a7j-am strong::before, .a7j-ro strong::before { content: ""; display: inline-block; width: 12px; height: 17px; border-radius: 2px; background: var(--am); margin-right: 8px; vertical-align: 2px; }
.a7j-ro strong::before { background: var(--ro); }
.a7j-gep { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--tenue); font-size: 14px; }
.a7j-gep span { font: 800 15px var(--cond); padding: 4px 10px; border-radius: 8px; }
.a7j-g { background: var(--acento); color: var(--fondo); }
.a7j-e { border: 1px solid #5E685C; color: #D6DCD3; }
.a7j-p { background: #2A3529; color: #D6DCD3; }

/* Goleo */
.a7j-goleo-lugar { font: 600 18px var(--cond); text-transform: uppercase; margin-bottom: 4px !important; }
.a7j-goleo-lugar strong { font-size: 40px; color: var(--acento); margin-right: 4px; }

/* Equipo */
.a7j-equipo { display: flex; align-items: center; gap: 12px; color: var(--texto); text-decoration: none; margin-bottom: 14px; }
.a7j-equipo strong { font: 800 22px var(--cond); text-transform: uppercase; }
.a7j-racha { display: flex; gap: 6px; margin-bottom: 12px; }
.a7j-r { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font: 800 16px var(--cond); }
.a7j-r-g { background: var(--acento); color: var(--fondo); }
.a7j-r-e { border: 1px solid #5E685C; color: #D6DCD3; }
.a7j-r-p { background: #2A3529; color: #D6DCD3; }
.a7j-equipo-lugar { font: 600 17px var(--cond); text-transform: uppercase; }
.a7j-equipo-lugar strong { font-size: 30px; color: var(--acento); margin-right: 4px; }
.a7j-tabla { margin-top: 10px; }
.a7j-tabla summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--acento); font: 700 15px var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.a7j-tabla a { display: inline-block; margin-top: 10px; font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 700 12px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--tenue); padding: 6px 4px; border-bottom: 1px solid var(--borde); }
td { padding: 8px 4px; border-bottom: 1px solid var(--borde); }
th:not(:nth-child(2)), td:not(:nth-child(2)) { text-align: center; }
.a7j-mio td { background: rgba(192, 240, 138, .12); color: var(--acento); font-weight: 700; }
.a7j-carrera td:first-child, .a7j-carrera th:first-child { text-align: left; }
.a7j-carrera td:first-child span { display: block; font-size: 12.5px; color: var(--tenue); }
.a7j-carrera th:not(:first-child), .a7j-carrera td:not(:first-child) { text-align: center; width: 60px; }
.a7j-carrera-tot { margin-bottom: 10px !important; color: var(--sec); }
.a7j-carrera-tot strong { font: 800 28px var(--cond); color: var(--acento); }

/* Calendario */
.a7j-cals { display: flex; flex-direction: column; gap: 6px; }
.a7j-cal { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--borde); color: var(--texto); text-decoration: none; }
.a7j-cal-pend { border-style: dashed; }
.a7j-cal-fecha { font: 700 14px var(--cond); color: var(--tenue); text-transform: uppercase; }
.a7j-cal-rival { display: flex; flex-direction: column; min-width: 0; }
.a7j-cal-rival strong { font: 700 16px var(--cond); text-transform: uppercase; overflow-wrap: anywhere; }
.a7j-cal-rival span { font-size: 13px; color: var(--acento); }
.a7j-cal-res { font: 800 17px var(--cond); padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.a7j-cal-hora { font: 700 15px var(--cond); color: var(--sec); }

/* Avisos */
.a7j-aviso h3 { font-size: 19px; margin-bottom: 6px; }
.a7j-aviso p:last-child { color: #D6DCD3; white-space: pre-line; }

.a7j-toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 14px 16px; border-radius: 12px;
  background: var(--texto); color: var(--fondo); font-weight: 500; text-align: center; }

/* Patrocinadores (2026-11-22): mismas tarjetas que el sitio. */
.a7j-presentado .a7j-eyebrow { margin-bottom: 8px; }
.a7j-patro { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--borde);
  color: var(--texto); text-decoration: none; }
.a7j-patro-arte { display: block; aspect-ratio: 16 / 9; background-repeat: no-repeat; }
.a7j-patro-texto { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.a7j-patro-giro { font: 700 12px var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--tenue); }
.a7j-patro-texto strong { font: 800 20px var(--cond); text-transform: uppercase; line-height: 1.1; }
.a7j-patro-oferta { font-size: 14.5px; color: #D6DCD3; line-height: 1.4; }
.a7j-patro-cta { margin-top: 6px; font: 800 14px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--acento); }
.a7j-patro-ancha { flex-direction: row; }
.a7j-patro-ancha .a7j-patro-arte { flex: 0 0 42%; aspect-ratio: auto; min-height: 130px; }
.a7j-patro-ancha .a7j-patro-texto { justify-content: center; }
@media (max-width: 480px) { .a7j-patro-ancha { flex-direction: column; } .a7j-patro-ancha .a7j-patro-arte { flex: none; aspect-ratio: 16 / 9; min-height: 0; } }
.a7j-patro-texto { min-width: 0; overflow-wrap: anywhere; }
/* UNA+ con sus colores de marca (#13151A, #21E0EE, Inter), como en el sitio. */
.a7j-patro-unamas { background: #13151A; border-color: #262A33; }
.a7j-patro-arte-unamas { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 30%, #1d2a33, #13151A 70%); }
.a7j-patro-arte-unamas span { font: 800 30px Inter, var(--cuerpo); color: #fff; }
.a7j-patro-arte-unamas b { color: #21E0EE; }
.a7j-patro-unamas .a7j-patro-cta { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #21E0EE; color: #0A0D0A; letter-spacing: 0; text-transform: none; font: 700 14px Inter, var(--cuerpo); }
.a7j-patro-fila { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 8px; scrollbar-width: none; }
.a7j-patro-fila::-webkit-scrollbar { display: none; }
.a7j-patro-fila .a7j-patro { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 600px) { .a7j-patro-fila .a7j-patro { flex-basis: 46%; } }
.a7j-anunciate { align-self: flex-start; font-size: 14px; color: var(--tenue); }

/* Instalar en iPhone (2026-11-22): hoja con pasos y un celular animado de 3 escenas (9 s en ciclo):
   1) barra de Safari con el botón Compartir latiendo, 2) menú con «Agregar a pantalla de inicio»
   resaltado, 3) pantalla de inicio con el ícono de Arena 7 apareciendo. */
.a7j-sin-scroll { overflow: hidden; }
.a7j-hoja-fondo { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .6); }
.a7j-hoja { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
  background: var(--panel); border-top: 1px solid var(--borde); display: flex; flex-direction: column; gap: 12px;
  animation: a7j-sube .28s ease-out; }
@media (min-width: 600px) { .a7j-hoja { left: 50%; right: auto; width: 480px; transform: translateX(-50%); bottom: 24px; border-radius: 22px; border: 1px solid var(--borde); } }
@keyframes a7j-sube { from { transform: translateY(40px); opacity: 0; } }
.a7j-hoja h2 { font-size: 26px; }
.a7j-hoja .a7j-eyebrow { margin: 0; }
.a7j-hoja-cerrar { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--tenue); font-size: 30px; line-height: 1; cursor: pointer; }
.a7j-pasos { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: paso; display: flex; flex-direction: column; gap: 12px; }
.a7j-pasos li { counter-increment: paso; position: relative; padding-left: 42px; font-size: 16px; line-height: 1.45; color: #D6DCD3; }
.a7j-pasos li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--acento); color: var(--fondo); font: 800 16px var(--cond); display: flex; align-items: center; justify-content: center; }
.a7j-pasos strong { color: var(--texto); }
.a7j-ico { vertical-align: -5px; color: #3D9BFF; }

.a7j-anim { display: flex; justify-content: center; padding: 6px 0 4px; }
.a7j-anim-cel { position: relative; width: 150px; height: 210px; border-radius: 26px; border: 5px solid #2E392D; background: #F4F4F6; overflow: hidden; }
.a7j-esc { position: absolute; inset: 0; opacity: 0; animation: a7j-escena 9s infinite; }
.a7j-esc-2 { animation-delay: 3s; }
.a7j-esc-3 { animation-delay: 6s; }
@keyframes a7j-escena { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
/* Escena 1: página + barra de Safari. */
.a7j-anim-pag { position: absolute; inset: 14px 12px 50px; display: flex; flex-direction: column; gap: 8px; }
.a7j-anim-pag span { height: 14px; border-radius: 5px; background: #DADCE2; }
.a7j-anim-pag span:first-child { height: 44px; background: #121812; }
.a7j-anim-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: #FFFFFF; border-top: 1px solid #E2E3E8;
  display: flex; align-items: center; justify-content: space-around; }
.a7j-anim-barra i { width: 14px; height: 14px; border-radius: 4px; background: #C9CBD1; }
.a7j-anim-pulso { display: flex; color: #0A84FF; border-radius: 50%; padding: 4px; animation: a7j-late 1s ease-in-out infinite; }
@keyframes a7j-late { 50% { transform: scale(1.25); background: rgba(10, 132, 255, .16); } }
/* Escena 2: hoja de compartir con la fila resaltada. */
.a7j-esc-2 { background: rgba(0, 0, 0, .25); }
.a7j-anim-hoja { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 8px; border-radius: 14px; background: #FFFFFF; display: flex; flex-direction: column; gap: 6px; }
.a7j-anim-hoja span { height: 12px; border-radius: 4px; background: #E6E7EC; }
.a7j-anim-fila { margin: 0; display: flex; align-items: center; gap: 5px; padding: 6px; border-radius: 8px; color: #111; font: 600 9.5px var(--cuerpo); animation: a7j-resalta 1.2s ease-in-out infinite; }
.a7j-anim-fila .a7j-ico { width: 15px; height: 15px; color: #111; vertical-align: 0; }
.a7j-anim-fila em { font-style: normal; }
@keyframes a7j-resalta { 50% { background: #DCEBFF; } }
/* Escena 3: pantalla de inicio con el ícono nuevo. */
.a7j-esc-3 { background: linear-gradient(160deg, #2b4b2a, #0A0D0A); }
.a7j-anim-inicio { position: absolute; inset: 22px 16px; display: grid; grid-template-columns: repeat(3, 32px); gap: 14px 12px; justify-content: center; align-content: start; }
.a7j-anim-inicio span { width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .28); }
.a7j-anim-a7 { background: #000 !important; border: 2px solid var(--acento); color: var(--acento); font: 800 18px var(--cond); display: flex; align-items: center; justify-content: center;
  animation: a7j-aparece 3s infinite; animation-delay: 6s; }
@keyframes a7j-aparece { 0% { transform: scale(0); } 18% { transform: scale(1.2); } 26%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .a7j-esc, .a7j-anim-pulso, .a7j-anim-fila, .a7j-anim-a7, .a7j-hoja { animation: none; }
  .a7j-esc-1 { opacity: 1; }
}
img.a7j-anim-a7 { width: 32px; height: 32px; border-radius: 9px; border: 0; object-fit: cover; }
/* El número del paso se ilumina junto con su escena de la animación. */
.a7j-pasos li::before { animation: a7j-paso 9s infinite; }
.a7j-pasos li:nth-child(2)::before { animation-delay: 3s; }
.a7j-pasos li:nth-child(3)::before { animation-delay: 6s; }
@keyframes a7j-paso { 0%, 30% { box-shadow: 0 0 0 6px rgba(192, 240, 138, .28); transform: scale(1.08); } 34%, 100% { box-shadow: none; transform: none; } }
@media (prefers-reduced-motion: reduce) { .a7j-pasos li::before { animation: none; } }
