/* ===========================
   Variables & Reset
=========================== */
:root {
  --bg: #faf3e9;
  --fg: #16130f;
  --fg-dim: #645e54;
  --line: rgba(22,19,15,0.12);
  --line-strong: rgba(22,19,15,0.18);
  --line-faint: rgba(22,19,15,0.04);
  --accent: #7a1f2b;
  --header-bg: rgba(250, 243, 233, 0.72);
  --shadow: rgba(22,19,15,0.18);
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
}

html[data-theme="dark"] {
  --bg: #15110f;
  --fg: #f4ece1;
  --fg-dim: #c9c0b4;
  --line: rgba(244,236,225,0.14);
  --line-strong: rgba(244,236,225,0.2);
  --line-faint: rgba(244,236,225,0.05);
  --accent: #93283a;
  --header-bg: rgba(21, 17, 15, 0.72);
  --shadow: rgba(0,0,0,0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='2 0 0 0 0  0 2 0 0 0  0 0 2 0 0  0 0 0 2.9 -1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 70px 70px;
  background-blend-mode: multiply;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  animation: site-grain-shift 0.45s steps(6) infinite;
}

@keyframes site-grain-shift {
  0%   { background-position: 0px 0px; }
  16%  { background-position: -14px 7px; }
  33%  { background-position: 9px -16px; }
  50%  { background-position: -8px 12px; }
  66%  { background-position: 16px 4px; }
  83%  { background-position: -12px -8px; }
  100% { background-position: 0px 0px; }
}

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===========================
   Header
=========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 26px 40px;
  background-color: var(--header-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='2 0 0 0 0  0 2 0 0 0  0 0 2 0 0  0 0 0 2.9 -1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 70px 70px;
  background-blend-mode: multiply;
  animation: site-grain-shift 0.45s steps(6) infinite;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.header__social {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: start;
}

.header__social a {
  display: flex;
  color: var(--fg);
  transition: color 0.25s ease;
}

.header__social svg {
  width: 18px;
  height: 18px;
}

.header__social a:hover {
  color: var(--accent);
}

.lang-toggle {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--fg);
  border-radius: 20px;
  padding: 4px 10px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.lang-toggle:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--fg);
  cursor: pointer;
  transition: color 0.25s ease;
}

