/* =========================================================
   VINCENZO BERENGUELA — PORTAFOLIO FOTOGRÁFICO
   styles.css
   ---------------------------------------------------------
   01. Variables y reset
   02. Utilidades
   03. Header y navegación
   04. Menú móvil
   05. Hero
   06. Secciones y galerías
   07. Trayectoria
   08. Sobre mí
   09. Contacto
   10. Footer
   11. Lightbox
   12. Animaciones y responsive
========================================================= */

/* =========================================================
   01. VARIABLES Y RESET
========================================================= */
:root {
  --bg: #0d0d0d;
  --bg-deep: #090909;
  --bg-soft: #111111;
  --bg-elevated: #171717;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --muted-dark: #7f7f7f;
  --line: rgba(245, 245, 245, 0.12);
  --line-strong: rgba(245, 245, 245, 0.26);
  --success: #c7d6c6;
  --error: #d49a90;

  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 76px);
  --max-width: 1680px;
  --nav-height: 92px;
  --masonry-gap: clamp(12px, 1.6vw, 22px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border: 3px solid var(--bg);
  border-radius: 10px;
}

:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 5px;
}

/* =========================================================
   02. UTILIDADES
========================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(96px, 12vw, 176px);
}

section[id] {
  scroll-margin-top: 88px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Grano fotográfico sutil sobre toda la interfaz */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Revelado al entrar en pantalla */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

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

/* =========================================================
   03. HEADER Y NAVEGACIÓN
========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: transform 0.4s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  opacity: 0;
  transition:
    opacity 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.site-header.is-scrolled::before {
  opacity: 1;
  border-color: var(--line);
}

.nav-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  transition: height 0.45s var(--ease);
}

.site-header.is-scrolled .nav-shell {
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-monogram {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.brand:hover .brand-monogram {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-role {
  color: var(--muted-dark);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3.2vw, 54px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 42px);
}

.nav-link {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 0.35s var(--ease);
}

.nav-instagram svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s var(--ease);
}

.nav-instagram:hover {
  border-color: var(--text);
}

.nav-instagram:hover svg {
  transform: translate(2px, -2px);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  overflow: hidden;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(245, 245, 245, 0.65);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Menú */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}

.menu-toggle-icon {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.35s var(--ease);
}

.menu-toggle-icon i {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--text);
  transform: translateX(-50%);
  transition:
    top 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.menu-toggle-icon i:first-child {
  top: 19px;
}

.menu-toggle-icon i:last-child {
  top: 24px;
}

.menu-toggle:hover .menu-toggle-label {
  color: var(--text);
}

.menu-toggle:hover .menu-toggle-icon {
  border-color: var(--text);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* =========================================================
   04. MENÚ MÓVIL
========================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 245, 245, 0.055), transparent 35%),
    var(--bg-deep);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s var(--ease),
    visibility 0s linear 0.45s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.45s var(--ease),
    visibility 0s linear 0s;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 32px;
}

.mobile-menu-eyebrow {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: clamp(30px, 6vh, 64px);
}

.mobile-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.5rem, 10vw, 4.7rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    color 0.3s var(--ease);
}

.mobile-link span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.mobile-link:hover {
  color: var(--muted);
}

.mobile-menu.is-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-link:nth-child(1) {
  transition-delay: 0.08s;
}

.mobile-menu.is-open .mobile-link:nth-child(2) {
  transition-delay: 0.14s;
}

.mobile-menu.is-open .mobile-link:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu.is-open .mobile-link:nth-child(4) {
  transition-delay: 0.26s;
}

.mobile-menu.is-open .mobile-link:nth-child(5) {
  transition-delay: 0.32s;
}

.mobile-menu-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 48px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-menu-footer a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
}

/* =========================================================
   05. HERO
========================================================= */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: clamp(28px, 4vw, 52px);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--bg-soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: brightness(0.84) saturate(0.9);
  animation: heroDrift 20s var(--ease) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(13, 13, 13, 0.58) 0%,
      rgba(13, 13, 13, 0.08) 26%,
      rgba(13, 13, 13, 0.06) 48%,
      rgba(13, 13, 13, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(13, 13, 13, 0.62) 0%,
      rgba(13, 13, 13, 0.2) 44%,
      rgba(13, 13, 13, 0) 72%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-heading {
  max-width: 1250px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(245, 245, 245, 0.72);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  animation: heroFade 1s 0.2s var(--ease) both;
}

.hero-kicker::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(245, 245, 245, 0.45);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
  font-size: clamp(4rem, 10.2vw, 10.8rem);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 0.8;
  animation: heroTitle 1.15s 0.32s var(--ease) both;
}

