/* ============================================================
   Propuesta Las Tipas · ACUC Digital Group
   Paleta cerrada. Acento único #FF7A2F. Zodiak + Switzer.
   ============================================================ */

:root {
  --c-bg: #0B0B0D;
  --c-surface: #141519;
  --c-line: #23252B;
  --c-muted: #8A8B92;
  --c-text: #EDEAE4;
  --c-accent: #FF7A2F;
  --c-accent-hover: #FF9152;

  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --space-2xs: 0.5rem;  --space-xs: 0.75rem;  --space-s: 1.25rem;
  --space-m: 2rem;      --space-l: 3.5rem;    --space-xl: 6rem;
  --space-2xl: 10rem;

  --r-btn: 6px;
  --r-card: 14px;
  --r-block: 22px;

  --t-fast: 0.2s;
  --ease-firma: cubic-bezier(0.2, 0, 0, 1);
  --ease-sec: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--c-accent); color: var(--c-bg); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 5vw, 6rem);
}

section { padding-block: clamp(6rem, 12vw, 9rem); }
.sala   { padding-block: clamp(9rem, 18vw, 14rem); } /* protagónica: respira un escalón más */

/* ---------- Tipografía ---------- */
.h-hero { font-family: var(--font-display); font-size: clamp(2.75rem, 7.5vw, 7rem); line-height: 0.95; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.h-sec  { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.05; letter-spacing: -0.015em; font-weight: 700; margin: 0; }
.h-sub  { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.2; font-weight: 700; margin: 0; }
.num-xl { font-family: var(--font-body); font-size: clamp(4rem, 13vw, 11rem); line-height: 0.85; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin: 0; }
.body-lg { font-family: var(--font-body); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.55; font-weight: 400; margin: 0; }
.body   { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; font-weight: 400; margin: 0; }
.label  { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--c-muted); margin: 0; }

.h-hero em, .h-sec em, .h-sub em { font-style: italic; font-weight: 700; }

/* párrafos de lectura no cruzan toda la pantalla */
.body, .body-lg { max-width: 34em; }

/* ---------- Botones / estados (los cuatro) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  border-radius: var(--r-btn);
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-firma),
              color var(--t-fast) var(--ease-firma),
              transform var(--t-fast) var(--ease-firma),
              opacity var(--t-fast) var(--ease-firma);
}
.btn--primary { background: var(--c-accent); color: var(--c-bg); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--c-accent-hover); }
}

/* ============================================================
   Barra de progreso
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 90;
  pointer-events: none;
}
.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ============================================================
   Pochoclos: capa fija ambiental sobre toda la página
   ============================================================ */
.popcorn { position: fixed; inset: 0; z-index: 85; pointer-events: none; opacity: 0; }
.kernel { position: absolute; top: 0; left: 0; opacity: 0; will-change: transform; }

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.preloader__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--c-bg);
}
.preloader__panel--top { top: 0; }
.preloader__panel--bottom { bottom: 0; }
.preloader__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
}
.preloader__count {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(5rem, 18vw, 14rem);
  line-height: 1;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   1. Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 0;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  left: 0; top: -10%;
  width: 100%; height: 120%;
  z-index: 0;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11,11,13,.45), rgba(11,11,13,.92));
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3.5rem, 8vh, 7rem);
}
.hero__title { max-width: 15em; }
.hero__bajada { margin-top: var(--space-m); max-width: 32em; color: rgba(237,234,228,.85); }
.hero__cta { margin-top: var(--space-l); }
.hero__doc { margin-top: var(--space-m); }

/* ============================================================
   2. Lo que pasa hoy
   ============================================================ */
.problema__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
}
.problema__bajada { margin-top: var(--space-s); color: var(--c-muted); }
.problema__aside .h-sec { margin-top: var(--space-s); }
.problema__list { list-style: none; margin: 0; padding: 0; }
.problema__item {
  position: relative;
  padding: var(--space-l) 0;
  border-top: 1px solid var(--c-line);
}
.problema__item:last-child { border-bottom: 1px solid var(--c-line); }
.problema__num {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  color: var(--c-line);
  margin-bottom: var(--space-s);
}
.problema__item .h-sub { margin-bottom: var(--space-2xs); }
.problema__item .body { color: var(--c-muted); }