.theme-toggle:hover {
  color: var(--accent);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

.theme-toggle__icon--moon { display: none; }

html[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
html[data-theme="dark"] .theme-toggle__icon--moon { display: block; }

.logo {
  font-family: "Unbounded", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  justify-self: center;
  text-align: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-self: end;
}

.nav__links {
  display: flex;
  gap: 30px;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.25s ease;
}

.nav a:hover { color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--fg);
}

/* ===========================
   Hero
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero__static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__static video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: grayscale(0.85) sepia(0.25);
}

.hero__grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='3.2 0 0 0 0  0 3.2 0 0 0  0 0 3.2 0 0  0 0 0 6.4 -2.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 70px 70px;
  opacity: 1;
  mix-blend-mode: hard-light;
  pointer-events: none;
  animation: hero-grain-shift 0.45s steps(6) infinite;
}

@keyframes hero-grain-shift {
  0%   { transform: translate(0%, 0%); }
  12%  { transform: translate(-7%, 3%); }
  24%  { transform: translate(5%, -8%); }
  36%  { transform: translate(-4%, 6%); }
  48%  { transform: translate(8%, 2%); }
  60%  { transform: translate(-6%, -4%); }
  72%  { transform: translate(3%, 7%); }
  84%  { transform: translate(-8%, -2%); }
  100% { transform: translate(0%, 0%); }
}

.hero__flicker {
  position: absolute;
  height: 36.8vh;
  max-height: 336px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  top: 30%;
  left: 50%;
  transition: opacity 0.06s linear;
}

.hero__flicker.is-visible {
  pointer-events: auto;
  cursor: pointer;
}

.hero__game-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  z-index: 999;
}

.hero__game-modal.is-open {
  display: flex;
}

.hero__game-modal-box {
  position: relative;
  width: min(1200px, 90vw);
  height: min(780px, 85vh);
  background: #000;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px var(--shadow);
  overflow: hidden;
}

.hero__game-modal-box iframe {
  position: absolute;
  top: -34.6%;
  left: 4.5%;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform-origin: top left;
  transform: scale(1.7);
}

.hero__game-close {
  position: absolute;
  top: calc(50% - min(390px, 42.5vh) - 42px);
  right: calc(50% - min(600px, 45vw));
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  position: relative;
  height: clamp(220px, 38vw, 380px);
  margin: 0 auto;
  margin-left: clamp(-380px, -24vw, -200px);
  user-select: none;
  -webkit-user-select: none;
}

@keyframes hero-scan-roll {
  0% { background-position: 0 0; }
  100% { background-position: 0 40px; }
}

.hero__word {
  position: absolute;
  white-space: nowrap;
  display: inline-block;
  line-height: 0.85;
  overflow: hidden;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.hero__word::after,
.hero__word::before {
  content: '';
  position: absolute;
  inset: -22% -70%;
  z-index: 2;
  pointer-events: none;
}

.hero__word::after {
  background-image: repeating-linear-gradient(0deg, var(--line-strong) 0px, var(--line-strong) 2px, transparent 2px, transparent 6px);
  animation: hero-scan-roll 2.5s linear infinite;
}

.hero__word::before {
  background: linear-gradient(180deg, transparent 0%, rgba(122,31,43,0.12) 50%, transparent 100%);
  animation: hero-scan-roll 6s linear infinite reverse;
}

.hero__word--2::after,
.hero__word--4::after {
  animation-direction: reverse;
}

.hero__word--2::before,
.hero__word--4::before {
  animation-direction: normal;
}

.hero__word--1 {
  font-family: "Unbounded", sans-serif;
  font-weight: 300;
  font-size: clamp(2.1rem, 6.3vw, 4.8rem);
  top: -10px;
  left: 0;
  transform: rotate(-3deg);
  font-feature-settings: "ss01" 0, "ss02" 0, "ss03" 0, "salt" 0;
  font-variant-alternates: normal;
}

.hero__word--2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 9.4vw, 7.1rem);
  top: clamp(46px, 9.5vw, 70px);
  left: clamp(23px, 9.2vw, 69px);
  transform: rotate(2deg);
}

.hero__word--3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: clamp(2.2rem, 6.7vw, 5rem);
  top: clamp(116px, 23vw, 175px);
  left: clamp(12px, 4.6vw, 35px);
}

html[data-theme="dark"] .hero__word {
  opacity: 0.92;
}

html[data-theme="dark"] .hero__word::after,
html[data-theme="dark"] .hero__word::before {
  opacity: 0.8;
}

html[data-theme="dark"] .hero__word--2 {
  color: #bfb3a8;
  opacity: 1;
}

html[data-theme="dark"] .hero__word--3::after,
html[data-theme="dark"] .hero__word--3::before {
  opacity: 0.75;
}

html[data-theme="dark"] .hero__word--3 {
  opacity: 1;
  color: #832535;
}

.hero__word--4 {
  font-family: "Space Grotesk", sans-serif;
  font-style: italic;
  font-weight: 300;
  color: var(--fg-dim);
  font-size: clamp(2rem, 6.1vw, 4.6rem);
  top: clamp(166px, 33vw, 250px);
  left: clamp(46px, 19.5vw, 150px);
  padding-right: 0.15em;
  padding-bottom: 0.18em;
  line-height: 1.05;
  transform: rotate(2.5deg);
}

.hero__word--4::after,
.hero__word--4::before {
  inset: -22% -70% -15% -70%;
}

.hero__word--1::after,
.hero__word--1::before {
  left: -28vw;
  right: -28vw;
}

html:not([lang="en"]) .hero__word--1 {
  line-height: 1.2;
  top: -28px;
}

html:not([lang="en"]) .hero__word--1::after,
html:not([lang="en"]) .hero__word--1::before {
  top: -14vw;
  bottom: -7vw;
  margin-top: -2px;
}

html[lang="en"] .hero__word--1 {
  transform: rotate(-3deg) translateY(-21px);
  line-height: 1.0;
}

.hero__word-inner {
  display: inline-block;
}

html[lang="en"] .hero__word-inner {
  transform: translateY(-3px);
}

html[lang="en"] .hero__word--1::after,
html[lang="en"] .hero__word--1::before {
  top: -7vw;
  bottom: -5vw;
  margin-top: 2px;
}

.hero__alt-letter {
  font-family: "Outfit", sans-serif;
  font-size: 1.18em;
  line-height: 1;
  display: inline-block;
  vertical-align: 0em;
}

html[lang="en"] .hero__word--2 {
  transform: rotate(2deg) translateY(-1px);
}

html[lang="en"] .hero__word--4 {
  transform: rotate(2.5deg) translateY(5.5px);
}

.hero__subtitle {
  margin-top: 28px;
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--fg-dim);
}


.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===========================
   Sections (editorial grid)
=========================== */
.section {
  padding: 55px 0 110px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 45px;
}

.work {
  padding-bottom: 60px;
}

.bio__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
}

