/* ═══════════════════════════════════════════════════════════════
   THE DIGITAL PLAYBILL — Design System CSS
   Inspired by mid-century playbills & prestige editorial layouts
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Design Tokens) ─── */
:root {
  /* Primary */
  --primary: #9D3E0E;
  --primary-container: #BE5526;
  --on-primary: #ffffff;
  --on-primary-container: #fffbff;
  --primary-fixed: #ffdbce;
  --primary-fixed-dim: #ffb598;

  /* Secondary */
  --secondary: #645e54;
  --secondary-container: #eae1d5;
  --on-secondary: #ffffff;
  --on-secondary-container: #6a635a;
  --secondary-fixed: #eae1d5;
  --secondary-fixed-dim: #cec5ba;

  /* Tertiary */
  --tertiary: #9D3E0E;
  --tertiary-container: #BE5526;
  --on-tertiary: #ffffff;
  --on-tertiary-container: #fffbff;

  /* Surface & Background */
  --surface: #FFF8F3;
  --surface-dim: #e3d8cd;
  --surface-bright: #FFF8F3;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #fdf2e6;
  --surface-container: #f7ece0;
  --surface-container-high: #f1e6db;
  --surface-container-highest: #ebe1d5;
  --surface-variant: #ebe1d5;
  --surface-tint: #a14011;
  --background: #FFF8F3;
  --on-surface: #201B14;
  --on-surface-variant: #57423a;
  --on-background: #201B14;

  /* Inverse */
  --inverse-surface: #353028;
  --inverse-on-surface: #faefe3;
  --inverse-primary: #ffb598;

  /* Outline */
  --outline: #8a7269;
  --outline-variant: #ddc0b6;

  /* Error */
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error: #ffffff;
  --on-error-container: #93000a;

  /* Typography */
  --font-headline: 'Epilogue', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-label: 'Work Sans', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary);
  color: var(--on-primary);
}

/* ── MÓDULO 1: ARQUITECTURA Y LAYOUT BASE ── */
section, header, footer {
  container-type: inline-size;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ─── Utility Classes ─── */
.editorial-line {
  width: 1px;
  background-color: rgba(138, 114, 105, 0.4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background-color: var(--surface);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background-color: rgba(255, 248, 243, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(138, 114, 105, 0.12);
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-headline);
  letter-spacing: -0.04em;
  color: var(--primary);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 500;
  color: var(--on-surface);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--primary);
  font-weight: 700;
}

.nav__link:hover {
  color: var(--primary);
}

.nav__right {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface);
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav__social-icon svg {
  width: 14px;
  height: 14px;
}

.nav__social-icon:hover {
  opacity: 1;
  color: var(--primary);
}

.nav__cta {
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 12px 32px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.15s ease;
}

.nav__cta:hover {
  background-color: var(--primary-container);
}

.nav__cta:active {
  transform: scale(0.97);
}

/* Mobile menu toggle (Optimized for touch > 48px) */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  touch-action: manipulation;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--on-surface);
  transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

/* ── MÓDULO 2: MOBILE BACKDROP ── */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 48;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ── MÓDULO 2: MOBILE SIDE DRAWER ── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80vw;
  max-width: 320px;
  height: 100vh;
  background: var(--surface);
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 48px 24px;
  box-shadow: 10px 0 40px rgba(0,0,0,0.1);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  /* Delegar animación a GPU (INP optimization) */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

/* Contenedor principal de links */
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* Área táctil mínima de 48px para links (Texto reducido 30% a 1.75rem) */
.mobile-menu__link {
  display: block;
  padding: 12px 24px;
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  transition: color 0.3s ease;
}

.mobile-menu__link:hover {
  color: var(--primary);
}

/* Redes Sociales en el Drawer */
.mobile-menu__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.mobile-menu__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface);
  opacity: 0.6;
  padding: 8px; /* Ajustado para prevenir overflow, touch ~36-40px */
  transition: opacity 0.3s ease, color 0.3s ease;
}

.mobile-menu__social-icon svg {
  width: 20px;
  height: 20px;
}

.mobile-menu__social-icon:hover {
  opacity: 1;
  color: var(--primary);
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  background-color: #201B14;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}

/* Background image mosaic */
.hero__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  z-index: 1;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 27, 20, 0.65);
  z-index: 2;
}

