/* ============================================================
   PLIVEPLAY - Rediseño 2026
   Tema: dark cinematográfico | Acento: ámbar dorado único
   ============================================================ */

:root {
  --bg: #0c0d10;
  --bg-raised: #131419;
  --bg-soft: #181a21;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eceef2;
  --text-dim: #b8bcc4;
  --accent: #1A74D4;
  --accent-soft: rgba(26, 116, 212, 0.14);
  --radius: 14px;
  --font-display: "Sora", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { background: #2B84E0; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26, 116, 212, 0.35); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: rgba(12, 13, 16, 0.35);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }

.btn--small { padding: 10px 22px; font-size: 0.85rem; }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 500;
  transition: transform 0.25s var(--ease-out);
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { transform: translateX(4px); }

/* ============================================================
   NAV FIJO
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo strong { font-weight: 800; color: var(--accent); }
.nav__logo-mark { color: var(--accent); display: inline-flex; }
.nav__logo-icon { height: 28px; width: auto; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__links > a:not(.btn),
.nav__sub-toggle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s;
}
.nav__links > a:not(.btn)::after,
.nav__sub-toggle::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__links > a:not(.btn):hover,
.nav__sub-toggle:hover { color: var(--text); }
.nav__links > a:not(.btn):hover::after,
.nav__sub-toggle:hover::after { transform: scaleX(1); }
.nav__links > a.is-current { color: var(--text); }
.nav__links > a.is-current::after { transform: scaleX(1); }

/* ----- Dropdown Servicios ----- */
.nav__item { position: relative; }
.nav__sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__sub-toggle svg { transition: transform 0.3s var(--ease-out); }
.nav__item.is-open .nav__sub-toggle svg { transform: rotate(180deg); }
.nav__item.is-current .nav__sub-toggle { color: var(--text); }
.nav__item.is-current .nav__sub-toggle::after { transform: scaleX(1); }

.nav__submenu a {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 11px 16px;
  border-radius: 9px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav__submenu a:hover,
.nav__submenu a.is-current { background: var(--accent-soft); color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SLIDER + OBTURADOR
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
}

.hero__slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-slide__img { position: absolute; inset: 0; }
.hero-slide__img::after {
  /* Scrim para legibilidad del texto sobre la foto */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(75deg, rgba(8, 9, 12, 0.85) 0%, rgba(8, 9, 12, 0.45) 50%, rgba(8, 9, 12, 0.15) 100%);
}
.hero-slide__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide.is-active .hero-slide__img img {
  animation: kenburns 9s var(--ease-out) forwards;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin-inline: auto;
  padding: calc(var(--nav-h) + 40px) 24px 120px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-slide__content h1,
.hero-slide__content h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 14ch;
  margin-bottom: 20px;
}
.hero-slide__content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 44ch;
  margin-bottom: 32px;
}
.hero-slide__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Entrada escalonada del texto al abrirse el obturador */
.hero-slide__content > * {
  opacity: 0;
  transform: translateY(26px);
}
.hero-slide.is-active .hero-slide__content > * {
  animation: rise 0.8s var(--ease-out) forwards;
}
.hero-slide.is-active .hero-slide__content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(3) { animation-delay: 0.45s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Obturador: 6 aspas que giran y se cierran al centro ----- */
.shutter {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.shutter__blade {
  position: absolute;
  top: 50%; left: 50%;
  width: 320vmax; height: 320vmax;
  margin: -160vmax 0 0 -160vmax;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 10px),
    #08090b;
  /* Abierto: cada aspa queda fuera del encuadre */
  transform: rotate(var(--angle)) translateY(calc(50% + 90vmax));
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.shutter__blade:nth-child(1) { --angle: 0deg; }
.shutter__blade:nth-child(2) { --angle: 60deg; }
.shutter__blade:nth-child(3) { --angle: 120deg; }
.shutter__blade:nth-child(4) { --angle: 180deg; }
.shutter__blade:nth-child(5) { --angle: 240deg; }
.shutter__blade:nth-child(6) { --angle: 300deg; }

/* Cerrado: el borde de cada aspa cruza el centro; el giro extra
   imita la rotación de las palas de un diafragma real */
.shutter.is-closed .shutter__blade {
  transform: rotate(calc(var(--angle) + 18deg)) translateY(50%);
}

/* Flash al "disparar la foto" */
.hero__flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.hero__flash.is-firing {
  animation: flash 0.5s ease-out;
}
@keyframes flash {
  0% { opacity: 0; }
  18% { opacity: 0.9; }
  100% { opacity: 0; }
}

/* Viñeta de lente permanente */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.45) 100%);
}

/* Controles */
.hero__controls {
  position: absolute;
  z-index: 10;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero__arrow {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(12, 13, 16, 0.4);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.hero__arrow:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; transform: scale(1.06); }
.hero__arrow:active { transform: scale(0.95); }

.hero__dots { display: flex; gap: 10px; }
.hero__dots button {
  width: 34px; height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.hero__dots button.is-active { background: rgba(255, 255, 255, 0.35); }
.hero__dots button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: dotProgress var(--slide-ms, 6500ms) linear forwards;
}
@keyframes dotProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ============================================================
   FRANJA DESPACHOS
   ============================================================ */
.strip {
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================================
   SERVICIOS (BENTO)
   ============================================================ */
.services { padding: 110px 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 18px;
}
.bento__cell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.bento__cell:hover { transform: translateY(-6px); border-color: rgba(217, 161, 60, 0.45); }

.bento__cell--featured { grid-column: span 2; grid-row: span 2; }
.bento__cell:nth-child(2), .bento__cell:nth-child(3) { grid-column: span 2; }
.bento__cell:nth-child(4), .bento__cell:nth-child(5) { grid-column: span 2; }

.bento__cell img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s var(--ease-out);
}
.bento__cell:hover img { transform: scale(1.06); }
.bento__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.92) 18%, rgba(8, 9, 11, 0.35) 60%, rgba(8, 9, 11, 0.1));
}

