/* ==========================================================================
   INICIO (index) - Cine House Costa Rica
   Lo compartido (reveal, hero, botones, tarjetas, cifras, teaser de locations,
   marquee) vive en site.css.
   ========================================================================== */

/* ---------- Hero slider ---------- */
.hm-hero { position: relative; overflow: hidden; background: #09090b; height: calc(100vh - 8rem); height: calc(100svh - 8rem); min-height: 34rem; }
.hm-slide { position: absolute; inset: 0; }
.hm-slide__img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: ab-kenburns 10s ease-out both; }
.hm-slide__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.4) 55%, rgba(0,0,0,.1)), linear-gradient(to top, #09090b, transparent 38%);
}
.hm-slide__text { position: absolute; left: 0; right: 0; top: 0; bottom: 0; max-width: 80rem; margin: 0 auto; padding: 0 48px; display: flex; flex-direction: column; justify-content: center; }
.hm-slide__text > * { animation: ab-rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--k, 0) * 140ms + 150ms); }
.hm-title { margin: 1.1rem 0 0; max-width: 13ch; font-size: clamp(2.6rem, 7.5vw, 6.4rem); font-weight: 900; line-height: .96; letter-spacing: .03em; text-transform: uppercase; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.hm-text { margin: 1.4rem 0 0; max-width: 30rem; font-size: 15px; font-weight: 300; line-height: 1.7; color: #d4d4d8; }
.hm-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 14px; }

.hm-arrow { position: absolute; top: 50%; z-index: 6; width: 46px; height: 46px; margin-top: -23px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(9,9,11,.55); color: #fff; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.hm-arrow:hover { background: var(--ab-gold); color: #18181b; border-color: var(--ab-gold); }
.hm-arrow svg { width: 18px; height: 18px; }
.hm-arrow--prev { left: 18px; }
.hm-arrow--next { right: 18px; }

.hm-dots { position: absolute; left: 48px; bottom: 38px; z-index: 6; display: flex; gap: 10px; }
.hm-dot { position: relative; width: 46px; height: 3px; padding: 0; border: 0; background: #3f3f46; overflow: hidden; cursor: pointer; }
.hm-dot span { position: absolute; inset: 0; background: var(--ab-gold); transform: scaleX(0); transform-origin: left; }
.hm-dot.is-on span { animation: ab-fill 6s linear forwards; }
.hm-count { position: absolute; right: 48px; bottom: 28px; z-index: 6; font-size: 3.4rem; }

/* ---------- Pilares ---------- */
.hm-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ab-line); border: 1px solid var(--ab-line); }
.hm-pillar { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: #000; color: #fff; text-decoration: none; }
.hm-pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.hm-pillar:hover img { transform: scale(1.08); }
.hm-pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.94), rgba(0,0,0,.2) 62%); }
.hm-pillar__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; }
.hm-pillar__num { font-size: 3rem; }
.hm-pillar__title { display: block; margin-top: 6px; font-size: 1.25rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease; }
.hm-pillar:hover .hm-pillar__title { color: var(--ab-gold); }
.hm-pillar__text { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.6; font-weight: 300; color: #d4d4d8; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .35s ease; }
.hm-pillar:hover .hm-pillar__text, .hm-pillar:focus-visible .hm-pillar__text { max-height: 6rem; opacity: 1; }
.hm-pillar__go { display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ab-gold); }

/* ---------- Paquetes de camión ---------- */
.hm-pack { background: #0a0a0c; border-top: 1px solid var(--ab-line); border-bottom: 1px solid var(--ab-line); overflow: hidden; }
.hm-pack__grid { max-width: 80rem; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; align-items: stretch; }
.hm-pack__tabs { padding: 4rem 24px; display: flex; flex-direction: column; justify-content: center; }
.hm-pack__tab { display: flex; align-items: center; gap: 18px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--ab-line); background: none; text-align: left; color: #71717a; cursor: pointer; transition: color .25s ease; }
.hm-pack__tab .ab-outline { min-width: 3.6rem; font-size: 2.5rem; transition: -webkit-text-stroke-color .25s ease; }
.hm-pack__tab strong { font-size: 1.1rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hm-pack__tab:hover { color: #d4d4d8; }
.hm-pack__tab.is-on { color: #fff; }
.hm-pack__tab.is-on .ab-outline { -webkit-text-stroke-color: var(--ab-gold); }
.hm-pack__desc { position: relative; margin-top: 1.8rem; min-height: 8.5rem; }
.hm-pack__desc > div { position: absolute; left: 0; right: 0; top: 0; }
.hm-pack__desc p { margin: 0 0 1.2rem; font-size: 14px; line-height: 1.8; font-weight: 300; color: #a1a1aa; }
.hm-pack__media { position: relative; min-height: 460px; background: #111; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.hm-pack__media > div { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hm-pack__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.7), transparent 40%); pointer-events: none; }

/* ---------- Proyectos destacados (marquee de pósters) ---------- */
.hm-marquee { position: relative; overflow: hidden; padding: 6px 0; }
.hm-marquee::before, .hm-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.hm-marquee::before { left: 0; background: linear-gradient(90deg, #09090b, transparent); }
.hm-marquee::after { right: 0; background: linear-gradient(270deg, #09090b, transparent); }
.hm-marquee__track { display: flex; gap: 18px; width: max-content; animation: ab-marquee 70s linear infinite; }
.hm-marquee:hover .hm-marquee__track { animation-play-state: paused; }
.hm-poster { position: relative; flex: none; width: clamp(170px, 18vw, 250px); aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--ab-line); background: #111; }
.hm-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.hm-poster:hover img { transform: scale(1.07); }
.hm-poster__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(to top, rgba(0,0,0,.9), transparent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s ease; }
.hm-poster:hover .hm-poster__title { opacity: 1; }
.hm-poster--text { display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #52525b; }

/* ---------- Contacto ---------- */
.hm-contact { position: relative; background-size: cover; background-position: center; }
.hm-contact__card { background: rgba(9, 9, 11, .94); border: 1px solid var(--ab-line); padding: 2.5rem; box-shadow: 0 30px 80px rgba(0,0,0,.55); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hm-pillars { grid-template-columns: repeat(2, 1fr); }
  .hm-pack__grid { grid-template-columns: 1fr; }
  .hm-pack__media { min-height: 300px; clip-path: none; order: -1; }
  .hm-pack__tabs { padding: 2.5rem 24px 3.5rem; }
}
@media (max-width: 640px) {
  .hm-slide__text { padding: 0 24px; }
  .hm-dots { left: 24px; bottom: 26px; }
  .hm-count { right: 24px; font-size: 2.4rem; bottom: 18px; }
  .hm-arrow { display: none; }
  .hm-pillars { grid-template-columns: 1fr; }
  .hm-pillar { aspect-ratio: 16 / 11; }
  .hm-pillar__text { max-height: 6rem; opacity: 1; }
  .hm-contact__card { padding: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-slide__img, .hm-slide__text > *, .hm-marquee__track, .hm-dot.is-on span { animation: none !important; }
  .hm-dot.is-on span { transform: scaleX(1); }
}