.services__grid,
.contact__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
}

.credits__grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg-dim);
  user-select: none;
  -webkit-user-select: none;
}

/* ===========================
   Bio
=========================== */
.bio__media {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  border-radius: 4px;
  border: 1px solid var(--line);
  aspect-ratio: 720/1024;
}

.bio__media.has-texture::after,
.bio__media.has-texture::before {
  content: '';
  position: absolute;
  inset: -18% -18%;
  z-index: 2;
  pointer-events: none;
}

.bio__media.has-texture::after {
  background-image: repeating-linear-gradient(0deg, var(--line-faint) 0px, var(--line-faint) 1px, transparent 1px, transparent 4px);
  animation: hero-scan-roll 2.5s linear infinite;
}

.bio__media.has-texture::before {
  background: linear-gradient(180deg, transparent 0%, rgba(122,31,43,0.03) 50%, transparent 100%);
  animation: hero-scan-roll 6s linear infinite reverse;
}

.bio__media-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.bio__media-clip.is-active {
  opacity: 1;
}

.bio__lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 30ch;
}

.bio__intro {
  margin-top: 39px;
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.7vw, 1.3rem);
  line-height: 1.35;
  max-width: none;
  text-align: justify;
  text-align-last: justify;
  margin-bottom: 36px;
}

.bio__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.bio__list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

.bio__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.bio__list li:nth-child(even) {
  margin-left: clamp(0px, 6vw, 64px);
}

.bio__list .num {
  flex: none;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--accent);
  min-width: clamp(2.6rem, 5.8vw, 3.8rem);
}

.bio__list .num--icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: clamp(2.6rem, 5.8vw, 3.8rem);
}

.bio__list .num--icon .icon-en {
  width: clamp(1.7rem, 3.7vw, 2.3rem);
  height: auto;
  display: block;
}

html[data-theme="dark"] .bio__list .num--icon .icon-en {
  filter: brightness(1.2);
}

.bio__list .num--notes {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 900;
  -webkit-text-stroke: 1px var(--accent);
}

.bio__list strong {
  color: inherit;
  font-weight: 300;
  font-style: normal;
}

.bio__text strong {
  color: var(--fg);
  font-weight: 500;
}

.bio__badges {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.bio__badges li {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg-dim);
}

/* ===========================
   Credits (en vivo)
=========================== */
.credits__intro {
  max-width: none;
  margin-top: 28px;
  font-size: 1.05rem;
  color: var(--fg-dim);
  text-align: justify;
}

.credits__list {
  margin-top: 64px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 48px;
  font-family: "Unbounded", sans-serif;
  font-style: normal;
  font-size: clamp(1rem, 2.1vw, 1.5rem);
  font-weight: 800;
}

.credits__break {
  flex-basis: 100%;
  height: 0;
  margin: 0;
  padding: 0;
}

.credits__list li {
  color: var(--fg);
  transition: color 0.25s ease;
}

.credits__list li:hover {
  color: var(--accent);
}

.credits__list li {
  cursor: pointer;
  position: relative;
}

/* Floating photo preview */
.credits__preview {
  position: fixed;
  top: 0;
  left: 0;
  width: min(38vw, 380px);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 24px)) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 18px 50px var(--shadow);
}

.credits__preview.is-visible {
  opacity: 0.95;
  transform: translate(-50%, calc(-100% - 12px)) scale(1);
}

.credits__preview::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='3.2 0 0 0 0  0 3.2 0 0 0  0 0 3.2 0 0  0 0 0 6.4 -2.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 70px 70px;
  mix-blend-mode: hard-light;
  opacity: 0.2;
  pointer-events: none;
  z-index: 2;
  animation: hero-grain-shift 0.45s steps(6) infinite;
}

.credits__preview.is-below {
  transform: translate(-50%, calc(24px)) scale(0.96);
}