.bento__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
}
.bento__body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.bento__body p { color: var(--text-dim); font-size: 0.92rem; max-width: 46ch; }
.bento__cell--featured .bento__body h3 { font-size: 1.6rem; }
.bento__cell--featured .bento__body p { font-size: 1rem; }

/* ============================================================
   FILMACIONES DESTACADO
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  padding: 60px 24px 110px;
}
.feature__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.feature__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature__text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 18px;
}
.feature__text > p { color: var(--text-dim); margin-bottom: 32px; }

.feature__list { display: grid; gap: 22px; margin-bottom: 36px; }
.feature__list li { display: flex; gap: 16px; align-items: flex-start; }
.feature__list svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.feature__list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.feature__list span { color: var(--text-dim); font-size: 0.92rem; }

/* ============================================================
   PROCESO
   ============================================================ */
.process { padding: 100px 0; background: var(--bg-raised); border-block: 1px solid var(--line); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.process__num {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.process__item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process__item p { color: var(--text-dim); font-size: 0.95rem; }

/* ============================================================
   UBICACIÓN
   ============================================================ */
.locations { padding: 110px 0 60px; }
.locations__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.location {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.location:hover { transform: translateY(-4px); border-color: rgba(217, 161, 60, 0.45); }
.location h3 { font-size: 1.3rem; margin-bottom: 18px; color: var(--accent); }
.location ul { display: grid; gap: 10px; }
.location a { color: var(--text-dim); transition: color 0.25s; }
.location a:hover { color: var(--text); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { padding: 60px 0 110px; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact__intro h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.contact__intro p { color: var(--text-dim); margin-bottom: 28px; }
.contact__social { display: flex; gap: 14px; }
.contact__social a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.contact__social a:hover { border-color: var(--accent); transform: translateY(-3px); }

.contact__form {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; }
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__error {
  display: none;
  color: #e0705e;
  font-size: 0.82rem;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #e0705e; }
.field.has-error .field__error { display: block; }

.contact__success {
  color: #7fc98a;
  font-size: 0.92rem;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: var(--bg-raised);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.25s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--text-dim); font-size: 0.85rem; width: 100%; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out) var(--d, 0ms), transform 0.8s var(--ease-out) var(--d, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PÁGINAS INTERIORES
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 70px) 0 56px;
  overflow: hidden;
  background: #000;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 13, 16, 0.96) 8%, rgba(12, 13, 16, 0.55) 55%, rgba(12, 13, 16, 0.25));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 22ch;
  margin-bottom: 14px;
}
.page-hero p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 58ch;
}

.service-detail { padding: 80px 0 40px; }
.service-detail .lead {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 70ch;
  margin-bottom: 12px;
}
.service-detail h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 48px 0 8px;
}
.service-detail .prices-note {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.price {
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.price:hover { transform: translateY(-3px); border-color: rgba(217, 161, 60, 0.45); }
.price > * { position: relative; z-index: 1; }

/* Objeto referencial: ícono grande difuminado a la derecha,
   en el mismo ámbar de la tarjeta, como capa superpuesta */
.price__icon {
  position: absolute;
  z-index: 0;
  right: -26px;
  bottom: -26px;
  width: 158px;
  height: 158px;
  color: var(--accent);
  opacity: 0.13;
  transform: rotate(-8deg);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.price__icon svg { width: 100%; height: 100%; display: block; }
.price:hover .price__icon { opacity: 0.28; transform: rotate(0deg) scale(1.05); }
.price strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
}
.price span { font-size: 0.95rem; }
.price .price__formats {
  color: var(--text-dim);
  font-size: 0.83rem;
  font-style: normal;
  line-height: 1.45;
}
.price small { color: var(--text-dim); font-size: 0.85rem; margin-top: auto; padding-top: 8px; }

.notice {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 70ch;
  margin-bottom: 36px;
}

/* Tarjetas de paquetes (filmaciones) */
.packs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0 36px;
}
.pack {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.pack:hover { transform: translateY(-4px); border-color: rgba(217, 161, 60, 0.45); }

/* Foto de fondo del pack + scrim para legibilidad */
.pack__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s var(--ease-out);
}
.pack:hover .pack__bg { transform: scale(1.05); }
.pack::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.94) 35%, rgba(8, 9, 11, 0.55) 70%, rgba(8, 9, 11, 0.2));
}

