/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #141017;
  --bg-light: #E9E9E7;
  --bg-white: #FFFFFF;
  /* Las secciones inferiores se apilan como tarjetas con la esquina
     superior redondeada, alternando fondo claro y blanco. */
  --stack-radius: 40px 40px 0 0;
  --ink: #f5f4f1;
  --ink-dim: rgba(245,244,241,0.62);
  --ink-dark: #111111;
  --ink-dark-dim: rgba(17,17,17,0.6);
  --accent-a: #b26bff;
  --accent-b: #ff9d5c;
  --line: rgba(255,255,255,0.12);
  --line-dark: rgba(17,17,17,0.12);
  --radius: 28px;
  --ff-display: "Plus Jakarta Sans", sans-serif;
  --ff-body: "Plus Jakarta Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg-dark);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section, header, footer { position: relative; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(.16,.84,.44,1), transform 0.8s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--scale { transform: translateY(32px) scale(0.97); }
.reveal--scale.is-visible { transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Entrada del header al cargar la página (no depende de scroll) */
.reveal-load {
  animation: revealLoad 0.9s cubic-bezier(.16,.84,.44,1) both;
}
.hero__name.reveal-load { animation-delay: 0.15s; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal-load { animation: none; }
}

/* ---------- Hero ----------
   Estructura y valores extraídos del CSS real del tema de referencia
   (contenedores 66de594 / 9089382 / 1e8cb6d / 8ec0368 / be0dbbc). */
.hero {
  position: relative;
  background: var(--bg-light);
  color: var(--ink-dark);
  margin-bottom: -1.8px;
}

.hero__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  min-height: 40vh;
}

.hero__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2rem clamp(1.5rem, 5vw, 4rem);
  z-index: 10;
}

.logo-mark {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-dark);
}

.hero__topbar-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
}
.hero__available { color: var(--ink-dark-dim); }
.hero__connect { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-dark); }
.hero__connect span { transition: transform 0.2s ease; }
.hero__connect:hover span { transform: translate(2px, -2px); }

/* Columna del nombre: angosta, pero los títulos se desbordan a la derecha
   con márgenes negativos (así se solapan sobre la foto, como el original). */
.hero__name-col {
  width: 32.108%;
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 2vw 0 11vw 30px;
  z-index: 8;
}

.hero__name {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(140px, 9vw, 180px);
  line-height: 1em;
  white-space: nowrap;
  align-self: flex-end;
}
.hero__name--first { margin-right: -13vw; }
.hero__name--last { margin-right: -20vw; }

/* Entrada: fadeInDown en la primera línea, fadeInUp en la segunda
   (los mismos _animation del original). Va en un span interno para no
   pelearse con el translateX que aplica el scroll sobre el h1. */
.hero__name-in {
  display: inline-block;
  animation: 0.9s cubic-bezier(.16,.84,.44,1) both;
}
.hero__name-in--down { animation-name: heroInDown; }
.hero__name-in--up { animation-name: heroInUp; animation-delay: 0.12s; }

