:root {
  --ink: #171717;
  --ink-soft: #202020;
  --paper: #F5F3EF;
  --paper-pure: #FAF8F5;
  --gray: #A6A6A6;
  --gray-dark: #575551;
  --red: #8E2929;
  --red-soft: rgba(142, 41, 41, 0.14);
  --tape-pink: rgba(214, 134, 146, 0.72);
  --tape-beige: rgba(222, 209, 184, 0.78);
  --pill-lavender: #B8BCE0;
  --pill-peach: #E3B8A2;
  --pill-sage: #BDC9B8;
  --pill-rose: #E5A9B4;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--ink);
  color: var(--paper);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(rgba(245, 243, 239, 0.045) 1px, transparent 0),
    radial-gradient(rgba(245, 243, 239, 0.025) 1px, transparent 0);
  background-size: 34px 34px;
  background-position: 0 0, 17px 17px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

/* Textura documental sutil de grano fotográfico */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.075;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 0.55px, transparent 0.85px),
    radial-gradient(circle at 75% 68%, #fff 0 0.45px, transparent 0.8px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: soft-light;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* BARRA SUPERIOR — EXACTAMENTE 7 PESTAÑAS */
.topbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4vw;
  background: rgba(23, 23, 23, 0.93);
  border-bottom: 1px solid rgba(245, 243, 239, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 0;
  text-align: left;
}

.brand-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
}

.brand small {
  color: var(--paper);
  background: var(--red);
  padding: 2px 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.35vw, 22px);
}

.nav-link {
  position: relative;
  border: 0;
  background: none;
  color: var(--gray);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.6rem, 0.68vw, 0.74rem);
  letter-spacing: 0.05em;
  padding: 10px 4px 8px;
  white-space: nowrap;
  transition: color 200ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

/* PANELES PRINCIPALES */
main {
  padding-top: var(--header-height);
}

.tab-panel {
  display: none;
  min-height: calc(100vh - var(--header-height));
}

.tab-panel.active {
  display: block;
  animation: panelEnter 480ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

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

/* ELEMENTOS EDITORIALES TRANSVERSALES */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--gray);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(245, 243, 239, 0.4);
  border-radius: 999px;
  color: var(--paper);
}

.kicker.dark,
.dark-header .kicker {
  color: var(--gray-dark);
}

.kicker.dark span,
.dark-header .kicker span {
  border-color: rgba(23, 23, 23, 0.35);
  color: var(--ink);
}

.scrap-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scrap-pill--red {
  background: var(--red);
  color: var(--paper);
}

.tape {
  position: absolute;
  z-index: 12;
  width: 92px;
  height: 25px;
  background: var(--tape-pink);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.tape--beige {
  background: var(--tape-beige);
}

.tape--top-center {
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
}

.tape--top-left {
  top: -10px;
  left: 26px;
  transform: rotate(-8deg);
}

.tape--top-right {
  top: -10px;
  right: 28px;
  transform: rotate(7deg);
}

.hand-note {
  margin: 0;
  color: var(--paper);
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  line-height: 1.18;
}

.hand-note--red {
  color: var(--red);
}

/* 1. HOME — PORTADA EDITORIAL + COLLAGE + PLE + TRIÁNGULO */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 3vw;
  align-items: center;
  padding: clamp(48px, 6vw, 96px) 5vw;
  border-bottom: 1px solid rgba(245, 243, 239, 0.14);
}

.hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(4.2rem, 8.6vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.hero-concept {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-left: 3px solid var(--red);
  color: var(--gray);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 26px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-subphrase {
  margin: 0 0 18px;
  font-family: "Caveat", cursive;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  color: #e0b6b6;
}

.hero-subtitle {
  max-width: 530px;
  color: #cfccc6;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.btn-editorial:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
  transform: translateY(-2px);
}

.text-link {
  border: 0;
  border-bottom: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  padding: 10px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-link span {
  display: inline-block;
  margin-left: 10px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(4px, 4px);
}

/* Collage de Portada */
.hero-collage {
  position: relative;
  min-height: 620px;
}

.archive-card {
  position: absolute;
  width: 43%;
  margin: 0;
  padding: 10px 10px 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.48);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
  cursor: pointer;
}

.archive-card:hover {
  z-index: 20;
  transform: rotate(0deg) scale(1.04) !important;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.65);
}

.archive-card--hippie {
  top: 1%;
  left: 4%;
  transform: rotate(-4.5deg);
}

.archive-card--punk {
  top: 8%;
  right: 3%;
  transform: rotate(3.8deg);
}

.archive-card--hiphop {
  bottom: 7%;
  left: 2%;
  transform: rotate(2.8deg);
}

.archive-card--grunge {
  right: 6%;
  bottom: 1%;
  transform: rotate(-3.2deg);
}

.archive-photo {
  position: relative;
  height: clamp(190px, 21vw, 265px);
  overflow: hidden;
  background: #222;
}

.archive-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) grayscale(18%);
  transition: transform 420ms ease, filter 420ms ease;
}

.archive-card:hover .archive-photo img {
  transform: scale(1.06);
  filter: contrast(1.08) grayscale(0%);
}

.archive-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 4px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.archive-card figcaption em {
  font-style: normal;
  color: var(--red);
}

/* APARTADOS INDEPENDIENTES DE HOME: PLE Y TRIÁNGULO */
.home-showcase-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 6vw, 90px);
  padding: clamp(56px, 7vw, 105px) 5vw;
  background: var(--paper);
  color: var(--ink);
}

.showcase-sheet {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px);
  background: var(--paper-pure);
  border: 1px solid rgba(23, 23, 23, 0.12);
  box-shadow: 0 22px 55px rgba(23, 23, 23, 0.11);
  clip-path: polygon(
    0% 0.8%, 4% 0%, 18% 0.7%, 38% 0%, 63% 0.6%, 86% 0%, 100% 0.9%,
    99.6% 35%, 100% 72%, 99.4% 99.2%,
    84% 100%, 55% 99.3%, 27% 100%, 0% 99.2%,
    0.4% 64%, 0% 28%
  );
}

.showcase-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.15);
}

.document-index {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.showcase-header h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.65rem, 2.8vw, 2.65rem);
  line-height: 1.08;
  color: var(--ink);
}

.showcase-desc {
  margin: 0;
  max-width: 720px;
  color: #4a4844;
  font-size: 0.98rem;
}

.zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 180ms ease;
}

.zoom-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.zoom-btn--red {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
  text-decoration: none;
}

.zoom-btn--red:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

a.zoom-btn {
  text-decoration: none;
}

.poster-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.full-image-frame--poster {
  background: #121212;
  padding: clamp(16px, 3vw, 34px);
}

.full-image-frame--poster img {
  max-height: 980px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(245, 243, 239, 0.18);
}

.full-image-frame {
  position: relative;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: #171717;
  overflow: hidden;
  cursor: zoom-in;
}

.full-image-frame--white {
  background: #ffffff;
}

.full-image-frame img {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  margin: 0 auto;
}

.showcase-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  color: var(--gray-dark);
}

/* ÍNDICE VISUAL DE SECCIONES EN HOME */
.section-index {
  display: grid;
  grid-template-columns: 28% 72%;
  gap: 2vw;
  padding: clamp(56px, 6vw, 95px) 5vw;
  border-top: 1px solid rgba(245, 243, 239, 0.14);
}

.section-index-title h2 {
  max-width: 260px;
  margin: 8px 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 3.8vw, 4.1rem);
  line-height: 0.96;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(245, 243, 239, 0.45);
  border-left: 1px solid rgba(245, 243, 239, 0.45);
}

.index-card {
  min-height: 195px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 0;
  border-right: 1px solid rgba(245, 243, 239, 0.45);
  border-bottom: 1px solid rgba(245, 243, 239, 0.45);
  background: transparent;
  color: var(--paper);
  padding: 22px;
  text-align: left;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.index-card-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--gray);
}

