/* ==========================================================================
   JUAN AMOEDO — main.css
   Sistema: editorial cinematográfico bicolor (tinta #0a0a0b / hueso #f3f0e9),
   tipografía Alcyone (Atipo) con fallback Inter Tight, grano de película,
   acentos ámbar (ui) y teal (TENLO).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg-dark: #0a0a0b;
  --bg-light: #f3f0e9;
  --ink-dark: #0e0e0f;
  --ink-light: #f3f0e9;
  --ink-soft: rgba(243, 240, 233, 0.62);
  --ink-soft-dark: rgba(14, 14, 15, 0.62);
  --line-dark: rgba(243, 240, 233, 0.16);
  --line-light: rgba(14, 14, 15, 0.14);
  --accent: #e2a04b;
  --teal: #7fb8c8;
  --teal-deep: #0d1f24;

  --font-display: "Alcyone", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter Tight", ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 4rem);
  --section-pad: clamp(4.5rem, 10vw, 9rem) 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: "Alcyone";
  src: url("../assets/fonts/alcyone-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  /* NOTA: descarga la licencia (pay-what-you-want) en atipofoundry.com/fonts/alcyone
     y deja el archivo en assets/fonts/alcyone-medium.woff2. Sin el archivo,
     el sitio usa Inter Tight automáticamente. */
}

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

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

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--ink-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Grano de película sobre toda la página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--ink-dark);
}

/* ---------- Tipografía util ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2.6rem;
  padding-inline: var(--gutter);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

/* ---------- Contenedor ---------- */
main { overflow: clip; }

/* ==========================================================================
   CARGANDO (loader antes del intro) — spinner Newtons Cradle (Uiverse,
   dovatgabriel)
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.3rem;
  background: var(--bg-dark);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: loader-pulse 1.4s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.newtons-cradle {
  --uib-size: 50px;
  --uib-speed: 1.2s;
  --uib-color: #474554;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--uib-size);
  height: var(--uib-size);
}

.newtons-cradle__dot {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: 25%;
  transform-origin: center top;
}

.newtons-cradle__dot::after {
  content: '';
  display: block;
  width: 100%;
  height: 25%;
  border-radius: 50%;
  background-color: var(--uib-color);
}

.newtons-cradle__dot:first-child {
  animation: swing var(--uib-speed) linear infinite;
}

.newtons-cradle__dot:last-child {
  animation: swing2 var(--uib-speed) linear infinite;
}

@keyframes swing {
  0% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }
  25% {
    transform: rotate(70deg);
    animation-timing-function: ease-in;
  }
  50% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }
}

@keyframes swing2 {
  0% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }
  50% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }
  75% {
    transform: rotate(-70deg);
    animation-timing-function: ease-in;
  }
}

/* ==========================================================================
   INTRO (AMOEDO letra a letra)
   ========================================================================== */
.vx-intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-content: center;
  gap: 1.4rem;
  background: var(--bg-dark);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.vx-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vx-intro__logo {
  display: flex;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 13vw, 11rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Las letras solo arrancan cuando el loader ha terminado (clase is-ready) */
.vx-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(38%) rotate(4deg);
}

.vx-intro.is-ready .vx-letter {
  animation: vx-rise 0.9s var(--ease) forwards;
}

.vx-intro.is-ready .vx-letter:nth-child(1) { animation-delay: 0.10s; }
.vx-intro.is-ready .vx-letter:nth-child(2) { animation-delay: 0.22s; }
.vx-intro.is-ready .vx-letter:nth-child(3) { animation-delay: 0.34s; }
.vx-intro.is-ready .vx-letter:nth-child(4) { animation-delay: 0.46s; }
.vx-intro.is-ready .vx-letter:nth-child(5) { animation-delay: 0.58s; }
.vx-intro.is-ready .vx-letter:nth-child(6) { animation-delay: 0.70s; }

@keyframes vx-rise {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.vx-intro__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
}

.vx-intro.is-ready .vx-intro__meta {
  animation: vx-fade 0.6s ease 0.95s forwards;
}

@keyframes vx-fade { to { opacity: 1; } }