@keyframes heroInDown {
  from { opacity: 0; transform: translateY(-45px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroInUp {
  from { opacity: 0; transform: translateY(45px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__name-in { animation: none; }
}

.hero__visual {
  position: relative;
  width: 66%;
  min-height: 90vh;
  align-self: flex-end;
  overflow: hidden;
}

/* Mismos valores que el spacer 8ec0368 del tema original. */
.hero__photo {
  position: absolute;
  bottom: -7vh;
  right: 5vw;
  width: 100%;
  height: clamp(28vw, 44vw, 80vh);
  background-image: url("../assets/axel-hero.png");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}

/* La curva es un bloque negro recortado con una máscara SVG (el mismo
   asset curve_intro_overlay.svg que usa el tema original). */
.hero__wave {
  position: absolute;
  bottom: -1px;
  right: 1vw;
  width: 100%;
  max-width: 70vw;
  height: 10vw;
  background-color: var(--bg-dark);
  -webkit-mask-image: url("../assets/curve-intro-overlay.svg");
  -webkit-mask-size: contain;
  -webkit-mask-position: bottom left;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../assets/curve-intro-overlay.svg");
  mask-size: contain;
  mask-position: bottom left;
  mask-repeat: no-repeat;
  z-index: 2;
}

/* ---------- Rol rotativo (scroll-scrubbed focus) ----------
   Contenedor e394857 del original: fondo #141017 y esquinas superiores
   redondeadas a 60px, que junto con la curva forman la silueta negra. */
.role-statement {
  position: relative;
  background: var(--bg-dark);
  border-radius: 60px 60px 0 0;
  padding: 8vh 1.5rem;
  overflow: hidden;
}
.role-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.role-word {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42vh;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 7.5rem);
  line-height: 1.1;
  color: var(--ink);
  opacity: 0.25;
  filter: blur(6px);
  transform: scale(0.92);
  will-change: opacity, filter, transform;
}

@media (prefers-reduced-motion: reduce) {
  .role-word { opacity: 1; filter: none; transform: none; }
}

@media (max-width: 1024px) {
  .role-word {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    min-height: auto;
    padding: 0.6rem 0;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink-dark);
  cursor: pointer;
  z-index: 60;
}
.menu-toggle__lines { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.menu-toggle__lines i { height: 1px; background: var(--ink-dark); display: block; }
.menu-toggle__lines i:last-child { width: 60%; align-self: flex-end; }

/* ---------- Fullscreen menu ---------- */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at 100% 0%);
  transition: clip-path 0.6s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
}
.fullscreen-menu.is-open {
  clip-path: circle(150% at 100% 0%);
  pointer-events: auto;
}
.fullscreen-menu ul { list-style: none; text-align: center; }
.fullscreen-menu li { margin: 0.6rem 0; }
.fullscreen-menu a {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--ink-dim);
  transition: color 0.25s ease;
}
.fullscreen-menu a:hover { color: var(--ink); }

/* ---------- Intro / Sobre mi ---------- */
.intro {
  background: var(--bg-dark);
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 5rem);
}
.intro__inner { max-width: 760px; margin: 0 auto; }
.intro h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 3.125rem);
  margin-bottom: 1.6rem;
}
.intro h2 span { color: var(--ink); border-bottom: 2px solid var(--accent-a); }
/* En la referencia el cuerpo NO va atenuado: es #E9E9E7 a 20-28px. */
.intro p {
  color: var(--bg-light);
  font-size: clamp(19px, 0.9vw, 28px);
  line-height: 1.5em;
  max-width: 62ch;
  margin-bottom: 1.1rem;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem; font-size: 0.95rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.2rem;
}
.link-arrow span { transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translate(2px,-2px); }

/* ---------- Work / Proyectos ---------- */
/* Tarjetas a sangre completa, negras y apiladas sin separación: en la
   referencia cada una es #000 con esquina superior redondeada de 40px. */
.work {
  background: var(--bg-dark);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.work__card {
  position: relative;
  cursor: pointer;
  width: 100%;
  background: #000;
  border-radius: var(--stack-radius);
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 3vw, 3rem);
}
.work__media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
/* Degradado inferior para que el título y la métrica sigan legibles
   sobre cualquier foto. */
.work__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.05) 28%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
  z-index: 1;
}
/* El marcador solo se ve si la imagen aún no existe (queda detrás). */
.work__media::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  border: 1px dashed rgba(255,255,255,0.2);
  margin: 1rem;
  border-radius: calc(var(--radius) - 12px);
  padding: 1rem;
}
.work__meta { position: relative; z-index: 2; color: #fff; }
.work__tags {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}
.work__meta h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.6rem);
}
.work__stat {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  max-width: 42ch;
}
.work__link {
  position: absolute;
  top: clamp(1.2rem, 3vw, 2.2rem);
  right: clamp(1.2rem, 3vw, 2.2rem);
  z-index: 2;
  font-variant-emoji: text;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.work__card:hover .work__link { background: #fff; color: #111; transform: rotate(45deg); }

/* ---------- Statement ----------
   En la referencia es una tarjeta oscura a pantalla completa con el texto
   en blanco (contenedor 3461347: min-height 100vh, fondo oscuro). */
.statement {
  background: #000;
  color: var(--ink);
  border-radius: var(--stack-radius);
  min-height: 100vh;
  padding: clamp(5rem, 14vw, 9rem) 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.statement__text {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 11.25rem);
  line-height: 1.1;
  color: #fff;
}
.statement__sub {
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  color: var(--ink-dim);
}

/* ---------- Apilado tipo "hojas" ----------
   En la referencia las tarjetas de proyecto, premios y statement son
   position:sticky (solo desktop): cada una se queda fija mientras la
   siguiente pasa por encima. Reseñas y contacto se deslizan sobre todo. */
.work__card { z-index: 1; }
.lists      { position: relative; z-index: 2; }
.statement  { position: relative; z-index: 3; }
.testimonials { position: relative; z-index: 4; }
.contact    { position: relative; z-index: 5; }

@media (min-width: 1025px) {
  .work__card, .lists, .statement { position: sticky; top: 0; }
  .lists { min-height: 100vh; }
}

/* ---------- Lists (premios / educacion) ---------- */
.lists {
  background: var(--bg-light);
  color: var(--ink-dark);
  border-radius: var(--stack-radius);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 5vw, 5rem) clamp(4rem, 10vw, 7rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-content: start;
}
.lists__col h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
}
.list-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.95rem;
}
.list-row__year { color: var(--ink-dark-dim); }
.list-row__name { font-weight: 500; }
.list-row__desc { grid-column: 2; color: var(--ink-dark-dim); font-size: 0.85rem; margin-top: 0.2rem; }
.list-row__arrow { grid-row: 1 / span 2; justify-self: end; opacity: 0.5; }

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--bg-light);
  color: var(--ink-dark);
  border-radius: var(--stack-radius);
  padding: clamp(4rem, 9vw, 6rem) clamp(1.5rem, 5vw, 5rem) clamp(4rem, 8vw, 6rem);
  text-align: center;
}
/* Se apilan en la misma celda de grid para que el contenedor tome la
   altura de la cita más larga (con position:absolute se desbordaba). */