.hero__center {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.hero__subtitle {
  display: block;
  font-family: var(--font-label);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 248, 243, 0.7);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.hero__title {
  font-family: var(--font-headline);
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 48px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(60px);
  animation: heroFadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6), 0 0 80px rgba(0, 0, 0, 0.3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

/* Hover effect requested for hero button */
.btn--hover-outline:hover {
  background-color: var(--primary); /* Keeps it terracotta instead of lighting up */
  box-shadow: inset 0 0 0 2px #ffffff;
}

.btn {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 20px 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--on-primary);
}

.btn--primary:hover {
  background-color: var(--primary-container);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn--outline:hover {
  background-color: var(--primary);
  color: var(--on-primary);
}

.btn--block {
  width: 100%;
  justify-content: center;
}



/* ─── Network Banner ─── */
.network-banner {
  background: var(--primary);
  padding: 48px 24px;
  text-align: center;
}

.network-banner__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 24px;
}

.network-banner__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.network-banner__logo-img:hover {
  opacity: 1;
}

.network-banner__text {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.2vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 248, 243, 0.75);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── About Section ─── */
.about {
  padding: 128px 24px;
  background: var(--surface-container-low);
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
}

.about__label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
  display: block;
}

.about__heading {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--on-surface);
  margin-bottom: 48px;
}

