
/* ============================================================
   NEOSODA® — VISUAL SYSTEM
   Portfolio de Luis Almerich

   Concepto:
   El sistema ordenado. Las ideas, menos.

   Dirección:
   Editorial / Cactus Brown / Internet Culture

   Mobile first · CSS nativo · Sin dependencias
   ============================================================ */

/* ------------------------------------------------------------
   01. TOKENS
   ------------------------------------------------------------ */

:root {
  color-scheme: light;

  --paper: #f1ebdd;
  --ink: #211e1a;
  --brown: #795238;
  --clay: #af6847;
  --sand: #c8b49c;
  --paper-dark: #e2d6c6;
  --paper-deep: #d6c3ae;
  --white: #fffdf8;

  --muted: #675d53;
  --dark-muted: #d5c4b2;
  --border: rgba(33, 30, 26, .22);
  --border-light: rgba(241, 235, 221, .3);

  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --page-gutter: 20px;
  --grid-gap: 12px;
  --section-space: clamp(76px, 12vw, 188px);
  --shell-width: 1540px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);

  --duration-fast: 180ms;
  --duration-medium: 420ms;
  --duration-slow: 800ms;

  --radius-sm: 3px;
  --radius-md: 8px;

  --z-header: 40;
  --z-cursor: 90;
  --z-overlay: 100;
}

/* ------------------------------------------------------------
   02. RESET Y FUNDAMENTOS
   ------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;

  background: var(--paper);
  color: var(--ink);

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img,
video,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

video {
  width: 100%;
  height: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 5px;
}

.section-dark a:focus-visible,
.section-dark button:focus-visible,
.section-brown a:focus-visible,
.section-brown button:focus-visible {
  outline-color: var(--paper);
}

::selection {
  background: var(--brown);
  color: var(--white);
}

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

ol,
ul {
  padding: 0;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(
    calc(100% - var(--page-gutter) * 2),
    var(--shell-width)
  );
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-brown {
  background: var(--brown);
  color: var(--white);
}

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1.65;
}

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

.skip-link {
  position: fixed;
  z-index: 300;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 12px 18px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  transition: transform var(--duration-fast);
}

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

.display-heading {
  font-family: var(--font-display);
  font-size: clamp(44px, 10vw, 128px);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: .99;
  overflow-wrap: normal;
}

.display-heading .text-muted,
.text-muted {
  color: var(--muted);
}

.section-dark .text-muted {
  color: var(--sand);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  width: fit-content;
  padding-block: 8px;
  border-bottom: 1px solid currentColor;

  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;

  transition:
    gap var(--duration-medium) var(--ease-out),
    color var(--duration-fast);
}

.text-link:hover {
  gap: 40px;
  color: var(--brown);
}

.light-link:hover {
  color: var(--sand);
}

.section-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;

  margin-bottom: clamp(36px, 6vw, 80px);
  padding-bottom: 12px;

  border-bottom: 1px solid var(--border);
}

.section-dark .section-index,
.section-brown .section-index {
  border-color: var(--border-light);
}

.section-index span:last-child {
  opacity: .7;
}

.section-description {
  max-width: 310px;
  font-size: 15px;
  line-height: 1.55;
}

.noscript-message {
  padding: 30px var(--page-gutter);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

/* ------------------------------------------------------------
   03. NAVIGATION
   ------------------------------------------------------------ */

.site-header {
  position: absolute;
  z-index: var(--z-header);
  inset: 0 0 auto;
  color: var(--paper);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  gap: 20px;
}

.wordmark {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: 1;
}

.wordmark span {
  color: var(--sand);
}

.wordmark sup {
  position: relative;
  top: -.55em;
  margin-left: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.main-nav {
  display: none;
  align-items: center;
  gap: clamp(22px, 3.2vw, 54px);
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--duration-fast);
}

.main-nav a:hover {
  color: var(--sand);
}

.main-nav .nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.mobile-menu-toggle {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 7px;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition:
    transform var(--duration-medium) var(--ease-out),
    opacity var(--duration-fast);
}

.mobile-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 2;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;

  padding: 100px var(--page-gutter) 50px;

  background: var(--ink);
  color: var(--paper);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-15px);

  transition:
    opacity var(--duration-medium),
    visibility var(--duration-medium),
    transform var(--duration-medium) var(--ease-out);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav a {
  display: block;
  padding-block: 10px;
  border-bottom: 1px solid var(--border-light);

  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 60px);
  font-weight: 600;
  letter-spacing: -.065em;
}

.mobile-nav a:last-child {
  color: var(--sand);
}

/* ------------------------------------------------------------
   04. HERO
   ------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;

  background-image:
    radial-gradient(
      ellipse at 90% 15%,
      rgba(121, 82, 56, .22),
      transparent 45%
    ),
    repeating-linear-gradient(
      95deg,
      transparent 0,
      transparent 4px,
      rgba(255, 255, 255, .009) 5px,
      transparent 6px
    );
}

.hero-inner {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: 105px;
  padding-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 25px;
  color: var(--sand);
}

.hero-meta span:last-child {
  display: none;
}

.hero-heading {
  position: relative;
  z-index: 2;
  margin-top: clamp(58px, 9vw, 150px);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 10.9vw, 195px);
  letter-spacing: -.087em;
  line-height: .92;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-title-accent {
  color: var(--sand);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  padding-top: clamp(42px, 7vw, 90px);
}

.hero-description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(25px, 4.3vw, 56px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.1;
}

.hero-system {
  color: var(--sand);
}

.hero-summary {
  color: var(--dark-muted);
  font-size: 14px;
}

.hero-description .text-link {
  margin-top: 6px;
}

.hero-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 13px;
}

.hero-video {
  min-width: 0;
}

.hero-video-primary {
  width: 57%;
}

.hero-video-secondary {
  width: 38%;
  transform: translateY(20px);
}

.hero-video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

.hero-video-caption strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -.05em;
}

.hero-video-caption > span:last-child {
  color: var(--sand);
}

.hero-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 58px;
  color: var(--dark-muted);
}

.hero-footer a {
  color: var(--paper);
}

.hero-side-note {
  display: none;
  position: absolute;
  right: 12px;
  bottom: 30%;
  color: var(--sand);
  writing-mode: vertical-rl;
}

/* ------------------------------------------------------------
   05. REPRODUCTOR NATIVO
   ------------------------------------------------------------ */

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  isolation: isolate;

  border-radius: var(--radius-sm);
  background: var(--brown);
  color: var(--white);
}

.video-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 85% 12%,
      rgba(255, 255, 255, .11),
      transparent 50%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 8px,
      rgba(0, 0, 0, .035) 9px
    );
}

.video-frame.is-loading::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 3px;
  background: var(--paper);
  transform-origin: left;
  animation: loading-progress 1.7s ease-in-out infinite;
}

@keyframes loading-progress {
  0% {
    transform: scaleX(0);
  }

  65% {
    transform: scaleX(.75);
  }

  100% {
    transform: scaleX(1);
  }
}

.video-frame video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;

  object-fit: contain;
  background: var(--ink);
  opacity: 0;

  transition: opacity var(--duration-medium);
}

.video-frame.has-image video,
.video-frame.has-video video {
  opacity: 1;
}

.video-frame.has-error video {
  display: none;
}

.video-fallback {
  position: absolute;
  z-index: 0;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: clamp(15px, 3vw, 30px);
  background: transparent;
}

.video-fallback strong {
  margin-block: auto;

  font-family: var(--font-display);
  font-size: clamp(42px, 9vw, 115px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.09em;
  overflow-wrap: anywhere;
}

.fallback-eyebrow,
.fallback-description {
  color: var(--paper);
}

.fallback-description {
  max-width: 190px;
  font-size: clamp(11px, 1.1vw, 15px);
}

.video-frame-hero .video-fallback strong {
  font-size: clamp(45px, 7.2vw, 100px);
}

.video-controls {
  position: absolute;
  z-index: 5;
  inset: auto 9px 9px;

  display: flex;
  align-items: center;
  gap: 6px;
}

.video-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;

  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 2px;

  background: rgba(33, 30, 26, .88);
  color: #fff;

  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;

  backdrop-filter: blur(8px);

  transition:
    background var(--duration-fast),
    transform var(--duration-fast);
}

.video-control:hover {
  background: var(--brown);
}

.video-control:active {
  transform: scale(.96);
}

.sound-toggle {
  flex: 1;
  white-space: nowrap;
}

.expand-toggle {
  font-size: 19px;
}

.video-frame:not(.can-play) .video-controls {
  display: none;
}

.video-frame[data-video-id="npc"] {
  background: var(--clay);
}

.video-frame[data-video-id="npc"]::before {
  background:
    radial-gradient(
      ellipse at 25% 80%,
      rgba(33, 30, 26, .28),
      transparent 60%
    );
}

/* ------------------------------------------------------------
   06. CONTEXTO
   ------------------------------------------------------------ */

.context-grid {
  display: grid;
  gap: 45px;
}

.context-heading .display-heading {
  max-width: 1100px;
  font-size: clamp(42px, 8.7vw, 113px);
}

.context-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 340px;
}

.context-aside > p {
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.4;
}

.context-arrow {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--brown);
}

.context-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.context-tags span {
  padding: 6px 9px;
  border: 1px solid var(--border);
}

/* ------------------------------------------------------------
   07. WORK INTRO
   ------------------------------------------------------------ */

.section-work-intro {
  padding-bottom: clamp(45px, 6vw, 90px);
  background: var(--paper-dark);
}

.work-intro-grid {
  display: grid;
  gap: 30px;
}

.work-intro-grid .display-heading {
  font-size: clamp(47px, 9.5vw, 130px);
}

.team-credit {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.65vw, 21px);
  font-weight: 500;
  line-height: 1.4;
}

/* ------------------------------------------------------------
   08. CASOS GRANDES
   ------------------------------------------------------------ */

.case-study {
  padding-block: clamp(70px, 11vw, 160px);
}

.case-study-pou {
  background: var(--paper-dark);
}

.case-grid {
  display: grid;
  gap: 45px;
  align-items: center;
}

.case-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-topline {
  display: flex;
  gap: 35px;
  margin-bottom: 30px;
}

.metric-display {
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 275px);
  font-weight: 700;
  letter-spacing: -.105em;
  line-height: .85;
  white-space: nowrap;
}

.metric-display span {
  margin-left: 7px;
  font-size: .48em;
  letter-spacing: -.08em;
}

.case-title {
  max-width: 680px;
  margin-top: 35px;

  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 70px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.06;
}

.case-title span {
  color: var(--muted);
}