.credits__preview.is-below.is-visible {
  transform: translate(-50%, calc(12px)) scale(1);
}

.credits__preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: none;
}

.credits__preview.has-photo img {
  display: block;
}

.credits__preview img[src*="francisca-valenzuela"] {
  filter: grayscale(1) brightness(1.3) contrast(1.05);
}

.credits__preview-empty {
  display: none;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-family: var(--font-body);
  font-style: normal;
}

.credits__preview:not(.has-photo) .credits__preview-empty {
  display: flex;
}

.credits__preview-caption {
  padding: 10px 14px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  line-height: 1.4;
}

/* On touch devices, center the preview instead of following the cursor */
@media (hover: none) {
  .credits__preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(85vw, 400px);
  }

  .credits__preview.is-visible {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ===========================
   Services
=========================== */
.services__list {
  display: flex;
  flex-direction: column;
}

.service {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service:first-child { padding-top: 0; }

.service h3 {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.service p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  max-width: 46ch;
}

.service p a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

/* ===========================
   Work
=========================== */
.work__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 24px 0 60px;
  max-width: 16ch;
}

.work__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 24px;
}

/* Carátulas seleccionadas */
.covers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 90px;
}

.cover {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1/1;
  border: 1px solid var(--line);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  opacity: 0.95;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.cover:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.cover img.cover__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  height: 64px;
  width: 64px;
  object-fit: contain;
  filter: none;
  transform: none;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.cover img[src*="Otra era"] {
  transform: scale(1.12);
}

.cover img.cover__badge[src*="grammy"] {
  top: -10px;
  left: -10px;
}

.cover img.cover__badge[src*="gaviota"] {
  height: 44px;
  width: 44px;
}

.cover:hover .cover__badge {
  transform: none;
  filter: none;
}

.cover__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px 16px;
  background: rgba(22,19,15,0.89);
  color: #fff;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.cover:hover .cover__overlay {
  opacity: 1;
}

.cover__overlay-title {
  position: absolute;
  top: 24px;
  left: 16px;
  right: 16px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #fff;
}

.cover__overlay-credits {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0d9c8;
  line-height: 1.4;
}

.cover__overlay-credits p {
  margin-top: 1.6em;
}

.cover__overlay-credits p:first-child {
  margin-top: 0;
}

.cover__overlay-credits p.credit-sub {
  margin-top: 0;
}

.cover:has(img[src*="Natsu"]) .cover__overlay-credits {
  margin-top: 95px;
}

.covers__note {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-style: italic;
  margin-bottom: 60px;
}

.work__embed {
  width: 100%;
  margin-bottom: 0;
  opacity: 0.65;
}

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

.work__gallery figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.work__gallery--tall { aspect-ratio: 3/4.6; }

.work__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.work__gallery figure:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.work__gallery figcaption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ===========================
   Footer
=========================== */
.footer {
  padding: 55px 0 40px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  border-top: 1px solid var(--line);
  scroll-margin-top: 45px;
  box-sizing: border-box;
  min-height: 0;
  display: flex;
  transition: min-height 1.1s ease-in-out;
  will-change: min-height;
}

.footer.is-instant {
  transition: none;
}

.footer .container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.footer__cta {
  flex: 1;
  display: grid;
  place-items: center;
}

.footer__inner {
  margin-top: auto;
}

.footer.is-expanded {
  min-height: 85vh;
}

.footer.is-expanded .footer__cta {
  margin: 0;
}

.footer .tag {
  display: block;
  margin-bottom: 28px;
}

.footer__cta {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--fg);
  text-align: center;
  margin: 0 auto 56px;
  max-width: 30ch;
  line-height: 1.3;
}

.footer__cta a {
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.25s ease;
}

