/* Deportes Jimmy · Cyber Monday · hero y popup del inicio (tema 14.0.25)
   Copia de las referencias aprobadas: referencia-Main.html, referencia-Hero-movil.html,
   referencia-Popup.html y referencia-Popup-movil.html. Todo va con el prefijo dj-cm25-
   para no tocar nada más de la web. */

@font-face {
  font-family: 'DJ Montserrat';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(fuentes/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Animaciones (mismas de las referencias) ---------- */
@keyframes djcm25Kb { from { transform: scale(1.08) translateX(0); } to { transform: scale(1) translateX(-1.5%); } }
@keyframes djcm25KbCel { from { transform: translate(-83px, -427px) scale(1.67); } to { transform: translate(-83px, -419px) scale(1.66); } }
@keyframes djcm25Pop { 0% { opacity: 0; transform: scale(.55) rotate(-7deg); } 60% { opacity: 1; transform: scale(1.06) rotate(1.5deg); } 100% { opacity: 1; transform: none; } }
@keyframes djcm25Glow { 0%, 100% { filter: drop-shadow(0 0 14px rgba(255,64,200,.55)) drop-shadow(0 0 2px rgba(255,255,255,.4)); } 50% { filter: drop-shadow(0 0 30px rgba(64,210,255,.7)) drop-shadow(0 0 2px rgba(255,255,255,.6)); } }
@keyframes djcm25GlowS { 0%, 100% { filter: drop-shadow(0 0 12px rgba(255,64,200,.55)); } 50% { filter: drop-shadow(0 0 26px rgba(64,210,255,.7)); } }
@keyframes djcm25Up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes djcm25UpCel { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes djcm25Shine { 0% { left: -70%; } 55%, 100% { left: 140%; } }
@keyframes djcm25Streak { 0% { transform: translateX(120px); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateX(-900px); opacity: 0; } }
@keyframes djcm25Pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(227,38,43,.45), 0 0 0 0 rgba(255,80,190,.5); } 50% { box-shadow: 0 10px 30px rgba(227,38,43,.45), 0 0 0 10px rgba(255,80,190,0); } }
@keyframes djcm25PulseS { 0%, 100% { box-shadow: 0 10px 26px rgba(227,38,43,.45), 0 0 0 0 rgba(255,80,190,.5); } 50% { box-shadow: 0 10px 26px rgba(227,38,43,.45), 0 0 0 10px rgba(255,80,190,0); } }
@keyframes djcm25Blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes djcm25Fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes djcm25Rise { 0% { opacity: 0; transform: translateY(40px) scale(.94); } 70% { opacity: 1; transform: translateY(-4px) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes djcm25Sheet { 0% { transform: translateY(100%); } 75% { transform: translateY(-6px); } 100% { transform: none; } }
@keyframes djcm25Border { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes djcm25KbPop { from { transform: translateY(-5%) scale(1.62); } to { transform: translateY(-5%) scale(1.53); } }

.dj-cm25-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Piezas comunes ---------- */
.dj-cm25-hero, .dj-cm25-pop { font-family: 'DJ Montserrat', Montserrat, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
.dj-cm25-hero *, .dj-cm25-pop * { box-sizing: border-box; }
.dj-cm25-hero img, .dj-cm25-pop img { max-width: none; }
.dj-cm25-logo { display: block; height: auto; }
.dj-cm25-hero a, .dj-cm25-hero a:hover, .dj-cm25-hero a:focus,
.dj-cm25-pop a, .dj-cm25-pop a:hover, .dj-cm25-pop a:focus { color: #fff; text-decoration: none; }

.dj-cm25-dto { position: relative; overflow: hidden; display: flex; align-items: center; border: 2px solid #5fe0ff; border-radius: 10px; transform: skewX(-6deg); }
.dj-cm25-dto__num { font-weight: 900; line-height: .9; letter-spacing: -2px; }
.dj-cm25-dto__txt { display: flex; flex-direction: column; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.dj-cm25-dto__web { font-weight: 600; color: #c9b8ff; letter-spacing: 1px; }
.dj-cm25-brillo { position: absolute; top: 0; bottom: 0; width: 45%; left: -70%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); animation: djcm25Shine 3.6s ease-in-out 1.6s infinite; }

.dj-cm25-cta { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; background: linear-gradient(90deg, #e3262b, #ff3d8b); color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .5px; text-transform: uppercase; line-height: 1.2; }
.dj-cm25-cta:focus-visible, .dj-cm25-pop button:focus-visible { outline: 3px solid #5fe0ff; outline-offset: 3px; }
.dj-cm25-punto { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff4fd8; animation: djcm25Blink 1.2s ease-in-out infinite; }

/* ---------- HERO: caja y escenas ---------- */
.dj-cm25-hero { position: relative; display: block; width: 100%; margin: 0; padding: 0; background: #1a0b2b; overflow: hidden; }
/* El tema le pone 52 px (24 en celular) de relleno a toda sección del inicio; el hero va sin relleno, como el de siempre. */
.dj-home > .dj-cm25-hero { padding: 0; }
.dj-cm25-pc, .dj-cm25-cel { position: relative; width: 100%; overflow: hidden; background: #1a0b2b; }
.dj-cm25-pc { aspect-ratio: 16 / 6; }
.dj-cm25-cel { aspect-ratio: 390 / 760; display: none; }
.dj-cm25-escena { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; }
.dj-cm25-pc .dj-cm25-escena { width: 1440px; height: 540px; transform: scale(var(--k, 1)); }
.dj-cm25-cel .dj-cm25-escena { width: 390px; height: 760px; transform: scale(var(--k, 1)); }
@media (max-width: 767px) {
  .dj-cm25-pc { display: none; }
  .dj-cm25-cel { display: block; }
}

/* Entradas */
.dj-cm25-entra-logo { opacity: 0; animation: djcm25Pop .9s cubic-bezier(.2,.9,.3,1.2) .2s forwards, djcm25Glow 3.2s ease-in-out 1.1s infinite; }
.dj-cm25-pc .dj-cm25-sube1 { opacity: 0; animation: djcm25Up .7s ease-out .8s forwards; }
.dj-cm25-pc .dj-cm25-sube2 { opacity: 0; animation: djcm25Up .7s ease-out 1.05s forwards; }
.dj-cm25-pc .dj-cm25-sube3 { opacity: 0; animation: djcm25Up .7s ease-out 1.3s forwards; }
.dj-cm25-cel .dj-cm25-sube1 { opacity: 0; animation: djcm25UpCel .7s ease-out .8s forwards; }
.dj-cm25-cel .dj-cm25-sube2 { opacity: 0; animation: djcm25UpCel .7s ease-out 1.05s forwards; }
.dj-cm25-cel .dj-cm25-sube3 { opacity: 0; animation: djcm25UpCel .7s ease-out 1.3s forwards, djcm25PulseS 2.2s ease-in-out 2s infinite; }
/* Igual que la referencia: en el hero, la entrada (forwards) deja el recuadro derecho; sin movimiento queda inclinado. */

/* ---------- HERO computadora (1440 × 540) ---------- */
.dj-cm25-hero .dj-cm25-pc__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; animation: djcm25Kb 16s ease-in-out infinite alternate; }
.dj-cm25-pc__velo { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,9,40,.94) 0%, rgba(24,9,40,.78) 34%, rgba(24,9,40,.15) 60%, rgba(24,9,40,0) 72%); }
.dj-cm25-pc__suelo { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(0deg, rgba(24,9,40,.85), rgba(24,9,40,0)); }
.dj-cm25-pc__rayas { position: absolute; left: 0; top: 0; width: 760px; height: 100%; pointer-events: none; }
.dj-cm25-raya { position: absolute; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #ff4fd8, #5fe0ff); animation: djcm25Streak 2.8s linear infinite; }
.dj-cm25-pc__izq { position: absolute; left: 80px; top: 26px; width: 600px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dj-cm25-pc .dj-cm25-logo { width: 360px; }
.dj-cm25-dto--pc { gap: 14px; padding: 12px 22px 12px 20px; background: rgba(18,8,32,.82); box-shadow: 0 0 22px rgba(95,224,255,.35), inset 0 0 0 1px rgba(255,79,216,.35); }
.dj-cm25-dto--pc .dj-cm25-dto__num { font-size: 56px; }
.dj-cm25-dto--pc .dj-cm25-dto__txt { font-size: 19px; }
.dj-cm25-dto--pc .dj-cm25-dto__web { font-size: 14px; }
.dj-cm25-pc__accion { display: flex; align-items: center; gap: 16px; }
.dj-cm25-cta--pc { display: inline-flex; padding: 15px 30px; animation: djcm25Pulse 2.2s ease-in-out 2s infinite; transition: transform .2s; }
.dj-cm25-cta--pc:hover { transform: translateY(-2px); }
.dj-cm25-pildora { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); font-weight: 700; font-size: 14px; line-height: 1.2; }
.dj-cm25-pc__reloj { position: absolute; left: 600px; top: 176px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dj-cm25-pc__rotulo { font-weight: 800; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: #ffd7f4; text-shadow: 0 0 12px rgba(255,79,216,.7); line-height: 1.2; }
.dj-cm25-pc__celdas { display: flex; gap: 10px; }
.dj-cm25-pc__celda { display: flex; flex-direction: column; align-items: center; width: 96px; padding: 14px 0 10px; border-radius: 14px; background: rgba(18,8,32,.55); border: 1px solid rgba(95,224,255,.55); box-shadow: 0 0 18px rgba(95,224,255,.25), inset 0 0 0 1px rgba(255,79,216,.25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dj-cm25-pc__num { font-weight: 900; font-size: 52px; line-height: 1; letter-spacing: -1px; text-shadow: 0 0 16px rgba(255,79,216,.6); font-variant-numeric: tabular-nums; }
.dj-cm25-pc__uni { font-weight: 700; font-size: 12px; color: #d8cdf5; text-transform: uppercase; letter-spacing: 2px; margin-top: 6px; line-height: 1.2; }

/* ---------- HERO celular (390 × 760) ---------- */
.dj-cm25-hero .dj-cm25-cel__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; transform: translate(-83px, -419px) scale(1.66); transform-origin: 64% 0; animation: djcm25KbCel 14s ease-in-out infinite alternate; }
.dj-cm25-cel__velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,9,40,.25) 0%, rgba(24,9,40,0) 26%, rgba(24,9,40,.35) 46%, rgba(24,9,40,.92) 66%, rgba(24,9,40,.98) 100%); }
.dj-cm25-cel__abajo { position: absolute; left: 20px; right: 20px; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dj-cm25-cel .dj-cm25-logo { width: 260px; margin-bottom: -4px; }
.dj-cm25-cel .dj-cm25-entra-logo { animation: djcm25Pop .9s cubic-bezier(.2,.9,.3,1.2) .2s forwards, djcm25GlowS 3.2s ease-in-out 1.1s infinite; }
.dj-cm25-dto--cel { gap: 12px; padding: 10px 18px; background: rgba(18,8,32,.85); box-shadow: 0 0 20px rgba(95,224,255,.35); }
.dj-cm25-dto--cel .dj-cm25-dto__num { font-size: 48px; }
.dj-cm25-dto--cel .dj-cm25-dto__txt { font-size: 15px; }
.dj-cm25-dto--cel .dj-cm25-dto__web { font-size: 11px; }
.dj-cm25-cel__reloj { display: flex; align-items: center; gap: 6px; }
.dj-cm25-cel__rotulo { font-weight: 700; font-size: 13px; margin-right: 4px; line-height: 1.2; }
.dj-cm25-cel__celda { display: inline-flex; align-items: baseline; gap: 2px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); line-height: 1.2; }
.dj-cm25-cel__num { font-weight: 900; font-size: 16px; font-variant-numeric: tabular-nums; }
.dj-cm25-cel__uni { font-weight: 600; font-size: 10px; color: #d8cdf5; }
.dj-cm25-cta--cel { width: 100%; min-height: 52px; }

/* ---------- POPUP ---------- */
.dj-cm25-pop[hidden] { display: none !important; }
.dj-cm25-pop { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dj-cm25-pop__fondo { position: absolute; inset: 0; background: rgba(14,5,24,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: djcm25Fade .4s ease-out backwards; }
.dj-cm25-pop__marco { position: relative; width: 880px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 2px; border-radius: 22px; outline: none;
  background: linear-gradient(90deg, #ff4fd8, #5fe0ff, #ffb547, #ff4fd8); background-size: 200% 100%;
  animation: djcm25Rise .7s cubic-bezier(.2,.9,.3,1.15) .25s backwards, djcm25Border 4s linear infinite; }
.dj-cm25-pop__caja { position: relative; display: flex; border-radius: 20px; overflow: hidden; background: #160827; color: #fff; }
.dj-cm25-pop__asa { display: none; }
.dj-cm25-pop button.dj-cm25-pop__x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; transition: background .2s; }
.dj-cm25-pop button.dj-cm25-pop__x:hover, .dj-cm25-pop button.dj-cm25-pop__x:focus { background: rgba(255,255,255,.22); color: #fff; }
.dj-cm25-pop__texto { flex: 1; position: relative; padding: 14px 20px 26px 44px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dj-cm25-pop__logo { width: 410px; max-width: 100%; margin-top: -6px; animation: djcm25GlowS 3.2s ease-in-out infinite; }
.dj-cm25-dto--pop { gap: 12px; padding: 10px 20px; background: rgba(255,255,255,.06); }
.dj-cm25-dto--pop .dj-cm25-dto__num { font-size: 52px; }
.dj-cm25-dto--pop .dj-cm25-dto__txt { font-size: 16px; }
.dj-cm25-dto--pop .dj-cm25-dto__web { font-size: 12px; }
.dj-cm25-dto--pop .dj-cm25-brillo { animation-delay: 1s; }
.dj-cm25-cta--pop { width: 100%; min-height: 52px; animation: djcm25PulseS 2.2s ease-in-out 1.2s infinite; }
.dj-cm25-pop button.dj-cm25-pop__no { border: 0; background: none; box-shadow: none; color: #b9a9e6; font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2; text-transform: none; letter-spacing: 0; cursor: pointer; margin: 0; padding: 8px; border-radius: 6px; }
.dj-cm25-pop button.dj-cm25-pop__no:hover, .dj-cm25-pop button.dj-cm25-pop__no:focus { background: none; color: #fff; }
.dj-cm25-pop__foto { width: 390px; align-self: stretch; position: relative; overflow: hidden; flex-shrink: 0; }
.dj-cm25-pop .dj-cm25-pop__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 38%; transform: translateY(-5%) scale(1.53); transform-origin: 80% 50%; animation: djcm25KbPop 10s ease-in-out infinite alternate; }
.dj-cm25-pop__sombra { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(22,8,39,0) 45%, rgba(22,8,39,1) 100%); }
.dj-cm25-pop.is-cerrando { opacity: 0; transition: opacity .22s ease; }
html.dj-cm25-pop-abierto { overflow: hidden; }

/* Pantallas de computadora bajitas: la tarjeta no se sale */
@media (min-width: 768px) and (max-height: 620px) {
  .dj-cm25-pop__logo { width: 300px; }
  .dj-cm25-pop__texto { gap: 8px; padding-bottom: 16px; }
}
@media (min-width: 768px) and (max-width: 940px) {
  .dj-cm25-pop__foto { width: 300px; }
  .dj-cm25-pop__texto { padding-left: 28px; }
}

/* ---------- POPUP celular: hoja que sube desde abajo ---------- */
@media (max-width: 767px) {
  .dj-cm25-pop { align-items: flex-end; padding: 0; }
  .dj-cm25-pop__fondo { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dj-cm25-pop__marco { width: 100%; padding: 2px 0 0; border-radius: 24px 24px 0 0; max-height: 100%; overflow-y: auto;
    animation: djcm25Sheet .7s cubic-bezier(.2,.9,.3,1.1) .2s backwards, djcm25Border 4s linear infinite; }
  .dj-cm25-pop__caja { display: block; border-radius: 22px 22px 0 0; overflow: visible; }
  .dj-cm25-pop__asa { display: block; position: absolute; top: 10px; left: 50%; margin-left: -22px; width: 44px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); }
  .dj-cm25-pop button.dj-cm25-pop__x { width: 44px; height: 44px; }
  .dj-cm25-pop__texto { padding: 26px 22px calc(28px + env(safe-area-inset-bottom, 0px)); gap: 14px; }
  .dj-cm25-pop__logo { width: 270px; margin-top: 8px; }
  .dj-cm25-dto--pop { gap: 10px; padding: 9px 18px; }
  .dj-cm25-dto--pop .dj-cm25-dto__num { font-size: 44px; }
  .dj-cm25-dto--pop .dj-cm25-dto__txt { font-size: 14px; }
  .dj-cm25-dto--pop .dj-cm25-dto__web { font-size: 10px; }
  .dj-cm25-pop button.dj-cm25-pop__no { min-height: 44px; padding: 0 12px; }
  .dj-cm25-pop__foto { display: none; }
}

/* ---------- Sin movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .dj-cm25-hero *, .dj-cm25-pop, .dj-cm25-pop * { animation: none !important; transition: none !important; }
  .dj-cm25-entra-logo, .dj-cm25-sube1, .dj-cm25-sube2, .dj-cm25-sube3 { opacity: 1 !important; }
  .dj-cm25-raya, .dj-cm25-brillo { display: none; }
}