.case-description {
  max-width: 390px;
  margin-top: 25px;
  font-size: clamp(16px, 1.5vw, 20px);
}

.case-copy .text-link {
  margin-top: 35px;
}

.case-source {
  margin-top: 40px;
  opacity: .72;
}

.case-media {
  position: relative;
  width: min(100%, 460px);
  justify-self: center;
}

.video-frame-case {
  box-shadow: 18px 18px 0 rgba(33, 30, 26, .12);
}

.section-dark .video-frame-case {
  box-shadow: 18px 18px 0 rgba(200, 180, 156, .15);
}

.case-study-npc .metric-display {
  color: var(--paper);
}

.case-study-npc .case-title,
.case-study-npc .case-description {
  color: var(--paper);
}

/* ------------------------------------------------------------
   09. COMENTARIOS
   ------------------------------------------------------------ */

.section-comments {
  background: var(--paper);
}

.section-heading-row {
  display: grid;
  gap: 30px;
  align-items: end;
  margin-bottom: 50px;
}

.section-comments .display-heading {
  font-size: clamp(48px, 9vw, 120px);
}

.comments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.comment-artifact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  transition:
    transform var(--duration-medium) var(--ease-out),
    filter var(--duration-medium) var(--ease-out);
}

/* Recortes de comentarios: piezas sueltas, ligeramente giradas */
.comment-artifact:nth-child(4n + 1) { transform: rotate(-1.1deg); }
.comment-artifact:nth-child(4n + 2) { transform: rotate(0.9deg) translateY(14px); }
.comment-artifact:nth-child(4n + 3) { transform: rotate(-0.6deg); }
.comment-artifact:nth-child(4n + 4) { transform: rotate(1.3deg) translateY(22px); }

.comment-artifact:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.04);
  z-index: 2;
}

.comment-artifact img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 2px 10px rgb(36 30 25 / 0.18);
}

.comment-artifact:hover img {
  box-shadow: 0 10px 26px rgb(36 30 25 / 0.28);
}

.comment-artifact a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;

  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.pending-artifact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  min-height: 245px;

  padding: 24px;
  border: 1px dashed var(--brown);
  background: var(--paper-dark);
}

.pending-artifact strong {
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.pending-artifact p {
  max-width: 370px;
  font-size: 14px;
}

/* ------------------------------------------------------------
   10. ESTRATEGIA
   ------------------------------------------------------------ */

.section-strategy {
  overflow: hidden;
}

.strategy-intro {
  display: grid;
  gap: 30px;
}

.strategy-intro .display-heading {
  max-width: 1200px;
  font-size: clamp(50px, 9.4vw, 137px);
}

.strategy-intro .display-heading span,
.strategy-intro .display-heading em {
  display: block;
}

.strategy-intro .display-heading span {
  color: #eadbca;
}

.strategy-intro .display-heading em {
  margin-top: 22px;
  font-style: normal;
  color: var(--ink);
}

.strategy-description {
  max-width: 350px;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.35;
}

.strategy-steps {
  display: grid;
  margin-top: clamp(65px, 11vw, 140px);
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .45);
}

.strategy-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 15px 20px;
  padding: 23px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}

.strategy-steps li > span {
  padding-top: 6px;
}

.strategy-steps h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1;
}

.strategy-steps p {
  grid-column: 2;
  max-width: 340px;
  font-size: 15px;
  color: #f1e8dd;
}

.strategy-statement {
  max-width: 1000px;
  margin-top: clamp(70px, 11vw, 150px);

  font-family: var(--font-display);
  font-size: clamp(35px, 6.6vw, 92px);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: 1.07;
}

.strategy-cases {
  margin-top: clamp(90px, 13vw, 180px);
}

.module-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 15px;
  border-top: 1px solid rgba(255, 255, 255, .55);
}

.pending-case {
  display: grid;
  gap: 35px;
  padding-block: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
}

.pending-case-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.pending-case h3 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 94px);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: 1;
}

.pending-case-copy p {
  max-width: 390px;
  font-size: 17px;
}

.pending-metric {
  max-width: 390px;
  padding: 13px;
  border: 1px dashed rgba(255, 255, 255, .7);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.pending-media {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;

  width: min(100%, 290px);
  aspect-ratio: 9 / 16;
  padding: 20px;
  border: 1px dashed var(--paper);

  background: rgba(33, 30, 26, .16);
}

.pending-media strong {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  line-height: .95;
  letter-spacing: -.07em;
}

.pending-media small {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   11. ARCHIVO
   ------------------------------------------------------------ */

.section-archive {
  background: var(--paper);
}

.archive-heading {
  display: grid;
  gap: 35px;
  margin-bottom: 60px;
}

.archive-heading .display-heading {
  font-size: clamp(58px, 10.6vw, 151px);
}

.archive-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 26px;
}

.archive-intro p {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 37px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.archive-list {
  border-top: 2px solid var(--ink);
}

.archive-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  position: relative;
  min-height: 86px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);

  transition:
    padding var(--duration-medium) var(--ease-out),
    color var(--duration-fast),
    background var(--duration-fast);
}

.archive-row:hover,
.archive-row:focus-within {
  padding-inline: 12px;
  background: var(--ink);
  color: var(--paper);
}

.archive-row-number {
  align-self: start;
  padding-top: 8px;
  opacity: .7;
}

.archive-row-main {
  min-width: 0;
}

.archive-row-title {
  display: block;
  width: fit-content;

  font-family: var(--font-display);
  font-size: clamp(26px, 4.3vw, 61px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.05;
}

.archive-row-title:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.archive-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 10px;
  opacity: .7;
}

.archive-row-end {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.3vw, 32px);
}

.archive-preview {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;

  width: min(220px, 18vw);
  aspect-ratio: 9 / 16;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;

  background: var(--brown);
  color: var(--paper);

  transform: translate3d(-150%, -150%, 0)
    rotate(-5deg);

  transition:
    opacity var(--duration-fast),
    visibility var(--duration-fast);
}

.archive-preview.is-visible {
  opacity: 1;
  visibility: visible;
}

.archive-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ink);
}

.archive-preview-label {
  position: absolute;
  inset: auto 8px 8px;
  padding: 8px;
  background: rgba(33, 30, 26, .82);
  color: #fff;

  font-family: var(--font-mono);
  font-size: 10px;
}

.archive-footer {
  display: grid;
  gap: 20px;
  margin-top: 35px;
}

.archive-footer p {
  max-width: 550px;
  font-size: 12px;
  color: var(--muted);
}

.archive-other {
  font-family: var(--font-mono);
  line-height: 2;
}

/* ------------------------------------------------------------
   12. 38 MINUTOS
   ------------------------------------------------------------ */

.section-speed {
  overflow: hidden;
}

.speed-heading {
  display: grid;
  gap: 35px;
  align-items: end;
}

.speed-heading .display-heading {
  font-size: clamp(88px, 20vw, 300px);
  font-weight: 700;
  letter-spacing: -.11em;
  line-height: .85;
}

.speed-heading .display-heading span {
  color: var(--sand);
}

.speed-heading > p {
  max-width: 360px;
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.3;
}

.speed-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
  margin-top: clamp(80px, 12vw, 170px);
}

.speed-timeline > div:first-child,
.speed-timeline > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.speed-timeline > div:last-child {
  align-items: flex-end;
}

.speed-timeline strong {
  font-family: var(--font-display);
  font-size: clamp(38px, 8vw, 116px);
  font-weight: 600;
  letter-spacing: -.09em;
  line-height: 1;
}

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}

.timeline-line {
  width: clamp(40px, 14vw, 220px);
  height: 2px;
  background: var(--sand);
}

.timeline-caption {
  margin-top: 25px;
  color: var(--sand);
}

.speed-detail {
  display: grid;
  gap: 50px;
  margin-top: clamp(100px, 13vw, 180px);
}

.ps2-art {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  overflow: hidden;
  padding: clamp(20px, 4vw, 45px);

  background:
    linear-gradient(
      115deg,
      rgba(33, 30, 26, .05),
      rgba(33, 30, 26, .5)
    ),
    repeating-linear-gradient(
      -12deg,
      transparent 0,
      transparent 22px,
      rgba(33, 30, 26, .07) 23px,
      transparent 24px
    ),
    var(--sand);

  color: var(--ink);
}

.ps2-art > strong {
  margin-block: auto;

  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 135px);
  font-weight: 700;
  letter-spacing: -.105em;
  line-height: .85;
}

.ps2-art-sticker {
  align-self: flex-end;
  padding: 15px;
  transform: rotate(-7deg);

  background: var(--brown);
  color: var(--paper);

  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 37px);
  font-weight: 700;
  line-height: 1;
}

.ps2-art small {
  margin-top: 35px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.speed-story {
  display: flex;
  flex-direction: column;
}

.speed-story article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-block: 28px;
  border-top: 1px solid var(--border-light);
}

.speed-story h3 {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.1;
}

.speed-story p {
  max-width: 390px;
  font-size: 16px;
}

.speed-story small {
  margin-top: 12px;
  color: var(--sand);
}

/* ------------------------------------------------------------
   13. VERSIONITIS
   ------------------------------------------------------------ */

.section-versions {
  background: var(--paper);
}

.versions-heading {
  display: grid;
  gap: 25px;
  margin-bottom: 55px;
}

.versions-heading .display-heading {
  font-size: clamp(47px, 9vw, 120px);
}

.versions-heading > p {
  max-width: 310px;
  font-size: 18px;
}

.version-comparator {
  display: grid;
  gap: 45px;
}

.version-stage {
  min-width: 0;
  padding: 13px;
  background: var(--paper-dark);
}

.version-stage-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 6px 17px;
}

.version-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: clamp(320px, 52vw, 680px);
  overflow: hidden;

  padding: 30px 20px;
  background: var(--brown);
  color: var(--paper);
  text-align: center;

  transition: background var(--duration-medium);
}

.version-art::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(255, 255, 255, .38);
  pointer-events: none;
}

.version-art[data-state="v1"] {
  background: var(--sand);
  color: var(--ink);
}

.version-art[data-state="v2"] {
  background: var(--paper-deep);
  color: var(--ink);
}

.version-art[data-state="v3"] {
  background: var(--clay);
}

.version-art[data-state="final"] {
  background: var(--brown);
}

.version-art-stamp {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin-bottom: 28px;
}

.version-art strong {
  position: relative;
  z-index: 1;
  max-width: 95%;

  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 130px);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .95;
  overflow-wrap: anywhere;
}

.version-art > p {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin-top: 22px;
}

.version-art.has-real-art {
  background: var(--ink);
}