.index-card strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.index-card small {
  display: block;
  margin-top: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: var(--gray);
}

.index-card:hover {
  background: var(--paper);
  color: var(--ink);
}

.index-card:hover .index-card-top,
.index-card:hover small {
  color: var(--red);
}

/* 2. SOBRE MÍ */
.paper-section {
  background: var(--paper);
  color: var(--ink);
}

.about-layout {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: 44% 56%;
}

.about-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
  background: #e4e0d8;
  border-right: 1px solid rgba(23, 23, 23, 0.12);
}

.portrait-polaroid {
  position: relative;
  max-width: 470px;
  width: 100%;
  padding: 16px 16px 46px;
  background: #ffffff;
  box-shadow: 0 26px 55px rgba(23, 23, 23, 0.22);
  transform: rotate(-1.5deg);
}

.portrait-frame {
  overflow: hidden;
  background: #171717;
  cursor: zoom-in;
}

.portrait-frame img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
}

.photo-label {
  position: absolute;
  left: 20px;
  bottom: 13px;
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.photo-hand {
  position: absolute;
  right: 18px;
  bottom: 8px;
  color: var(--red);
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 92px) clamp(28px, 7vw, 100px);
}

.about-copy h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 6.4vw, 6.8rem);
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.role-label {
  display: inline-block;
  align-self: flex-start;
  margin: 22px 0 0;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.copy-rule {
  width: 100%;
  height: 1px;
  margin: 28px 0;
  background: rgba(23, 23, 23, 0.22);
}

.about-copy .lead {
  max-width: 640px;
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  line-height: 1.38;
  color: var(--ink);
}

.about-copy p.body-p {
  max-width: 640px;
  margin: 0 0 16px;
  color: #363532;
  font-size: 1.03rem;
  line-height: 1.78;
}

.editorial-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(23, 23, 23, 0.25);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  color: var(--gray-dark);
}

/* 3. PREGUNTA Y OBJETIVOS */
.question-section,
.research-section,
.interview-section {
  padding: clamp(56px, 6.5vw, 105px) 5vw;
}

.section-header {
  margin-bottom: 44px;
}

.section-header h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(3.3rem, 7vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
}

.question-card {
  position: relative;
  width: min(94%, 1120px);
  margin: 0 0 56px auto;
  padding: clamp(30px, 4.5vw, 64px);
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0.8% 2%, 96% 0, 100% 6%, 98.8% 97%, 4% 100%, 0 95%);
  transform: rotate(-0.7deg);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

.question-card h3 {
  max-width: 1000px;
  margin: 8px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 2.9vw, 3.15rem);
  line-height: 1.2;
}

.objectives-grid {
  display: grid;
  grid-template-columns: 38% 62%;
  border-top: 1px solid rgba(245, 243, 239, 0.45);
}

.objective-general {
  padding: 36px 7% 36px 0;
  border-right: 1px solid rgba(245, 243, 239, 0.45);
}

.objective-general p {
  max-width: 470px;
  margin-top: 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 1.65vw, 1.6rem);
  line-height: 1.48;
}

.specific-objectives {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.objective-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: start;
  gap: 16px;
  min-height: 175px;
  padding: 28px;
  border-right: 1px solid rgba(245, 243, 239, 0.3);
  border-bottom: 1px solid rgba(245, 243, 239, 0.3);
  transition: background 220ms ease;
}

.objective-item:hover {
  background: rgba(245, 243, 239, 0.04);
}

.objective-item span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--paper);
  background: var(--red-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.objective-item p {
  margin: 2px 0 0;
  color: #e3e0da;
  line-height: 1.6;
}

/* 4. METODOLOGÍA */
.method-section,
.justification-section {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(56px, 6.5vw, 105px) 5vw;
}

.dark-header h2 {
  color: var(--ink);
}

.method-description {
  max-width: 860px;
  margin: 0 0 38px;
  border-left: 4px solid var(--red);
  padding-left: 26px;
}

.method-description p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.5;
}

