/* ===========================================================
   MARTÍN — Portafolio · Hoja de estilos
   Estética: minimalista, clara y premium (tipo Apple) +
   tipografía editorial Bodoni. Blanco, espacio y sobriedad.
   =========================================================== */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f4f1;   /* blanco roto cálido para secciones alternas */
  --surface:   #ffffff;
  --text:      #16140f;   /* casi negro, ligeramente cálido */
  --text-soft: #79756e;   /* gris cálido para texto secundario */
  --ink:       #16140f;   /* negro pleno: botones y máximo contraste */
  --accent:    #8a8077;   /* taupe sobrio: etiquetas, detalles, estados activos */
  --line:      rgba(22, 20, 15, 0.12);

  --font-display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --max: 1200px;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== BARRA DE PROGRESO DE SCROLL ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 160; /* por encima del panel del menú para que el botón siga clicable */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
/* Header en 3 zonas: menú (izq) · logo (centro) · idioma (der) */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.site-header .menu-btn { justify-self: start; }
.site-header .brand { justify-self: center; }
.site-header .lang-dd { justify-self: end; }
/* Con el menú abierto, el header se vuelve transparente para integrarse con el panel */
body.menu-open .site-header { background: transparent; border-color: transparent; backdrop-filter: none; }

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.35em;
  font-weight: 600;
}

/* Desplegable de idioma */
.lang-dd { position: relative; }
.lang-dd__toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 0.35rem 0;
  transition: color 0.25s ease;
}
.lang-dd__toggle:hover { color: var(--accent); }
.lang-dd__chevron { transition: transform 0.25s ease; }
.lang-dd.is-open .lang-dd__chevron { transform: rotate(180deg); }

.lang-dd__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 130px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem;
  box-shadow: 0 18px 40px -24px rgba(22, 20, 15, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.lang-dd.is-open .lang-dd__menu { opacity: 1; visibility: visible; transform: none; }
.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-opt:hover { background: var(--bg-alt); color: var(--text); }
.lang-opt.is-active { color: var(--ink); font-weight: 600; }

/* ===== BOTÓN DEL MENÚ (arriba a la izquierda) ===== */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}
.menu-btn__icon {
  position: relative;
  width: 26px; height: 11px;
  display: inline-block;
}
.menu-btn__icon::before,
.menu-btn__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s ease, top 0.35s ease;
}
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after  { top: 9px; }
.menu-btn__label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.25s ease;
}
.menu-btn:hover .menu-btn__label { color: var(--text); }

/* Estado abierto: el icono se transforma en una "X" */
body.menu-open .menu-btn__icon::before { top: 5px; transform: rotate(45deg); }
body.menu-open .menu-btn__icon::after  { top: 5px; transform: rotate(-45deg); }

/* ===== PANEL DEL MENÚ DESPLEGABLE ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 20, 15, 0.22);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 140;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }

.menu-panel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(420px, 88vw);
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
  padding: clamp(5rem, 12vh, 7rem) clamp(2rem, 5vw, 3.5rem) 2.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 150;
  overflow-y: auto;
}
body.menu-open .menu-panel { transform: translateX(0); }

.menu-list {
  list-style: none;
  flex: 1;
}
.menu-list li { border-bottom: 1px solid var(--line); }
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s ease, padding-left 0.3s ease;
}
.menu-list a span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.menu-list a:hover,
.menu-list a.is-active { color: var(--accent); padding-left: 0.5rem; }

.menu-panel__foot {
  display: flex;
  gap: 1.75rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.menu-panel__foot a { color: var(--text-soft); transition: color 0.25s ease; }
.menu-panel__foot a:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem var(--pad) 5rem;
  background: var(--bg);
  overflow: hidden;
}

.hero__grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero__inner { max-width: 640px; }

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

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.5rem, 11vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.hero__lead {
  margin: 1.75rem 0 0;
  max-width: 420px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-soft);
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 440px;
}
/* Ambos botones del hero con el mismo ancho */
.hero__actions .btn {
  flex: 1 1 0;
  text-align: center;
  white-space: nowrap;
}

