:root {
  --black: #0f0b08;
  --black-2: #17100c;
  --brown: #2c1810;
  --paper: #efe2d1;
  --paper-2: #dfccb7;
  --text: #f7ecde;
  --muted: #c9ad91;
  --ink: #1b120d;
  --amber: #d9903d;
  --amber-2: #f2bc70;
  --rust: #74341f;
  --line: rgba(255,255,255,.13);
  --line-dark: rgba(27,18,13,.17);
  --shadow: 0 24px 80px rgba(0,0,0,.32);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 40px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15,11,8,.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 208px;
  max-width: 50vw;
}

.brand img {
  width: 100%;
  height: auto;
  max-height: 45px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.site-nav a {
  padding: .65rem .82rem;
  border-radius: 999px;
  color: rgba(246,236,223,.82);
  font-weight: 780;
  font-size: .92rem;
}

.site-nav a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.nav-cta {
  background: var(--amber);
  color: #170d08 !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--text);
  background: var(--black);
  padding: 150px 0 84px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,11,8,.96) 0%, rgba(15,11,8,.83) 39%, rgba(15,11,8,.50) 72%, rgba(15,11,8,.86) 100%),
    linear-gradient(0deg, rgba(15,11,8,.90), transparent 45%),
    url("../uploads/2023/11/Narrativa-Producion-header.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
}

.hero-layer {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.035) 25%, transparent 25%);
  background-size: 84px 84px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .42fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--amber-2);
  font-weight: 950;
  letter-spacing: .18em;
  font-size: .78rem;
}

.eyebrow.dark { color: #84401f; }

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: .94;
  letter-spacing: -.06em;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.3rem, 8vw, 7rem);
  margin-bottom: 1.4rem;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.18;
}

.hero-copy p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(246,236,223,.84);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.9rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
}

.button.primary {
  color: #160d08;
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  box-shadow: 0 18px 48px rgba(217,144,61,.28);
}

.button.ghost {
  color: var(--text);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}

.button.ghost.dark {
  color: var(--ink);
  border-color: var(--line-dark);
  background: rgba(255,255,255,.35);
}

.hero-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15,11,8,.62);
  backdrop-filter: blur(16px);
}

.hero-card img {
  width: 240px;
  max-width: 100%;
  margin-bottom: 1rem;
}

.hero-card p {
  color: rgba(246,236,223,.76);
  margin-bottom: 0;
}

.section {
  padding: 98px 0;
}

.two-col,
.timeline-grid {
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.about {
  background: var(--paper);
}

.legacy-content {
  font-size: 1.03rem;
}

.legacy-content p {
  margin-bottom: 1rem;
}

.legacy-content a {
  color: #8f401e;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legacy-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 44px rgba(49,31,18,.14);
}

.legacy-content blockquote {
  margin: 1.3rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--amber);
  background: rgba(255,255,255,.34);
}

.legacy-list {
  display: grid;
  gap: .4rem;
  padding-left: 1.2rem;
}

.fields,
.radio {
  color: var(--text);
  background:
    radial-gradient(circle at 86% 10%, rgba(217,144,61,.18), transparent 30%),
    linear-gradient(135deg, var(--black), var(--brown));
}

.section-heading {
  max-width: 850px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: #6c5746;
}

.fields .section-heading p:not(.eyebrow),
.radio .legacy-content {
  color: rgba(246,236,223,.80);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.10);
}

.field-grid article {
  padding: 1.35rem;
  min-height: 270px;
  background: rgba(255,255,255,.045);
  border-right: 1px solid var(--line);
}

.field-grid article:last-child {
  border-right: 0;
}

.field-grid span {
  display: inline-block;
  margin-bottom: 2.2rem;
  color: var(--amber-2);
  font-weight: 950;
}

.field-grid p {
  color: rgba(246,236,223,.72);
}

.archive {
  background: #eadac7;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.3rem;
}

.filters button {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: .65rem .9rem;
  color: var(--ink);
  background: rgba(255,255,255,.36);
  font-weight: 850;
  cursor: pointer;
}

.filters button.active {
  border-color: transparent;
  background: var(--black);
  color: var(--text);
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.production-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(49,31,18,.12);
}

.card-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--black);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.production-card:hover .card-image img {
  transform: scale(1.035);
}

.card-body {
  padding: 1.2rem;
}

.card-body span {
  display: inline-flex;
  margin-bottom: .65rem;
  color: #88401e;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .09em;
}

.card-body p {
  color: #5c4d40;
}

details {
  margin-top: .9rem;
}

summary {
  cursor: pointer;
  font-weight: 950;
  color: #88401e;
}

details .legacy-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
  font-size: .96rem;
}

.timeline {
  background: var(--paper);
}

.contact {
  background: var(--paper-2);
}

.contact-card {
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(49,31,18,.12);
}

.contact-card p {
  max-width: 760px;
}

.site-footer {
  padding: 38px 0;
  color: var(--text);
  background: var(--black);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
}

.footer-grid strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }

  .site-header { border-radius: 26px; }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15,11,8,.96);
  }

  .site-nav.is-open { display: flex; }

  .hero-grid,
  .two-col,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .production-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }

  .site-header {
    top: 12px;
    width: calc(100% - 28px);
  }

  .brand { width: 170px; }

  .hero {
    min-height: auto;
    padding: 126px 0 68px;
  }

  h1 { font-size: clamp(3rem, 16vw, 4.4rem); }

  h2 { font-size: clamp(2.1rem, 11vw, 3.1rem); }

  .field-grid,
  .production-grid {
    grid-template-columns: 1fr;
  }

  .field-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
  }
}