.version-art .version-real-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.version-art.has-real-art strong,
.version-art.has-real-art > p,
.version-art.has-real-art .version-art-stamp {
  display: none;
}

.version-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding-top: 12px;
}

.version-tabs button {
  min-height: 48px;
  padding: 10px 6px;
  border: 1px solid var(--ink);

  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;

  transition:
    color var(--duration-fast),
    background var(--duration-fast);
}

.version-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.version-tabs button:hover:not([aria-pressed="true"]) {
  background: var(--sand);
}

.version-process > h3 {
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -.06em;
}

.process-timeline {
  list-style: none;
  border-top: 1px solid var(--border);
}

.process-timeline li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.process-timeline time {
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.process-timeline span {
  font-size: 15px;
}

.version-disclaimer {
  max-width: 350px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------------------------------------
   14. CUANDO INTERNET NO ESPERA
   ------------------------------------------------------------ */

.section-timing {
  background: var(--paper-dark);
}

.section-timing .display-heading {
  max-width: 1180px;
  font-size: clamp(47px, 8.4vw, 116px);
}

.timing-grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(65px, 10vw, 130px);
}

.timing-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 460px;
  padding: clamp(22px, 4vw, 50px);

  background: var(--paper);
}

.timing-panel-accent {
  background: var(--brown);
  color: var(--paper);
}

.timing-panel h3 {
  margin-top: 65px;

  font-family: var(--font-display);
  font-size: clamp(37px, 5vw, 70px);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: 1.05;
}

.timing-panel > p {
  max-width: 360px;
  margin-top: 22px;
  font-size: 16px;
}

.timing-panel > p.mono {
  margin-top: 18px;
}

.timing-records {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  margin-top: auto;
  padding-top: 40px;
}

.timing-record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;

  padding-block: 14px;
  border-top: 1px solid currentColor;

  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.timing-placeholder {
  padding: 22px;
  border: 1px dashed currentColor;
}

.timing-placeholder strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 21px;
}

.timing-placeholder p {
  font-size: 12px;
}

/* ------------------------------------------------------------
   15. FUERA DE HORAS
   ------------------------------------------------------------ */

.section-personal {
  overflow: hidden;
}

.section-personal > .shell > .display-heading {
  max-width: 1290px;
  margin-bottom: clamp(90px, 13vw, 180px);
  font-size: clamp(47px, 8.5vw, 120px);
}

.section-personal > .shell > .display-heading span {
  color: var(--sand);
}

.personal-feature {
  display: grid;
  gap: 45px;
  align-items: center;
  padding-bottom: clamp(80px, 12vw, 150px);
  border-bottom: 1px solid var(--border-light);
}

.personal-feature-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(350px, 55vw, 650px);
  overflow: hidden;
  padding: clamp(20px, 4vw, 45px);

  background: var(--sand);
  color: var(--ink);
}

.personal-feature-art > strong {
  position: relative;
  z-index: 1;
  margin-block: auto;

  font-family: var(--font-display);
  font-size: clamp(100px, 17vw, 230px);
  font-weight: 700;
  letter-spacing: -.13em;
  line-height: .68;
}

.ar-spark {
  position: absolute;
  top: 16%;
  right: -4%;

  font-size: clamp(180px, 27vw, 380px);
  line-height: 1;
  color: var(--brown);
  transform: rotate(-20deg);
}

.personal-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.personal-feature-copy > h3 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 91px);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: 1.02;
}

.personal-feature-copy > h4 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 19px;
}

.personal-feature-copy > p {
  max-width: 530px;
  color: var(--dark-muted);
  font-size: 15px;
}

.ar-metrics {
  display: grid;
  gap: 25px;
  width: 100%;
  margin-block: 22px;
}

.ar-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.ar-metrics strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -.055em;
}

.ar-metrics span {
  color: var(--sand);
}

.personal-feature-copy .personal-caption {
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 11px;
}

.personal-projects {
  display: grid;
  gap: 16px;
  margin-top: clamp(70px, 12vw, 140px);
}

.personal-project-card {
  display: flex;
  flex-direction: column;
  min-height: 510px;
  background: var(--paper);
  color: var(--ink);
}

.project-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 255px;
  overflow: hidden;
  padding: 23px;

  background: var(--brown);
  color: var(--white);
}

.project-art strong {
  position: relative;
  z-index: 1;
  margin-block: auto;

  font-family: var(--font-display);
  font-size: clamp(37px, 6vw, 67px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .95;
  overflow-wrap: anywhere;
}

.project-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-art[data-project="pokedraft"] {
  background: #514537;
}

.project-art[data-project="bebeahorro"] {
  background: #ac7459;
}

.project-art[data-project="verificatucoche"] {
  background: #625448;
}

.project-art img + strong {
  display: none;
}

.project-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 25px;
}

.project-card-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(29px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -.06em;
}

.project-card-copy > p {
  font-size: 15px;
}

.project-card-copy .project-tagline {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card-meta span {
  padding: 6px 8px;
  border: 1px solid var(--border);

  font-family: var(--font-mono);
  font-size: 10px;
}

.project-card-copy .text-link {
  margin-top: 12px;
}

/* ------------------------------------------------------------
   16. PREMIOS Y TRAYECTORIA
   ------------------------------------------------------------ */

.section-career {
  background: var(--paper);
}

.awards-block,
.career-block,
.workflow-block {
  padding-bottom: clamp(90px, 13vw, 170px);
}

.awards-block .display-heading {
  margin-bottom: 60px;
}

.awards-list {
  border-top: 2px solid var(--ink);
}

.award-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px 25px;
  padding-block: 23px;
  border-bottom: 1px solid var(--border);
}

.award-row-year {
  padding-top: 8px;
}

.award-row-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.award-row h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -.06em;
}

.award-row p {
  font-size: 14px;
}

.award-attribution {
  color: var(--muted);
}

.career-block > .display-heading {
  max-width: 1150px;
  margin-bottom: 28px;
}

.career-intro {
  max-width: 600px;
  font-size: clamp(18px, 2.2vw, 27px);
}

.career-timeline {
  margin-top: 65px;
  border-top: 2px solid var(--ink);
}

.career-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding-block: 26px;
  border-bottom: 1px solid var(--border);
}

.career-row-period {
  padding-top: 8px;
}

.career-row-content h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -.06em;
}

.career-row-content p {
  max-width: 450px;
  margin-top: 7px;
  font-size: 14px;
}

.career-dates {
  color: var(--brown);
}

.career-origin {
  max-width: 750px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}

.workflow-block {
  display: grid;
  gap: 50px;
  padding-top: 50px;
  border-top: 2px solid var(--ink);
}

.workflow-block > div > .mono {
  display: block;
  margin-bottom: 35px;
}

.workflow-block .display-heading {
  font-size: clamp(47px, 7vw, 94px);
}

.workflow-block > div > p {
  max-width: 380px;
  margin-top: 24px;
  font-size: 17px;
}

.workflow-list {
  list-style: none;
}

.workflow-list li {
  padding-block: 15px;
  border-bottom: 1px solid var(--border);
}

.workflow-block > .team-credit {
  align-self: end;
}

/* ------------------------------------------------------------
   17. SOBRE MÍ
   ------------------------------------------------------------ */

.section-about {
  background: var(--paper-dark);
}

.about-grid {
  display: grid;
  gap: 65px;
}

.about-copy .display-heading {
  margin-bottom: 45px;
  font-size: clamp(55px, 10vw, 142px);
}

.about-copy > p {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.5;
}

.about-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 45px;
}

.about-interests span {
  padding: 8px 10px;
  border: 1px solid var(--border);
}

.about-portrait {
  align-self: start;
}

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  aspect-ratio: 4 / 5;
  padding: 24px;
  overflow: hidden;

  background: var(--brown);
  color: var(--paper);
}

.portrait-monogram {
  font-family: var(--font-display);
  font-size: clamp(110px, 16vw, 245px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.12em;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--brown);
}

.about-footnotes {
  list-style: none;
  padding-top: 20px;
}

.about-footnotes li {
  padding-block: 9px;
  border-bottom: 1px solid var(--border);
}

/* ------------------------------------------------------------
   18. CONTACTO
   ------------------------------------------------------------ */

.section-contact {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.contact-body {
  position: relative;
  z-index: 1;
}

.section-contact .display-heading {
  max-width: 1200px;
  font-size: clamp(48px, 9vw, 130px);
}

.section-contact .display-heading span {
  color: var(--ink);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: clamp(60px, 9vw, 120px);
}

.contact-email {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;

  width: 100%;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--paper);

  font-family: var(--font-display);
  font-size: clamp(15px, 3.5vw, 45px);
  font-weight: 600;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;

  transition: color var(--duration-fast);
}

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

.copy-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--paper);

  transition:
    background var(--duration-fast),
    color var(--duration-fast);
}

.copy-button:hover {
  background: var(--paper);
  color: var(--ink);
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: clamp(65px, 10vw, 140px);
}

.contact-giant {
  position: relative;
  left: -.025em;
  width: max-content;
  max-width: none;
  margin-top: clamp(60px, 9vw, 120px);

  font-family: var(--font-display);
  font-size: clamp(95px, 20.5vw, 380px);
  font-weight: 700;
  letter-spacing: -.11em;
  line-height: .67;
  color: var(--paper);

  pointer-events: none;
  user-select: none;
}

/* ------------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  gap: 20px;
  padding-block: 30px;
}

.site-footer p {
  font-size: 12px;
  color: var(--dark-muted);
}

.final-button {
  width: fit-content;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  color: var(--sand);
}

.final-button:hover {
  background: var(--brown);
  color: var(--paper);
}

.back-to-top {
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ------------------------------------------------------------
   20. VIDEO DIALOG
   ------------------------------------------------------------ */

.video-dialog {
  position: fixed;
  inset: 0;

  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 14px;

  border: 0;
  background: var(--ink);
  color: var(--paper);

  overflow: auto;
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, .9);
}

.video-dialog-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.video-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
}

.dialog-close {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--border-light);
}

.dialog-close:hover {
  background: var(--brown);
}

.dialog-video-container {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding-bottom: 25px;
}

.dialog-video-container video {
  width: auto;
  max-width: 100%;
  height: min(78svh, 900px);
  max-height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

.dialog-video-container .dialog-pending {
  max-width: 350px;
  padding: 40px;
  border: 1px dashed var(--sand);
  text-align: center;
}

/* ------------------------------------------------------------
   21. CURSOR, TOAST Y REVELADOS
   ------------------------------------------------------------ */

.custom-cursor {
  display: none;
  position: fixed;
  z-index: var(--z-cursor);
  top: 0;
  left: 0;

  width: 76px;
  height: 76px;
  border-radius: 50%;

  align-items: center;
  justify-content: center;

  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);

  pointer-events: none;
  opacity: 0;

  transform: translate3d(-200px, -200px, 0);
  transition:
    opacity var(--duration-fast),
    background var(--duration-fast);
}