@media (min-width: 768px) {
  .problema__grid { grid-template-columns: 4fr 7fr; gap: clamp(3rem, 6vw, 6rem); }
  .problema__aside { position: sticky; top: 12vh; align-self: start; }
}

/* ============================================================
   3. Mapa de butacas
   ============================================================ */
.sala__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: center;
}
.sala__svg { width: 100%; height: auto; display: block; }
.sala__screen { fill: var(--c-line); }
.sala__screen-label {
  fill: var(--c-muted);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 3px;
  font-weight: 500;
}
.seat {
  fill: var(--c-line);
  transition: fill var(--t-fast) var(--ease-sec);
}
.seat--on { fill: var(--c-accent); }

.sala__meta { text-align: left; }
.sala__pct { color: var(--c-accent); display: flex; align-items: flex-start; gap: 0.1em; }
.sala__pct-sign { font-size: 0.4em; line-height: 1; margin-top: 0.35em; font-weight: 600; }
.sala__meta .label { margin-top: var(--space-xs); }

.sala__economics {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  margin-top: clamp(4rem, 8vw, 6rem);
}
.cifra {
  padding: var(--space-m);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-surface);
}
.cifra__pct {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1;
  margin: 0 0 var(--space-2xs);
  color: var(--c-text);
}
.cifra__money {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  margin: var(--space-s) 0 var(--space-2xs);
}
.cifra--destacada { border-color: var(--c-accent); background: rgba(255,122,47,.07); }
.cifra--destacada .cifra__pct,
.cifra--destacada .cifra__money { color: var(--c-accent); }

.sala__cierre { margin-top: clamp(3rem, 6vw, 4.5rem); }
.sala__cierre .h-sub { max-width: 26em; }
.sala__nota { margin-top: var(--space-m); max-width: 40em; }

@media (min-width: 768px) {
  .sala__grid { grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
  .sala__economics { grid-template-columns: repeat(3, 1fr); gap: var(--space-m); align-items: stretch; }
  .cifra--destacada { transform: translateY(-14px); }
}

/* ============================================================
   4. Los cuatro pilares
   ============================================================ */
.pilares__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.pilares__head .h-sec { margin: var(--space-s) 0; }
.pilares__stack { display: flex; flex-direction: column; gap: var(--space-m); }

.pilar-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-block);
  padding: clamp(1.75rem, 4vw, 3.25rem);
}
.pilar-card__n {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--c-line);
}
.pilar-card .h-sub { margin-bottom: var(--space-s); padding-right: 3rem; }
.pilar-card__que { color: var(--c-text); }
.pilar-card__entrega { margin: var(--space-m) 0; }
.pilar-card__entrega .label { margin-bottom: var(--space-2xs); }
.pilar-card__entrega .body { color: var(--c-muted); }
.pilar-card__porque { color: var(--c-muted); }
.pilar-card__nota { margin-top: var(--space-s); color: var(--c-muted); font-size: 0.9375rem; }

@media (min-width: 768px) {
  .pilares__stack { display: block; }
  .pilar-card {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    will-change: transform;
  }
  .pilar-card .body { max-width: 44em; }
}

/* ============================================================
   5. Salas vacías (tira horizontal)
   ============================================================ */
.exp { overflow: hidden; }
.exp__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.exp__head .h-sec { margin-bottom: var(--space-s); }

.exp__viewport { width: 100%; }
.exp__track {
  display: flex;
  gap: var(--space-m);
  padding-inline: clamp(1.5rem, 5vw, 6rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.exp__track::-webkit-scrollbar { display: none; }
.exp__item {
  flex: 0 0 78%;
  max-width: 340px;
  scroll-snap-align: center;
}
.exp__media {
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: var(--space-s);
  background: var(--c-surface);
}
.exp__media img { width: 100%; height: 100%; object-fit: cover; }
/* alturas levemente distintas para romper la grilla */
.exp__item--a .exp__media { aspect-ratio: 4 / 5.4; }
.exp__item--b .exp__media { aspect-ratio: 4 / 5; }
.exp__item--c .exp__media { aspect-ratio: 4 / 5.8; }
.exp__item--d .exp__media { aspect-ratio: 4 / 5.2; }
.exp__item .h-sub { margin-bottom: var(--space-2xs); }
.exp__item .body { color: var(--c-muted); }

@media (min-width: 768px) {
  .exp__viewport {
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 5vw, 6rem);
  }
  .exp__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: clamp(1rem, 2vw, 2rem);
    overflow: visible;
    padding-inline: 0;
    width: auto;
    scroll-snap-type: none;
  }
  .exp__item { max-width: none; }
}