.hero-title span {
  margin-left: clamp(28px, 9vw, 160px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.88;
}

.hero-description {
  max-width: 470px;
  margin-top: clamp(26px, 3vw, 38px);
  color: rgba(245, 245, 245, 0.74);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.75;
  animation: heroFade 1s 0.65s var(--ease) both;
}

.hero-quote {
  max-width: 620px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.65rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.45;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: clamp(44px, 6vw, 76px);
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 245, 0.18);
  animation: heroFade 1s 0.85s var(--ease) both;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(245, 245, 245, 0.65);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(199, 214, 198, 0.08);
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(245, 245, 245, 0.64);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}

.scroll-cue:hover {
  color: var(--text);
}

.scroll-track {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(245, 245, 245, 0.18);
}

.scroll-track span {
  position: absolute;
  top: -60%;
  left: 0;
  display: block;
  width: 100%;
  height: 60%;
  background: var(--text);
  animation: scrollLine 2.2s var(--ease-soft) infinite;
}

.hero-counter {
  justify-self: end;
  color: rgba(245, 245, 245, 0.7);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.hero-counter span {
  color: rgba(245, 245, 245, 0.32);
}

.hero-rail {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(245, 245, 245, 0.5);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}

.hero-rail i {
  display: block;
  width: 1px;
  height: 24px;
  background: rgba(245, 245, 245, 0.28);
  writing-mode: horizontal-tb;
}

/* =========================================================
   06. SECCIONES Y GALERÍAS
========================================================= */
.gallery-section {
  padding-top: clamp(72px, 8vw, 112px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(40px, 8vw, 120px);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-index::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: var(--line-strong);
}

.section-title {
  margin-top: 22px;
  font-size: clamp(2.8rem, 5.6vw, 6.2rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.section-intro {
  max-width: 440px;
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Pestañas */
.collection-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(34px, 4.4vw, 58px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: clamp(20px, 2.4vw, 32px) 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 0.35s var(--ease);
}

.collection-tab:first-child {
  padding-right: clamp(18px, 3vw, 44px);
}

.collection-tab + .collection-tab {
  padding-left: clamp(18px, 3vw, 44px);
  border-left: 1px solid var(--line);
}

.collection-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s var(--ease);
}

.collection-tab:hover,
.collection-tab.is-active {
  color: var(--text);
}

.collection-tab.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.tab-number {
  align-self: flex-start;
  padding-top: 4px;
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.tab-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tab-text small {
  color: var(--muted-dark);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tab-count {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  transition:
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.collection-tab.is-active .tab-count {
  border-color: var(--line-strong);
  color: var(--text);
}

.collection-panel[hidden] {
  display: none;
}

.collection-panel.is-entering {
  animation: panelIn 0.7s var(--ease) both;
}

.panel-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.panel-meta span {
  flex-shrink: 0;
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Galería editorial asimétrica: grid de 2 columnas desiguales.
   La primera imagen de cada serie ocupa todo el ancho como pieza de apertura.
   La segunda columna se desplaza hacia abajo para romper la simetría. */
.masonry {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(18px, 2.4vw, 40px);
  align-items: start;
}

.gallery-item {
  display: block;
  width: 100%;
}

.masonry > .gallery-item:first-child {
  grid-column: 1 / -1;
}

.masonry > .gallery-item:nth-child(even) {
  margin-top: clamp(60px, 8vw, 96px);
}

.gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: zoom-in;
  text-align: left;
}

.gallery-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.34) 0%,
    rgba(5, 5, 5, 0) 28%,
    rgba(5, 5, 5, 0) 52%,
    rgba(5, 5, 5, 0.82) 100%
  );
  opacity: 0.16;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}

.gallery-trigger img {
  width: 100%;
  height: auto;
  filter: saturate(0.94);
  transition:
    transform 1.2s var(--ease),
    filter 0.6s var(--ease);
}

.gallery-trigger:hover::before,
.gallery-trigger:focus-visible::before {
  opacity: 1;
}

.gallery-trigger:hover img,
.gallery-trigger:focus-visible img {
  transform: scale(1.018);
  filter: saturate(1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 1.5vw, 22px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.gallery-trigger:hover .gallery-overlay,
.gallery-trigger:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-index {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.gallery-caption {
  max-width: calc(100% - 52px);
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  transform: translateY(7px);
  transition: transform 0.5s var(--ease);
}

.gallery-caption small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-trigger:hover .gallery-caption,
.gallery-trigger:focus-visible .gallery-caption {
  transform: translateY(0);
}

.gallery-plus {
  position: absolute;
  right: clamp(14px, 1.5vw, 22px);
  bottom: clamp(14px, 1.5vw, 22px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--text);
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.gallery-trigger:hover .gallery-plus,
.gallery-trigger:focus-visible .gallery-plus {
  opacity: 1;
  transform: translateY(0);
}

.gallery-trigger:hover .gallery-plus {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* =========================================================
   07. TRAYECTORIA
========================================================= */
.trajectory {
  border-top: 1px solid var(--line);
}

.trajectory-list {
  margin-top: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--line);
  list-style: none;
}

.trajectory-item {
  display: block;
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.trajectory-item:last-child {
  border-bottom: 0;
}

.trajectory-year {
  padding-top: 7px;
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.trajectory-name {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.trajectory-meta {
  margin-top: 10px;
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.trajectory-desc {
  max-width: 620px;
  margin-top: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.trajectory-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    gap 0.35s var(--ease);
}

.trajectory-link:hover {
  gap: 15px;
  color: var(--text);
  border-color: var(--text);
}

.trajectory-note {
  margin-top: 28px;
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =========================================================
   08. SOBRE MÍ
========================================================= */
.about {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 45%, rgba(245, 245, 245, 0.035), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, #101010 48%, var(--bg) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(48px, 7vw, 120px);
}

.about-media {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  width: 100%;
  max-width: 560px;
  padding-bottom: 30px;
}

.about-media::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -18px;
  width: 62%;
  height: 58%;
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  pointer-events: none;
}

.about-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
}

.about-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.3s var(--ease);
}

.about-media:hover .about-image-wrap img {
  transform: scale(1.012);
}

.about-media-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-content {
  padding-top: clamp(0px, 1.6vw, 18px);
}

.about-lead {
  max-width: 680px;
  margin-top: 32px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.22;
}

.about-copy {
  max-width: 650px;
  margin-top: 28px;
}

.about-copy p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.about-copy em {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.18em;
  font-style: italic;
}

.about-facts {
  max-width: 660px;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.about-facts li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.fact-label {
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-facts em {
  color: var(--text);
  font-style: normal;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    border-color 0.35s var(--ease),
    gap 0.35s var(--ease);
}

.text-link svg {
  width: 18px;
  height: 18px;
}

.text-link:hover {
  gap: 18px;
  border-color: var(--text);
}

/* =========================================================
   09. CONTACTO
========================================================= */
.contact {
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 8vw, 140px);
  margin-top: clamp(48px, 7vw, 90px);
}

.contact-note {
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(0.95rem, 1.7vw, 1.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: border-color 0.35s var(--ease);
}

.contact-email:hover {
  border-color: var(--text);
}

.contact-socials {
  display: flex;
  flex-direction: column;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.contact-social-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-social-label svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.72;
}

.contact-socials a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}

.contact-socials a span:last-child {
  color: var(--text);
  text-align: right;
}

.contact-socials a:hover {
  color: var(--text);
}

.contact-location {
  margin-top: 34px;
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-eyebrow {
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.form-intro {
  margin-top: 12px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.form-hint {
  margin-top: -8px;
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 0 13px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  outline: 0;
  transition: border-color 0.35s var(--ease);
}

.form-field textarea {
  min-height: 122px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #5e5e5e;
  opacity: 1;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--text);
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--error);
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 4px;
}

.button-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    gap 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  transition: transform 0.4s var(--ease);
}

.button-arrow svg {
  width: 18px;
  height: 18px;
}

.button-submit:hover {
  gap: 20px;
  border-color: var(--text);
}

.button-submit:hover .button-arrow {
  transform: translateX(3px);
}

.button-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button-submit.is-sending .button-arrow svg {
  animation: sendPulse 1s var(--ease-soft) infinite;
}

.form-status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

/* =========================================================
   10. FOOTER
========================================================= */
.site-footer {
  padding: clamp(60px, 8vw, 108px) 0 30px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  display: inline-block;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
}

.footer-tagline {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

.back-to-top:hover {
  color: var(--text);
  border-color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 26px;
}

.footer-socials a {
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.footer-socials a:hover {
  color: var(--text);
}

/* =========================================================
   11. LIGHTBOX
========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: clamp(16px, 2.5vw, 32px) clamp(16px, 3vw, 48px) clamp(16px, 2.4vw, 30px);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-bottom: 16px;
}

.lightbox-eyebrow {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lightbox-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.lightbox-close svg {
  width: 19px;
  height: 19px;
}

.lightbox-close:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.lightbox-stage {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
  flex: 1;
  min-height: 0;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 210px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.lightbox-image.is-loaded {
  opacity: 1;
}

.lightbox-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.lightbox-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.lightbox-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox-count {
  flex-shrink: 0;
  color: var(--muted-dark);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.lightbox-count span:first-child {
  color: var(--text);
}

.lightbox-nav {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.lightbox-nav svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* =========================================================
   12. ANIMACIONES
========================================================= */
@keyframes heroDrift {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitle {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0% {
    transform: translateY(0);
  }
  55% {
    transform: translateY(170%);
  }
  100% {
    transform: translateY(170%);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sendPulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.45;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1180px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: clamp(48px, 7vw, 96px);
  }

  .about-media {
    position: static;
    max-width: 560px;
  }
}

@media (max-width: 960px) {
  :root {
    --nav-height: 78px;
  }

  .desktop-nav,
  .nav-instagram {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-right {
    gap: 0;
  }

  .hero-rail {
    display: none;
  }

  .hero-title {
    font-size: clamp(3.8rem, 12vw, 8rem);
  }

  .hero-title span {
    margin-left: clamp(18px, 8vw, 90px);
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
    gap: 48px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-media {
    position: static;
    max-width: 560px;
  }

  .trajectory-item {
    padding: clamp(28px, 3.6vw, 44px) 0;
  }

  .contact-grid {
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
    gap: 52px;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 72px;
  }

  .brand-name {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .brand-text {
    gap: 4px;
  }

  .brand-role {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: var(--bg);
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: clamp(320px, 46svh, 460px);
    overflow: hidden;
    background: var(--bg-soft);
  }

  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        180deg,
        rgba(13, 13, 13, 0.55) 0%,
        rgba(13, 13, 13, 0) 30%,
        rgba(13, 13, 13, 0.1) 72%,
        var(--bg) 100%
      );
    pointer-events: none;
  }

  .hero-media img {
    object-fit: contain;
    object-position: center;
    animation: none;
  }

  .hero-shade {
    display: none;
  }

  .hero-content {
    padding-top: 32px;
    padding-bottom: 44px;
  }

  .hero-title {
    font-size: clamp(3.3rem, 14.5vw, 6rem);
    line-height: 0.86;
  }

  .hero-title span {
    margin-left: clamp(12px, 7vw, 48px);
  }

  .hero-quote {
    max-width: 420px;
    font-size: clamp(1.1rem, 4.4vw, 1.35rem);
    line-height: 1.5;
  }

  .hero-bottom {
    grid-template-columns: 1fr auto;
    margin-top: 38px;
  }

  .hero-counter {
    display: none;
  }

  .scroll-cue {
    justify-self: end;
    font-size: 9px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-intro {
    max-width: 100%;
    justify-self: start;
  }

  .collection-tabs {
    grid-template-columns: 1fr;
  }

  .collection-tab:first-child,
  .collection-tab + .collection-tab {
    padding-right: 0;
    padding-left: 0;
  }

  .collection-tab + .collection-tab {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .tab-text small {
    display: none;
  }

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

  .masonry > .gallery-item:nth-child(even) {
    margin-top: 0;
  }

  /* Apertura a ancho del contenedor en móvil (sin desbordamiento) */
  .masonry > .gallery-item:first-child {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .panel-meta {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .about-media {
    max-width: 420px;
  }

  .trajectory-item {
    padding: 26px 0;
  }

  .trajectory-year {
    padding-top: 0;
  }

  .trajectory-link {
    justify-self: start;
    margin-top: 8px;
  }

  .about-content {
    padding-top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-note {
    max-width: 100%;
  }

  .contact-socials {
    max-width: 520px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-socials {
    order: -1;
  }

  .lightbox-shell {
    padding: 14px;
  }

  .lightbox-stage {
    position: relative;
    grid-template-columns: 1fr;
  }

  .lightbox-image {
    max-height: calc(100svh - 250px);
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    background: rgba(13, 13, 13, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 2px;
  }

  .lightbox-next {
    right: 2px;
  }

  .lightbox-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .lightbox-count {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .contact-socials a,
  .form-field label {
    font-size: 10px;
  }

  .brand-monogram {
    width: 29px;
    height: 29px;
  }

  .brand-name {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .hero-location {
    display: none;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .scroll-cue {
    align-items: flex-start;
    justify-self: start;
  }

  .scroll-track {
    height: 36px;
  }

  .section-title {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .about-media::before {
    left: -10px;
  }

  .about-media-caption {
    font-size: 9px;
  }

  .about-facts li {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .contact-email {
    font-size: 0.9rem;
  }

  .button-submit {
    width: 100%;
    justify-content: space-between;
  }

  .lightbox-eyebrow {
    max-width: 190px;
    line-height: 1.5;
  }

  .lightbox-image {
    max-height: calc(100svh - 230px);
  }

  .lightbox-title {
    font-size: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .hero-media img {
    animation: none;
  }
}

/* Dispositivos sin hover: mostramos solo el índice sobre la obra.
   El caption y el indicador de ampliación se ocultan para no
   cubrir la fotografía en pantallas táctiles. */
@media (hover: none) {
  .gallery-trigger::before {
    opacity: 0.4;
  }

  .gallery-overlay {
    opacity: 1;
  }

  .gallery-caption {
    display: none;
  }

  .gallery-plus {
    display: none;
  }

  .gallery-index {
    transform: translateY(0);
  }
}