.custom-cursor span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.egg-message {
  position: fixed;
  z-index: 120;
  right: 20px;
  bottom: 20px;
  max-width: min(390px, calc(100vw - 40px));
  padding: 17px 20px;

  border: 1px solid var(--paper);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 7px 7px 0 var(--brown);
}

/*
   El revelado es progresivo:
   sin JS, todo el contenido permanece visible.
*/
.js-motion .reveal {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

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

/* ------------------------------------------------------------
   22. TABLET
   ------------------------------------------------------------ */

@media (min-width: 650px) {
  :root {
    --page-gutter: 30px;
    --grid-gap: 16px;
  }

  .hero-meta span:last-child {
    display: inline;
  }

  .hero-bottom {
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    align-items: end;
    gap: 28px;
  }

  .hero-media {
    justify-content: flex-end;
  }

  .hero-video-primary {
    width: 50%;
  }

  .hero-video-secondary {
    width: 35%;
  }

  .section-heading-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, .6fr);
  }

  .comments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-steps li {
    grid-template-columns: 50px minmax(0, 1fr) minmax(180px, .65fr);
    align-items: center;
  }

  .strategy-steps p {
    grid-column: 3;
  }

  .pending-case {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
    align-items: center;
  }

  .archive-heading {
    grid-template-columns: 1.6fr .4fr;
  }

  .archive-row {
    grid-template-columns: 45px minmax(0, 1fr) 70px;
  }

  .speed-detail {
    grid-template-columns: 1.1fr .9fr;
  }

  .version-comparator {
    grid-template-columns: 1.25fr .75fr;
  }

  .timing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .personal-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ar-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1.1fr .9fr;
  }

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

/* ------------------------------------------------------------
   23. DESKTOP
   ------------------------------------------------------------ */

@media (min-width: 1024px) {
  :root {
    --page-gutter: clamp(48px, 5vw, 72px);
    --grid-gap: 20px;
  }

  .header-inner {
    min-height: 95px;
  }

  .wordmark {
    font-size: 32px;
  }

  .main-nav {
    display: flex;
  }

  .mobile-menu-toggle,
  .mobile-nav {
    display: none;
  }

  .hero-inner {
    padding-top: 118px;
  }

  .hero-heading {
    margin-top: clamp(80px, 10vw, 165px);
  }

  .hero-bottom {
    grid-template-columns: minmax(290px, .8fr) minmax(0, 1.2fr);
    padding-top: 20px;
    gap: 65px;
  }

  .hero-video-secondary {
    transform: translateY(50px);
  }

  .hero-side-note {
    display: block;
  }

  .context-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr);
    align-items: end;
    gap: 80px;
  }

  .work-intro-grid {
    grid-template-columns: 1fr 260px;
    align-items: end;
  }

  .case-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(65px, 8vw, 140px);
  }

  .case-grid-reversed .case-media {
    grid-column: 1;
    grid-row: 1;
  }

  .case-grid-reversed .case-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .case-media {
    width: min(100%, 480px);
  }

  .comments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .strategy-intro {
    grid-template-columns: minmax(0, 1.65fr) minmax(240px, .35fr);
    align-items: end;
    gap: 65px;
  }

  .strategy-steps li {
    grid-template-columns: 80px minmax(0, 1fr) minmax(280px, .4fr);
  }

  .pending-case {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .pending-media {
    justify-self: center;
    width: min(100%, 340px);
  }

  .archive-row {
    min-height: 112px;
    grid-template-columns: 75px minmax(0, 1fr) 120px;
  }

  .archive-footer {
    grid-template-columns: 1fr 1fr;
  }

  .speed-heading {
    grid-template-columns: 1.7fr .3fr;
  }

  .speed-detail {
    gap: 100px;
  }

  .version-comparator {
    grid-template-columns: 1.45fr .55fr;
    gap: 80px;
  }

  .personal-feature {
    grid-template-columns: 1fr 1fr;
    gap: 85px;
  }

  .personal-projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .award-row {
    grid-template-columns: 130px minmax(0, 1fr) 170px;
  }

  .career-row {
    grid-template-columns: 170px 1fr;
  }

  .workflow-block {
    grid-template-columns: 1.4fr .6fr;
    column-gap: 100px;
  }

  .workflow-block > .team-credit {
    grid-column: 2;
  }

  .about-grid {
    grid-template-columns: 1.25fr .75fr;
    gap: 100px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr auto auto;
  }
}

/* ------------------------------------------------------------
   24. PANTALLAS MUY ANCHAS
   ------------------------------------------------------------ */

@media (min-width: 1550px) {
  .hero h1 {
    font-size: clamp(150px, 10.9vw, 195px);
  }

  .hero-bottom {
    max-width: 1380px;
  }
}

/* ------------------------------------------------------------
   25. DISPOSITIVOS TÁCTILES
   ------------------------------------------------------------ */

@media (hover: none), (pointer: coarse) {
  .custom-cursor,
  .archive-preview {
    display: none !important;
  }

  .archive-row:hover {
    padding-inline: 0;
    background: transparent;
    color: var(--ink);
  }

  .comment-artifact:hover {
    transform: none;
    box-shadow: none;
  }

  .video-control {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ------------------------------------------------------------
   26. CURSOR EN DESKTOP
   ------------------------------------------------------------ */

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: flex;
  }

  .video-frame[data-cursor-label]:hover {
    cursor: none;
  }

  .archive-row[data-cursor-label]:hover {
    cursor: none;
  }
}

/* ------------------------------------------------------------
   27. MOVIMIENTO REDUCIDO
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js-motion .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-video-secondary {
    transform: none;
  }

  .custom-cursor,
  .archive-preview {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   28. CONTRASTE, FORCED COLORS Y FALLBACKS
   ------------------------------------------------------------ */

@media (forced-colors: active) {
  .video-control,
  .version-tabs button,
  .copy-button,
  .final-button,
  .pending-artifact,
  .pending-metric {
    border: 1px solid ButtonText;
  }

  .video-control:focus-visible,
  .version-tabs button:focus-visible {
    outline: 2px solid Highlight;
  }

  .video-fallback,
  .portrait-placeholder {
    forced-color-adjust: none;
  }
}

/* ------------------------------------------------------------
   29. IMPRESIÓN
   ------------------------------------------------------------ */