.footer__cta a:hover {
  opacity: 0.7;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer__links {
  list-style: none;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.footer__links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer__copy {
  font-size: 0.78rem;
}

/* ===========================
   Reveal animation
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  .covers__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  html { scroll-behavior: auto; }
  .header {
    padding: 16px 20px;
    /* En Chrome iOS, position: fixed con la barra dinámica del navegador
       recorta el header al hacer scroll. Sticky se comporta mejor. */
    position: sticky;
  }
  .header__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 10px;
  }
  .header__social { display: flex; justify-content: center; gap: 12px; }
  .header__social a { display: none; }
  .header__social .lang-toggle {
    display: inline-flex;
    font-size: 0.62rem;
    padding: 3px 9px;
  }
  .header__social .theme-toggle {
    display: flex;
  }
  .logo { justify-self: center; text-align: center; font-size: 0.9rem; }
  .nav { justify-self: center; width: 100%; justify-content: center; }
  .nav__links { width: 100%; gap: clamp(12px, 4vw, 28px); flex-wrap: nowrap; justify-content: space-between; }
  .nav a {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    font-weight: 700;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
  }

  html, body {
    min-height: 100%;
  }

  html {
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='2 0 0 0 0  0 2 0 0 0  0 0 2 0 0  0 0 0 2.9 -1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 70px 70px;
    background-blend-mode: multiply;
  }

  body {
    min-height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='2 0 0 0 0  0 2 0 0 0  0 0 2 0 0  0 0 0 2.9 -1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  .credits__preview::after {
    opacity: 0.05;
  }
  .container { padding: 0 24px; }
  .section { padding: 40px 0 70px; scroll-margin-top: 80px; }
  .hero {
    min-height: 100svh;
    padding: 100px 0 30px;
  }

  .hero__title {
    margin: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .hero__word,
  .hero__word--1,
  .hero__word--2,
  .hero__word--3,
  .hero__word--4 {
    position: static;
    display: block;
    max-width: 100%;
    white-space: normal;
    top: auto;
    left: auto;
    transform: none;
  }

  .hero__word--1 { font-size: 2.1rem; }
  .hero__word--2 { font-size: 2.7rem; }
  .hero__word--3 { font-size: 2.1rem; }
  .hero__word--4 { font-size: 1.9rem; }

  /* En inglés, anular las rotaciones/desplazamientos para que se vea recto, igual que en español */
  html[lang="en"] .hero__word--1,
  html[lang="en"] .hero__word--2,
  html[lang="en"] .hero__word--4 {
    transform: none;
  }

  html[lang="en"] .hero__word-inner {
    transform: none;
  }

  html[lang="en"] .hero__word--1::after,
  html[lang="en"] .hero__word--1::before {
    top: -14vw;
    bottom: -7vw;
    margin-top: -2px;
  }

  /* Que la textura de líneas detrás del título ocupe todo el ancho de la página, como en modo oscuro */
  .hero__word,
  .hero__word--1,
  .hero__word--2,
  .hero__word--3,
  .hero__word--4 {
    overflow: visible;
  }

  .hero__word::after,
  .hero__word::before,
  .hero__word--1::after,
  .hero__word--1::before,
  .hero__word--4::after,
  .hero__word--4::before {
    left: -50vw;
    right: -50vw;
  }

  .bio__grid,
  .services__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .credits__grid {
    gap: 20px;
  }

  .bio__list li:nth-child(even) {
    margin-left: 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer__links {
    gap: 16px;
    justify-content: center;
  }

  .footer__links a {
    font-size: 0.66rem;
  }

  .credits__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "gepe valenzuela valenzuela"
      "nicole denver rubio"
      "victoria victoria oddo";
    row-gap: 20px;
    column-gap: 16px;
    font-size: clamp(0.82rem, 3.6vw, 1.05rem);
  }

  .credits__break { display: none; }

  .credits__list li { white-space: nowrap; }

  .credits__list li:nth-child(1) { grid-area: gepe; justify-self: start; }
  .credits__list li:nth-child(2) { grid-area: nicole; justify-self: start; }
  .credits__list li:nth-child(3) { grid-area: valenzuela; justify-self: end; }
  .credits__list li:nth-child(5) { grid-area: denver; justify-self: center; }
  .credits__list li:nth-child(6) { grid-area: rubio; justify-self: end; }
  .credits__list li:nth-child(7) { grid-area: victoria; justify-self: start; }
  .credits__list li:nth-child(8) { grid-area: oddo; justify-self: end; }

  .credits__intro {
    text-align: justify;
  }

  .bio__list .num--play {
    display: inline-flex;
    align-items: center;
    transform: scaleY(1.6);
  }

  .bio__media {
    max-width: 220px;
    margin: 36px auto 0;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

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

  .work__gallery--tall {
    grid-column: span 2;
    aspect-ratio: 16/10;
  }
}

@media (max-width: 480px) {
  .covers__grid { grid-template-columns: 1fr; }
}