.testimonials__track { display: grid; max-width: 780px; margin: 0 auto; }
.testimonials blockquote {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.testimonials blockquote.is-active { opacity: 1; pointer-events: auto; }
.testimonials p {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.testimonials cite { font-style: normal; font-size: 0.85rem; color: var(--ink-dark-dim); }
.testimonials__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.testimonials__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(17,17,17,0.2);
  cursor: pointer; padding: 0;
}
.testimonials__dots button.is-active { background: var(--ink-dark); }

/* ---------- Contact / footer ---------- */
.contact {
  background: var(--bg-white);
  color: var(--ink-dark);
  border-radius: var(--stack-radius);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 5rem) 6rem;
}
.contact__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact__id { display: flex; flex-direction: column; gap: 0.2rem; }
.contact__id strong { font-size: 1.05rem; }
.contact__id span { font-size: 0.85rem; color: var(--ink-dark-dim); }
/* Misma foto que el hero, encuadrada al rostro para el avatar circular. */
.contact__photo {
  position: absolute;
  top: clamp(2.5rem, 6vw, 4rem);
  right: clamp(1.5rem, 5vw, 5rem);
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-light);
  background-image: url("../assets/axel-avatar.png");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center center;
}
.contact__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 11vw, 11.25rem);
  line-height: 0.95;
  margin: 1.5rem 0 3rem;
}
.contact__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
}
.contact__cv { font-size: 0.95rem; border-bottom: 1px solid var(--ink-dark); padding-bottom: 2px; }
.contact__email { font-size: 0.95rem; }
.contact__social { display: flex; gap: 1.5rem; font-size: 0.85rem; }
.contact__social a { opacity: 0.7; }
.contact__social a:hover { opacity: 1; }
.contact__copyright {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--ink-dark-dim);
}