.about__vertical-line {
  height: 192px;
  display: none;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.stat-card {
  padding: 32px;
  background: var(--surface-container-lowest);
  border-bottom: 4px solid var(--primary);
}

.stat-card__number {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-card__label {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about__body-lg {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
  font-weight: 300;
  margin-bottom: 32px;
  text-align: justify;
}

.about__body {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
  font-weight: 300;
  text-align: justify;
}

/* ─── Reels Section ─── */
.reels {
  padding: 128px 24px;
  background: var(--surface);
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.reels__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--outline-variant);
}

.reels__title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.reels__subtitle {
  display: none;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.reels__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.reel-card {
  cursor: pointer;
}

.reel-card__preview {
  aspect-ratio: 16/9;
  background: var(--on-surface);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.reel-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 27, 20, 0.4);
  transition: background 0.5s ease;
  z-index: 10;
}

.reel-card:hover .reel-card__overlay {
  background: rgba(32, 27, 20, 0.1);
}

.reel-card__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: grayscale(100%);
  position: absolute;
  inset: 0;
}

.reel-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.reel-card__play-icon {
  font-size: 5rem;
  color: var(--surface);
  transition: transform 0.3s ease;
}

.reel-card:hover .reel-card__play-icon {
  transform: scale(1.1);
}

.reel-card__meta {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.reel-card__number {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
}

.reel-card__name {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.reel-card__focus {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* ─── Credits Section ─── */
.credits {
  padding: 128px 24px;
  background: #201B14;
  color: var(--surface);
  content-visibility: auto;
  contain-intrinsic-size: auto 1600px;
}

.credits__header {
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.credits__label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 16px;
}

.credits__heading {
  font-family: var(--font-headline);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.8;
}

.credits__description {
  max-width: 28rem;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 243, 0.6);
  border-left: 1px solid var(--primary);
  padding-left: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.credits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
}

.credit-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.credit-card__image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.credit-card:hover .credit-card__image {
  transform: scale(1.05);
}

/* Overlay with logo + title on image */
.credit-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  z-index: 5;
  pointer-events: none;
}

/* Network logo — default: white */
.credit-card__network-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.3s ease;
  drop-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Netflix keeps its official red brand color */
.credit-card__network-logo--color {
  filter: none;
  opacity: 1;
}

/* Show title badge */
.credit-card__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* Hover description overlay */
.credit-card__hover-desc {
  position: absolute;
  inset: 0;
  background: rgba(32, 27, 20, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  border-radius: 12px;
}

.credit-card:hover .credit-card__hover-desc {
  opacity: 1;
}

.credit-card__hover-desc p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 248, 243, 0.92);
  font-weight: 300;
  text-align: center;
  font-style: italic;
}

.credit-card__hover-desc em {
  font-style: normal;
  color: var(--primary-fixed-dim);
  font-weight: 500;
}

/* ─── Social Section ─── */
.social {
  padding: 64px 24px;
  background: var(--surface-container-low);
  border-bottom: 1px solid var(--outline-variant);
}

.social__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.social__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1.5px solid var(--outline-variant);
  border-radius: 50px;
  background: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social__link:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.social__icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.social__link:hover .social__icon {
  color: var(--on-primary);
}

.social__handle {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-surface);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.social__link:hover .social__handle {
  color: var(--on-primary);
}

/* ─── Contact Section ─── */
.contact {
  padding: 128px 24px;
  background: var(--surface);
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

.contact__label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
  display: block;
}

.contact__heading {
  font-family: var(--font-headline);
  font-size: clamp(3.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-bottom: 64px;
}

.contact__agents {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.agent__label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.agent__name {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.agent__email {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}

/* Contact Form */
.contact__form-wrap {
  background: var(--surface-container-high);
  padding: 32px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.form-group__label {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
}

.form-group__input,
.form-group__select,
.form-group__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--secondary);
  padding: 0 0 16px;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group__input::placeholder,
.form-group__textarea::placeholder {
  color: rgba(32, 27, 20, 0.2);
}

.form-group__input:focus,
.form-group__select:focus,
.form-group__textarea:focus {
  border-color: var(--primary);
}

.form-group__textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a7269' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  padding: 20px 32px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.05em;
  z-index: 100;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Footer ─── */
.footer {
  background: #201B14;
  border-top: 1px solid rgba(157, 62, 14, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 48px 24px;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--surface);
}

.footer__socials {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 248, 243, 0.5);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer__social-icon svg {
  width: 20px;
  height: 20px;
}

.footer__social-icon:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 243, 0.4);
}

/* ─── Scroll Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* Hero stagger animation */
.hero__title {
  opacity: 0;
  transform: translateY(60px);
  animation: heroFadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero__actions {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero__image-wrap {
  opacity: 0;
  transform: translateX(60px);
  animation: heroSlideIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Media Queries ─── */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .nav {
    padding: 24px 48px;
  }

  .nav__links {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__right {
    display: flex;
  }

  .hero {
    padding: 120px 48px 60px;
  }

  .hero__grid {
    grid-template-columns: 7fr 5fr;
  }

  .hero__badge {
    display: block;
  }

  .about {
    padding: 128px 48px;
  }

  .about__inner {
    flex-direction: column;
    gap: 64px;
  }

  .about__left {
    width: 100%;
    flex-shrink: 0;
  }

  .about__right {
    width: 100%;
  }

  .about__vertical-line {
    display: none;
  }

  .reels {
    padding: 128px 48px;
  }

  .reels__subtitle {
    display: block;
  }

  .reels__grid {
    grid-template-columns: 1fr 1fr;
  }

  .credits {
    padding: 128px 48px;
  }

  .credits__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .credits__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* social is now flexbox, no grid override needed */

  .contact {
    padding: 128px 48px;
  }

  .contact__inner {
    grid-template-columns: 5fr 7fr;
    gap: 96px;
  }

  .contact__form-wrap {
    padding: 64px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .credits__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large: 1280px+ */
@media (min-width: 1280px) {
  .hero__title {
    font-size: 12rem;
  }
}

/* ── MÓDULO 1: FOLDABLES & DUAL SCREENS ── */
@media (horizontal-viewport-segments: 2) {
  .hero__grid, .about__inner, .contact__inner {
    display: grid;
    grid-template-columns: env(viewport-segment-width 0 0) env(viewport-segment-width 1 0);
    column-gap: env(viewport-segment-left 1 0);
  }
  
  .reels__grid, .credits__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: calc(env(viewport-segment-left 1 0) + 24px);
  }
  
  /* Evitar que contenido cruce la bisagra (hinge) */
  .hero__badge, .nav__logo {
    max-width: env(viewport-segment-width 0 0);
  }
}

/* ═══ MOBILE RESPONSIVE (≤ 767px) ═══ */
@media (max-width: 767px) {

  /* Utility */
  .hide-on-mobile {
    display: none !important;
  }

  /* ── Fix 2: Hero Title — allow wrapping, reduce min size ── */
  .hero__title {
    white-space: normal;
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  /* ── Fix 3: Hero Subtitle — scale down from fixed 32px ── */
  .hero__subtitle {
    font-size: clamp(0.65rem, 2.5vw, 1rem);
    letter-spacing: 0.15em;
  }

  /* ── Fix 4: About Stats — stack vertically ── */
  .about__stats {
    grid-template-columns: 1fr;
  }

  /* ── Fix 5: Credits Grid — single column on phone ── */
  .credits__grid {
    grid-template-columns: 1fr;
  }

  /* ── Fix 6: Network Banner — tighter logo spacing ── */
  .network-banner__logos {
    gap: 20px;
  }

  .network-banner__logo-img {
    height: 24px;
  }

  /* ── Fix 7: Contact & Credits Headings — lower floor ── */
  .contact__heading {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .credits__heading {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}