@media print {
  :root {
    --paper: #fff;
    --ink: #000;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .mobile-nav,
  .video-controls,
  .custom-cursor,
  .egg-message,
  .contact-giant,
  .site-footer,
  .version-tabs {
    display: none !important;
  }

  .section {
    break-inside: avoid;
    padding-block: 30px;
  }

  .section-dark,
  .section-brown {
    background: #fff !important;
    color: #000 !important;
  }

  .display-heading {
    font-size: 38px !important;
    color: #000 !important;
  }

  .video-frame {
    max-height: 260px;
    width: 150px;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================================
   30. MOBILE REFINEMENTS — ITERACIÓN 02

   Solo móvil. El escritorio permanece intacto.

   01. Tira de métricas del hero
   02. HABLAMOS. sin clipping
   03. Collage de comentarios
   04. Placeholder NPC compacto

   ============================================================ */

@media screen and (max-width: 768px) {

  /* ----------------------------------------------------------
     30.1 HERO — ÍNDICES Y MÉTRICAS

     Problema:
     El segundo 3,5 M se partía en dos líneas.

     Solución:
     - Se bloquea el salto de línea en la cifra.
     - Se separa visualmente el identificador.
     - Se conserva el ancho disponible del vídeo.
     - No se comprimen los números.

     En 390px la tira se convierte en una composición
     editorial de dos niveles dentro de cada item.
     ---------------------------------------------------------- */

  .hero-media {
    align-items: flex-end;
    gap: clamp(10px, 3vw, 18px);
  }

  .hero-video {
    min-width: 0;
  }

  .hero-video-caption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 5px;

    min-width: 0;
    margin-top: 12px;
    padding-top: 10px;

    border-top: 1px solid var(--border-light);
  }

  /*
   * La etiqueta ocupa su propia fila.
   * La cifra y la flecha comparten la siguiente.
   */
  .hero-video-caption .mono {
    grid-column: 1 / -1;
    display: block;

    min-width: 0;
    font-size: clamp(9px, 2.4vw, 11px);
    line-height: 1.45;
    letter-spacing: 0;
    overflow-wrap: normal;
  }

  .hero-video-caption strong {
    grid-column: 1;
    grid-row: 2;

    display: inline-block;
    width: max-content;
    max-width: 100%;

    font-family: var(--font-display);
    font-size: clamp(17px, 5.1vw, 23px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.055em;

    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    font-variant-numeric: tabular-nums;
  }

  .hero-video-caption > span:last-child {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;

    color: var(--sand);
    font-size: 19px;
    line-height: 1;

    white-space: nowrap;
  }

  /*
   * El contenedor puede reducir su ancho,
   * pero la cifra no puede romperse.
   */
  .hero-video-primary,
  .hero-video-secondary {
    min-width: 0;
  }

  /*
   * Ajuste específico de los dispositivos estrechos.
   *
   * En lugar de reducir la tipografía hasta volverla
   * ilegible, damos más aire a cada etiqueta.
   */
  @media (max-width: 390px) {
    .hero-video-caption {
      column-gap: 4px;
    }

    .hero-video-caption .mono {
      font-size: 9px;
    }

    .hero-video-caption strong {
      font-size: clamp(16px, 4.8vw, 19px);
    }

    .hero-video-caption > span:last-child {
      font-size: 16px;
    }
  }

  /* ----------------------------------------------------------
     30.2 HABLAMOS. — AJUSTE TIPOGRÁFICO

     Problema:
     La palabra sobrepasa el viewport.

     Solución:
     - Anchura limitada al contenedor visible.
     - Tamaño dependiente del viewport.
     - Se conserva el carácter de titular gigante.
     - No se oculta la última letra.

     El padding lateral del shell ya está descontado
     mediante calc(100vw - 2 * var(--page-gutter)).
     ---------------------------------------------------------- */

  .section-contact .contact-giant {
    position: relative;
    left: 0;

    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin-top: clamp(58px, 11vw, 86px);

    /*
     * Space Grotesk Bold: escala conservadora
     * para que las ocho letras y el punto
     * entren en el ancho útil.
     */
    font-size: clamp(46px, 12.2vw, 92px);
    font-weight: 700;
    line-height: .82;
    letter-spacing: -.105em;

    white-space: nowrap;
    overflow: visible;

    /*
     * Garantiza un anclaje estable desde la izquierda.
     */
    text-align: left;
    transform: none;
  }

  /*
   * Separación visual adicional en tamaños
   * especialmente estrechos.
   */
  @media (max-width: 375px) {
    .section-contact .contact-giant {
      font-size: clamp(43px, 11.9vw, 48px);
      letter-spacing: -.11em;
    }
  }

  /* ----------------------------------------------------------
     30.3 COMENTARIOS — COLLAGE MÓVIL

     Problema:
     El muro parecía una lista de tarjetas idénticas.

     Solución:
     - Una columna con anchos variables.
     - Alineaciones alternas.
     - Rotaciones muy leves.
     - Diferencias de escala.
     - Distancia irregular entre recortes.

     Importante:
     No se cambia ningún contenido.
     Las capturas originales siguen siendo los únicos
     medios válidos cuando estén disponibles.
     ---------------------------------------------------------- */

  .section-comments .comments-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    gap: 0;

    padding-inline: 1px;
    padding-bottom: 16px;
  }

  .section-comments .comment-artifact {
    position: relative;

    width: 90%;
    min-width: 0;
    min-height: 0;

    margin: 0 0 29px 0;
    padding: clamp(14px, 4vw, 21px);

    border: 1px solid rgba(33, 30, 26, .16);
    border-radius: 1px;

    background: var(--white);
    color: var(--ink);

    box-shadow:
      3px 5px 0 rgba(33, 30, 26, .08);

    transform: rotate(-1.3deg);
    transform-origin: 50% 50%;

    /*
     * No se usa will-change permanente.
     * El gesto de collage no necesita animación.
     */
  }

  /*
   * Recortes con diferentes posiciones.
   * Ninguno sobrepasa la anchura del contenedor.
   */

  .section-comments .comment-artifact:nth-child(4n + 1) {
    width: 92%;
    margin-left: 1%;
    margin-right: auto;
    transform: rotate(-1.3deg);
  }

  .section-comments .comment-artifact:nth-child(4n + 2) {
    width: 83%;
    margin-left: auto;
    margin-right: 2%;
    transform: rotate(1.7deg);
  }

  .section-comments .comment-artifact:nth-child(4n + 3) {
    width: 95%;
    margin-left: 2%;
    margin-right: auto;
    transform: rotate(-.6deg);

    padding: clamp(18px, 5vw, 25px);
    box-shadow:
      5px 7px 0 rgba(121, 82, 56, .16);
  }

  .section-comments .comment-artifact:nth-child(4n) {
    width: 87%;
    margin-left: auto;
    margin-right: 1%;
    transform: rotate(1.1deg);
  }

  /*
   * Los destacados tienen más presencia sin
   * imponer una altura que deje huecos artificiales.
   */
  .section-comments .comment-artifact:nth-child(5n + 3) {
    width: 95%;
    padding: clamp(20px, 5.6vw, 27px);
  }

  /*
   * Se respeta la proporción de las capturas.
   * No hay crop en comentarios reales.
   */
  .section-comments .comment-artifact img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .section-comments .comment-artifact a {
    margin-top: 17px;
    padding-top: 10px;

    border-top: 1px solid rgba(33, 30, 26, .12);

    font-size: 10px;
    color: var(--brown);
    text-decoration: none;
  }

  /*
   * El fallback de comentarios conserva la
   * misma lógica de recorte.
   *
   * Si todavía no hay capturas, no aparecen
   * falsos comentarios: queda el placeholder.
   */
  .section-comments .pending-artifact {
    position: relative;

    width: 91%;
    min-height: 190px;

    margin-left: 3%;
    margin-right: auto;
    margin-bottom: 26px;

    padding: 22px;

    border: 1px dashed var(--brown);
    background: var(--paper-dark);

    box-shadow:
      5px 6px 0 rgba(121, 82, 56, .12);

    transform: rotate(-1.2deg);
  }

  .section-comments .pending-artifact strong {
    font-size: clamp(26px, 7vw, 35px);
    line-height: 1.07;
  }

  /*
   * Evita que la regla táctil global suprima
   * el collage. Aquí la rotación es parte de
   * la composición estática, no un hover.
   */
  .section-comments .comment-artifact:hover {
    box-shadow:
      3px 5px 0 rgba(33, 30, 26, .08);
  }

  /* ----------------------------------------------------------
     30.4 NPC — PLACEHOLDER COMPACTO

     Solo afecta al estado sin vídeo del caso NPC.

     NO afecta al vídeo real si se incorpora después.

     Altura:
     - Máximo aproximado: 58svh.
     - Proporción editorial: 4:5.
     - Centro compositivo con sello 3,5 M.

     No cambia data.js ni el marcador pendiente.
     ---------------------------------------------------------- */

  .case-study-npc
  .video-frame-case[data-video-id="npc"]:not(.can-play) {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;

    max-height: 58svh;
    min-height: 0;

    overflow: hidden;

    background:
      radial-gradient(
        ellipse at 78% 15%,
        rgba(241, 235, 221, .13),
        transparent 55%
      ),
      repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 10px,
        rgba(33, 30, 26, .035) 11px,
        transparent 12px
      ),
      var(--clay);
  }

  /*
   * Sello de métrica:
   * aparece únicamente mientras no hay vídeo
   * confirmado o disponible.

   * Es decoración, no sustituye el texto real
   * del caso ni el dato de su encabezado.
   */
  .case-study-npc
  .video-frame-case[data-video-id="npc"]:not(.can-play)::after {
    content: "3,5 M";

    position: absolute;
    z-index: 2;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);

    display: flex;
    align-items: center;
    justify-content: center;

    width: max-content;
    max-width: 87%;

    padding: .13em .26em .18em;

    border: 2px solid var(--paper);

    font-family: var(--font-display);
    font-size: clamp(48px, 16vw, 78px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.09em;

    color: var(--paper);
    background: rgba(33, 30, 26, .18);

    white-space: nowrap;
    pointer-events: none;
  }

  /*
   * Fallback organizado como una pieza gráfica:
   * metadatos arriba, sello central, aviso abajo.
   */
  .case-study-npc
  .video-frame-case[data-video-id="npc"]:not(.can-play)
  .video-fallback {
    position: absolute;
    z-index: 1;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;

    padding: clamp(18px, 5vw, 27px);
  }

  .case-study-npc
  .video-frame-case[data-video-id="npc"]:not(.can-play)
  .fallback-eyebrow {
    display: block;
    position: relative;

    max-width: 90%;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: .09em;
    line-height: 1.5;

    color: var(--paper);
  }

  /*
   * Se preserva "NPC." como parte del material
   * fallback, pero con una función secundaria.
   */
  .case-study-npc
  .video-frame-case[data-video-id="npc"]:not(.can-play)
  .video-fallback strong {
    position: absolute;

    right: 18px;
    top: 51%;

    width: auto;
    max-width: calc(100% - 36px);
    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(26px, 9vw, 43px);
    font-weight: 700;
    letter-spacing: -.075em;
    line-height: 1;

    color: rgba(241, 235, 221, .22);

    transform: translateY(70px);

    pointer-events: none;
  }

  .case-study-npc
  .video-frame-case[data-video-id="npc"]:not(.can-play)
  .fallback-description {
    position: relative;
    z-index: 3;

    display: block;
    width: 100%;
    max-width: 100%;

    margin-top: auto;
    padding-top: 12px;

    border-top: 1px solid rgba(241, 235, 221, .55);

    font-family: var(--font-mono);
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: 500;
    letter-spacing: .025em;
    line-height: 1.55;

    color: var(--paper);
  }

  /*
   * Evita que el placeholder ocupe todo el ancho
   * de la sección en móviles más grandes.
   */
  .case-study-npc .case-media {
    width: min(100%, 420px);
    justify-self: center;
  }

  /*
   * Mientras exista vídeo real (.can-play)
   * sigue utilizándose la proporción original 9:16
   * con object-fit: contain.
   *
   * No se altera el comportamiento audiovisual.
   */

}

/* ------------------------------------------------------------
   31. REDUCED MOTION — COLLAGE MÓVIL

   Las rotaciones del collage son compositivas,
   no animaciones.

   Se conservan sin transiciones.
   El resto de efectos sigue las reglas de reducción
   de movimiento ya existentes.
   ------------------------------------------------------------ */

@media screen and (max-width: 768px)
  and (prefers-reduced-motion: reduce) {

  .section-comments .comment-artifact,
  .section-comments .pending-artifact {
    transition: none !important;
  }

  /*
   * El sello del NPC es estático;
   * no necesita animación.
   */
  .case-study-npc
  .video-frame-case[data-video-id="npc"]:not(.can-play)::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Ajuste CMO: dentro de la tarjeta-recorte móvil, la captura
   no necesita su propia sombra (la tarjeta ya la tiene). */
@media screen and (max-width: 768px) {
  .section-comments .comment-artifact img {
    box-shadow: none;
    background: transparent;
  }
}

/* ============================================================
   32. ARCHIVO 75 — AJUSTE CMO

   El archivo es un manifiesto tabular, no una lista
   de titulares: filas compactas y escaneables.
   ============================================================ */

.archive-row {
  min-height: 0;
  padding: 14px 0;
}

.archive-row-title {
  font-size: clamp(16px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.archive-row-meta {
  margin-top: 6px;
  font-size: 10px;
}

/* Registros de timing: el título respira,
   la métrica ocupa su columna. */
.timing-record {
  align-items: baseline;
  gap: 12px;
}

.timing-record > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  line-height: 1.3;
}

.timing-record > a {
  flex: 0 0 auto;
}

.timing-record > .mono {
  flex: 0 0 47%;
  text-align: right;
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: .02em;
}

/* Captions con emoji: la display font no los cubre. */
.archive-row-title,
.timing-record > span:first-child {
  font-family: var(--font-display), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}


/* ========================================================
   33. EN LOS MEDIOS — SECCIÓN PRENSA (CODEX, REVISADO CMO)
   ======================================================== */
/* ============================================================
   32. EN LOS MEDIOS / ARCHIVO DE PRENSA

   Sección independiente.
   Editorial brutalista / recortes / papel impreso.

   Compatible con los tokens existentes:
   --paper, --ink, --brown, --clay, --sand,
   --paper-dark, --font-display, --font-mono.

   Mobile first.
   Sin modificaciones al resto del portfolio.
   ============================================================ */

.section-press {
  position: relative;
  isolation: isolate;
  overflow: clip;

  background: var(--paper-dark);
  color: var(--ink);
}

/* ------------------------------------------------------------
   CABECERA
   ------------------------------------------------------------ */

.press-intro {
  display: grid;
  gap: 36px;
  margin-bottom: clamp(66px, 11vw, 145px);
}

.press-intro-main {
  min-width: 0;
}

.press-kicker {
  margin-bottom: 22px;
  color: var(--brown);
}

.section-press .press-intro .display-heading {
  max-width: 1100px;

  font-size: clamp(49px, 11.8vw, 154px);
  font-weight: 700;
  letter-spacing: -.085em;
  line-height: .96;
}

.section-press .press-intro .display-heading span {
  display: block;
}

.press-intro-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;

  max-width: 350px;
}

.press-intro-aside > p {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.35;
}

.press-intro-aside > .mono {
  color: var(--brown);
}

.press-asterisk {
  display: block;

  color: var(--brown);
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 130px);
  line-height: .8;
}

/* ------------------------------------------------------------
   MURO DE RECORTES
   ------------------------------------------------------------ */

.press-wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;

  padding: 4px 0 16px;
}