/* ---------- Floating pill nav ---------- */
.pill-nav {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 0.3rem;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.4rem;
  font-size: 0.78rem;
}
.pill-nav a {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: var(--ink-dim);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.pill-nav a.is-active,
.pill-nav a:hover { background: var(--ink); color: var(--bg-dark); }

/* Tablet — breakpoint 1024px del tema original */
@media (max-width: 1024px) {
  .hero__name-col { width: 30%; padding: 0 0 60px 30px; }
  .hero__name { font-size: 13vw; }
  .hero__visual { width: 70%; min-height: 500px; }
  .hero__photo { right: -3vw; bottom: -4vw; }
  .hero__wave { right: -8vw; }
  .role-statement { border-radius: 60px 0 0 0; }
  .hero__available, .hero__connect { display: none; }
  .menu-toggle { display: block; }
  .lists { grid-template-columns: 1fr; }
  .pill-nav { display: none; }
  /* Sin sticky (como el original, que lo limita a desktop) el solapamiento
     de "hojas" se consigue con margen negativo: el tema usa -60px. */
  .work__card + .work__card,
  .lists, .statement, .testimonials, .contact { margin-top: -60px; }
  .statement { min-height: 70vh; }
  /* Espacio inferior extra para que la hoja siguiente no tape el contenido
     (el tema usa padding-bottom:140px por el mismo motivo). */
  .work__card { padding-bottom: 130px; }
  .lists, .testimonials { padding-bottom: 140px; }
  /* Las fotos de proyecto son panorámicas (≈2:1); en pantalla estrecha una
     tarjeta muy alta las recortaría casi por completo. */
  .work__card { min-height: 52vh; }
}

/* Móvil — breakpoint 767px del tema original: la columna del nombre pasa
   arriba (order) y la foto se centra. */
@media (max-width: 767px) {
  /* --- Lists: año + nombre + desc apilados, flecha a la derecha --- */
  .list-row {
    grid-template-columns: 1fr auto;
    gap: 0.15rem 1rem;
  }
  .list-row__year  { grid-column: 1; grid-row: 1; }
  .list-row__name  { grid-column: 1; grid-row: 2; }
  .list-row__desc  { grid-column: 1; grid-row: 3; margin-top: 0; }
  .list-row__arrow { grid-column: 2; grid-row: 1 / span 3; align-self: start; }

  /* --- Contacto: todo centrado, foto debajo del título y más grande --- */
  .contact { text-align: center; }
  .contact__top { justify-content: center; }
  .contact__id strong,
  .contact__id span { display: block; text-align: center; }
  .contact__title { text-align: center; }
  .contact__photo {
    position: static;
    width: 120px;
    height: 120px;
    margin: 1.5rem auto 2rem;
  }
  .contact__bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .contact__copyright { text-align: center; }

  .hero__inner { flex-wrap: wrap; }
  .hero__name-col {
    width: 100%;
    order: -1;
    justify-content: center;
    align-items: flex-start;
    padding: 70px 20px 10px 20px;
  }
  .hero__name { align-self: flex-start; font-size: 13vw; }
  .hero__name--first { margin: 0 0 0 3vw; }
  .hero__name--last { margin: 0 0 0 18vw; }
  .hero { padding-bottom: 60px; }
  .hero__visual { width: 100%; min-height: 350px; margin-left: 2vw; }
  .hero__photo {
    height: 335px;
    bottom: -92px;
    right: 0;
    background-image: url("../assets/axel-hero-v2.png");
    background-position: bottom center;
    background-size: contain;
  }
  .hero__wave { display: none; }
  .role-statement { position: relative; z-index: 1; border-radius: 60px 60px 0 0; margin-top: -60px; }
  .role-word {
    color: #5F6567;
    font-size: 10vw;
    line-height: 1.2em;
  }
  .hero__available, .hero__connect { display: none; }
  .menu-toggle { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =========================================================
   PÁGINA DE PROYECTO (caso de estudio)
   Tamaños tomados de la página real del tema (post "Mood").
   ========================================================= */
.page-proyecto {
  background: var(--bg-light);
  color: var(--ink-dark);
}

.proj-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2rem clamp(1.5rem, 5vw, 4rem);
}
.proj-topbar .logo-mark { color: var(--ink-dark); }
.menu-toggle--dark { display: block; }

.proj {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
}

.proj__hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.proj__name {
  display: block;
  font-size: clamp(16px, 0.8vw, 22px);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.proj__headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(36px, 3.4vw, 90px);
  line-height: 1.2;
  max-width: 20ch;
}

.proj__figure { margin: clamp(2rem, 5vw, 4rem) 0; }
.proj__figure img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}
.proj__figure--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.proj__figure--pair img { aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }

/* Marcador visible mientras falte la imagen */
.proj__ph {
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  border: 1px dashed rgba(17,17,17,0.25);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--ink-dark-dim);
}
.proj__ph::before { content: attr(data-placeholder); }

.proj__block { padding: clamp(2rem, 5vw, 4rem) 0; }
.proj__lead,
.proj__text {
  font-size: clamp(22px, 1.5vw, 30px);
  font-weight: 400;
  line-height: 1.3;
  max-width: 30ch;
}
.proj__label {
  display: block;
  font-size: clamp(18px, 0.9vw, 28px);
  font-weight: 400;
  color: var(--ink-dark-dim);
  margin-bottom: 0.8rem;
}

