/* =========================================================
   Lasertag REDISEÑO — páginas interiores
   Encabezados cinematográficos + marquesina + movimiento.
   Se carga DESPUÉS de styles.css y rediseno-chrome.css.
   ========================================================= */

/* =========================================================
   ENCABEZADO DE PÁGINA — foto de fondo con movimiento
   ========================================================= */
.page-head {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 170px 0 80px;
}
.page-head.has-media .hero__beam,
.page-head.has-media .hero__grain { display: none; }
.ph-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ph-media__img {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  animation: rz-kenburns 14s ease-in-out infinite alternate;
}
@keyframes rz-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
.ph-media__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,17,28,0.66) 0%, rgba(8,17,28,0.5) 45%, rgba(8,17,28,0.86) 100%);
}
.page-head__inner { position: relative; z-index: 2; }

/* Rayo láser bajo la palabra destacada del título */
.page-head__title em { position: relative; }
.page-head__title em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.04em;
  height: 3px; background: var(--rz-lime, #7DC242); border-radius: 2px;
  box-shadow: 0 0 14px 2px rgba(125, 194, 66, 0.75);
  transform: scaleX(0); transform-origin: left;
  animation: rz-beam 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}
@keyframes rz-beam { to { transform: scaleX(1); } }

/* =========================================================
   MARQUESINA (inyectada bajo el encabezado)
   ========================================================= */