.press-cutting {
  position: relative;
  min-width: 0;
  color: var(--ink);
}

/*
 * El ancla envuelve el recorte completo:
 * una sola zona clicable, también por teclado.
 */
.press-cutting-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.press-paper {
  position: relative;

  display: flex;
  flex-direction: column;
  min-height: 365px;
  height: 100%;

  overflow: hidden;
  padding: clamp(19px, 4.5vw, 34px);

  border: 1px solid rgba(33, 30, 26, .18);

  background: var(--paper);
  color: var(--ink);

  box-shadow:
    5px 7px 0 rgba(33, 30, 26, .09);

  transition:
    transform var(--duration-medium) var(--ease-out),
    box-shadow var(--duration-medium) var(--ease-out);
}

/*
 * Textura de papel muy sutil.
 * No bloquea los enlaces ni dificulta la lectura.
 */
.press-paper::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 3px,
      rgba(33, 30, 26, .014) 4px,
      transparent 5px
    ),
    radial-gradient(
      ellipse at 100% 0%,
      rgba(121, 82, 56, .055),
      transparent 55%
    );
}

.press-paper > * {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   METADATOS Y CABECERAS DE MEDIO
   ------------------------------------------------------------ */

.press-paper-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 12px;

  padding-bottom: 13px;
  border-bottom: 1px solid currentColor;

  opacity: .8;
}

.press-masthead {
  margin-top: 25px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 6.6vw, 62px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .94;

  overflow-wrap: anywhere;
}

.press-masthead span {
  display: block;
}

.press-masthead--sans {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.09em;
}

.press-masthead--condensed {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  letter-spacing: -.09em;
}

.press-masthead--editorial {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.07em;
  text-transform: lowercase;
}

.press-masthead--editorial .press-masthead-period {
  display: inline;
  color: var(--brown);
}

.press-masthead--heavy {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 9vw, 84px);
  letter-spacing: -.105em;
  line-height: .78;
}

.press-masthead--mono {
  font-family: var(--font-mono);
  font-size: clamp(28px, 7vw, 52px);
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: 1.04;
}

.press-dateline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 24px;
  padding-block: 9px;

  border-top: 2px solid currentColor;
  border-bottom: 1px solid currentColor;

  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .055em;
}

.press-dateline time {
  font-weight: 600;
}

/* ------------------------------------------------------------
   TITULARES
   ------------------------------------------------------------ */

.press-headline {
  margin-top: 24px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 7vw, 53px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.08;

  overflow-wrap: break-word;
}

.press-summary {
  max-width: 430px;
  margin-top: 22px;
  margin-bottom: 32px;

  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.press-feature-label {
  width: fit-content;
  margin-top: 22px;
  padding: 7px 11px;

  background: var(--ink);
  color: var(--paper);
}

/* ------------------------------------------------------------
   SELLOS Y PIE DE ARTÍCULO
   ------------------------------------------------------------ */

.press-paper-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;

  margin-top: auto;
  padding-top: 18px;

  border-top: 1px solid currentColor;
}

.press-stamp {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  max-width: 100%;
  padding: 8px 11px;

  border: 2px solid currentColor;

  font-family: var(--font-mono);
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.3;

  text-transform: uppercase;

  transform: rotate(-4deg);
}

.press-read {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-weight: 600;
  white-space: nowrap;
}

.press-read span {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

/* ------------------------------------------------------------
   VARIANTES EDITORIALES
   ------------------------------------------------------------ */

/* Recorte principal */

.press-cutting--lead .press-paper {
  background: var(--paper);
}

.press-cutting--lead .press-headline {
  font-size: clamp(33px, 8vw, 66px);
}

/* Recorte marrón: MediaMarkt */

.press-cutting--brown {
  color: var(--paper);
}

.press-cutting--brown .press-paper {
  background: var(--brown);
  color: var(--paper);

  border-color: rgba(241, 235, 221, .35);

  box-shadow:
    6px 8px 0 rgba(33, 30, 26, .2);
}

.press-cutting--brown .press-paper::before {
  background:
    repeating-linear-gradient(
      95deg,
      transparent 0 5px,
      rgba(255, 255, 255, .02) 6px
    );
}

.press-cutting--brown .press-stamp {
  color: var(--paper);
}

/* Recorte compacto */

.press-cutting--compact .press-paper {
  background: #e9dfcf;
}

.press-cutting--compact .press-headline {
  font-size: clamp(26px, 6.2vw, 43px);
}

/* Recorte editorial */

.press-cutting--feature .press-paper {
  background: #f6f0e5;
}

.press-cutting--feature .press-headline {
  font-size: clamp(33px, 8vw, 68px);
}

.press-cutting--feature .press-stamp {
  color: var(--brown);
}

/* Recorte de investigación */

.press-cutting--news .press-paper {
  background: #d8cab6;
}

.press-cutting--news .press-headline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.07em;
}

/* Recorte oscuro */

.press-cutting--dark {
  color: var(--paper);
}

.press-cutting--dark .press-paper {
  background: var(--ink);
  color: var(--paper);

  border-color: rgba(241, 235, 221, .35);
}

.press-cutting--dark .press-masthead {
  color: var(--sand);
}

/* Archivo propio */

.press-cutting--social .press-paper {
  background: #e7dccb;
}

.press-cutting--social .press-headline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.065em;
}

/* ------------------------------------------------------------
   INTERACCIÓN
   ------------------------------------------------------------ */

.press-cutting-link:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 7px;
}

.press-cutting--brown .press-cutting-link:focus-visible,
.press-cutting--dark .press-cutting-link:focus-visible {
  outline-color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .press-cutting-link:hover .press-paper {
    transform: translateY(-8px) rotate(0deg);

    box-shadow:
      11px 14px 0 rgba(33, 30, 26, .17);
  }

  .press-cutting-link:hover .press-read span {
    transform: translate(3px, -3px);
  }

  .press-read span {
    transition:
      transform var(--duration-medium) var(--ease-out);
  }
}

/* ------------------------------------------------------------
   CIERRE EDITORIAL
   ------------------------------------------------------------ */

.press-outro {
  position: relative;
  display: grid;
  gap: 13px;

  margin-top: clamp(70px, 10vw, 125px);
  padding-top: 26px;

  border-top: 2px solid var(--ink);
}

.press-outro-heading {
  max-width: 900px;

  font-family: var(--font-display);
  font-size: clamp(31px, 5.8vw, 78px);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: 1.02;
}

.press-outro > p:not(.press-outro-heading) {
  max-width: 450px;
  font-size: 14px;
  line-height: 1.55;
}

.press-outro-mark {
  position: absolute;
  right: 0;
  top: 20px;

  color: var(--brown);
  font-family: var(--font-display);
  font-size: clamp(50px, 8vw, 100px);
  line-height: 1;
}

/* ============================================================
   33. PRENSA — MOBILE

   Especialmente diseñado para 390px.
   No hay tarjetas idénticas a ancho completo:
   las piezas alternan anchuras, márgenes y ángulos.
   ============================================================ */

@media screen and (max-width: 768px) {

  .section-press .section-index {
    gap: 7px;
  }

  .press-intro {
    gap: 37px;
  }

  .section-press .press-intro .display-heading {
    font-size: clamp(44px, 11.8vw, 89px);
    overflow-wrap: normal;
  }

  .press-intro-aside {
    gap: 16px;
  }

  .press-asterisk {
    font-size: 74px;
  }

  .press-wall {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 0;
    padding: 0 2px 15px;
  }

  .press-cutting {
    width: 92%;
    margin-bottom: 37px;
  }

  .press-cutting .press-paper {
    min-height: 0;
    height: auto;
    padding: clamp(17px, 4.5vw, 26px);

    box-shadow:
      4px 6px 0 rgba(33, 30, 26, .1);
  }

  /* Ritmo irregular pero controlado */

  .press-cutting:nth-child(4n + 1) {
    width: 94%;
    margin-left: 1%;
    margin-right: auto;
    transform: rotate(-1.1deg);
  }

  .press-cutting:nth-child(4n + 2) {
    width: 88%;
    margin-left: auto;
    margin-right: 1%;
    transform: rotate(1.5deg);
  }

  .press-cutting:nth-child(4n + 3) {
    width: 91%;
    margin-left: 2%;
    margin-right: auto;
    transform: rotate(-.8deg);
  }

  .press-cutting:nth-child(4n) {
    width: 95%;
    margin-left: auto;
    margin-right: 1%;
    transform: rotate(1.2deg);
  }

  .press-paper-top {
    font-size: 9px;
  }

  .press-masthead {
    font-size: clamp(28px, 8vw, 48px);
  }

  .press-masthead--heavy {
    font-size: clamp(36px, 10vw, 60px);
  }

  .press-masthead--mono {
    font-size: clamp(27px, 7.5vw, 44px);
  }

  .press-headline {
    font-size: clamp(26px, 7.4vw, 40px);
  }

  .press-cutting--lead .press-headline,
  .press-cutting--feature .press-headline {
    font-size: clamp(30px, 8.2vw, 45px);
  }

  .press-cutting--compact .press-headline {
    font-size: clamp(25px, 7vw, 37px);
  }

  .press-summary {
    margin-top: 18px;
    margin-bottom: 28px;
    font-size: 14px;
  }

  .press-paper-bottom {
    gap: 12px;
  }

  .press-stamp {
    font-size: 10px;
    padding: 7px 9px;
  }

  .press-read {
    font-size: 9px;
  }

  .press-outro {
    padding-right: 38px;
  }

  .press-outro-mark {
    top: 24px;
    font-size: 45px;
  }
}