.study-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 72px;
}

.study-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(23, 23, 23, 0.14);
  box-shadow: 0 10px 26px rgba(23, 23, 23, 0.06);
}

.study-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-card h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
}

.study-card p {
  margin: 0;
  color: #4a4844;
  font-size: 0.92rem;
  line-height: 1.6;
}

.process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 38px;
  border-top: 2px solid var(--ink);
}

.process-step {
  min-height: 270px;
  padding: 36px 24px 20px 0;
  border-right: 1px solid rgba(23, 23, 23, 0.18);
}

.process-step:not(:first-child) {
  padding-left: 24px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  transform: translateY(-66px);
  box-shadow: 0 0 0 8px var(--paper);
}

.process-step h3 {
  margin: -36px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.process-step p {
  margin: 0;
  color: #484642;
  font-size: 0.95rem;
  line-height: 1.62;
}

/* Mesa de investigación documental (desplegable / visual) */
.archive-drawer {
  margin-top: 42px;
  border: 1px solid rgba(23, 23, 23, 0.22);
  background: #ebe7df;
}

.archive-drawer summary {
  padding: 16px 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.archive-drawer summary::-webkit-details-marker {
  display: none;
}

.archive-drawer-body {
  padding: 0 22px 22px;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.archive-note-card {
  margin-top: 16px;
  padding: 16px;
  background: var(--paper-pure);
  border-left: 3px solid var(--red);
  font-size: 0.88rem;
}

/* 5. INDAGACIÓN — LÍNEA DE TIEMPO CRONOLÓGICA Y 4 MOVIMIENTOS */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0 44px;
  border-top: 1px solid rgba(245, 243, 239, 0.5);
  border-bottom: 1px solid rgba(245, 243, 239, 0.5);
}

.timeline-item {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: 1fr auto;
  align-items: end;
  border: 0;
  border-right: 1px solid rgba(245, 243, 239, 0.28);
  background: transparent;
  color: var(--gray);
  padding: 18px 20px;
  text-align: left;
  transition: background 220ms ease, color 220ms ease;
}

.timeline-item:first-child {
  border-left: 1px solid rgba(245, 243, 239, 0.28);
}

.timeline-item span {
  grid-row: 1 / 3;
  align-self: start;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--red);
}

.timeline-item strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 1.9vw, 1.9rem);
}

.timeline-item small {
  margin-top: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.timeline-item:hover,
.timeline-item.active {
  background: var(--paper);
  color: var(--ink);
}

.movement-panel[hidden] {
  display: none !important;
}

.movement-panel.active {
  display: block;
  animation: panelEnter 420ms ease forwards;
}

.movement-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  padding: 18px 0 24px;
  border-bottom: 1px solid rgba(245, 243, 239, 0.45);
}

.movement-number {
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.movement-header h3 {
  margin: 6px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 6.2vw, 6.2rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
}

.referente-badge {
  text-align: right;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.85rem);
}

.referente-badge span {
  display: block;
  margin-top: 6px;
  color: var(--gray);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.movement-grid {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 3.5vw;
  align-items: start;
}

.movement-copy {
  border-top: 1px solid rgba(245, 243, 239, 0.35);
}

.movement-copy section {
  padding: 22px 0;
  border-bottom: 1px solid rgba(245, 243, 239, 0.25);
}

.movement-copy h4 {
  margin: 0 0 10px;
  color: #e39a9a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.movement-copy p {
  margin: 0;
  color: #dedbd4;
  font-size: 0.97rem;
  line-height: 1.68;
}

.garment-list {
  margin: 0;
  padding-left: 18px;
  color: #dedbd4;
}

.garment-list li {
  margin-bottom: 5px;
}

/* Galería histórica de cada movimiento (5 imágenes con crédito real) */
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--gray);
}

