/* ==========================================================================
   En el corazón de la bestia (2026) — hoja de estilos
   Tema: cine, bosque y montaña. Verde profundo + crema + ámbar.
   ========================================================================== */

:root {
  /* Colores */
  --bg:            #0b100e;
  --bg-2:          #0f1614;
  --bg-3:          #131d19;
  --surface:       #16211c;
  --surface-2:     #1b2a24;
  --line:          rgba(232, 238, 226, 0.10);
  --line-strong:   rgba(232, 238, 226, 0.20);

  --cream:         #f2efe6;
  --text:          #d9ded4;
  --muted:         #93a199;
  --faint:         #6d7c74;

  --green:         #3f8f57;
  --green-bright:  #7fc98b;
  --amber:         #d9a441;
  --amber-soft:    #e9c87f;

  /* Tipografía */
  --font-display: "Bebas Neue", "Oswald", "Impact", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Métricas */
  --wrap: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.38);

  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);
}

/* ---------------------------------------------------------------- Base --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 12% -6%, rgba(63, 143, 87, 0.22), transparent 62%),
    radial-gradient(900px 560px at 92% 8%, rgba(217, 164, 65, 0.10), transparent 60%),
    linear-gradient(180deg, #0b100e 0%, #0c1310 45%, #0b100e 100%);
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--cream);
  line-height: 1.1;
  font-weight: 700;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--cream); font-weight: 600; }
em { color: var(--amber-soft); font-style: italic; }

::selection { background: rgba(127, 201, 139, 0.30); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #04120a;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- Topbar --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 14, 12, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--green), #1d4a31);
  color: #eaf7ec;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand__text {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand__text strong { color: var(--cream); font-weight: 600; }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }

.nav a {
  position: relative;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  border-radius: 8px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav a:hover { color: var(--cream); background: rgba(255, 255, 255, 0.05); }
.nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 1px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

/* ----------------------------------------------------------------- Hero --- */

.hero { position: relative; padding: 76px 24px 90px; overflow: hidden; }

.hero__glow {
  position: absolute;
  top: -180px; left: 50%;
  width: 900px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(63, 143, 87, 0.30), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 62px;
  align-items: center;
}

.hero__poster { margin: 0; }

.hero__poster img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.07);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
  transition: transform .7s var(--ease);
}
.hero__poster:hover img { transform: perspective(1400px) rotateY(0deg) rotateX(0deg) scale(1.015); }

.hero__poster figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero__title-accent {
  display: inline-block;
  color: transparent;
  background: linear-gradient(100deg, var(--green-bright) 0%, #cfe6c8 42%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__original {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 26px;
}
.hero__original span { color: var(--green); padding: 0 6px; }

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.05em;
  color: var(--cream);
  padding-left: 18px;
  border-left: 3px solid var(--amber);
  margin-bottom: 26px;
  line-height: 1.25;
}

.hero__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 28px;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 38px; }

.chip {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--cream);
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.chip:hover {
  border-color: var(--green);
  background: rgba(63, 143, 87, 0.16);
  transform: translateY(-2px);
}

/* Scores del hero */
.scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.score {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.score:hover { transform: translateY(-4px); border-color: rgba(127, 201, 139, 0.45); }

.score__value {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--green-bright);
}
.score__value i { font-size: 18px; font-style: normal; color: var(--amber); }

.score__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
  margin-top: 6px;
}
.score__meta { font-size: 12.5px; color: var(--faint); }

/* -------------------------------------------------------------- Sections --- */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 92px 24px;
}
.section--alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.028) 12%, rgba(255, 255, 255, 0.028) 88%, transparent);
  border-block: 1px solid var(--line);
}
.section--alt > * { max-width: var(--wrap); margin-inline: auto; }

.section__head { margin-bottom: 46px; max-width: 720px; }

.section__kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------- Ficha --- */

.ficha {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ficha__group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 20px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ficha__group:hover {
  border-color: rgba(127, 201, 139, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.ficha__group h3 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-bright);
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ficha dl { margin: 0; }

.ficha dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(232, 238, 226, 0.08);
}
.ficha dl > div:last-child { border-bottom: 0; padding-bottom: 0; }

.ficha dt {
  font-size: 13.5px;
  color: var(--faint);
  font-weight: 400;
}
.ficha dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}

/* -------------------------------------------------------------- Sinopsis --- */

.sinopsis {
  max-width: 780px;
  font-size: 18.5px;
  color: var(--text);
}
.sinopsis p { margin-bottom: 1.25em; }
.sinopsis__final {
  font-size: 21px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--cream) !important;
  border-left: 3px solid var(--green);
  padding-left: 20px;
  margin-top: 1.6em;
}