.pack h3 { font-size: 1.2rem; margin-bottom: 10px; }
.pack p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 14px; }
.pack .pack__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
}
.pack--featured { border-color: rgba(217, 161, 60, 0.5); }
.pack--featured h3 { font-size: 1.45rem; }

/* Cuerpo del pack como columna para el botón "Ver detalles" */
.pack__body { display: flex; flex-direction: column; align-items: flex-start; }

/* Indicador interactivo en las tarjetas de pack */
.pack[data-modal] { cursor: pointer; }
.pack__expand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.73rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(217, 161, 60, 0.55);
  margin-top: 16px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(217, 161, 60, 0.2);
  border-radius: 20px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.pack[data-modal]:hover .pack__expand,
.pack[data-modal]:focus-visible .pack__expand {
  color: var(--accent);
  border-color: rgba(217, 161, 60, 0.55);
  background: rgba(217, 161, 60, 0.07);
}
.pack[data-modal]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   MODAL — CINTA DE CINE
   ============================================================ */
.film-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.film-modal[hidden] { display: none; }

.film-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fm-fade-in 0.25s ease both;
}
@keyframes fm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Strip: el modal tiene forma de segmento de película */
.film-modal__strip {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 540px;
  max-height: 86vh;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 40px 90px rgba(0,0,0,0.85);
  transform-origin: center center;
  animation: fm-unroll 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.film-modal__strip.is-closing {
  animation: fm-rewind 0.28s cubic-bezier(0.7, 0, 0.84, 0) both;
}
@keyframes fm-unroll {
  from { transform: scaleY(0.04); opacity: 0.3; }
  to   { transform: scaleY(1);    opacity: 1; }
}
@keyframes fm-rewind {
  from { transform: scaleY(1);    opacity: 1; }
  to   { transform: scaleY(0.04); opacity: 0; }
}

/* Franjas de perforaciones laterales */
.film-modal__sprocket {
  width: 30px;
  flex-shrink: 0;
  background-color: #060606;
  background-image: radial-gradient(
    ellipse 10px 14px at 50% 50%,
    rgba(255, 255, 255, 0.07) 99%,
    transparent 100%
  );
  background-size: 30px 34px;
  background-repeat: repeat-y;
  background-position: center 9px;
}

/* Marco central del fotograma */
.film-modal__frame {
  flex: 1;
  background: #0b0b0d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left:  1px solid rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.04);
}

/* Cabecera estilo borde de cinta */
.film-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: #050506;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.film-modal__counter {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  flex: 1;
}
.film-modal__close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.film-modal__close:hover {
  background: rgba(217, 161, 60, 0.12);
  border-color: rgba(217, 161, 60, 0.45);
  color: var(--accent);
}

/* Contenido scrollable */
.film-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 161, 60, 0.25) transparent;
}
.film-modal__body::-webkit-scrollbar { width: 4px; }
.film-modal__body::-webkit-scrollbar-thumb {
  background: rgba(217,161,60,0.25);
  border-radius: 2px;
}

