/* Inicio · versión con video */

/* Hero: el video de Juan dentro de una "pantalla" azul */
.hero { background: linear-gradient(180deg, var(--fog) 0%, #fff 100%); padding-top: 28px; padding-bottom: 96px; }
.hero-frame { border-radius: 40px; background: var(--logo); padding: 10px; box-shadow: 0 50px 90px -50px rgba(1, 97, 239, .8); }
.hero-screen { position: relative; border-radius: 31px; overflow: hidden; background: var(--ink); }
.hero-video { display: block; width: 100%; height: auto; object-fit: cover; background: var(--ink); }
.hero-video-d { aspect-ratio: 16 / 9; }
.hero-video-m { display: none; aspect-ratio: 9 / 16; }
.hero-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 12px 8px; }
.hero-toggle { flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid #fff; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; }
.hero-toggle:hover { background: rgba(255, 255, 255, .12); }
.hero-toggle .ico-play { display: none; }
.hero-toggle.is-paused .ico-play { display: flex; }
.hero-toggle.is-paused .ico-pause { display: none; }
.hero-toggle span { display: flex; }
.hero-text { flex: 1 1 280px; color: #fff; font-size: 16px; line-height: 1.45; }
.hero-text strong { font-family: var(--f-display); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ctas .btn { height: 54px; }
.hero-ctas .btn-white { padding: 0 26px; }

/* Fila continua de portadas (barra blanca flotante) */
.mq-wrap { position: relative; z-index: 2; margin-top: -64px; }
.mq-box { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0, 21, 82, .35); padding: 18px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { display: flex; gap: 22px; width: max-content; padding: 0 22px; animation: pbMarquee 45s linear infinite; }
.mq-box:hover .mq-track, .mq-track.is-paused, .mq-track:focus-within { animation-play-state: paused; }
@keyframes pbMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-item { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); }
.mq-item:hover { color: var(--blue); }
.mq-cover { position: relative; width: 72px; height: 92px; border-radius: 14px; overflow: hidden; background: var(--fog); box-shadow: 0 0 0 4px var(--fog); transition: transform .22s var(--ease); }
@media (hover: hover) and (pointer: fine) { .mq-item:hover .mq-cover { transform: translateY(-3px); } }
.mq-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mq-cover .cover-ph strong { font-size: 10px; }
.mq-cover .cover-ph span { display: none; }
.mq-title { font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Beneficios rápidos */
.quick { padding-top: 40px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.quick-item { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 18px; background: var(--fog); }
.quick-item > span:last-child { display: flex; flex-direction: column; font-size: 13px; color: var(--gray); }
.quick-item strong { color: var(--ink); font-size: 15px; }
.q-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.q-ico.ico-ice { background: var(--ice); color: var(--blue); }

/* Banner de suscripciones (carrusel) + accesos */
.subs-row { display: flex; flex-wrap: wrap; gap: 20px; }
.subs-slider { flex: 2 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.slides { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--logo); }
.slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slides .lift:hover { transform: none; }
/* Segundo banner: fondo sin texto + copy en HTML (tamaños relativos al ancho del banner) */
.slides { container-type: inline-size; }
.slide-text { background: #001552; }
.slide-text::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 21, 82, .78) 0%, rgba(0, 21, 82, .35) 45%, transparent 70%); }
.slide-copy { position: absolute; z-index: 1; left: 5cqw; top: 50%; transform: translateY(-50%); width: 52cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 2.2cqw; color: #fff; }
.slide-eyebrow { font-family: var(--f-display); font-weight: 700; font-size: max(10px, 1.5cqw); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.slide-title { font-family: var(--f-display); font-weight: 800; font-size: max(20px, 4.6cqw); line-height: 1.05; letter-spacing: -.03em; }
.slide-sub { font-size: max(12px, 1.7cqw); line-height: 1.5; color: #E6ECFF; }
.slide-btn { height: max(36px, 5.2cqw); padding: 0 max(14px, 2.4cqw); font-size: max(13px, 1.6cqw); margin-top: .6cqw; pointer-events: none; }
@container (max-width: 520px) { .slide-sub { display: none; } .slide-copy { width: 62cqw; } }
.slider-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.subs-cards { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sub-card { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 26px; border-radius: 28px; color: var(--ink); }
.sub-card:hover { color: var(--ink); }
.sub-ps { background: var(--cream); border: 1px solid var(--cream-line); }
.sub-gp { background: var(--mint); border: 1px solid #BFEFC8; }
.sub-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sub-dur { font-size: 13px; font-weight: 600; color: var(--gold); }
.sub-gp .sub-dur { color: var(--green-ink); }
.sub-name { font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.sub-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sub-price { display: flex; flex-direction: column; }
.sub-price > span { font-size: 13px; color: var(--gold); }
.sub-gp .sub-price > span { color: var(--green-ink); }
.sub-price b { font-family: var(--f-display); font-weight: 800; font-size: 26px; }
.sub-price small { font-size: 13px; }
.sub-price .sub-na { font-size: 18px; }

/* Preventa GTA VI */
.pre-box { border-radius: 36px; background: var(--yellow); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pre-banner { display: block; border-radius: 26px; overflow: hidden; background: var(--ink); }
.pre-banner img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .pre-banner:hover img { transform: scale(1.02); } }
.pre-info { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 16px 16px 12px; }
.pre-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pre-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.pre-text p { font-size: 16px; line-height: 1.5; color: var(--ink); }
.pre-boxes { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.pre-count { display: flex; flex-direction: column; justify-content: center; padding: 12px 18px; border-radius: 18px; background: var(--ink); color: #fff; }
.pre-count b { font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1; }
.pre-count span { font-size: 13px; color: var(--ice); }
.pre-price { display: flex; flex-direction: column; justify-content: center; padding: 12px 18px; border-radius: 18px; background: #fff; color: var(--ink); }
.pre-price span { font-size: 13px; color: var(--gold); }
.pre-price b { font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.pre-price small { font-size: 14px; }
.pre-boxes .btn-xl { min-height: 64px; height: auto; padding: 0 28px; border-radius: 18px; font-size: 17px; }

/* Más vendidos: coverflow */
.flow { position: relative; margin-top: 36px; overflow: hidden; isolation: isolate; }
.flow-track { position: relative; height: 630px; }
.flow-card { position: absolute; top: 12px; left: 50%; width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .5s var(--ease), opacity .4s ease, border-color .3s ease, box-shadow .3s ease; transform: translateX(-50%) scale(.6); opacity: 0; pointer-events: none; }
.flow-card[data-pos="0"] { transform: translateX(-50%); opacity: 1; z-index: 3; border-color: var(--blue); box-shadow: 0 40px 70px -36px rgba(26, 79, 224, .7); pointer-events: auto; }
.flow-card[data-pos="-1"] { transform: translateX(calc(-50% - 270px)) scale(.8); opacity: .8; z-index: 2; pointer-events: auto; }
.flow-card[data-pos="1"] { transform: translateX(calc(-50% + 270px)) scale(.8); opacity: .8; z-index: 2; pointer-events: auto; }
.flow-card[data-pos="-2"] { transform: translateX(calc(-50% - 480px)) scale(.66); opacity: .55; z-index: 1; pointer-events: auto; }
.flow-card[data-pos="2"] { transform: translateX(calc(-50% + 480px)) scale(.66); opacity: .55; z-index: 1; pointer-events: auto; }
.flow-card.lift:hover { box-shadow: 0 40px 70px -36px rgba(26, 79, 224, .7); }
.flow-cover { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--fog); }
.flow-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flow-cover .plat { top: 12px; left: 12px; }
.flow-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.flow-body .card-title { font-weight: 700; font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flow-bar { display: flex; align-items: center; justify-content: center; gap: 14px; }
/* Sin JS: fila con scroll horizontal */
.flow:not(.is-ready) .flow-track { height: auto; display: flex; gap: 18px; overflow-x: auto; padding: 12px 32px 24px; scroll-snap-type: x mandatory; }
.flow:not(.is-ready) .flow-card { position: static; transform: none; opacity: 1; pointer-events: auto; flex: 0 0 240px; scroll-snap-align: center; }
.flow:not(.is-ready) .flow-bar { display: none; }

/* Explora por consola */
.cons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.cons-card { position: relative; overflow: hidden; min-height: 320px; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.cons-ps5 { background: var(--blue); color: #fff; }
.cons-ps4 { background: var(--ice); color: var(--ink); }
.cons-xbox { background: var(--green); color: #fff; }
.cons-ps5:hover, .cons-xbox:hover { color: #fff; }
.cons-ps4:hover { color: var(--ink); }
.cons-name { font-family: var(--f-display); font-weight: 800; font-size: 44px; letter-spacing: -.03em; line-height: 1; }
.cons-sub { font-size: 15px; max-width: 60%; }
.cons-ps5 .cons-sub { color: var(--ice); }
.cons-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; position: relative; z-index: 1; }
.cons-ps4 .cons-link { color: var(--blue); }
.cons-cover { position: absolute; border-radius: 12px; box-shadow: 0 16px 30px -12px rgba(0, 21, 82, .6); transition: transform .4s var(--ease); }
.cons-cover.c1 { right: 120px; bottom: -40px; width: 120px; transform: rotate(-10deg); }
.cons-cover.c2 { right: -14px; bottom: -30px; width: 130px; transform: rotate(12deg); }
.cons-cover.c3 { right: 46px; bottom: -14px; width: 140px; transform: rotate(2deg); z-index: 1; box-shadow: 0 20px 36px -12px rgba(0, 21, 82, .7); }
@media (hover: hover) and (pointer: fine) { .cons-card:hover .c1 { transform: rotate(-13deg) translateY(-8px); } }
@media (hover: hover) and (pointer: fine) { .cons-card:hover .c2 { transform: rotate(15deg) translateY(-8px); } }
@media (hover: hover) and (pointer: fine) { .cons-card:hover .c3 { transform: rotate(2deg) translateY(-14px); } }
.cons-xbox .cons-cover { box-shadow: 0 16px 30px -12px rgba(0, 33, 6, .6); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 40px; align-items: start; }
.faq-grid .link-more { padding-left: 0; font-size: 15px; gap: 6px; }

/* CTA final: el logo se funde con el azul */
.cta-final { position: relative; overflow: hidden; border-radius: 40px; background: var(--logo); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: center; gap: 8px; padding: 24px 48px 24px 24px; }
.cta-final > img { width: 100%; max-width: 420px; height: auto; display: block; justify-self: center; }
.cta-text { display: flex; flex-direction: column; gap: 18px; padding: 24px 0; min-width: 0; }
.cta-text h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4vw, 54px); line-height: 1.02; letter-spacing: -.035em; color: #fff; }
.cta-text p { font-size: 18px; line-height: 1.6; color: #fff; max-width: 480px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1100px) {
  .flow-card[data-pos="-2"], .flow-card[data-pos="2"] { opacity: 0; pointer-events: none; }
}
@media (max-width: 720px) {
  .hero { padding-top: 16px; padding-bottom: 84px; }
  .hero-frame { border-radius: 30px; padding: 8px; }
  .hero-screen { border-radius: 23px; }
  .hero-video-d { display: none; }
  .hero-video-m { display: block; max-height: 78vh; }
  .hero-bar { padding: 14px 6px 6px; gap: 12px; }
  .hero-text { flex-basis: calc(100% - 60px); font-size: 15px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 140px; padding: 0 14px; font-size: 15px; }
  .mq-wrap { margin-top: -56px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .quick-item strong { font-size: 14px; }
  .mq-box { border-radius: 22px; padding: 14px 0; }
  .sub-card { padding: 22px; border-radius: 24px; }
  .sub-name { font-size: 24px; }
  .slides { border-radius: 22px; }
  .pre-box { border-radius: 28px; padding: 10px; }
  .pre-banner { border-radius: 20px; }
  .pre-info { padding: 12px 8px 8px; }
  .pre-boxes { width: 100%; }
  .pre-boxes > * { flex: 1 1 130px; }
  .pre-boxes .btn-xl { flex-basis: 100%; }
  .flow-track { height: 590px; }
  .flow-card { width: 250px; }
  .flow-card[data-pos="-1"] { transform: translateX(calc(-50% - 200px)) scale(.8); opacity: .5; }
  .flow-card[data-pos="1"] { transform: translateX(calc(-50% + 200px)) scale(.8); opacity: .5; }
  .cons-card { min-height: 260px; padding: 24px; border-radius: 24px; }
  .cons-name { font-size: 38px; }
  .cons-cover.c1 { width: 96px; right: 96px; }
  .cons-cover.c2 { width: 104px; }
  .cons-cover.c3 { width: 112px; right: 36px; }
  .cta-final { padding: 16px 20px 24px; border-radius: 30px; }
  .cta-final > img { max-width: 260px; }
  .cta-text { padding: 0; }
  .cta-btns .btn { flex: 1 1 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
  .mq-box { overflow-x: auto; }
}

/* Celulares: coverflow de "Más vendidos" más compacto */
@media (max-width: 560px) {
  .flow-track { height: 512px; }
  .flow-card { width: 214px; }
  .flow-card[data-pos="-1"] { transform: translateX(calc(-50% - 168px)) scale(.8); }
  .flow-card[data-pos="1"] { transform: translateX(calc(-50% + 168px)) scale(.8); }
  .flow-body { padding: 12px; gap: 8px; }
}
/* Banner de preventa automático (juegos sin banner propio): captura oficial a 16:9 */
.pre-banner-auto img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
