/* Invitación a la app según el aparato (invita.js, 23-oct-2026). Usa las variables de la marca:
   en octubre toma solas los colores de Halloween. Sólo transform/opacity en las animaciones. */
.inv-card { position: fixed; z-index: 9000; color: var(--text); background: var(--card-solid, #122132);
  border: 1px solid var(--line-strong, rgba(0,229,240,.45)); box-shadow: 0 24px 70px -18px #000c, 0 0 0 1px #0006;
  opacity: 0; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.inv-card.show { opacity: 1; }
.inv-body { display: flex; gap: 18px; align-items: center; }
.inv-kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--accent); }
.inv-card h2 { margin: 4px 0 6px; font-size: 22px; line-height: 1.15; }
.inv-card p { margin: 0 0 10px; color: var(--muted, #9fb0c4); font-size: 14px; }
.inv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-chips span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #ffffff0d; border: 1px solid var(--line); }
.inv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.inv-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0;
  border-radius: 14px; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
  color: #08121a; background: linear-gradient(100deg, var(--accent), var(--button-end, var(--accent-2))); flex: 1 1 auto;
  animation: inv-pulse 2.6s ease-in-out infinite; }
.inv-later, .inv-never, .inv-close { background: none; border: 0; color: var(--muted, #9fb0c4); font: inherit; font-size: 13px; cursor: pointer; padding: 8px; }
.inv-later { font-weight: 700; color: var(--text); }
.inv-hint { display: block; margin-top: 10px; color: var(--muted, #9fb0c4); font-size: 12px; }
.inv-card :focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* aparato dibujado: teléfono o televisor con el logo latiendo */
.inv-device { flex: none; position: relative; background: #05080d; border: 3px solid #2a3546; box-shadow: inset 0 0 0 2px #000, 0 10px 30px -10px #000; }
.inv-device.is-phone { width: 74px; height: 140px; border-radius: 18px; }
.inv-device.is-tv { width: 170px; height: 104px; border-radius: 10px; }
.inv-device.is-tv::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 60px; height: 10px; margin-left: -30px; border-radius: 0 0 8px 8px; background: #2a3546; }
.inv-screen { position: absolute; inset: 7px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: #0b1624; }
.inv-device.is-tv .inv-screen { border-radius: 5px; }
.inv-screen img { width: 46px; height: 46px; animation: inv-beat 1.8s ease-in-out infinite; }
.inv-screen b { position: absolute; left: 10%; right: 10%; bottom: 12%; height: 4px; border-radius: 4px; background: #ffffff1a; overflow: hidden; }
.inv-screen b::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: inv-load 2.4s ease-in-out infinite; }

/* teléfono Android e iPhone: hoja que sube desde abajo */
.inv-android, .inv-ios { left: 10px; right: 10px; bottom: 10px; max-width: 520px; margin: 0 auto; padding: 18px 18px 14px; border-radius: 22px; transform: translateY(40px); }
.inv-android.show, .inv-ios.show { transform: none; }
.inv-steps { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.inv-share { display: inline-block; animation: inv-nudge 1.2s ease-in-out infinite; }
.inv-arrow { position: absolute; left: 50%; bottom: -34px; font-size: 26px; color: var(--accent); animation: inv-nudge 1.2s ease-in-out infinite; }

/* televisor: tarjeta grande centrada, para el control remoto */
.inv-tv { left: 50%; top: 50%; width: min(980px, 92vw); padding: 34px 38px 26px; border-radius: 26px; transform: translate(-50%, -46%) scale(.96); }
.inv-tv.show { transform: translate(-50%, -50%); }
.inv-modal::before { content: ''; position: fixed; inset: -100vmax; z-index: -1; background: #000a; }
.inv-tv h2 { font-size: 34px; } .inv-tv p { font-size: 18px; } .inv-tv .inv-chips span { font-size: 15px; padding: 7px 14px; }
.inv-tv .inv-primary { min-height: 60px; font-size: 20px; flex: 0 1 auto; padding: 0 30px; }
.inv-tv .inv-later, .inv-tv .inv-never { font-size: 17px; padding: 12px 16px; border-radius: 12px; }
.inv-tv .inv-later:focus-visible, .inv-tv .inv-never:focus-visible { background: #ffffff14; }
.inv-tv .inv-device.is-tv { width: 220px; height: 134px; }
.inv-qrbox { flex: none; text-align: center; } .inv-qrbox small { display: block; margin-top: 8px; color: var(--muted, #9fb0c4); font-size: 14px; line-height: 1.3; }
.inv-qr { display: inline-block; padding: 8px; border-radius: 14px; background: #fff; line-height: 0; }
.inv-qr img { display: block; width: 168px; height: 168px; image-rendering: pixelated; }
.inv-tv .inv-text { flex: 1; }

/* computador: tarjeta discreta abajo a la derecha */
.inv-pc { right: 22px; bottom: 22px; width: 300px; padding: 18px; border-radius: 20px; transform: translateY(24px); }
.inv-pc.show { transform: none; }
.inv-pc h2 { font-size: 18px; }
.inv-pc .inv-actions { margin-top: 6px; } .inv-pc .inv-spacer { flex: 1; }
.inv-tabs { display: flex; gap: 6px; margin: 10px 0; }
.inv-tabs button { flex: 1; padding: 7px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.inv-tabs button.on { background: var(--accent); color: #08121a; border-color: transparent; }
.inv-qrzone { text-align: center; } .inv-pc .inv-qr img { width: 150px; height: 150px; }
.inv-close { position: absolute; top: 8px; right: 8px; font-size: 16px; }

/* «Mi cuenta» → Apps de GicoTV */
.acc-apps .acc-app-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.acc-apps .acc-app-row.is-here { order: -1; }
.acc-apps .acc-app-info small { display: block; color: var(--muted, #9fb0c4); font-size: 13px; }
.acc-apps .inv-qr img { width: 110px; height: 110px; }
.acc-apps { display: flex; flex-direction: column; }

@keyframes inv-pulse { 50% { transform: scale(1.03); } }
@keyframes inv-beat { 50% { transform: scale(1.12); } }
@keyframes inv-load { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes inv-nudge { 50% { transform: translateY(5px); } }

@media (max-width: 420px) {
  .inv-body { gap: 12px; } .inv-device.is-phone { width: 58px; height: 112px; } .inv-card h2 { font-size: 19px; }
  .inv-screen img { width: 36px; height: 36px; }
}
@media (max-width: 760px) { .inv-pc { display: none; } }
@media (prefers-reduced-motion: reduce) { .inv-card, .inv-card * { animation: none !important; transition: none !important; } }
.tv-mode .inv-primary, .tv-mode .inv-screen img, .tv-mode .inv-screen b::after { animation: none; }

/* «Invita y gana» inteligente (24-nov-2026) */
.gi-tarjeta { position: fixed; z-index: 60; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 16px 16px 14px; border-radius: var(--radius, 16px); background: var(--card-solid, #122132); color: var(--text, #eefcff);
  border: 1px solid var(--line-strong, rgba(0,229,240,.45)); box-shadow: var(--glow, 0 18px 48px -18px rgba(0,229,240,.35)); animation: gi-t-in .35s ease-out; }
.gi-t-tit { display: block; font-size: 1.02rem; margin: 0 24px 6px 0; }
.gi-t-txt { margin: 0 0 10px; color: var(--muted, #9fbccb); font-size: .9rem; line-height: 1.35; }
.gi-t-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.gi-t-btn { flex: 1 1 auto; min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line, rgba(86,140,170,.22));
  background: transparent; color: var(--text, #eefcff); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.gi-t-prim { background: linear-gradient(135deg, var(--accent, #00e5f0), #9b8cff); color: #04171b; border: 0; flex-basis: 100%; }
.gi-t-sec { color: var(--muted, #9fbccb); font-weight: 600; }
.gi-t-btn:focus-visible, .gi-t-x:focus-visible { outline: 2px solid var(--accent, #00e5f0); outline-offset: 2px; }
.gi-t-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted, #9fbccb); font-size: 1rem; cursor: pointer; }
.gi-t-qr { display: flex; justify-content: center; margin: 4px 0 8px; }
.gi-t-qr img { background: #fff; border-radius: 10px; padding: 4px; }
.gi-tarjeta-tv { width: 380px; right: 40px; bottom: 40px; }
@media (max-width: 760px) { .gi-tarjeta { right: 16px; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: auto; } }
@keyframes gi-t-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gi-tarjeta { animation: none; } }