/* --------------------------------------------------------------- Timeline --- */

.timeline { position: relative; max-width: 900px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--green), rgba(63, 143, 87, 0.05));
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding-bottom: 34px;
}

.timeline__num {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid rgba(127, 201, 139, 0.40);
  color: var(--green-bright);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.timeline__item:hover .timeline__num {
  background: var(--green);
  color: #04120a;
  transform: scale(1.06);
}

.timeline__body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.timeline__item:hover .timeline__body {
  border-color: rgba(127, 201, 139, 0.30);
  transform: translateX(4px);
}

.timeline__body h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.timeline__body p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------------------------------------------------------------- Crítica --- */

.quote {
  max-width: 900px;
  margin: 0 0 46px;
  padding: 34px 38px;
  background: linear-gradient(140deg, rgba(217, 164, 65, 0.10), rgba(63, 143, 87, 0.07));
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-lg);
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--cream);
  letter-spacing: 0.015em;
  margin-bottom: 14px;
}
.quote cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.ratings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rating {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.rating:hover { transform: translateY(-4px); border-color: rgba(127, 201, 139, 0.35); }

.rating__num {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--green-bright);
}
.rating__site {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
}
.rating__bar {
  display: block;
  height: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 4px 0 2px;
}
.rating__bar i {
  display: block;
  height: 100%;
  width: var(--v, 0%);
  border-radius: 100px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  animation: grow 1.4s var(--ease) both;
}
.rating__note { font-size: 13px; color: var(--faint); }

@keyframes grow { from { width: 0; } to { width: var(--v, 0%); } }

/* --------------------------------------------------------------- Taquilla --- */

.boxoffice {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 26px;
  align-items: stretch;
}

.boxoffice__total {
  background: linear-gradient(150deg, var(--green) 0%, #1c4c32 100%);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.boxoffice__label {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}
.boxoffice__value {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 82px);
  line-height: 0.95;
  color: #fff;
}
.boxoffice__value i { font-size: 32px; font-style: normal; color: var(--amber-soft); }
.boxoffice__note { margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }

.boxoffice__list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.boxoffice__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(232, 238, 226, 0.09);
}
.boxoffice__list li:last-child { border-bottom: 0; }
.boxoffice__list span { color: var(--muted); font-size: 15.5px; }
.boxoffice__list strong {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
}

.note {
  margin-top: 26px;
  font-size: 15.5px;
  color: var(--faint);
  max-width: 900px;
}

/* --------------------------------------------------------------- Galería --- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.gallery__item { margin: 0; }

.gallery__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.gallery__item:hover img {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(127, 201, 139, 0.5);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.55);
}
.gallery__item figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}

/* ---------------------------------------------------------------- Cards --- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green-bright), transparent);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: rgba(127, 201, 139, 0.30); }
.card:hover::before { opacity: 1; }

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* --------------------------------------------------------------- Closing --- */

.closing {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(63, 143, 87, 0.22), transparent 70%);
  border-top: 1px solid var(--line);
}
.closing__inner { max-width: 820px; margin: 0 auto; }
.closing__eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 18px;
}
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.14;
  margin-bottom: 18px;
}
.closing__text { color: var(--muted); font-size: 17px; }

/* ---------------------------------------------------------------- Footer --- */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 42px 24px 56px;
}
.footer__inner { max-width: var(--wrap); margin: 0 auto; text-align: center; }
.footer__brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer__brand span { color: var(--green); }
.footer__note, .footer__credits {
  font-size: 13px;
  color: var(--faint);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
}
.footer__credits { margin-top: 6px; }

/* --------------------------------------------------------------- Reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Sin JS el contenido nunca queda oculto */
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ------------------------------------------------------------ Responsive --- */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__poster { max-width: 340px; }
  .hero__poster img { transform: none; }
  .boxoffice { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .ficha, .cards, .ratings { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 18px; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 9px; font-size: 13px; }
  .hero { padding: 46px 20px 66px; }
  .section { padding: 62px 20px; }
  .ficha dl > div { grid-template-columns: 1fr; gap: 2px; }
  .timeline::before { left: 19px; }
  .timeline__item { grid-template-columns: 40px 1fr; gap: 14px; }
  .timeline__num { width: 40px; height: 40px; font-size: 17px; }
  .quote { padding: 26px 22px; }
  .boxoffice__list { padding: 8px 18px; }
  .boxoffice__list li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__poster { max-width: 100%; }
}