/* ============================================================
   34. PRENSA — TABLET / DESKTOP
   ============================================================ */

@media screen and (min-width: 769px) {

  .press-intro {
    grid-template-columns:
      minmax(0, 1.6fr)
      minmax(230px, .4fr);

    align-items: end;
    gap: clamp(45px, 7vw, 110px);
  }

  .press-wall {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(17px, 2.2vw, 32px);
  }

  .press-cutting--lead {
    grid-column: 1 / 8;
    grid-row: 1;

    transform: rotate(-1deg);
  }

  .press-cutting--brown {
    grid-column: 8 / 13;
    grid-row: 1;

    margin-top: 105px;
    transform: rotate(1.5deg);
  }

  .press-cutting--compact {
    grid-column: 2 / 6;
    grid-row: 2;

    margin-top: -26px;
    transform: rotate(-1.7deg);
  }

  .press-cutting--feature {
    grid-column: 6 / 13;
    grid-row: 2;

    margin-top: 60px;
    transform: rotate(.8deg);
  }

  .press-cutting--news {
    grid-column: 1 / 7;
    grid-row: 3;

    margin-top: -30px;
    transform: rotate(1.1deg);
  }

  .press-cutting--dark {
    grid-column: 7 / 13;
    grid-row: 3;

    margin-top: 45px;
    transform: rotate(-1.3deg);
  }

  .press-cutting--social {
    grid-column: 3 / 10;
    grid-row: 4;

    margin-top: 10px;
    transform: rotate(.65deg);
  }

  .press-paper {
    min-height: clamp(405px, 38vw, 590px);
  }

  .press-cutting--compact .press-paper {
    min-height: 460px;
  }

  .press-cutting--feature .press-paper {
    min-height: 565px;
  }

  .press-cutting--social .press-paper {
    min-height: 400px;
  }

  .press-outro {
    grid-template-columns: 1.3fr .7fr;
    align-items: end;
    gap: 40px;
  }

  .press-outro > p:not(.press-outro-heading) {
    padding-right: 55px;
  }
}

/* ============================================================
   35. PRENSA — ACCESIBILIDAD
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  .press-cutting-link .press-paper,
  .press-read span {
    transition: none !important;
    animation: none !important;
  }

  /*
   * Las rotaciones de los recortes son estáticas.
   * No dependen del movimiento ni del scroll.
   */
  .press-cutting-link:hover .press-paper {
    transform: none !important;
  }
}

@media (forced-colors: active) {

  .press-paper {
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .press-paper-top,
  .press-dateline,
  .press-paper-bottom {
    border-color: CanvasText;
  }

  .press-stamp {
    border-color: CanvasText;
  }

  .press-cutting-link:focus-visible {
    outline: 3px solid Highlight;
  }
}


/* ========================================================
   34. ARCHIVO — FILAS REPRODUCIBLES (CODEX, REVISADO CMO)
   ======================================================== */

/* ============================================================
   36. ARCHIVO — REPRODUCCIÓN LOCAL

   Siete reels confirmados.
   Sin modificar los estilos originales de archivo.

   Mobile first.
   ============================================================ */

/* ------------------------------------------------------------
   ESTADO REPRODUCIBLE
   ------------------------------------------------------------ */

.archive-row--playable {
  position: relative;
}

/*
 * El botón no modifica la anchura del título
 * en los elementos sin vídeo.
 */

.archive-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-width: 0;
  min-height: 44px;

  padding: 9px 12px;

  border: 1px solid var(--brown);
  border-radius: 2px;

  background: transparent;
  color: var(--brown);

  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;

  white-space: nowrap;

  transition:
    color var(--duration-fast),
    background var(--duration-fast),
    border-color var(--duration-fast),
    transform var(--duration-fast);
}

.archive-play-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;
  line-height: 1;
}

.archive-play-text {
  font-size: 10px;
  letter-spacing: .025em;
}

/*
 * El artículo ya dispone de un hover oscuro.
 * Ajustamos únicamente el botón de las filas
 * reproducibles cuando se activa dicho estado.
 */

.archive-row--playable:hover .archive-play-button,
.archive-row--playable:focus-within .archive-play-button {
  border-color: var(--paper);
  color: var(--paper);
}

.archive-play-button:hover {
  background: var(--brown);
  color: var(--paper);
}

.archive-row--playable:hover .archive-play-button:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Accesibilidad por teclado */

.archive-play-button:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 4px;
  background: var(--paper);
  color: var(--ink);
}

/*
 * No se inserta duración, porque no hay
 * duraciones confirmadas.
 */

/* ============================================================
   37. ARCHIVO REPRODUCIBLE — MÓVIL
   ============================================================ */

@media screen and (max-width: 768px) {

  /*
   * Mantener cada publicación compacta.
   *
   * Fila 1:
   * número + título + acceso externo
   *
   * Fila 2:
   * metadatos + botón de vídeo
   *
   * No altera el resto de las 75 filas.
   */

  .archive-row--playable {
    grid-template-columns:
      28px minmax(0, 1fr) auto;

    column-gap: 10px;
    row-gap: 10px;

    padding-block: 16px;
  }

  .archive-row--playable .archive-row-number {
    grid-column: 1;
    grid-row: 1;
  }

  .archive-row--playable .archive-row-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .archive-row--playable .archive-row-end {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }

  /*
   * El botón ocupa una segunda línea,
   * alineado con el comienzo del título.
   */

  .archive-row--playable .archive-play-button {
    grid-column: 2 / 4;
    grid-row: 2;

    justify-self: start;

    min-height: 38px;
    padding: 8px 12px;

    background: var(--brown);
    border-color: var(--brown);
    color: var(--paper);
  }

  .archive-row--playable .archive-play-button:hover {
    background: var(--ink);
    color: var(--paper);
  }

  .archive-row--playable .archive-play-button:focus-visible {
    outline-color: var(--brown);
    background: var(--ink);
    color: var(--paper);
  }

  /*
   * Evitar que los títulos más largos invadan
   * el botón o produzcan desbordamiento.
   */

  .archive-row--playable .archive-row-title {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(25px, 7vw, 35px);
  }

  .archive-row--playable .archive-row-meta {
    gap: 4px 12px;
    margin-top: 9px;
  }

  /*
   * No usamos hover oscuro permanente
   * en dispositivos táctiles.
   */

  @media (hover: none), (pointer: coarse) {
    .archive-row--playable:hover {
      padding-inline: 0;
      background: transparent;
      color: var(--ink);
    }

    .archive-row--playable:hover .archive-play-button {
      background: var(--brown);
      color: var(--paper);
      border-color: var(--brown);
    }
  }
}

/* ============================================================
   38. ARCHIVO REPRODUCIBLE — ESCRITORIO
   ============================================================ */

@media screen and (min-width: 769px) {

  /*
   * Solo las filas reproducibles reciben
   * una columna extra para el botón.
   *
   * El resto conserva la retícula original.
   */

  .archive-row--playable {
    grid-template-columns:
      45px
      minmax(0, 1fr)
      auto
      36px;

    gap: clamp(12px, 2vw, 24px);
  }

  .archive-row--playable .archive-play-button {
    justify-self: end;
  }

  .archive-row--playable .archive-row-end {
    justify-self: end;
  }
}

@media screen and (min-width: 1024px) {

  .archive-row--playable {
    grid-template-columns:
      75px
      minmax(0, 1fr)
      auto
      45px;
  }
}

/* ============================================================
   39. MOVIMIENTO REDUCIDO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  .archive-play-button {
    transition: none !important;
    animation: none !important;
  }

  .archive-play-button:hover,
  .archive-play-button:active {
    transform: none !important;
  }
}

/* ============================================================
   40. COLORES FORZADOS
   ============================================================ */

@media (forced-colors: active) {

  .archive-play-button {
    border: 1px solid ButtonText;
    color: ButtonText;
    forced-color-adjust: auto;
  }

  .archive-play-button:focus-visible {
    outline: 2px solid Highlight;
  }
}



/* ============================================================
   41. ESTRATEGIA / CASO GENERACIÓN Z

   Sustituye visualmente al antiguo módulo de campañas.
   Las reglas anteriores permanecen intactas.

   Mobile first.
   Variables y fuentes del sistema NEOSODA®.
   ============================================================ */

.case-genz {
  --case-line: rgba(255, 255, 255, .38);
  --case-paper: var(--paper);

  margin-top: clamp(88px, 15vw, 190px);
  color: var(--paper);
}

/* ------------------------------------------------------------
   41.1 CABECERA EDITORIAL
   ------------------------------------------------------------ */

.case-genz-header {
  padding-top: 16px;
  border-top: 2px solid var(--case-paper);
}

.case-genz-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;

  margin-bottom: clamp(38px, 8vw, 95px);
}

.case-genz-header-top span:last-child {
  opacity: .75;
}

.case-genz-title {
  max-width: 1300px;

  font-family: var(--font-display);
  font-size: clamp(50px, 12vw, 170px);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .94;
  overflow-wrap: normal;
}

.case-genz-title span {
  display: block;
  color: var(--ink);
}

.case-genz-subtitle {
  max-width: 760px;
  margin-top: clamp(28px, 5vw, 60px);
  padding-top: 16px;

  border-top: 1px solid var(--case-line);
  color: var(--paper);

  font-size: clamp(10px, 1vw, 13px);
  line-height: 1.8;
}

/* ------------------------------------------------------------
   41.2 SISTEMA DE BLOQUES
   ------------------------------------------------------------ */

.case-genz-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;

  margin-top: clamp(75px, 12vw, 150px);
  padding-top: 15px;

  border-top: 1px solid var(--case-line);
}

.case-genz-block-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  color: var(--paper);
}

.case-genz-block-label span:last-child {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.case-genz-block-body {
  min-width: 0;
}

.case-genz-block-body > h4:not(.sr-only) {
  max-width: 900px;

  font-family: var(--font-display);
  font-size: clamp(33px, 6vw, 75px);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: 1.04;
}

/* ------------------------------------------------------------
   41.3 CONTEXTO
   ------------------------------------------------------------ */

.case-genz-context .case-genz-block-body {
  display: grid;
  gap: 30px;
}

.case-genz-context .case-genz-block-body > h4 {
  color: var(--ink);
}

.case-genz-prose {
  display: grid;
  gap: 24px;
  max-width: 740px;
}

.case-genz-prose p {
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ------------------------------------------------------------
   41.4 MÉTODO / TRIPLETE
   ------------------------------------------------------------ */

.case-genz-triplet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;

  list-style: none;
}

.case-genz-triplet li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;

  min-width: 0;
  min-height: 170px;
  padding: 20px;

  border: 1px solid var(--case-line);
  background: rgba(33, 30, 26, .13);
}