/* Foto del hero (al lado del texto, como pidió Martín) */
.hero__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
  animation: float 2.4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { opacity: 0.85; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== SECCIONES ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 8rem) var(--pad);
}
.section--alt { background: var(--bg-alt); max-width: none; }
.section--alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section__num {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.5rem);
}
.section__intro {
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ===== SOBRE MÍ ===== */
.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__text p { margin-bottom: 1.25rem; font-size: 1.05rem; }
.about__placeholder { color: var(--text-soft); font-style: italic; font-size: 0.95rem; }

/* ===== TARJETAS / TRABAJO ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.card__text { color: var(--text-soft); font-size: 0.95rem; }

/* ============================================================
   EXPERIENCIA NARRATIVA (storytelling del CV)
   ============================================================ */
.story {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 9rem) var(--pad);
}

.story__block {
  padding: clamp(3rem, 9vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.story__block:last-child { border-bottom: none; }
/* Los bloques solo-texto mantienen una medida cómoda de lectura */
.story__block:not(.story__block--split) { max-width: 760px; margin-left: auto; margin-right: auto; }

.story__block--accent {
  background: var(--bg-alt);
  border-radius: 6px;
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
  padding-right: clamp(1.5rem, 4vw, 2.5rem);
}

/* ===== BLOQUE TEXTO + FOTO (cada texto acompañado de una imagen) ===== */
.story__block--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story__block--reverse .story__col   { order: 2; }
.story__block--reverse .story__figure { order: 1; }

.story__figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
}
.story__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.story__block--split:hover .story__figure img { transform: scale(1.03); }

/* Figura ancha (panorámica) dentro de un bloque a todo el ancho */
.story__figure--wide {
  aspect-ratio: 3 / 2;
  margin: 2.5rem 0 0;
}
/* Encuadre hacia arriba para no cortarle el rostro */
.story__figure--wide img { object-position: center 20%; }

/* ===== FRANJA DESTACADA DE NUEVA YORK ===== */
.ny-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}
.ny-strip__item {
  margin: 0;
  padding: 0;
  border: none;
  background: var(--bg-alt);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  line-height: 0;
}
.ny-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ny-strip__item:hover img { transform: scale(1.06); }

.ny-strip__cta {
  margin-top: 1.5rem;
}
.ny-strip__cta .btn { cursor: pointer; }

.story__kicker {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.story__lead-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

.story__text {
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.story__text:last-child { margin-bottom: 0; }
.story__text em { color: var(--ink); font-style: italic; }
.story__text strong { color: var(--text); font-weight: 600; }
.story__text--soft { color: var(--text-soft); font-size: 1rem; }

/* ===== FRASES PUENTE (conectan una sección con la siguiente) ===== */
.bridge {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  line-height: 1.4;
  color: var(--text-soft);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}
.bridge--cta { color: var(--accent); }

/* ===== LÍNEA DE TIEMPO ===== */
.timeline {
  list-style: none;
  margin-top: 3rem;
  padding-left: 1.5rem;
  position: relative;
}
/* Riel base (tenue) */
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: var(--tl-top, 0);
  width: 1px;
  height: var(--tl-span, 100%);
  background: var(--line);
}
/* Línea de progreso que se "dibuja" al hacer scroll */
.timeline::after {
  content: "";
  position: absolute;
  left: -0.5px; top: var(--tl-top, 0);
  width: 2px;
  height: var(--tl-progress, 0);
  background: var(--ink);
  transition: height 0.12s linear;
}
.timeline__item {
  position: relative;
  padding: 0 0 2.5rem 1.75rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 0.35rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid #cfcabf;
  box-shadow: 0 0 0 4px var(--bg);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
/* El punto se "enciende" cuando la línea de progreso lo alcanza */
.timeline__item.is-reached::before {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.18);
}
.timeline__year {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.timeline__role {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.timeline__role span { color: var(--text-soft); }
.timeline__body p { color: var(--text-soft); font-size: 0.98rem; }
.timeline__body em { font-style: italic; }
.timeline__body strong { color: var(--ink); font-weight: 600; }

/* ===== HABILIDADES ===== */
.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 2rem;
}
.skills li {
  border: 1px solid var(--line);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.skills li:hover { border-color: var(--accent); color: var(--text); }

/* ===== IDIOMAS (lista con viñetas) ===== */
.langs { margin-top: 2rem; }
.langs__label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
}
.langs__list {
  padding-left: 1.1rem;
  margin: 0;
}
.langs__list li {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.langs__list li::marker { color: var(--accent); }

/* ===== FICHA ARTÍSTICA ===== */
.fichas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  margin-top: 1rem;
}
.fichas li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.fichas li span {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ===== REVELADO AL HACER SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== GALERÍA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ===== FILTROS DEL CATÁLOGO ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter {
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter:hover { border-color: var(--ink); color: var(--text); }
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter__count {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-left: 0.15rem;
}

/* ===== CATÁLOGO DE FOTOS (cuadrícula uniforme, sin saltos) ===== */
.catalog { position: relative; }
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.masonry__item.is-hidden { display: none; }
.masonry__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  line-height: 0;
}
.masonry__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
}
.masonry__item img.loaded { opacity: 1; }
.masonry__item:hover img { transform: scale(1.04); }

/* Degradado de desvanecido cuando el catálogo está plegado */
.catalog__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(245, 244, 241, 0), var(--bg-alt) 92%);
  pointer-events: none;
}
.catalog__more {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
/* Respeta el atributo hidden: sin esto, display:flex lo anula y el botón se ve siempre */
.catalog__more[hidden] { display: none; }
.catalog__more .btn { cursor: pointer; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 16, 12, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.lightbox__imgwrap {
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
}
.lightbox__imgwrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}
/* Estado ampliado (zoom) */
.lightbox__imgwrap.is-zoomed { cursor: zoom-out; }
.lightbox__imgwrap.is-zoomed img {
  transform: scale(2.3);
  cursor: zoom-out;
}

/* Acciones del lightbox: zoom + descarga */
.lightbox__actions {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}
.lb-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lb-action:hover { background: rgba(255, 255, 255, 0.22); }
.lb-action__icon { font-size: 1rem; line-height: 1; }
.lightbox__caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  max-width: 640px;
  text-align: center;
  line-height: 1.5;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 1.5rem; right: 1.75rem; font-size: 2.4rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.5rem; padding: 0 1.5rem; }