.film-modal__service-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}
.film-modal__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 22px;
}
.film-modal__divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(217,161,60,0.4), transparent);
  margin-bottom: 22px;
}
.film-modal__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.film-modal__list li {
  display: flex;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.film-modal__list li::before {
  content: "›";
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.film-modal__note {
  font-size: 0.84rem;
  color: rgba(217, 161, 60, 0.6);
  font-style: italic;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Pie del fotograma */
.film-modal__footer {
  padding: 8px 16px;
  background: #050506;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.film-modal__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

/* Bloquear scroll cuando el modal está abierto */
body.modal-open { overflow: hidden; }

/* Mobile: panel emerge desde abajo */
@media (max-width: 540px) {
  .film-modal { padding: 0; align-items: flex-end; }
  .film-modal__strip {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 18px 18px 0 0;
  }
  .film-modal__sprocket { width: 22px; }
  .film-modal__body { padding: 22px 20px 28px; }
}

/* Otros servicios */
.more { padding: 30px 0 100px; }
.more h2 { font-size: 1.4rem; margin-bottom: 24px; }
.more__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.more__grid a {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, color 0.3s;
}
.more__grid a:hover { transform: translateY(-3px); border-color: rgba(217, 161, 60, 0.45); color: var(--accent); }

/* Banda CTA (inicio) */
.cta-band {
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 80px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 20ch; }
.cta-band p { color: var(--text-dim); margin-top: 10px; max-width: 48ch; }

/* Mapas (ubicación) */
.location .map {
  margin-top: 22px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
}
.location .map iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.35) contrast(0.92);
}
.location address { font-style: normal; color: var(--text-dim); margin-bottom: 14px; }
.location .map + .link-arrow { margin-top: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 861px) {
  .nav__submenu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    min-width: 300px;
    background: rgba(19, 20, 25, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  }
  .nav__item:hover .nav__submenu,
  .nav__item:focus-within .nav__submenu,
  .nav__item.is-open .nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  /* Puente invisible para que el hover no se corte entre el botón y el panel */
  .nav__item::before {
    content: "";
    position: absolute;
    top: 100%; left: -20px; right: -20px;
    height: 20px;
  }
}
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .bento__cell--featured,
  .bento__cell:nth-child(n) { grid-column: span 2; grid-row: span 1; }
  .bento__cell--featured { grid-row: span 2; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 14, 0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links { overflow-y: auto; padding: 90px 24px 40px; }
  .nav__links > a:not(.btn) { font-size: 1.35rem; }
  .nav__burger { display: flex; }

  /* Submenú móvil: acordeón */
  .nav__item { text-align: center; }
  .nav__sub-toggle { font-size: 1.35rem; }
  .nav__sub-toggle::after { display: none; }
  .nav__submenu {
    display: grid;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), margin 0.4s var(--ease-out);
  }
  .nav__item.is-open .nav__submenu { max-height: 400px; margin-top: 16px; }
  .nav__submenu a { font-size: 1rem; white-space: normal; }

  .feature { grid-template-columns: 1fr; gap: 40px; padding-bottom: 80px; }
  .feature__media { aspect-ratio: 16 / 10; }

  .process__grid { grid-template-columns: 1fr; gap: 32px; }
  .locations__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }

  .services, .locations { padding: 80px 0 60px; }
  .hero__controls { bottom: 24px; }
  .packs { grid-template-columns: 1fr; }
  .page-hero { min-height: 340px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .bento { grid-auto-rows: 200px; gap: 14px; }
  .contact__form { padding: 24px; }
  .hero-slide__content { padding-bottom: 140px; }
}

/* ============================================================
   FORMULARIO — honeypot y mensaje de error
   ============================================================ */
/* Campo trampa: invisible para humanos, visible para bots */
.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}
.contact__error {
  color: #e05555;
  font-size: 0.92rem;
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(224, 85, 85, 0.08);
  border-left: 3px solid #e05555;
  border-radius: 0 8px 8px 0;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  color: #fff;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  color: #fff;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float::before {
  content: "Escríbenos";
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #25D366;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}
.whatsapp-float:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   MOVIMIENTO REDUCIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide.is-active .hero-slide__img img { animation: none; }
  .hero-slide__content > * { opacity: 1; transform: none; }
  .hero-slide.is-active .hero-slide__content > * { animation: none; }
  .shutter__blade { transition: none; }
  .hero__flash.is-firing { animation: none; }
  .hero__dots button.is-active::after { animation: none; transform: scaleX(1); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bento__cell, .location, .hero__arrow { transition: none; }
}