.case-genz-triplet li > span {
  color: var(--paper);
}

.case-genz-triplet strong {
  font-family: var(--font-display);
  font-size: clamp(32px, 7.8vw, 74px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .95;
  overflow-wrap: anywhere;
}

.case-genz-triplet li:nth-child(2) {
  background: var(--ink);
}

.case-genz-triplet li:nth-child(3) {
  background: var(--paper);
  color: var(--ink);
}

.case-genz-triplet li:nth-child(3) > span {
  color: var(--brown);
}

.case-genz-method-copy {
  max-width: 800px;
  margin-top: clamp(35px, 6vw, 75px);

  font-family: var(--font-display);
  font-size: clamp(20px, 3.3vw, 37px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.3;
  text-wrap: pretty;
}

/* ------------------------------------------------------------
   41.5 OBJETIVO / CITA GRANDE
   ------------------------------------------------------------ */

.case-genz-quote {
  position: relative;
  max-width: 1100px;
  margin: 0;
  padding: clamp(36px, 7vw, 85px) 0 0;
}

.case-genz-quote-mark {
  position: absolute;
  top: -14px;
  left: -8px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(90px, 15vw, 175px);
  line-height: 1;
  color: var(--ink);
}

.case-genz-quote p {
  position: relative;
  z-index: 1;

  font-family: var(--font-display);
  font-size: clamp(29px, 5.1vw, 67px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.15;
  text-wrap: pretty;
}

/* ------------------------------------------------------------
   41.6 IMPACTO
   ------------------------------------------------------------ */

.case-genz-impact .case-genz-block-body {
  max-width: 1100px;
}

.case-genz-impact h4 {
  margin-bottom: 20px;
  color: var(--ink);
}

.case-genz-impact .case-genz-block-body > p {
  max-width: 1060px;

  font-family: var(--font-display);
  font-size: clamp(27px, 4.5vw, 62px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.13;
  text-wrap: pretty;
}

/* ------------------------------------------------------------
   41.7 VIDEOCASE 16:9
   ------------------------------------------------------------ */

.case-genz-video-heading {
  margin-bottom: 20px;

  color: var(--paper);
  font-size: clamp(11px, 1.4vw, 14px);
}

.case-genz-video-trigger {
  display: block;
  width: 100%;
  padding: 0;

  border: 1px solid rgba(241, 235, 221, .35);
  border-radius: 0;

  background: var(--ink);
  color: var(--paper);
  text-align: left;
}

.case-genz-video-trigger:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 5px;
}

.case-genz-video-surface {
  position: relative;
  isolation: isolate;
  display: block;

  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 75% 25%,
      rgba(200, 180, 156, .22),
      transparent 60%
    ),
    repeating-linear-gradient(
      95deg,
      transparent 0 9px,
      rgba(255, 255, 255, .018) 10px
    ),
    var(--ink);
}

.case-genz-video-poster {
  position: absolute;
  z-index: 1;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: contain;

  background: transparent;
}

.case-genz-video-art {
  position: absolute;
  z-index: 0;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(13px, 3.5vw, 45px);

  color: var(--paper);
}

.case-genz-video-art strong {
  margin: auto 0;

  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 120px);
  font-weight: 700;
  letter-spacing: -.085em;
  line-height: .88;
}

.case-genz-video-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  width: clamp(58px, 9vw, 108px);
  aspect-ratio: 1;
  border: 1px solid var(--paper);
  border-radius: 50%;

  background: rgba(33, 30, 26, .86);
  color: #fff;

  font-family: var(--font-display);
  font-size: clamp(19px, 3vw, 29px);

  transform: translate(-50%, -50%);

  transition:
    background var(--duration-fast),
    transform var(--duration-medium) var(--ease-out);
}

.case-genz-video-bottom {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 15px;

  padding: clamp(12px, 2vw, 24px);
  background: rgba(33, 30, 26, .88);
  color: var(--paper);
}

@media (hover: hover) and (pointer: fine) {
  .case-genz-video-trigger:hover .case-genz-video-play {
    background: var(--brown);
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* ------------------------------------------------------------
   41.8 MODAL 16:9

   Se activa únicamente mientras se muestra
   el videocase de Generación Z.
   El modal habitual de Pou/NPC sigue siendo 9:16.
   ------------------------------------------------------------ */

#video-dialog.case-video-dialog
.dialog-video-container video {
  width: min(100%, 1120px);
  height: auto;
  max-height: 78svh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

#video-dialog.case-video-dialog
.dialog-video-container {
  min-width: 0;
}

/* ============================================================
   42. BEST-OF / TEN POSTS

   Scroll-snap móvil.
   Cinco columnas por dos filas en escritorio.
   ============================================================ */

.bestof-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.bestof-heading h4 {
  max-width: 850px;
  font-size: clamp(11px, 1.5vw, 15px);
  line-height: 1.75;
}

.bestof-scroll-hint {
  color: var(--paper);
  opacity: .85;
}

.bestof-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 72%);
  gap: 13px;

  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  padding: 6px 0 24px;

  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-inline: contain;

  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
  -webkit-overflow-scrolling: touch;
}

.bestof-strip:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}

.bestof-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;

  color: var(--paper);
  text-decoration: none;

  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.bestof-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(241, 235, 221, .16),
      transparent 52%
    ),
    var(--ink);
  border: 1px solid var(--case-line);
}

.bestof-art::before {
  content: "MEDIAMARKT / BEST-OF";
  position: absolute;
  z-index: 0;
  top: 13px;
  left: 13px;

  max-width: calc(100% - 26px);

  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
}

.bestof-art img {
  position: absolute;
  z-index: 1;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bestof-number {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  min-width: 37px;
  min-height: 37px;
  padding: 6px;

  background: var(--paper);
  color: var(--ink);

  font-weight: 600;
}

.bestof-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding-top: 11px;
  border-top: 1px solid var(--case-line);
}

.bestof-card-footer > span:last-child {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
}

.bestof-card:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .bestof-art img {
    transition:
      transform var(--duration-medium) var(--ease-out);
  }

  .bestof-card:hover .bestof-art img {
    transform: scale(1.045);
  }

  .bestof-card:hover .bestof-card-footer {
    color: var(--ink);
  }
}

/* ============================================================
   43. GENERACIÓN Z / MÓVIL
   ============================================================ */

@media screen and (max-width: 768px) {
  .case-genz {
    margin-top: 85px;
  }

  .case-genz-title {
    font-size: clamp(46px, 11.4vw, 82px);
  }

  .case-genz-block {
    gap: 27px;
    margin-top: 79px;
  }

  .case-genz-triplet {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-genz-triplet li {
    min-height: 140px;
    padding: 18px;
  }

  .case-genz-triplet strong {
    font-size: clamp(35px, 9vw, 62px);
  }

  .case-genz-quote {
    padding-top: 50px;
  }

  .case-genz-quote p {
    font-size: clamp(27px, 7.2vw, 41px);
  }

  .case-genz-video-art strong {
    font-size: clamp(24px, 6.8vw, 52px);
  }

  .case-genz-video-bottom {
    font-size: 8px;
  }

  .bestof-strip {
    grid-auto-columns: 72%;
    gap: 12px;
  }
}

/* ============================================================
   44. GENERACIÓN Z / ESCRITORIO
   ============================================================ */

@media screen and (min-width: 769px) {
  .case-genz-block {
    grid-template-columns:
      minmax(145px, .3fr)
      minmax(0, 1.7fr);

    gap: clamp(38px, 6vw, 110px);
  }

  .case-genz-header-top {
    margin-bottom: 80px;
  }

  .case-genz-context .case-genz-block-body {
    grid-template-columns:
      minmax(0, .6fr)
      minmax(0, 1fr);

    align-items: start;
    gap: 50px;
  }

  .case-genz-triplet {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .case-genz-triplet li {
    min-height: 240px;
  }

  .case-genz-triplet strong {
    font-size: clamp(29px, 3.4vw, 58px);
  }

  .case-genz-impact .case-genz-block-body > p {
    font-size: clamp(34px, 4.3vw, 62px);
  }

  .bestof-heading {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
  }

  .bestof-scroll-hint {
    display: none;
  }

  .bestof-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-columns: auto;

    gap: clamp(13px, 1.5vw, 23px);

    overflow: visible;
    padding: 0;

    scroll-snap-type: none;
  }
}

/* ============================================================
   45. GENERACIÓN Z / ACCESIBILIDAD
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .case-genz-video-play,
  .bestof-art img {
    animation: none !important;
    transition: none !important;
  }

  .case-genz-video-trigger:hover .case-genz-video-play {
    transform: translate(-50%, -50%) !important;
  }

  .bestof-card:hover .bestof-art img {
    transform: none !important;
  }

  .bestof-strip {
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .case-genz-video-trigger,
  .case-genz-triplet li,
  .bestof-art,
  .bestof-number {
    border: 1px solid CanvasText;
  }

  .case-genz-video-play {
    border: 2px solid ButtonText;
  }

  .bestof-card:focus-visible,
  .case-genz-video-trigger:focus-visible {
    outline: 3px solid Highlight;
  }
}

/* ============================================================
   43. TOP HITS (sustituye al best-of strip)

   Parrilla estatica de las piezas propias con mas
   reproducciones. Sin scroll horizontal: nada se corta.
   ============================================================ */

.tophits-heading {
  margin-bottom: 28px;
}

.tophits-heading h4 {
  max-width: 850px;
  font-size: clamp(11px, 1.5vw, 15px);
  line-height: 1.75;
}

.tophits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tophit {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.tophit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tophit-views {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: #000;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.tophit:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .tophit:hover img {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tophit img {
    transition: none;
  }
}

@media screen and (min-width: 769px) {
  .tophits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }
}

/* Dos velocidades — cierre "no era suerte, era sistema" */
.speed-proof {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: clamp(35px, 5vw, 60px);
  border-top: 1px solid var(--border-light);
}

.speed-proof > .mono {
  color: var(--sand);
}

.speed-proof > strong {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 130px);
  font-weight: 700;
  letter-spacing: -.095em;
  line-height: .88;
}

.speed-proof > p {
  max-width: 560px;
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--sand);
}

#dos-velocidades .speed-heading .display-heading {
  font-size: clamp(54px, 12.5vw, 180px);
}