.proj__meta {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.proj__meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.proj__meta-item p { font-size: clamp(16px, 0.9vw, 19px); }
.link-arrow-dark {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-bottom: 1px solid var(--ink-dark);
  padding-bottom: 2px;
}
.link-arrow-dark span { transition: transform 0.2s ease; }
.link-arrow-dark:hover span { transform: translate(2px,-2px); }
.proj__channels { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
/* Señala lo que aún falta por rellenar */
[data-pendiente] { opacity: 0.55; font-style: italic; }

.proj__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.proj__stat strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.1;
}
.proj__stat span { font-size: 0.9rem; color: var(--ink-dark-dim); }

.proj__quote {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 2px solid var(--ink-dark);
}
.proj__quote p {
  font-size: clamp(18px, 1.1vw, 22px);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.proj__quote cite { font-style: normal; font-size: 0.85rem; color: var(--ink-dark-dim); }

/* ---------- Carrusel de reels verticales ---------- */
.reels { padding: clamp(2rem, 5vw, 4rem) 0; }
.reels__head { margin-bottom: 1.5rem; }
.reels__hint { font-size: clamp(16px, 0.9vw, 19px); color: var(--ink-dark-dim); }

/* Se sale del contenedor para llegar al borde de la pantalla */
.reels__viewport {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reels__viewport::-webkit-scrollbar { display: none; }

.reels__track {
  display: flex;
  gap: clamp(12px, 1.6vw, 24px);
  width: max-content;
}

.reel-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(210px, 22vw, 312px);
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  scroll-snap-align: start;
}
.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease;
}
.reel-card:hover img { transform: scale(1.05); }
/* Botón de play sobre la miniatura */
.reel-card__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.6);
  z-index: 2;
  transition: background 0.25s ease, transform 0.25s ease;
}
.reel-card__play::before {
  content: "";
  position: absolute;
  left: 54%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.reel-card:hover .reel-card__play {
  background: rgba(0,0,0,0.7);
  transform: translate(-50%, -50%) scale(1.08);
}
/* Etiqueta de marcador: queda debajo de la imagen, solo se ve si aún no hay archivo */
.reel-card__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  z-index: 0;
}

.reels__account {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: clamp(16px, 0.9vw, 19px);
  border-bottom: 1px solid var(--ink-dark);
  padding-bottom: 2px;
}
.reels__account span { transition: transform 0.2s ease; }
.reels__account:hover span { transform: translate(2px, -2px); }

.reels__nav { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.reels__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: none;
  color: var(--ink-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.reels__btn:hover { background: var(--ink-dark); color: var(--bg-light); }

/* ---------- Carrusel de fotos horizontales (detalle) ----------
   Mismo mecanismo que .reels (scroll nativo + snap) pero con tarjetas
   panorámicas en vez de verticales, y sin botón de play. */
.photos { padding: clamp(2rem, 5vw, 4rem) 0; }
.photos__viewport {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.photos__viewport::-webkit-scrollbar { display: none; }
.photos__track {
  display: flex;
  gap: clamp(12px, 1.6vw, 24px);
  width: max-content;
}
.photo-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(260px, 40vw, 520px);
  aspect-ratio: 3 / 2;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  scroll-snap-align: start;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.photos__nav { display: flex; gap: 0.6rem; margin-top: 1.5rem; }

/* ---------- Siguiente proyecto ---------- */
.proj-next {
  position: relative;
  display: block;
  margin: clamp(3rem, 7vw, 6rem) calc(50% - 50vw) 0;
  min-height: 60vh;
  overflow: hidden;
  background: #000;
}
.proj-next img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.6s ease, opacity 0.3s ease;
}
.proj-next:hover img { transform: scale(1.04); opacity: 0.8; }
.proj-next__meta {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.proj-next__label { font-size: clamp(16px, 0.8vw, 22px); opacity: 0.8; }
.proj-next__meta h2 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
}

@media (max-width: 767px) {
  .proj__meta-grid { grid-template-columns: 1fr; }
  .proj__stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .proj__figure--pair { grid-template-columns: 1fr; }
}

/* ---------- Toggle de idioma ES / EN ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 3px 10px;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: inherit;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.lang-toggle:hover { opacity: 1; }
.lang-toggle [data-lang] { transition: opacity 0.15s; }
.lang-toggle [data-lang].is-active { opacity: 1; font-weight: 700; }
.lang-toggle [data-lang]:not(.is-active) { opacity: 0.3; }
.lang-toggle__sep { opacity: 0.2; }

.proj-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