.movement-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.movement-gallery figure {
  position: relative;
  margin: 0;
  background: var(--paper);
  padding: 10px 10px 12px;
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  transition: transform 240ms ease;
}

.movement-gallery figure.wide-shot {
  grid-column: span 2;
}

.movement-gallery figure:nth-child(2) {
  transform: rotate(1deg);
}

.movement-gallery figure:nth-child(3) {
  transform: rotate(-1deg);
}

.movement-gallery figure:hover {
  z-index: 5;
  transform: rotate(0deg) scale(1.015);
}

.gallery-img-wrap {
  position: relative;
  height: 235px;
  overflow: hidden;
  background: #1f1f1f;
  cursor: zoom-in;
}

.movement-gallery figure.wide-shot .gallery-img-wrap {
  height: 290px;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.movement-gallery figure:hover .gallery-img-wrap img {
  transform: scale(1.04);
}

.swap-photo-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 4px 8px;
  border: 1px solid rgba(245, 243, 239, 0.5);
  background: rgba(23, 23, 23, 0.78);
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.56rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 180ms ease;
}

.movement-gallery figure:hover .swap-photo-btn,
.archive-card:hover .swap-photo-btn {
  opacity: 1;
}

.movement-gallery figcaption {
  padding-top: 9px;
  font-size: 0.76rem;
  line-height: 1.38;
}

.movement-gallery figcaption strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--ink);
}

.movement-gallery figcaption span {
  display: block;
  margin-top: 2px;
  color: #555;
  font-size: 0.68rem;
}

.era-Chrono-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 243, 239, 0.25);
}

/* 6. JUSTIFICACIÓN */
.justification-layout {
  display: grid;
  grid-template-columns: 52% 48%;
  gap: 4vw;
  align-items: center;
}

.justification-sheet {
  position: relative;
  padding: clamp(28px, 3.8vw, 52px);
  background: #ffffff;
  border: 1px solid rgba(23, 23, 23, 0.14);
  box-shadow: 0 18px 45px rgba(23, 23, 23, 0.08);
}

.justification-sheet p {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.12rem, 1.42vw, 1.42rem);
  line-height: 1.68;
  color: var(--ink);
}

.justification-sheet p:last-child {
  margin-bottom: 0;
}

.collage-links {
  position: relative;
  min-height: 540px;
}

.collage-era-card {
  position: absolute;
  width: 47%;
  padding: 9px 9px 12px;
  border: 0;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 20px 38px rgba(23, 23, 23, 0.18);
  text-align: left;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.collage-era-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  filter: grayscale(20%);
}

.collage-era-card span {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
}

.collage-era-card strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
}

.collage-era-card:nth-child(1) {
  top: 2%;
  left: 2%;
  transform: rotate(-4deg);
}

.collage-era-card:nth-child(2) {
  top: 12%;
  right: 2%;
  transform: rotate(3.5deg);
}

.collage-era-card:nth-child(3) {
  bottom: 4%;
  left: 4%;
  transform: rotate(2.5deg);
}

.collage-era-card:nth-child(4) {
  right: 5%;
  bottom: 2%;
  transform: rotate(-3deg);
}

.collage-era-card:hover {
  z-index: 6;
  transform: rotate(0deg) scale(1.04);
}

/* 7. ENTREVISTA */
.interview-layout {
  display: grid;
  grid-template-columns: 57% 43%;
  gap: 4vw;
  align-items: start;
}

.interview-intro {
  position: relative;
  padding: clamp(28px, 3.6vw, 46px);
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 1%, 97% 0, 100% 3%, 98.5% 98.5%, 3% 100%, 0 97%);
}

.interview-objective {
  margin: 10px 0 26px;
  color: #353431;
  font-size: 1.02rem;
  line-height: 1.68;
}

.questions-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.questions-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.2);
}

.questions-list span {
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

.questions-list p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  line-height: 1.38;
}