/* ============================================================
   6. Los primeros noventa días
   ============================================================ */
.plan__title { margin-bottom: clamp(3rem, 6vw, 5rem); }
.plan__timeline { position: relative; padding-left: 2.5rem; }
.plan__line {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--c-line);
}
.plan__line-fill {
  position: absolute;
  inset: 0;
  background: var(--c-accent);
  transform: scaleY(0);
  transform-origin: top center;
}
.plan__hito { position: relative; padding: 0 0 clamp(3rem, 7vw, 5rem); }
.plan__hito:last-child { padding-bottom: 0; }
.plan__hito::before {
  content: "";
  position: absolute;
  left: calc(-2.5rem - 5px);
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--c-accent);
}
.plan__hito .label { margin-bottom: var(--space-2xs); }
.plan__hito .h-sub { margin-bottom: var(--space-2xs); }
.plan__hito .body { color: var(--c-muted); }

@media (min-width: 768px) {
  .plan__timeline { padding-left: 0; }
  .plan__line { left: 50%; transform: translateX(-50%); }
  .plan__hito { width: 46%; }
  .plan__hito--l { margin-right: auto; text-align: right; }
  .plan__hito--r { margin-left: auto; }
  .plan__hito--l::before { left: auto; right: calc(-4% - 6px); }
  .plan__hito--r::before { left: calc(-4% - 6px); }
  .plan__hito .body { display: inline-block; }
}

/* ============================================================
   7. Selector (conversión)
   ============================================================ */
.selector__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.selector__title { margin: var(--space-s) 0; }
.selector__bajada { margin: 0 auto var(--space-l); }
.selector__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  text-align: left;
}
.opcion {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-sec),
              background-color var(--t-fast) var(--ease-sec);
}
.opcion__dot {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  transition: background-color var(--t-fast) var(--ease-sec),
              border-color var(--t-fast) var(--ease-sec);
}
.opcion:active { transform: scale(0.99); }
.opcion:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .opcion:hover { border-color: var(--c-muted); }
}
.opcion[aria-pressed="true"] {
  border-color: var(--c-accent);
  background: rgba(255,122,47,.07);
}
.opcion[aria-pressed="true"] .opcion__dot {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.selector__contador { margin: var(--space-l) 0 var(--space-s); }

.btn--wa { width: 100%; font-size: 1.0625rem; padding: 1.15rem 1.6rem; }
.btn--wa[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.selector__dudas {
  display: inline-block;
  margin-top: var(--space-m);
  color: var(--c-muted);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease-sec);
}
.selector__dudas:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) {
  .selector__dudas:hover { color: var(--c-text); }
}

/* ============================================================
   8. Footer
   ============================================================ */
.footer { border-top: 1px solid var(--c-line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: flex-start;
}
.footer__brand { font-family: var(--font-body); font-weight: 500; text-decoration: none; font-size: 1.0625rem; }
.footer__brand strong { color: var(--c-accent); font-weight: 700; }
.footer__wa { color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; font-size: 0.9375rem; }
.footer__brand:focus-visible, .footer__wa:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) {
  .footer__wa:hover { color: var(--c-text); }
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================================
   Preparación de entradas (evita flash antes de que corra GSAP)
   Solo se ocultan si hay JS y no hay reduced-motion.
   ============================================================ */
.js:not(.reduce) .hero__title,
.js:not(.reduce) .hero__bajada,
.js:not(.reduce) .hero__cta,
.js:not(.reduce) .hero__doc { visibility: hidden; }

/* ============================================================
   Reduced motion: todo visible y quieto
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  .progress { display: none; }
  .plan__line-fill { transform: scaleY(1); }
  * { scroll-behavior: auto !important; }
}