.mq--page { overflow: hidden; background: var(--rz-navy-deep, #08111c); border-bottom: 1px solid rgba(255,255,255,0.14); }
.mq--page .mq__track {
  display: flex; align-items: center; gap: 34px;
  width: max-content; padding: 13px 0;
  animation: rz-mq 26s linear infinite;
}
.mq--page:hover .mq__track { animation-play-state: paused; }
.mq--page .mq__track span {
  font-size: 13px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.75); white-space: nowrap;
}
.mq--page .mq__track i { color: var(--rz-lime, #7DC242); font-style: normal; font-size: 12px; }
@keyframes rz-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   TARJETAS Y FOTOS — zoom y elevación al pasar el cursor
   ========================================================= */
/* Categorías */
.cat { border-radius: 16px; }
.cat__media { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.cat:hover .cat__media { transform: scale(1.06); }
.cat:hover { transform: translateY(-6px); }
.cat__arrow { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.cat:hover .cat__arrow { transform: translateX(6px); color: var(--rz-lime, #7DC242); }

/* Productos (Al Detal) */
.product { border-radius: 16px; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease; }
.product:hover { transform: translateY(-5px); }
.product__media { overflow: hidden; }
.product__media img { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.product:hover .product__media img { transform: scale(1.06); }

/* Galería */
.gallery__grid .g { overflow: hidden; border-radius: 14px; }
.gallery__grid .g img { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery__grid .g:hover img { transform: scale(1.07); }

/* Tarjetas de contacto */
.contact-card { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.contact-card:hover { transform: translateY(-4px); }

/* =========================================================
   CUERPO — CATEGORÍAS como paneles expandibles (estilo index)
   ========================================================= */
.cats { background: var(--rz-navy-deep, #08111c); padding: 90px 0 100px; }
.cats::before { display: none; }
.cats .section__head h2, .cats h2 { color: #fff; }
.cats .section__head p { color: rgba(255,255,255,0.75); }

.cats__grid {
  display: flex; grid-template-columns: none;
  gap: 10px; height: 74vh; min-height: 520px; max-height: 720px;
}
.cat {
  position: relative; flex: 1; min-height: 0; min-width: 0;
  border: none; background: #122336; color: #fff;
  border-radius: 16px; overflow: hidden;
  transition: flex 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat:hover { flex: 3.4; transform: none; box-shadow: none; }
.cat__media { position: absolute; inset: 0; flex: none; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.cat:hover .cat__media { transform: scale(1.07); }
.cat__media::after {
  background: linear-gradient(180deg, rgba(8,17,28,0.12) 30%, rgba(8,17,28,0.9) 100%);
}
.cat__body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: transparent; color: #fff; border-top: none;
  padding: 24px 22px;
}
.cat__num {
  position: absolute; top: 20px; left: 20px;
  color: var(--rz-lime, #7DC242); font-weight: 800;
}
.cat__body h3 {
  font-family: var(--rz-serif); font-weight: 600; color: #fff;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.12;
  margin: 0; max-height: 72%;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.cat:hover .cat__body h3 { writing-mode: horizontal-tb; transform: none; max-height: none; }
.cat__body p {
  color: rgba(255,255,255,0.82); max-width: 44ch; margin: 10px 0 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.35s ease 0.18s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}
.cat:hover .cat__body p { opacity: 1; transform: none; }
.cat__arrow {
  position: absolute; right: 22px; bottom: 22px;
  color: var(--rz-lime, #7DC242); font-size: 22px;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.3s ease 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.cat:hover .cat__arrow { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .cats__grid {
    flex-direction: column;
    height: auto; min-height: 0; max-height: none;
    overflow: visible; gap: 14px;
  }
  .cat { flex: none; width: 100%; max-width: none; height: 210px; min-height: 210px; }
  .cat__body h3 { writing-mode: horizontal-tb; transform: none; max-height: none; }
  .cat__body p { opacity: 1; transform: none; }
  .cat__arrow { opacity: 1; transform: none; }
}

/* =========================================================
   CUERPO — GALERÍA en modo oscuro
   ========================================================= */
.gallery { background: var(--rz-navy-deep, #08111c); }
.gallery .section__head h2, .gallery h2 { color: #fff; }
.gallery .section__head p { color: rgba(255,255,255,0.75); }
.gallery__filter {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.85);
}
.gallery__filter:hover { border-color: var(--rz-lime, #7DC242); color: var(--rz-lime, #7DC242); }
.gallery__filter.is-active {
  background: var(--rz-lime, #7DC242);
  color: var(--rz-navy, #0d1b2a);
  border-color: var(--rz-lime, #7DC242);
}

/* =========================================================
   CUERPO — LANDINGS SEO (.seo claro elevado + .faq oscuro)
   ========================================================= */
.seo h2 {
  font-family: var(--rz-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12; font-weight: 600;
}
.seo__lead {
  font-size: 13px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--rz-lime-2, #6cae34);
}
.seo__gallery img, .seo__gallery picture {
  border-radius: 16px; overflow: hidden;
}
.seo__gallery picture { display: block; }
.seo__gallery img { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.seo__gallery picture:hover img { transform: scale(1.05); }

.faq {
  background: var(--rz-navy-deep, #08111c);
  border-top: none;
  padding: 90px 0 100px;
}
.faq__title {
  color: #fff;
  font-family: var(--rz-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 36px;
}
.faq__list { max-width: 780px; gap: 10px; }
.faq__item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
}
.faq__item summary {
  color: #fff; font-size: 15px; padding: 16px 20px;
}
.faq__item summary::after { color: var(--rz-lime, #7DC242); font-size: 20px; }
.faq__item[open] {
  border-color: var(--rz-lime, #7DC242);
  background: rgba(125, 194, 66, 0.07);
}
.faq__item[open] summary { color: var(--rz-lime, #7DC242); }
.faq__item p { color: rgba(255,255,255,0.82); padding: 0 20px 16px; }

/* =========================================================
   CUERPO — AL DETAL (claro, tarjetas elevadas)
   ========================================================= */
.product {
  border: none;
  box-shadow: 0 14px 30px -24px rgba(13, 27, 42, 0.45);
}
.product__name { font-family: var(--rz-serif); font-size: 1.45rem; font-weight: 700; }
.product__price { color: var(--rz-lime-2, #6cae34); }

/* =========================================================
   CUERPO — NOSOTROS y CONTACTO
   ========================================================= */
.about-story__lead {
  font-size: 13px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--rz-lime-2, #6cae34);
}
.about-story p:not(.about-story__lead) { font-size: 18px; line-height: 1.7; max-width: 68ch; }
.why h2 { font-family: var(--rz-serif); }

.contact-card { border-radius: 16px; }
.contact-card__eyebrow { color: var(--rz-lime-2, #6cae34); letter-spacing: 0.2em; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .page-head { min-height: 46vh; padding: 130px 0 60px; }
  .cat { height: 190px; min-height: 190px; }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .ph-media__img { animation: none; }
  .page-head__title em::after { animation: none; transform: scaleX(1); }
  .mq--page .mq__track { animation: none; }
  .cat__media, .cat, .product, .product__media img,
  .gallery__grid .g img, .contact-card, .cat__arrow { transition: none; }
}