.future-results {
  position: relative;
  padding: 36px;
  border: 1px solid rgba(245, 243, 239, 0.25);
  background: rgba(255, 255, 255, 0.02);
}

.drive-dossier-box {
  position: relative;
  margin-bottom: 28px;
  padding: 26px 24px 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  border-left: 5px solid var(--red);
}

.drive-dossier-box h3 {
  margin: 4px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--ink);
}

.drive-dossier-box p {
  margin: 0 0 16px;
  color: #3a3835;
  font-size: 0.93rem;
  line-height: 1.55;
}

.drive-link-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 200ms ease, transform 200ms ease;
}

.drive-link-btn:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.drive-url-hint {
  display: block;
  margin-top: 10px;
  color: var(--gray-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.redacted-stamp {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 2px solid var(--red);
  color: #e57e7e;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}

.placeholder-box {
  display: grid;
  place-items: center;
  width: 155px;
  height: 185px;
  margin: 16px 0;
  padding: 12px;
  border: 1px dashed rgba(245, 243, 239, 0.35);
  background: rgba(245, 243, 239, 0.04);
  color: var(--gray);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  text-align: center;
}

.results-reserved h3,
.participant-card h3 {
  margin: 16px 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  color: var(--paper);
}

.results-reserved p,
.participant-card p {
  margin: 0;
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.58;
}

.results-reserved {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 243, 239, 0.16);
}

/* LIGHTBOX / LUPA EDITORIAL */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 1180px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 6px solid var(--paper);
  background: #fff;
}

.lightbox-caption {
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-align: center;
  max-width: 820px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  padding: 8px 14px;
  border: 1px solid var(--paper);
  background: var(--ink);
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
}

/* FOOTER */
.footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 28px 5vw;
  border-top: 1px solid rgba(245, 243, 239, 0.15);
  background: var(--ink);
}

.footer strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}

.footer p {
  margin: 0;
  color: var(--gray);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-align: center;
}

.footer button {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
}

/* ANIMACIÓN REVEAL SEGURA */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms cubic-bezier(0.2, 0.75, 0.2, 1), transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

/* RESPONSIVE TABLET Y CELULAR */
@media (max-width: 1120px) {
  :root {
    --header-height: 68px;
  }

  .menu-toggle {
    position: relative;
    z-index: 1002;
    display: grid;
    gap: 6px;
    width: 40px;
    height: 40px;
    place-content: center;
    border: 1px solid rgba(245, 243, 239, 0.3);
    border-radius: 50%;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--paper);
    transition: transform 220ms ease;
  }

  .menu-toggle.open span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 88vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 70px 34px;
    background: var(--ink);
    border-left: 1px solid rgba(245, 243, 239, 0.16);
    transform: translateX(102%);
    transition: transform 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-link {
    min-height: 54px;
    border-bottom: 1px solid rgba(245, 243, 239, 0.12);
    text-align: left;
    font-size: 0.76rem;
  }

  .hero,
  .about-layout,
  .movement-grid,
  .justification-layout,
  .interview-layout,
  .section-index,
  .objectives-grid {
    grid-template-columns: 1fr;
  }

  .study-type-grid,
  .process-line {
    grid-template-columns: 1fr 1fr;
  }

  .objective-general {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 243, 239, 0.35);
    padding-right: 0;
  }

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

@media (max-width: 720px) {
  .hero-collage {
    min-height: 460px;
    margin-top: 28px;
  }

  .archive-card {
    width: 48%;
  }

  .study-type-grid,
  .process-line,
  .specific-objectives,
  .index-grid,
  .movement-gallery,
  .archive-drawer-body {
    grid-template-columns: 1fr;
  }

  .movement-gallery figure.wide-shot {
    grid-column: span 1;
  }

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

  .step-number {
    transform: none;
    margin-top: 12px;
  }

  .process-step {
    padding: 20px 0 !important;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 23, 23, 0.18);
  }

  .process-step h3 {
    margin-top: 0;
  }

  .collage-links {
    min-height: 480px;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer button {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