/* ==========================================================================
   CABECERA
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--gutter);
  color: var(--ink-light);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--line-dark);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a { opacity: 0.72; transition: opacity 0.3s; }
.site-nav a:hover { opacity: 1; color: var(--accent); }

.site-nav__comma { opacity: 0.4; }

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

/* Selector de idioma GL/ES */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lang-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 0.3s, color 0.3s;
}

.lang-btn:hover { opacity: 1; color: var(--accent); }

.lang-btn.is-active {
  opacity: 1;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}

.lang-switch__sep { opacity: 0.4; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: saturate(1) contrast(1.05) brightness(0.94);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 20%, transparent 30%, rgba(10, 10, 11, 0.55) 100%),
    linear-gradient(to bottom, rgba(10, 10, 11, 0.28), rgba(10, 10, 11, 0.82) 92%);
}

.hero__copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
}

.hero__tag {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.2rem, 19vw, 16rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero__line {
  margin-top: 1.6rem;
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__line .sep { color: var(--accent); margin: 0 0.4rem; }

.hero__down {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.1rem;
  color: var(--ink-soft);
  animation: hero-down 2.2s var(--ease) infinite;
}

@keyframes hero-down {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.85; }
  50% { transform: translate(-50%, 8px); opacity: 0.4; }
}

/* ==========================================================================
   TRABAJO / GALERÍA
   ========================================================================== */
.work {
  background: var(--bg-light);
  color: var(--ink-dark);
  padding: var(--section-pad);
  content-visibility: auto;
  contain-intrinsic-size: auto 2400px;
}

/* Filtros */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-bottom: 3rem;
  padding-inline: var(--gutter);
}

.f-btn {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft-dark);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.3s;
}

.f-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s var(--ease);
}

.f-btn:hover { color: var(--ink-dark); }

.f-btn.is-active {
  color: var(--ink-dark);
  font-weight: 600;
}

.f-btn.is-active::after { right: 0; }

/* Galería */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.g-category[hidden] { display: none; }

.g-category__head {
  margin-bottom: 1.6rem;
  padding-inline: var(--gutter);
  display: grid;
  gap: 0.35rem;
  grid-template-columns: auto 1fr;
  align-items: baseline;
}

.g-category__head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  text-transform: lowercase;
  letter-spacing: -0.01em;
}

.g-category__head p {
  grid-column: 1 / -1;
  color: var(--ink-soft-dark);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Mampostería editorial */
.g-grid {
  columns: 1;
  column-gap: 1.2rem;
}

.g-item {
  margin: 0 0 1.2rem;
  break-inside: avoid;
  cursor: zoom-in;
}

.g-frame {
  overflow: hidden;
  background: #ded9cd;
}

.g-frame img {
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease), filter 0.6s;
}

.g-item:hover .g-frame img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.04);
}

/* Bloque destacado TENLO */
.g-category--feature {
  background: var(--teal-deep);
  color: var(--ink-light);
  border-radius: 2px;
  padding: clamp(1.4rem, 4vw, 3rem);
  margin-block: 1rem;
}

/* Variante 404 (proyecto personal): mismo formato, acento ámbar */
.g-category--feature--404 {
  background: #151110;
}

.g-category--feature--404 .featured-spread__note h4 { color: var(--accent); }

.g-category--feature .g-category__head p { color: var(--ink-soft); }

.featured-spread__note {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.featured-spread__note h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.04;
  margin: 0.6rem 0 1rem;
  color: var(--teal);
}

.featured-spread__note p {
  color: var(--ink-soft);
  max-width: 26rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   VÍDEO
   ========================================================================== */
.video-section {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: var(--section-pad);
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.video-section .section-head p { color: var(--ink-soft); }

/* Vídeos: una columna vertical, texto centrado bajo cada vídeo */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s;
}

.video-card:hover .video-card__media img {
  transform: scale(1.045);
}

.video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.55), transparent 45%);
  pointer-events: none;
}

.video-card.is-playing .video-card__media::after {
  display: none;
}

.video-card__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(243, 240, 233, 0.5);
  background: rgba(10, 10, 11, 0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s;
}

.video-card__play span {
  font-size: 1.15rem;
  transform: translateX(2px);
  color: var(--ink-light);
}

.video-card:hover .video-card__play {
  transform: scale(1.1);
  background: var(--accent);
  border-color: var(--accent);
}

.video-card__play:hover span { color: var(--ink-dark); }

