/* Inicio editorial: conserva los colores y las tarjetas de Pixel Pass. */
.header-center { display: grid; justify-items: center; min-width: 0; }
.main-nav { gap: clamp(0.55rem, 1.25vw, 1.2rem); font-size: 0.88rem; }

.hero {
  width: calc(100% - 1.4rem);
  max-width: 1240px;
  min-height: 0;
  height: clamp(390px, 38vw, 500px);
  margin: 0.75rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.hero::before { background: linear-gradient(90deg, rgba(5, 7, 17, 0.62), rgba(5, 7, 17, 0.12) 60%, transparent), linear-gradient(0deg, rgba(5, 7, 17, 0.28), transparent 45%); }
.hero-content {
  top: auto;
  left: clamp(1rem, 3vw, 2.2rem);
  bottom: clamp(1.4rem, 3vw, 2.2rem);
  transform: none;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.hero-nav { top: 42%; }
.hero-quick-links { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.1rem 0 0; }
.hero-quick-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  color: #fff;
  background: rgba(8, 10, 20, 0.74);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.hero-quick-links a:first-child { border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--cyan)); }
.hero-quick-links a:hover, .hero-quick-links a:focus-visible { border-color: var(--cyan); transform: translateY(-2px); }

.genre-spotlight {
  position: relative;
  padding: 1.6rem clamp(0.9rem, 2.2vw, 1.5rem);
  border: 1px solid rgba(113, 102, 255, 0.19);
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(113, 102, 255, 0.16), transparent 45%), rgba(13, 16, 28, 0.8);
}
.genre-adventure { background: radial-gradient(circle at 0 0, rgba(25, 211, 255, 0.13), transparent 45%), rgba(13, 16, 28, 0.8); }
.genre-spotlight + .genre-spotlight { margin-top: 1.5rem; }
.genre-spotlight .section-heading h2 { margin-bottom: 0; }
.product-carousel.is-auto-rotating { scroll-snap-type: none; scrollbar-width: none; }
.product-carousel.is-auto-rotating::-webkit-scrollbar { display: none; }
.home-section .product-carousel { grid-auto-columns: calc((100% - 6rem) / 6); gap: 1.2rem; padding: 24px 20px 38px; scroll-padding-inline: 20px; scrollbar-width: none; clip-path: inset(0 8px); }
.home-section .product-carousel::-webkit-scrollbar { display: none; }
.home-section .product-card { position: relative; scale: 1; transform-origin: center; transition: scale 420ms cubic-bezier(.18,.78,.22,1); }
.home-section .product-card:hover, .home-section .product-card:focus-within { z-index: 2; scale: 1.045; }
.home-section .product-card:focus-visible { outline-color: var(--green); outline-offset: 4px; }
#home-offers, #home-best, #home-action, #home-adventure, #home-news { scroll-margin-top: 82px; }

@media (max-width: 1200px) {
  .home-section .product-carousel { grid-auto-columns: calc((100% - 3.6rem) / 4); }
}
@media (max-width: 760px) {
  .home-section .product-carousel { grid-auto-columns: calc((100% - 2.4rem) / 3); }
}

.info-section { padding-block: clamp(2.2rem, 5vw, 3.8rem); }
.news-list { display: grid; gap: 0.8rem; }
.news-loading { margin: 0; padding: 1.5rem; color: var(--muted); }
.news-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 176px;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(105deg, rgba(101, 92, 255, 0.15), rgba(10, 13, 25, 0.96) 55%);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}
.news-story:nth-child(2) { background: linear-gradient(105deg, rgba(21, 202, 231, 0.12), rgba(10, 13, 25, 0.96) 55%); }
.news-story:nth-child(3) { background: linear-gradient(105deg, rgba(22, 214, 141, 0.11), rgba(10, 13, 25, 0.96) 55%); }
.news-story:hover, .news-story:focus-visible { transform: translateY(-2px); border-color: rgba(25, 211, 255, 0.45); }
.news-story-meta { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; color: var(--cyan); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.news-story h3 { margin: 0.55rem 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.1; }
.news-story p { max-width: 68ch; margin: 0; color: var(--muted); font-size: 0.99rem; line-height: 1.45; }
.news-story-open { align-self: end; color: var(--green); font-size: 0.9rem; font-weight: 900; white-space: nowrap; }

.help-page { min-height: calc(100dvh - 160px); padding-top: clamp(2.5rem, 7vw, 5rem); }
.help-page-footer { margin: 1.4rem 0 0; color: var(--muted); text-align: center; }
.help-page-footer a { color: var(--cyan); font-weight: 800; }
.contact-section[data-page="contacto"] { min-height: calc(100dvh - 150px); align-content: center; }

.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: #1dcd60;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.38);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: box-shadow 180ms ease, scale 180ms ease;
}
.whatsapp-fab img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.whatsapp-fab:hover, .whatsapp-fab:focus-visible { scale: 1.06; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48); }
.whatsapp-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.whatsapp-fab.is-dragging { cursor: grabbing; scale: 1; }
body.checkout-open .whatsapp-fab, body.menu-open .whatsapp-fab, body[data-page="pago"] .whatsapp-fab { visibility: hidden; }

@media (max-width: 820px) {
  #home-offers, #home-best, #home-action, #home-adventure, #home-news { scroll-margin-top: 82px; }
  .header-center { display: none; }
  .hero-content { left: 1.4rem; }
}
@media (max-width: 560px) {
  .hero { width: calc(100% - 0.8rem); height: clamp(300px, 88vw, 360px); min-height: 0; max-height: none; aspect-ratio: auto; margin-top: 0.45rem; border-radius: 12px; }
  .hero-content { top: auto; left: 0.9rem; right: 0.9rem; bottom: 1.4rem; width: auto; transform: none; }
  .hero h1 { display: -webkit-box; max-width: 20ch; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: clamp(1.55rem, 6.5vw, 2.1rem); line-height: 1; }
  .hero-nav { top: 36%; }
  .hero-quick-links { gap: 0.4rem; margin-top: 0.7rem; }
  .hero-quick-links a { min-height: 44px; padding-inline: 0.8rem; font-size: 0.77rem; }
  .hero-quick-links a:first-child { flex: 1 1 100%; }
  .genre-spotlight { width: calc(100% - 1rem); padding: 1.1rem 0.8rem; }
  .home-section .product-carousel { grid-auto-columns: calc((100% - 1.2rem) / 2); }
  .info-section .section-heading { align-items: start; flex-direction: column; }
  .news-story { grid-template-columns: 1fr; min-height: 0; gap: 0.85rem; }
  .news-story h3 { font-size: 1.42rem; }
  .news-story-open { justify-self: start; }
  .whatsapp-fab { right: 12px; bottom: 12px; width: 50px; height: 50px; }
  .help-page { min-height: calc(100dvh - 110px); }
}
@media (max-width: 360px) {
  .home-section .product-carousel { grid-auto-columns: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .product-carousel.is-auto-rotating { scroll-snap-type: x proximity; }
  .home-section .product-card { transition: none; }
  .hero-quick-links a, .news-story, .whatsapp-fab { transition: none; }
}