.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }

/* ===== VIDEOS ===== */
.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.videos--single { grid-template-columns: 1fr; max-width: 880px; }

/* ===== VIDEOS / "EN MOVIMIENTO" (YouTube con carga diferida) ===== */
.reel-feature { max-width: 940px; }

.reel-short { margin-top: 0.9rem; text-align: right; }
.reel-short a {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.reel-short a:hover { color: var(--accent); border-color: var(--accent); }

.reel-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
}
.reel-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Portada (poster) con miniatura de YouTube */
.reel-player__poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.reel-player__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  transition: background 0.3s ease;
}
.reel-player:hover .reel-player__poster::after { background: rgba(0,0,0,0.2); }

.reel-player__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
}

/* Botón de play */
.reel-player__play {
  position: relative;
  z-index: 2;
  width: 74px; height: 74px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.reel-player:hover .reel-player__play { transform: scale(1.08); }
.reel-player__play span {
  display: block;
  width: 0; height: 0;
  margin-left: 5px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--ink);
}

/* Estado pendiente (sin ID válido todavía) */
.reel-player--pending { cursor: default; }
.reel-player--pending .reel-player__play { display: none; }
.reel-player__pending-msg {
  position: relative;
  z-index: 2;
  color: var(--text-soft);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* Video largo (secundario) */
.reel-secondary {
  max-width: 560px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.reel-secondary__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.reel-player--small .reel-player__play { width: 56px; height: 56px; }
.reel-player--small .reel-player__play span { border-width: 9px 0 9px 15px; }
.reel-secondary__note {
  margin-top: 0.85rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* ===== CREADOR DE CONTENIDO ===== */
.creator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.creator__lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.creator__body {
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
}
.creator__link {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.creator__link:hover { border-color: var(--ink); color: var(--accent); }
.creator__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
}
.creator__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.creator:hover .creator__photo img { transform: scale(1.03); }

/* Reel de Instagram incrustado */
.creator__embed {
  display: flex;
  justify-content: center;
}
.creator__embed .instagram-media {
  margin: 0 auto !important;
  min-width: 0 !important;
}

/* ===== PLACEHOLDERS (temporales hasta cargar recursos) ===== */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.placeholder--portrait { aspect-ratio: 3 / 4; }
.placeholder--square   { aspect-ratio: 1 / 1; }
.placeholder--video    { aspect-ratio: 16 / 9; }

/* ===== CONTACTO ===== */
.section--contact { text-align: center; }
.section--contact .section__head { justify-content: center; }
.section--contact .section__intro { margin-left: auto; margin-right: auto; }
.contact__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACTO: tarjetas de info (izq) + formulario en tarjeta (der) ===== */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

/* Columna izquierda: tarjetas de información */
.info-cards { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  background: #eeece8;
  color: var(--text);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
/* Todas las tarjetas se ponen negras al pasar el cursor */
.info-card:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.info-card__icon { flex: 0 0 auto; display: flex; }
.info-card__body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.info-card__title { font-size: 0.95rem; font-weight: 600; }
.info-card__text { font-size: 0.92rem; color: var(--text-soft); word-break: break-word; transition: color 0.3s ease; }
.info-card:hover .info-card__text { color: rgba(255, 255, 255, 0.82); }
.info-card__socials { display: flex; gap: 1.1rem; }
.info-card__socials a {
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.info-card:hover .info-card__socials a { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.info-card__socials a:hover { color: var(--accent); border-color: var(--accent); }

/* Columna derecha: formulario dentro de una tarjeta suave */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: #faf9f7;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.contact__form-head { margin-bottom: 0.25rem; }
.contact__form-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.1;
}
.contact__form-sub { color: var(--text-soft); font-size: 0.95rem; margin-top: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #bdb9b1; }
.field input:hover,
.field textarea:hover { border-color: #cfcabf; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22, 20, 15, 0.06);
}
.btn--block { display: block; width: 100%; text-align: center; padding-block: 1rem; }
.contact__form .btn { cursor: pointer; margin-top: 0.25rem; }
.contact__form-note {
  font-size: 0.92rem;
  color: var(--accent);
  text-align: center;
  margin: 0;
}

/* Documentos secundarios: CV + Portafolio (discretos, como pidió Martín) */
.docs { margin-top: 0.5rem; padding: 0 0.25rem; }
.docs__links {
  display: flex;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}
.docs__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.docs__link:hover { color: var(--accent); border-color: var(--accent); }
.docs__icon { color: var(--accent); }

/* ===== ENLACES / CIERRE ===== */
.links {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 8rem) var(--pad);
  text-align: center;
}
.links__lead {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 500;
  margin-bottom: 3rem;
}
.links__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.links__grid a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.links__grid a:hover { border-color: var(--accent); background: var(--surface); }
.links__grid a span { color: var(--accent); font-size: 1.1rem; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--pad);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */

/* Catálogo: ajusta columnas de la cuadrícula según el ancho */
@media (max-width: 1100px) { .masonry { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .masonry { grid-template-columns: repeat(2, 1fr); } }

/* Franja de Nueva York: scroll horizontal en pantallas pequeñas */
@media (max-width: 720px) {
  .ny-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .ny-strip__item {
    flex: 0 0 60%;
    scroll-snap-align: start;
  }
}

@media (max-width: 920px) {
  /* Hero y bloques texto+foto pasan a una sola columna */
  .hero { min-height: auto; padding-top: 8rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Sin max-height en vh: evitaba que la foto cambiara de tamaño al ocultarse
     la barra del navegador móvil durante el scroll. Ahora toma su tamaño
     estable desde el inicio, a partir del ancho y la proporción 4/5. */
  .hero__photo { aspect-ratio: 4 / 5; }
  .story__block--split { grid-template-columns: 1fr; gap: 2rem; }
  .creator { grid-template-columns: 1fr; gap: 2rem; }
  .contact { grid-template-columns: 1fr; gap: 1.5rem; }
  /* En móvil la foto siempre va debajo del texto, sin importar el orden */
  .story__block--reverse .story__col   { order: 1; }
  .story__block--reverse .story__figure { order: 2; }
  .story__figure { aspect-ratio: 4 / 5; max-height: 70vh; }
}

@media (max-width: 820px) {
  .brand { font-size: 1.2rem; letter-spacing: 0.25em; }
  .about { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: 1fr; }
  .links__grid { grid-template-columns: 1fr; }
  .fichas { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .lightbox__nav { font-size: 2.5rem; padding: 0 0.75rem; }
}

/* ===== Pulido para móvil (no afecta a escritorio) ===== */
@media (max-width: 720px) {
  /* Áreas táctiles cómodas para el pulgar en el header (icono/label eran ~15px de alto) */
  .menu-btn { padding: 0.7rem 0; }
  .lang-dd__toggle { padding-top: 0.7rem; padding-bottom: 0.7rem; }
}
@media (max-width: 560px) {
  /* El logo cabe en una sola línea en pantallas de teléfono */
  .brand {
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }
  /* Solo el ícono de hamburguesa: el texto "MENÚ" chocaba con el logo centrado.
     Se mantiene buena área táctil y el ícono pegado al borde con el margen negativo. */
  .menu-btn__label { display: none; }
  .menu-btn { padding: 0.7rem 0.55rem; margin-left: -0.55rem; }
}