.video-card.is-playing .video-card__play {
  display: none;
}

.video-card__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(243, 240, 233, 0.5);
  background: rgba(10, 10, 11, 0.55);
  color: var(--ink-light);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.video-card__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-dark);
}

.video-card.is-playing .video-card__close {
  display: grid;
}

.video-card__info {
  padding-top: 1.1rem;
  display: grid;
  gap: 0.25rem;
  text-align: center;
}

.video-card__info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  letter-spacing: 0.05em;
}

.video-card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   SOBRE
   ========================================================================== */
.about {
  background: var(--bg-light);
  color: var(--ink-dark);
  padding: var(--section-pad);
  content-visibility: auto;
  contain-intrinsic-size: auto 1100px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding-inline: var(--gutter);
}

.about__grid h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  text-transform: lowercase;
}

.about__lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

.about__bio {
  color: var(--ink-soft-dark);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  max-width: 30rem;
}

/* Foto pequeña de perfil, al otro lado del título */
.about__portrait {
  display: inline-block;
  margin-top: 1.8rem;
}

.about__portrait img {
  display: block;
  width: clamp(5rem, 8vw, 6.5rem);
  height: clamp(5rem, 8vw, 6.5rem);
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  filter: saturate(0.96) contrast(1.04);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: var(--section-pad);
  text-align: center;
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin: 1.2rem 0 2.6rem;
}

.contact__links {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.9rem;
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact__links a {
  color: var(--ink-light);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.contact__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s var(--ease);
}

.contact__links a:hover { color: var(--accent); }
.contact__links a:hover::after { right: 0; }

.contact__links .sep { color: var(--accent); opacity: 0.8; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--ink-light);
  border-top: 1px solid var(--line-dark);
  padding: 1.3rem var(--gutter) 0;
  overflow: visible;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-footer__nav a:hover { color: var(--accent); }
.site-footer__year { margin-left: auto; opacity: 0.5; }

.site-footer__logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 18vw, 15rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 1.6rem 0 clamp(1.4rem, 5vw, 4rem);
  color: var(--ink-light);
  opacity: 0.92;
  user-select: none;
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(8, 8, 9, 0.94);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox__frame {
  margin: 0;
  max-width: min(92vw, 1300px);
  max-height: 88vh;
  display: grid;
  gap: 0.8rem;
}

.lightbox__frame img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
}

.lightbox__frame figcaption {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 240, 233, 0.25);
  color: var(--ink-light);
  font-size: 1.2rem;
  transition: background 0.3s, border-color 0.3s;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-dark);
}

.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 720px) {
  .g-grid { columns: 2; }
  .about__grid { grid-template-columns: 0.9fr 1.6fr; gap: 3rem; }
}

@media (min-width: 1100px) {
  .g-grid { columns: 3; }
}

@media (max-width: 719px) {
  .hero__title { letter-spacing: -0.02em; }
  .site-nav { gap: 0.3rem; font-size: 0.66rem; }
  .site-nav-wrap { gap: 0.7rem; }
  .lang-switch { gap: 0.35rem; font-size: 0.66rem; }
}

/* ==========================================================================
   PREFIERE MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .vx-intro.is-ready .vx-letter,
  .vx-intro.is-ready .vx-intro__meta,
  .hero__down {
    animation: none;
  }

  .vx-letter { opacity: 1; transform: none; }
  .vx-intro__meta { opacity: 1; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .g-frame img,
  .video-card__media img {
    transition: none;
  }

  .hero__down { display: none; }
}

/* ==========================================================================
   CÁMARA COMO CURSOR
   (📷 sigue al ratón; el cursor nativo se oculta). Solo con puntero fino
   (ratón); en táctil se deja el cursor normal.
   ========================================================================== */
@media (pointer: fine) {
  html.has-cam-cursor,
  html.has-cam-cursor * {
    cursor: none !important;
  }
}

.cam-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 6000;
  pointer-events: none;
  font-size: 1.45rem;
  line-height: 1;
  transform: translate(-50%, -50%);
  will-change: transform;
  display: none;
  user-select: none;
}

@media (pointer: fine) {
  .cam-cursor { display: block; }
}

/* oculta la cámara sobre el iframe de vídeo (los pointermove no llegan ahí) */
.cam-cursor.is-off {
  display: none !important;
}
