/* ============================================================
   MIKO LARES — Portafolio
   Sistema visual: editorial gallery, dark, warm
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* ---------- Tokens ---------- */
/* Paleta alineada a la marca de Miko: negro + verde lima + blanco */
:root {
  --ink:        #0a0a0a;
  --ink-2:      #131313;
  --ink-3:      #1d1d1d;
  --bone:       #f3f2ed;
  --bone-dim:   #8f8f88;
  --bone-faint: #5b5b56;
  --accent:     #b8d62b;
  --accent-2:   #d6e79a;
  --line:       rgba(243, 242, 237, 0.12);
  --line-soft:  rgba(243, 242, 237, 0.055);

  --ff-display: "Poppins", "Hanken Grotesk", sans-serif;
  --ff-body:    "Hanken Grotesk", system-ui, sans-serif;
  --ff-mono:    "Hanken Grotesk", system-ui, sans-serif;  /* etiquetas en Hanken (sin DM Mono) */

  --pad: clamp(1.25rem, 4.5vw, 4.5rem);
  --maxw: 1560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* tints por proyecto (para previews / casos) */
  --tint-album:     #d8c7a0;
  --tint-lucero:    #f2c14e;
  --tint-florida:   #4cb5c4;
  --tint-visualize: #9a7bd0;
  --tint-binaural:  #e8744f;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--ink);   /* oscuro plano: el centro queda limpio y todo resalta */
  color: var(--bone);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.55vw + 0.85rem, 1.12rem);
  line-height: 1.62;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

::selection { background: var(--accent); color: var(--ink); }

/* capa de marca global: facetas low-poly + cruces lima dispersas (sutil, detrás del contenido) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='560' height='560'><g stroke-linecap='round' stroke-width='2' fill='none'><path d='M64 74V96M53 85H75' stroke='%23b8d62b' stroke-opacity='0.20'/><path d='M450 150V166M442 158H458' stroke='%23f3f2ed' stroke-opacity='0.08'/><path d='M300 360V378M291 369H309' stroke='%23b8d62b' stroke-opacity='0.14'/><path d='M150 470V486M142 478H158' stroke='%23f3f2ed' stroke-opacity='0.07'/></g></svg>"),
    url("../assets/img/facets.png");
  background-repeat: repeat, no-repeat;
  background-position: center, center;
  background-size: 560px 560px, cover;
  opacity: 0.55;
  /* máscara: textura solo en los bordes (lados/arriba/abajo); el centro queda oscuro y limpio */
  -webkit-mask: radial-gradient(125% 105% at 50% 50%, transparent 40%, #000 92%);
          mask: radial-gradient(125% 105% at 50% 50%, transparent 40%, #000 92%);
}

/* grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Typo helpers ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: 440;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.idx {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}
/* énfasis = contraste de peso, como el wordmark «Miguel Lares» */
em { font-style: normal; font-weight: 800; }

/* i18n: bloques de texto enriquecido se duplican ES/EN y se alternan por idioma */
html[lang="es"] .lang-en,
html[lang="en"] .lang-es { display: none !important; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3rem, 6vw, 6.5rem); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem var(--pad);
  mix-blend-mode: normal;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.shrink {
  background: rgba(20, 17, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  font-family: var(--ff-display);
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 40;
}
.brand .mark {
  display: inline-grid;
  place-items: center;
  width: 1.78rem; height: 1.78rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.78rem;
  font-family: var(--ff-mono);
  letter-spacing: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.brand:hover .mark { background: var(--accent); color: var(--ink); }

/* wordmark junto al símbolo — identifica al instante de quién es el portafolio */
.brand-name {
  font-family: var(--ff-display);
  font-size: clamp(1.06rem, 0.7vw + 0.9rem, 1.34rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1;
  color: var(--bone);
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 40;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.brand:hover .brand-name { color: var(--accent); }
.site-head.shrink .brand-name { font-size: clamp(0.98rem, 0.6vw + 0.84rem, 1.18rem); }

/* logo SVG real de Miguel Lares */
.brand-mark {            /* monograma — header */
  height: clamp(2rem, 2.6vw, 2.5rem);
  width: auto;
  display: block;
  transition: height 0.4s var(--ease), filter 0.25s var(--ease);
  filter: brightness(1.15);
}
.brand:hover .brand-mark {
  filter: brightness(1.4) drop-shadow(0 0 3px rgba(184, 214, 43, 0.45));
}
.site-head.shrink .brand-mark { height: 1.7rem; }
.brand-logo {            /* lockup completo — footer */
  height: clamp(3rem, 5.5vw, 4.2rem);
  width: auto;
  display: block;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.6rem); }
.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 2.4rem); }
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
  position: relative;
  padding-block: 0.2rem;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.32s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.lang-toggle {
  display: flex;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle span {
  padding: 0.32rem 0.62rem;
  color: var(--bone-faint);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-toggle span.on { color: var(--ink); background: var(--bone); }

.head-cta {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.head-cta:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.burger { display: none; width: 2rem; height: 2rem; position: relative; }
.burger span {
  position: absolute; left: 3px; right: 3px; height: 1.5px;
  background: var(--bone);
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease);
}
.burger span:nth-child(1) { top: 11px; }
.burger span:nth-child(2) { bottom: 11px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 90svh; /* Reducimos la altura mínima para subir la marquesina en la pantalla inicial */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 2rem;
  position: relative;
}
.hero-grid {
  display: block;
  position: relative;
  width: 100%;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vh, 2.5rem);
  max-width: 62%;          /* el texto conserva su ancho: Enfoque y Disponible lado a lado */
  position: relative;
  z-index: 2;              /* el texto siempre por encima de la foto */
}
.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hero-meta-top {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--bone-dim);
}

.hero-title {
  font-size: clamp(2.3rem, 6.4vw, 5.8rem);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: block;
  transform: translateY(105%);
}
.hero-title .accent-word { color: var(--accent); font-weight: 800; }

.hero-portrait-wrapper {
  position: absolute;
  top: clamp(-5.5rem, -7.5vh, -4rem);    /* Subida para que la cabeza tape las líneas verdes del fondo */
  right: calc(-1.6 * var(--pad));        /* corrida a la derecha: la cabeza se mete sobre las rayas */
  width: clamp(440px, 46vw, 680px);      /* Agrandada significativamente */
  z-index: 1;                            /* sobre las rayas verdes (z-index 0), bajo el texto (z-index 2) */
}
.hero-portrait {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* Fusión orgánica y gradual de la silueta con el fondo oscuro */
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
}
.hero-portrait img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  /* La nueva foto silueteada ya mira hacia la izquierda por defecto */
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero-portrait:hover img {
  filter: grayscale(0) contrast(1.02) brightness(0.96);
  transform: scale(1.03);
}
.hero-loc { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-loc div { max-width: 30ch; }
.hero-loc .label { display: block; margin-bottom: 0.35rem; }
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.scroll-cue .arrow {
  width: 1px; height: 2.4rem;
  background: linear-gradient(var(--accent), transparent);
  position: relative;
}
.scroll-cue .arrow::after {
  content: ""; position: absolute; bottom: 0; left: -2px;
  width: 5px; height: 5px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
  animation: nudge 1.9s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50% { transform: rotate(45deg) translate(2px, 2px); opacity: 0.3; }
}

/* page-load reveal */
.reveal-load .line > span {
  animation: rise 1.05s var(--ease) forwards;
}
.reveal-load .line:nth-child(1) > span { animation-delay: 0.15s; }
.reveal-load .line:nth-child(2) > span { animation-delay: 0.28s; }
.reveal-load .line:nth-child(3) > span { animation-delay: 0.41s; }
@keyframes rise { to { transform: translateY(0); } }

.fade-load { opacity: 0; animation: fadeUp 1s var(--ease) 0.6s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-block: 1px solid var(--line);
  padding-block: 0.95rem;
  overflow: hidden;
  display: flex;
  user-select: none;
  position: relative;
  z-index: 5;
  margin-top: -2rem; /* Subimos la cinta para integrarla con la base del hero */
}
.ticker-row {
  display: flex;
  gap: 2.6rem;
  white-space: nowrap;
  padding-right: 2.6rem;
  animation: marquee 38s linear infinite;
}
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker-row span {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 60;
  color: var(--bone-dim);
}
.ticker-row span::before { content: "+"; color: var(--accent); margin-right: 2.6rem; font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   GENERIC SECTION HEAD
   ============================================================ */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vw, 4.2rem);
}
.sec-head h2 {
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  max-width: 18ch;
  color: var(--accent);
}
.sec-head .label { white-space: nowrap; }

/* ============================================================
   STATEMENT / POSITIONING
   ============================================================ */
.statement p {
  font-family: var(--ff-display);
  font-weight: 340;
  font-size: clamp(1.6rem, 4.1vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.018em;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 90;
  max-width: 24ch;
}
.statement p .hl { color: var(--accent); }
.statement p em { color: var(--bone); }

.statement-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.statement-content {
  display: flex;
  flex-direction: column;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.stat {
  padding: clamp(2rem, 3vw, 2.6rem) clamp(1.6rem, 2.5vw, 2.2rem);
  border: 1px solid var(--line);
  background: var(--ink-2);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.stat:hover {
  border-color: var(--accent);
  background: rgba(184, 214, 43, 0.03);
  transform: translateY(-5px);
}
.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.stat-icon {
  width: 2.8rem;
  height: 2.8rem;
  color: var(--bone-faint);
  transition: color 0.4s var(--ease), transform 0.6s var(--ease);
  flex-shrink: 0;
}
.stat:hover .stat-icon {
  color: var(--accent);
}
.stat:nth-child(1):hover .stat-icon {
  transform: rotate(-15deg) scale(1.15);
}
.stat:nth-child(2):hover .stat-icon {
  transform: translateY(-5px) scale(1.15);
}
.stat:nth-child(3):hover .stat-icon {
  transform: rotate(45deg) scale(1.15);
}
.stat:nth-child(4):hover .stat-icon {
  transform: scale(1.25);
}
.stat .num {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
  transform-origin: left bottom;
}
.stat:hover .num {
  color: var(--accent);
  transform: scale(1.03);
}
.stat .num sup { color: var(--accent); font-size: 0.4em; top: -1.1em; }
.stat .cap { display: block; margin-top: 1.2rem; color: var(--bone-dim); font-size: 0.9rem; font-weight: 500; line-height: 1.4; }

/* ============================================================
   SELECTED WORK — project rows
   ============================================================ */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.4rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}
.work-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--pad));
  background: var(--ink-2);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.work-row:hover::before { opacity: 1; }
.work-row .idx { align-self: start; padding-top: 0.55rem; }
.work-name {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 24, "WONK" 0, "opsz" 144;
  transition: transform 0.45s var(--ease), color 0.3s var(--ease);
}
.work-row:hover .work-name { transform: translateX(clamp(0.5rem, 2vw, 2.2rem)); color: var(--accent); }
.work-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
}
.work-meta .cat { font-size: 0.92rem; }
.work-meta .yr { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--bone-faint); }
.work-arrow {
  width: 3rem; height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.45s var(--ease);
}
.work-arrow svg { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease); }
.work-row:hover .work-arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(-45deg);
}
.work-row:hover .work-arrow svg { stroke: var(--ink); }

/* floating hover preview */
.row-preview {
  position: fixed;
  top: 0; left: 0;
  width: 23vw;
  max-width: 340px;
  aspect-ratio: 4 / 3;
  pointer-events: none;
  z-index: 7000;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}
.row-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.row-preview .ph-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(20, 17, 13, 0.62);
}
.row-preview .ph-name {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 0.2rem;
  font-variation-settings: "opsz" 60;
}

/* ============================================================
   PLACEHOLDER (imágenes pendientes)
   ============================================================ */
.ph {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: var(--bone-faint);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 13px, var(--line-soft) 13px 14px);
}
.ph .ph-inner {
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.ph .ph-tag {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ph .ph-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  color: var(--bone-dim);
}
.ph .ph-corner {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  width: 0.6rem; height: 0.6rem;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
}
.ph .ph-corner.bl {
  top: auto; right: auto;
  bottom: 0.7rem; left: 0.7rem;
  border-top: 0; border-right: 0;
  border-bottom: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
}

/* ============================================================
   FEATURE / IMAGE BLOCK on home
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.feature .ph { aspect-ratio: 4 / 5; width: 100%; }
.feature-txt h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.feature-txt p { color: var(--bone-dim); max-width: 42ch; margin-bottom: 1.6rem; }

/* ============================================================
   QUOTE BAND
   ============================================================ */
.quote {
  text-align: center;
  border-block: 1px solid var(--line);
}
.quote blockquote {
  font-family: var(--ff-display);
  font-weight: 320;
  font-size: clamp(1.7rem, 4.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 40, "WONK" 6, "opsz" 110;
  max-width: 20ch;
  margin-inline: auto;
}
.quote blockquote .hl { color: var(--accent); }
.quote .q-mark { color: var(--accent); font-size: 1.4em; }
.quote cite { display: block; margin-top: 1.8rem; font-style: normal; }
.quote cite .label { display: inline; }

/* ============================================================
   CTA
   ============================================================ */
.cta { text-align: center; position: relative; }
.cta .label { display: block; margin-bottom: 1.4rem; }
.cta-link {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 11vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
  transition: color 0.3s var(--ease);
}
.cta-link:hover { color: var(--accent); }
.cta-link .arrow-inline {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.cta-link:hover .arrow-inline { transform: translate(0.1em, -0.05em) rotate(-45deg); }
.cta-sub {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--bone-dim);
  font-size: 0.92rem;
}
.cta-sub a { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.cta-sub a:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2.6rem;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.foot-cols { display: flex; gap: clamp(2rem, 6vw, 6rem); flex-wrap: wrap; }
.foot-col .label { display: block; margin-bottom: 0.9rem; }
.foot-col a { display: block; color: var(--bone-dim); font-size: 0.92rem; padding-block: 0.18rem; transition: color 0.22s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--bone-faint);
}

/* ============================================================
   INNER PAGE HEADER (about, proyectos, caso)
   ============================================================ */
.page-head { padding-top: 9.5rem; padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-head .crumb { margin-bottom: 1.6rem; }
.page-head h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.3rem, 6.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 26, "WONK" 0, "opsz" 144;
}
.page-head h1 em { color: var(--accent); }
.page-lead {
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: var(--bone-dim);
  max-width: 52ch;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.about-portrait { position: relative; }
.about-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  border: 1px solid var(--line);
  transition: filter 0.6s var(--ease);
}
.about-portrait:hover img { filter: grayscale(0) contrast(1) brightness(1); }
.about-portrait .p-cap {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--bone-faint);
}
.about-bio p {
  font-family: var(--ff-display);
  font-weight: 330;
  font-size: clamp(1.3rem, 2.5vw, 2.1rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  margin-bottom: 1.4rem;
  font-variation-settings: "SOFT" 30, "opsz" 80;
}
.about-bio p:last-child { margin-bottom: 0; }
.about-bio p em { color: var(--accent); }
.about-bio .body-note {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bone-dim);
}

/* approach cards */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.approach-card {
  background: var(--ink);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background 0.35s var(--ease);
}
.approach-card:hover { background: var(--ink-2); }
.approach-card .idx { font-size: 0.9rem; }
.approach-card h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.approach-card p { color: var(--bone-dim); font-size: 0.95rem; }

/* timeline */
.timeline { border-top: 1px solid var(--line); }
.tl-row {
  display: grid;
  grid-template-columns: 8rem 1fr 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.4rem, 2.6vw, 2.2rem);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.3s var(--ease);
}
.tl-row:hover { background: var(--ink-2); }
.tl-yr { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--accent); }
.tl-role h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.tl-role .tl-co { color: var(--bone-dim); font-size: 0.9rem; margin-top: 0.25rem; }
.tl-desc { color: var(--bone-dim); font-size: 0.95rem; }

/* tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.tool-block .label { display: block; margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.tool-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tool-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.86rem;
  color: var(--bone-dim);
  transition: border-color 0.25s, color 0.25s;
}
.tool-tags span:hover { border-color: var(--accent); color: var(--bone); }

/* cert list */
.cert-list { columns: 2; column-gap: 4rem; }
.cert-list li {
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.cert-list li .idx { flex-shrink: 0; }

/* ============================================================
   PROYECTOS — index grid
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.proj-card { display: block; }
.proj-card .ph {
  aspect-ratio: 4 / 3;
  transition: transform 0.5s var(--ease);
}
.proj-card .ph .ph-corner { transition: border-color 0.3s; }
.proj-card:hover .ph { transform: translateY(-6px); }
.proj-card-foot {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.1rem;
}
.proj-card-foot h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.proj-card:hover .proj-card-foot h3 { color: var(--accent); }
.proj-card-foot .meta { text-align: left; border-left: 1px solid var(--line); padding-left: 1.1rem; line-height: 1.45; }
.proj-card-foot .meta .cat { font-size: 0.88rem; color: var(--bone-dim); }
.proj-card-foot .meta .yr { font-family: var(--ff-mono); font-size: 0.74rem; color: var(--bone-faint); }
.proj-card:nth-child(even) { margin-top: clamp(0px, 8vw, 6rem); }

/* Índice editorial compacto de casos principales */
.projects-page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  min-height: 0;
  padding-top: clamp(6.5rem, 8vw, 7.75rem);
  padding-bottom: 2.25rem;
}
.projects-page-head::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../assets/img/projects-header.png") center 44% / cover no-repeat;
  opacity: .92;
  -webkit-mask-image: radial-gradient(ellipse 92% 110% at 62% 38%, #000 46%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 110% at 62% 38%, #000 46%, transparent 100%);
}
.projects-page-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 55%, var(--ink) 100%),
    linear-gradient(90deg, var(--ink) 0%, rgba(4, 8, 13, .84) 30%, rgba(4, 8, 13, .24) 68%, var(--ink) 100%);
}
.projects-eyebrow {
  display: block;
  margin-bottom: .75rem;
  color: var(--accent);
}
.projects-page-head h1 {
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  line-height: .92;
}
.projects-page-head .page-lead {
  max-width: 48ch;
  margin-top: 1.25rem;
}
.featured-index {
  padding-top: 1.5rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.featured-index-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 0;
}
.featured-index-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 255, 0, .35), var(--line) 16%, var(--line));
}
.featured-index-head .label {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--accent);
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.featured-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 1rem;
  padding-top: 1rem;
}
.featured-case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
  height: 230px;
  min-height: 190px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.featured-case::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  height: 36%;
  pointer-events: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 8px;
  transition: border-color .25s var(--ease);
}
.featured-case:hover {
  transform: translateY(-3px);
}
.featured-case:hover::after { border-color: rgba(184, 214, 43, .6); }
.featured-case-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.featured-case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  transition: transform .45s var(--ease);
}
.featured-case:hover .featured-case-media img { transform: scale(1.04); }
.featured-case-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.4rem;
}
.featured-case-cat,
.featured-case-meta {
  color: var(--bone-dim);
  font-size: .72rem;
  line-height: 1.35;
  text-transform: uppercase;
}
.featured-case-cat { color: var(--accent); }
.featured-case-content h2 {
  margin-top: .55rem;
  padding-right: 6.5rem;
  font-size: clamp(1.65rem, 2.45vw, 2.7rem);
  line-height: .94;
  transition: color .25s var(--ease);
}
.featured-case:hover .featured-case-content h2 { color: var(--accent); }
.featured-case-content p {
  max-width: 42ch;
  margin-top: .75rem;
  color: var(--bone-dim);
  font-size: .78rem;
  line-height: 1.45;
}
.featured-case-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  gap: .35rem;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: transform .25s var(--ease);
}
.featured-case-arrow-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #060807;
  font-size: 1rem;
}
.featured-case:hover .featured-case-arrow { transform: translateY(-2px); }
.featured-case-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

@media (max-width: 700px) {
  .projects-page-head {
    min-height: 0;
    padding-top: 6.5rem;
  }
  .projects-page-head::before {
    inset: 0;
    background-position: 62% 44%;
    opacity: .7;
  }
  .projects-page-head::after {
    background:
      linear-gradient(to bottom, transparent 48%, var(--ink) 100%),
      linear-gradient(90deg, var(--ink) 0%, rgba(7, 9, 10, .9) 48%, rgba(7, 9, 10, .48) 76%, var(--ink) 100%);
  }
  .featured-case-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .featured-case {
    grid-template-columns: 112px minmax(0, 1fr);
    height: 180px;
    min-height: 180px;
  }
  .featured-case-content { padding: 1rem; }
  .featured-case-content h2 {
    margin-top: .55rem;
    padding-right: 2rem;
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }
  .featured-case-content p {
    margin-top: .5rem;
    font-size: .68rem;
    line-height: 1.35;
  }
  .featured-case-arrow {
    top: .75rem;
    right: .75rem;
  }
  .featured-case-arrow span { display: none; }
  .featured-case-arrow .featured-case-arrow-icon {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
  }
  .featured-case-cat,
  .featured-case-meta { font-size: .64rem; }
}

/* ---- Más proyectos: grilla con filtros ---- */
.mp { padding-top: 2rem; }
.mp-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem 2rem;
  padding-top: 1rem;
  margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
}
.mp-title {
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  gap: .65rem;
  color: var(--accent);
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 440;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}
.mp-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 255, 0, .35), var(--line) 18%, var(--line));
}
.mp-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mp-filter {
  font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone-dim);
  padding: 0.5rem 1.05rem; border: 1px solid var(--line); border-radius: 999px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.mp-filter:hover { color: var(--bone); border-color: var(--bone-dim); }
.mp-filter.active { background: var(--accent); color: #000; border-color: var(--accent); }
.mp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.7rem); }
.mp-card { display: block; width: 100%; text-align: left; }
.mp-ph { aspect-ratio: 16 / 10; width: 100%; border-radius: 6px; transition: transform 0.4s var(--ease), border-color 0.3s var(--ease); }
.mp-card:not(.inactive):hover .mp-ph { transform: translateY(-5px); border-color: var(--accent); }
.mp-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.75rem; }
.mp-name { font-family: var(--ff-display); font-weight: 600; font-size: 1rem; color: var(--bone); transition: color 0.3s var(--ease); }
.mp-card:not(.inactive):hover .mp-name { color: var(--accent); }
.mp-cat { font-size: 0.78rem; color: var(--bone-dim); text-align: right; white-space: nowrap; }
.mp-card.hide { display: none; }
.mp-card.inactive { pointer-events: none; cursor: default; }
.mp-card.inactive .mp-ph { border-color: var(--line); opacity: 0.55; }
.mp-card.inactive .mp-name { color: var(--bone-dim); }
@media (max-width: 900px) { .mp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mp-grid { grid-template-columns: 1fr; } }

/* Vista rápida de "Más proyectos" */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
}
.project-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.pm-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
}
.pm-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  height: min(680px, calc(100vh - clamp(2rem, 6vw, 5rem)));
  max-height: calc(100vh - clamp(2rem, 6vw, 5rem));
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(243, 242, 237, .2);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .65);
}
.pm-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 4;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 10, .82);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--bone);
  font-size: 1.6rem;
  line-height: 1;
}
.pm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .85fr);
  height: 100%;
  min-height: 0;
}
.pm-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050505;
  border-right: 1px solid var(--line);
}
.pm-image {
  width: 100%;
  height: 100%;
  max-height: min(78vh, 760px);
  object-fit: contain;
}
.pm-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(10, 10, 10, .82);
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--bone);
  font-size: 1.15rem;
  transition: background .2s, color .2s, transform .2s;
}
.pm-arrow:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-50%) scale(1.05);
}
.pm-prev { left: 1rem; }
.pm-next { right: 1rem; }
.pm-count {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .4rem .65rem;
  border-radius: 4px;
  background: rgba(10, 10, 10, .82);
  color: var(--bone-dim);
  font-size: .75rem;
}
.pm-content {
  min-width: 0;
  padding: clamp(2rem, 3.5vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.pm-dialog,
.pm-content {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--ink-2);
}
.pm-dialog::-webkit-scrollbar,
.pm-content::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.pm-dialog::-webkit-scrollbar-track,
.pm-content::-webkit-scrollbar-track {
  background: var(--ink-2);
}
.pm-dialog::-webkit-scrollbar-thumb,
.pm-content::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}
.pm-dialog::-webkit-scrollbar-button,
.pm-content::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.pm-category { color: var(--accent); }
.pm-content h2 {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: .95;
}
.pm-description {
  margin-top: 1.5rem;
  color: var(--bone-dim);
}
.pm-facts {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.pm-facts > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.pm-facts dt {
  margin-bottom: .3rem;
  color: var(--bone-dim);
  font-size: .7rem;
  text-transform: uppercase;
}
.pm-facts dd { color: var(--bone); }
.pm-dots {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.6rem;
}
.pm-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--bone-faint);
  transition: background .2s, transform .2s;
}
.pm-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}
body.modal-open { overflow: hidden; }

@media (max-width: 820px) {
  .project-modal { padding: 0; }
  .pm-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: auto;
    border: 0;
    border-radius: 0;
  }
  .pm-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100%;
  }
  .pm-media {
    min-height: 52vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pm-image { max-height: 58vh; }
  .pm-content { justify-content: flex-start; }
}

/* view all projects button */
.view-more-container {
  display: flex;
  justify-content: center;
  margin-top: clamp(4rem, 8vw, 7rem);
}
.btn-outline {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 1rem 2.4rem;
  border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

/* ============================================================
   CASO DE ESTUDIO
   ============================================================ */
.case-hero { padding-top: 9.5rem; }
.case-tagline {
  font-family: var(--ff-display);
  font-weight: 330;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 26ch;
  margin-top: 1.6rem;
}
.case-facts {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.case-fact {
  padding: 1.3rem 1.2rem 1.3rem 0;
  border-right: 1px solid var(--line);
}
.case-fact:last-child { border-right: 0; }
.case-fact .label { display: block; margin-bottom: 0.5rem; }
.case-fact .v { font-size: 1rem; }
.case-brief .case-facts {
  margin-top: 0;
}

.case-cover { aspect-ratio: 16 / 9; width: 100%; margin-top: clamp(1.5rem, 4vw, 3rem); }

.case-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.case-body .label { position: sticky; top: 7rem; }
.case-body .case-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}
.case-body .case-text p { color: var(--bone-dim); max-width: 56ch; margin-bottom: 1.1rem; }
.case-body .case-text p:last-child { margin-bottom: 0; }
.case-body .case-text p em { color: var(--bone); font-weight: 600; border-bottom: 2px solid var(--accent); }

.case-gallery { display: grid; gap: clamp(0.8rem, 2vw, 1.6rem); }
.case-gallery .g-full { aspect-ratio: 16 / 9; }
.case-gallery .g-duo { display: grid; grid-template-columns: 1fr 1fr; gap: inherit; }
.case-gallery .g-duo .ph { aspect-ratio: 1 / 1; }

.case-list { border-top: 1px solid var(--line); }
.case-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.case-list li .idx { padding-top: 0.15rem; }
.case-list li strong { font-weight: 600; }
.case-list li p { color: var(--bone-dim); font-size: 0.95rem; margin-top: 0.2rem; }

/* next project */
.next-proj {
  border-top: 1px solid var(--line);
  display: block;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.next-proj .label { display: block; margin-bottom: 1rem; }
.next-proj .np-name {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  transition: color 0.3s var(--ease), transform 0.45s var(--ease);
}
.next-proj:hover .np-name { color: var(--accent); transform: translateX(1.2rem); }

/* ============================================================
   MOBILE NAV PANEL
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 7900;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
body.menu-open .mobile-nav { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 11vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding-block: 0.3rem;
  color: var(--bone-dim);
  transition: color 0.25s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .mn-foot {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.mobile-nav .mn-foot a { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--bone-faint); }

/* ============================================================
   CURSOR
   ============================================================ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9500;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.r-up { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.r-up.in { opacity: 1; transform: translateY(0); }
.r-up[data-d="1"] { transition-delay: 0.1s; }
.r-up[data-d="2"] { transition-delay: 0.2s; }
.r-up[data-d="3"] { transition-delay: 0.3s; }
.r-up[data-d="4"] { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .statement-grid { grid-template-columns: 1fr; gap: 3rem; }
  .feature, .about-intro, .case-body { grid-template-columns: 1fr; }
  .case-body .label { position: static; }
  .about-portrait { max-width: 360px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .case-fact:nth-child(2) { border-right: 0; }
  .case-fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .approach-grid { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 6rem 1fr; }
  .tl-desc { grid-column: 2; }

  /* Hero responsive: apilado en columna */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    padding-top: 2rem;
  }
  .hero-portrait-wrapper {
    position: static;       /* vuelve al flujo */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transform: none;
    order: 1;               /* foto arriba */
  }
  .hero-content {
    max-width: none;        /* texto a todo el ancho */
    order: 2;               /* texto abajo */
  }
  .hero-title {
    font-size: clamp(2.3rem, 9.5vw, 4.8rem);
  }
}
@media (max-width: 780px) {
  .nav-links, .head-cta { display: none; }
  .burger { display: block; }
  .work-row { grid-template-columns: 2.5rem 1fr; row-gap: 0.6rem; }
  .work-meta { grid-column: 2; flex-direction: row; gap: 1rem; text-align: left; }
  .work-arrow { display: none; }
  .row-preview { display: none; }
  .proj-grid, .tools-grid { grid-template-columns: 1fr; }
  .proj-card:nth-child(even) { margin-top: 0; }
  .cert-list { columns: 1; }
  .case-gallery .g-duo { grid-template-columns: 1fr; }
  .cursor-dot { display: none; }

  /* Hero mobile padding */
  .hero {
    padding-top: 5.5rem;
  }
  .hero-portrait-wrapper {
    justify-self: center;
    max-width: 480px;
    grid-row: 1;
    margin-top: 0; /* Reseteamos el desplazamiento en pantallas medianas y chicas */
  }
  .hero-title {
    font-size: clamp(2.1rem, 11vw, 3.6rem);
  }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: 1rem; }
  .case-facts { grid-template-columns: 1fr; }
  .case-fact { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .tl-row { grid-template-columns: 1fr; }
  .tl-desc, .tl-role { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-title .line > span { transform: none; }
  .r-up { opacity: 1; transform: none; }
}

/* ============================================================
   MOTIVOS DE MARCA — cruces, rayas y rastros de puntos
   ============================================================ */
.hero > *,
.cta > * { position: relative; z-index: 1; }

.hero::before,
.hero::after,
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
}

/* hero — rayas diagonales arriba a la derecha */
.hero::before {
  top: clamp(5.5rem, 13vh, 10rem);
  right: 0;
  width: clamp(92px, 13vw, 188px);
  height: clamp(150px, 22vw, 290px);
  background: repeating-linear-gradient(-50deg, var(--accent) 0 3px, transparent 3px 16px);
  -webkit-mask: linear-gradient(-50deg, #000, transparent 80%);
          mask: linear-gradient(-50deg, #000, transparent 80%);
  opacity: 0.85;
}
/* hero — racimo de cruces abajo a la derecha */
.hero::after {
  bottom: clamp(7rem, 17vh, 13rem);
  right: clamp(1rem, 6vw, 5rem);
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><g stroke-linecap='round'><path d='M16 4V28M4 16H28' stroke='%23b8d62b' stroke-width='3'/><path d='M80 22V42M70 32H90' stroke='%23f3f2ed' stroke-width='2.4'/><path d='M120 60V78M111 69H129' stroke='%23b8d62b' stroke-width='2.6'/><path d='M30 96V120M18 108H42' stroke='%23f3f2ed' stroke-width='3'/><path d='M92 112V132M82 122H102' stroke='%23b8d62b' stroke-width='2.6'/></g></svg>");
  opacity: 0.55;
}

/* cta — cruces arriba a la izquierda */
.cta::before {
  top: clamp(0.5rem, 4vw, 2.5rem);
  left: clamp(0.5rem, 7vw, 6rem);
  width: 132px;
  height: 132px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><g stroke-linecap='round'><path d='M16 4V28M4 16H28' stroke='%23b8d62b' stroke-width='3'/><path d='M80 22V42M70 32H90' stroke='%23f3f2ed' stroke-width='2.4'/><path d='M120 60V78M111 69H129' stroke='%23b8d62b' stroke-width='2.6'/><path d='M30 96V120M18 108H42' stroke='%23f3f2ed' stroke-width='3'/></g></svg>");
  opacity: 0.6;
}
/* cta — rastro de puntos abajo a la derecha */
.cta::after {
  bottom: clamp(0.5rem, 5vw, 3.5rem);
  right: clamp(0.5rem, 6vw, 5rem);
  width: 180px;
  height: 130px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='130'><circle cx='12' cy='116' r='6' fill='%23f3f2ed'/><circle cx='42' cy='96' r='6' fill='%23f3f2ed'/><circle cx='72' cy='76' r='6' fill='%23c8d98a'/><circle cx='102' cy='56' r='6' fill='%23b8d62b'/><circle cx='132' cy='36' r='6' fill='%23b8d62b'/><circle cx='162' cy='16' r='6' fill='%23b8d62b'/></svg>");
  opacity: 0.7;
}

@media (max-width: 780px) {
  .hero::after, .cta::before { display: none; }
  .hero::before { width: 70px; }
}

/* ============================================================
   IMÁGENES REALES DE CASO (Botbox y futuros)
   ============================================================ */
.shot {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-2);
}
.shot img { width: 100%; height: auto; display: block; }

/* recorte tipo portada / thumbnail */
.shot.cover { aspect-ratio: 16 / 9; }
.shot.card  { aspect-ratio: 4 / 3; }
.shot.cover img,
.shot.card img { height: 100%; object-fit: cover; object-position: top; }

/* captura de sitio completo (scroll largo) con leve realce al hover */
.shot.full img { transition: transform 0.6s var(--ease); }
.shot.full:hover img { transform: scale(1.012); }

figure.fig { margin: 0; }
figure.fig figcaption {
  margin-top: 0.8rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* comparativa antes/después centrada */
.case-compare { max-width: 720px; margin-inline: auto; }

/* grilla de piezas (posts 4:5) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.8vw, 1.4rem);
}
.posts-grid .shot { border-radius: 6px; }
@media (max-width: 880px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .posts-grid { grid-template-columns: 1fr; } }

/* card de proyecto con imagen real */
.proj-card .shot { transition: transform 0.5s var(--ease); }
.proj-card:hover .shot { transform: translateY(-6px); }

/* ============================================================
   CASE STUDY STEPS (Botbox Redesign)
   ============================================================ */
.botbox-step {
  padding-block: clamp(3.5rem, 7vw, 7.5rem);
  position: relative;
}
/* divisor verde corto y un poco más grueso entre secciones del caso
   (en el borde superior de cada sección que sigue a otra) */
.botbox-step + .botbox-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  z-index: 1;
}
/* motif de marca: confeti — rayas diagonales que sangran desde la izquierda + cruces */
.step-1 { position: relative; padding-bottom: clamp(2rem, 4vw, 3.5rem); border-bottom: none; }  /* menos espacio antes de la Sección 2; sin línea blanca (se reemplaza por una verde corta) */
.step-1 > * { position: relative; z-index: 1; }
.step-1::before {
  content: "";
  position: absolute;
  left: min(0px, calc((var(--maxw) - 100vw) / 2));  /* rompe el margen del wrap: nace en el borde izq del viewport */
  bottom: -90px;                              /* centradas sobre el límite entre Sección 1 y 2 */
  width: clamp(90px, 12vw, 175px);
  height: 180px;
  background: repeating-linear-gradient(-50deg, var(--accent) 0 2px, transparent 2px 13px);
  -webkit-mask: linear-gradient(90deg, #000 0%, transparent 75%);  /* sólido junto al texto, sangra a la derecha */
          mask: linear-gradient(90deg, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
/* racimo de cruces (blancas + verdes) tipo confeti, pegado al borde derecho (sale detrás del monitor) */
.step-1::after {
  content: "";
  position: absolute;
  right: clamp(0.25rem, 1.8vw, 1.75rem);      /* mínimamente más a la derecha */
  top: clamp(3.5rem, 6.5vw, 6.5rem);          /* un poco más arriba (sin tocar el header) */
  width: 140px;
  height: 100px;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='100'><g stroke-linecap='round'><path d='M122 6V30M110 18H134' stroke='%23b8d62b' stroke-width='2.8'/><path d='M88 42V58M80 50H96' stroke='%23f3f2ed' stroke-width='2.2'/><path d='M118 76V94M109 85H127' stroke='%23b8d62b' stroke-width='2.5'/></g></svg>");
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 1080px) {
  .step-1::after { display: none; }   /* al apilar, evita choque con el monitor */
}
.hero-split {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;   /* el monitor domina: muchísimo más grande */
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.hero-text-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-badge {
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}
.hero-ctas {
  display: flex;
  gap: 1.2rem;
}
.btn-filled {
  background: var(--accent);
  color: #000000;
  border: 1px solid var(--accent);
  padding: 0.8rem 2.2rem;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  display: inline-block;
}
.btn-filled:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

/* CSS Monitor Frame */
.monitor-wrapper {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}
.monitor {
  position: relative;
  width: 100%;
}
.monitor-screen {
  aspect-ratio: 16 / 10;
  border: 12px solid #1f1f1f;
  border-bottom-width: 20px;
  border-radius: 12px 12px 0 0;
  background: #000;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 20px rgba(0, 0, 0, 0.9),
    0 20px 45px rgba(0, 0, 0, 0.65);
}
.screen-preview-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.screen-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: object-position 4.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.monitor:hover .screen-preview-container img {
  object-position: bottom;
}
.glass-glare {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.01) 100%);
  pointer-events: none;
  z-index: 5;
}
.preview-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.6rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--bone-dim);
  font-family: var(--ff-mono);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--line);
  z-index: 6;
  transition: opacity 0.3s ease;
}
.monitor:hover .preview-overlay {
  opacity: 0;
}
.monitor-stand {
  width: 20%;
  height: 50px;
  background: linear-gradient(to right, #1a1a1a 0%, #353535 30%, #4a4a4a 50%, #353535 70%, #1a1a1a 100%);
  margin-inline: auto;
  border-bottom: 1px solid #1a1a1a;
  box-shadow: inset 0 8px 12px -6px rgba(0, 0, 0, 0.8);
}
.monitor-base {
  width: 42%;
  height: 10px;
  background: linear-gradient(to bottom, #3a3a3a 0%, #202020 80%, #151515 100%);
  margin-inline: auto;
  border-radius: 6px 6px 0 0;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.monitor::after {
  content: "";
  position: absolute;
  bottom: 66px;
  right: 20px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 5px var(--accent),
    0 0 10px var(--accent);
  z-index: 10;
  pointer-events: none;
}

/* monitor PNG realista, grande y sangrando a la derecha; el slider va detrás del hueco transparente */
.monitor-png {
  position: relative;
  width: clamp(600px, 78vw, 1180px);   /* tamaño real grande: desborda a la derecha */
  max-width: none;
  margin-inline: 0;
}
.monitor-png-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;     /* deja pasar el arrastre al slider del hueco */
  /* sombra profunda que despega el monitor del fondo */
  filter: drop-shadow(0 45px 80px rgba(0, 0, 0, 0.65));
}
.monitor-png-screen {
  position: absolute;
  z-index: 1;
  left: 18.8%;
  top: 6.1%;
  width: 62.4%;
  height: 69.2%;
  overflow: hidden;
  background: #000;
}
.monitor-png-screen .comparison-slider {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
/* halo verde detrás del monitor: da profundidad (que no parezca pegado) */
.monitor-png::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -14%; left: -12%;
  width: 124%; height: 104%;
  background: radial-gradient(ellipse at 50% 42%,
              rgba(184, 214, 43, 0.20) 0%,
              rgba(184, 214, 43, 0.07) 38%,
              rgba(184, 214, 43, 0) 68%);
  filter: blur(80px);
  pointer-events: none;
}
/* degradado radial verde DEBAJO del monitor (reflejo/luz en el piso) */
.monitor-png::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -9%;
  transform: translateX(-50%);
  width: 68%;
  height: 22%;
  background: radial-gradient(ellipse at center, rgba(184, 214, 43, 0.42) 0%, rgba(184, 214, 43, 0) 72%);
  filter: blur(26px);
  pointer-events: none;
}

/* Specific Section 1 overrides */
.hero-client-label {
  font-family: var(--ff-body);
  font-weight: 300;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
  display: inline-block;
}
/* eyebrow con línea, estilo caso de estudio */
.hero-kicker {
  display: inline-flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-kicker::after {
  content: "";
  width: 54px;
  height: 2px;
  background: var(--accent);
}
/* título a dos tonos, junto (como la referencia) */
.hero-title-2tone { display: flex; flex-direction: column; }
.case-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 0.92;
  white-space: nowrap;
}
.hero-text-side h1 { white-space: normal; }   /* permite que el título envuelva */
.hero-subtitle {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 0.95;
  margin-top: 0.1rem;
  white-space: nowrap;       /* "Rediseño web" en una sola línea */
}
/* línea fina blanca con el año a la derecha */
.hero-yearline {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 30ch;
}
.hero-yearline-rule {
  flex: 1;
  height: 1px;
  background: rgba(243, 242, 237, 0.35);
}
.hero-yearline-year {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--bone-dim);
}
.hero-year {
  font-family: var(--ff-mono);
  font-size: 1.05rem;
  color: var(--bone-dim);
  margin-top: 0;
  margin-bottom: 1.2rem;
}
/*.case-hero .case-tagline */
.case-hero .case-tagline {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--bone-dim);
  max-width: 46ch;
  margin-top: 0;
  margin-bottom: 2rem;
}
.monitor-image-wrapper {
  position: relative;
  width: 100%;
  max-width: none;                       /* monitor mucho más grande */
  margin-inline: 0;
  margin-right: calc(-1.4 * var(--pad)); /* sangra hacia el borde derecho */
}
/* Subtle ambient green backlighting glow */
.monitor-image-wrapper::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 15%;
  width: 70%;
  height: 65%;
  background: radial-gradient(circle, rgba(184, 214, 43, 0.16) 0%, rgba(184, 214, 43, 0) 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}
/* Green reflection glow under the monitor base */
.monitor-image-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(184, 214, 43, 0.5) 0%, rgba(184, 214, 43, 0) 75%);
  filter: blur(3px);
  z-index: 3;
  pointer-events: none;
}
.hero-monitor-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

/* ---- Shared 2-column step layout (Sections 02 & 06) ---- */
.step-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
/* Sección 02: imagen y contenido alineados arriba (look editorial), bloque centrado y más compacto */
.step-2 { position: relative; }
.step-2 .step-grid-2col { align-items: start; max-width: 1180px; margin-inline: auto; position: relative; }
/* flechita lima en el espacio entre imagen y texto, apuntando al texto, con nudge sutil */
.step-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  color: var(--accent);
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
  animation: arrow-nudge 1.5s var(--ease) infinite;
}
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(-5px); }
  50%      { transform: translateX(5px); }
}
@media (max-width: 1080px) {
  .step-arrow { display: none; }   /* al apilar no aplica entre imagen y texto */
}
/* elemento decorativo sutil a la derecha en el límite Sección 2–3: rastro de círculos (blanco→lima) */
.step-3::after {
  content: "";
  position: absolute;
  top: -50px;                                 /* straddle del límite 2–3 */
  right: min(0px, calc((var(--maxw) - 100vw) / 2));  /* sale del borde derecho real del viewport */
  width: 160px;
  height: 120px;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='120'><circle cx='14' cy='104' r='5.5' fill='%23f3f2ed'/><circle cx='46' cy='82' r='5.5' fill='%23f3f2ed'/><circle cx='78' cy='60' r='5.5' fill='%23c8d98a'/><circle cx='110' cy='38' r='5.5' fill='%23b8d62b'/><circle cx='142' cy='16' r='5.5' fill='%23b8d62b'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
/* brillo verde que entra DESDE AFUERA de los bordes del viewport (centrado sobre el borde, mitad afuera) */
.obj-glow {
  position: absolute;
  top: 50%;
  width: clamp(300px, 32vw, 560px);
  height: 95%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(184, 214, 43, 0.26) 0%, rgba(184, 214, 43, 0.09) 40%, rgba(184, 214, 43, 0) 72%);
  filter: blur(60px);
}
.obj-glow-l { left: min(0px, calc((var(--maxw) - 100vw) / 2)); transform: translate(-50%, -50%); }
.obj-glow-r { right: min(0px, calc((var(--maxw) - 100vw) / 2)); transform: translate(50%, -50%); }
.step-3 .step-center-head, .step-3 .objectives-grid { position: relative; z-index: 1; }
.step-content {
  display: flex;
  flex-direction: column;
}
.step-visual {
  position: relative;
}
.step-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--bone);
  margin-top: 0.45rem;
}
.step-title .accent-word { color: var(--accent); }
.step-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 52ch;
  margin-top: 1.3rem;
}
.step-list-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-top: 2.4rem;
}

/* Section 2: Cropped Shot & Problems List */
.cropped-shot {
  width: 100%;
  position: relative;
  padding-top: 36px;                 /* deja sitio para la barra de navegador */
  max-height: 570px;                 /* la base se alinea con el final del círculo 04 */
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink-3);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
}
/* barra superior tipo ventana de navegador */
.cropped-shot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
/* semáforo de la ventana */
.cropped-shot::after {
  content: "";
  position: absolute;
  top: 14px; left: 18px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
  z-index: 3;
}
.cropped-shot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top;
  filter: grayscale(0.45) brightness(0.82) contrast(0.96);   /* lectura de "sitio antiguo" */
  transition: filter 0.5s var(--ease);
}
.cropped-shot:hover img {
  filter: grayscale(0) brightness(1) contrast(1);
}
.step-badge-num {
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: inline-block;
}
/* ---- Timeline numerado de problemas ---- */
.problems-timeline {
  margin-top: 1.5rem;
}
.ptl-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 1.2rem;
  align-items: center;
  min-height: 46px;
  padding-block: 0.95rem;
}
/* conector punteado vertical que une los círculos */
.ptl-item::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  border-left: 1.5px dashed rgba(184, 214, 43, 0.35);
  z-index: 0;
}
.ptl-item:first-child::before { top: 50%; }
.ptl-item:last-child::before  { bottom: 50%; }
.ptl-num {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 214, 43, 0.55);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.ptl-item:hover .ptl-num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}
.ptl-text {
  font-size: 1.04rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--bone);
  max-width: 28ch;
}

/* ---- Tarjeta de oportunidad ---- */
.opportunity-card {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.3rem;
  align-items: start;
  padding: 1.7rem 1.9rem;
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(184, 214, 43, 0.08), rgba(184, 214, 43, 0.015));
}
.opportunity-icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  flex-shrink: 0;
}
.opportunity-icon svg { width: 100%; height: 100%; }
.opportunity-text {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--bone-dim);
}
.opportunity-text strong {
  color: var(--accent);
  font-weight: 700;
}

/* Section 3: Centered title & 5 cards */
.step-center-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.step-title-center {
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin-top: 0.5rem;
}
.step-title-center .accent-word {
  color: var(--accent);
}
.step-desc-center {
  font-size: 1.1rem;
  color: var(--bone-dim);
  line-height: 1.6;
  margin-top: 1.2rem;
}
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.obj-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.obj-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: rgba(184, 214, 43, 0.03);
}
.obj-card-icon {
  width: 2.8rem;
  height: 2.8rem;
  color: var(--accent);
  border: 1px solid rgba(184, 214, 43, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  transition: background 0.3s, border-color 0.3s;
}
.obj-card:hover .obj-card-icon {
  background: rgba(184, 214, 43, 0.08);
  border-color: var(--accent);
}
.obj-card-icon svg {
  width: 100%; height: 100%;
}
.obj-card h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--bone);
}
.obj-card p {
  font-size: 0.86rem;
  color: var(--bone-dim);
  line-height: 1.45;
  margin-top: auto;
}

/* ============================================================
   Section 4: scrollytelling pinned — la web scrollea dentro del monitor
   ============================================================ */
.exp-section { position: relative; }
.exp-track { position: relative; height: 460vh; }          /* distancia de scroll mientras está fija */
.exp-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-start;                       /* contenido arriba, no centrado verticalmente */
  padding-top: clamp(3.5rem, 9vh, 8rem);
  overflow: hidden;
}
.exp-stage-grid {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: clamp(300px, 30%, 420px) auto;   /* texto izq + monitor (ancho según su alto) */
  justify-content: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.exp-left { position: relative; z-index: 2; }
.experience-head { margin-bottom: 2.2rem; }
.experience-head .step-title { margin-top: 0; }
.experience-head .step-desc { margin-top: 1rem; max-width: 38ch; }

/* bullets que aparecen con el scroll */
.exp-bullets { display: flex; flex-direction: column; gap: 1.6rem; }
.exp-bullet {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.exp-bullet.show { opacity: 1; transform: none; }
.exp-bullet.active .feat-num-circle { border-color: var(--accent); background: rgba(184, 214, 43, 0.12); }
.exp-bullet.active .feat-num { color: var(--accent); }
/* desactivados (hechos): outline verde, relleno vacío, número verde */
.exp-bullet.done .feat-num-circle { border-color: var(--accent); background: transparent; }
.exp-bullet.done .feat-num { color: var(--accent); }

/* monitor con la web haciendo scroll dentro */
.exp-right { position: relative; }
.exp-monitor { position: relative; width: auto; }
.exp-monitor-frame {
  position: relative; z-index: 2;
  height: clamp(440px, 80vh, 900px);   /* dimensionado por alto: entra completo en la pantalla fija */
  width: auto; display: block;
  pointer-events: none;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.6));
}
.exp-monitor-screen {
  position: absolute; z-index: 1;
  left: 4.4%; top: 6.6%;
  width: 91.2%; height: 68.2%;
  overflow: hidden;
  background: #000;
}
.exp-web { width: 100%; height: auto; display: block; will-change: transform; }

/* línea conectora del bullet activo al monitor */
.exp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; transition: opacity 0.25s var(--ease); }
.connector-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.95;
}
/* la línea del scrollytelling se difumina (a negro) del lado del texto */
#exp-line, #exp-line2 { stroke: url(#exp-line-grad); stroke-width: 2.2; }
.exp-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
}

/* círculo numerado de cada bullet (reutilizado) */
.feat-num-circle {
  position: relative;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.feat-num {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  color: var(--bone-dim);
  z-index: 2;
  transition: color 0.4s var(--ease);
}
.pulse-ring {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
}
.exp-bullet.active .pulse-ring {
  animation: feat-pulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes feat-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}
.feat-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.feat-text strong {
  font-size: 1.05rem;
  color: var(--bone);
  font-weight: 600;
}
.feat-text p {
  font-size: 0.92rem;
  color: var(--bone-dim);
  line-height: 1.4;
}
/* fallback ≤1080: sin pin, apilado, todo visible */
@media (max-width: 1080px) {
  .exp-track { height: auto; }
  .exp-stage { position: static; height: auto; display: block; overflow: visible; padding-block: clamp(3.5rem, 7vw, 7.5rem); }
  .exp-stage-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .exp-bullet { opacity: 1; transform: none; }
  .exp-web { transform: none !important; }
  .exp-lines { display: none; }
  .exp-right { transform: none; }
  .exp-monitor { width: 100%; max-width: 620px; margin-inline: auto; }
  .exp-monitor-frame { height: auto; width: 100%; }
}
/* Sección 6: mockup de dispositivos (imagen única, grande; el glow ya viene en el PNG) */
.exp-section { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }   /* menos aire arriba/abajo de la Sección 4 */
.step-6 { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.step-6 + .cta { padding-top: clamp(2rem, 4vw, 3.5rem); }        /* menos espacio antes de "Hablemos" */
.step-6 .step-grid-2col { grid-template-columns: 0.74fr 1.26fr; }
.step-6 .step-visual { margin-right: calc(-1.3 * var(--pad)); }
.result-mockup { width: 110%; max-width: none; height: auto; display: block; }
/* Navegación entre proyectos (anterior / siguiente), centrada debajo de la sección */
.case-nav { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: clamp(0.5rem, 1.5vw, 1.5rem); }
.cnav {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.7rem 1.6rem; border-radius: 11px; min-width: 200px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cnav-label { font-family: var(--ff-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.cnav-name { font-family: var(--ff-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.cnav-prev { background: var(--ink-2); border: 1px solid var(--line); color: var(--bone); }
.cnav-prev .cnav-label { color: var(--bone-dim); }
.cnav-prev:hover { border-color: var(--bone-dim); transform: translateY(-3px); }
.cnav-next { background: var(--accent); color: #000; border: 1px solid var(--accent); text-align: right; align-items: flex-end; }
.cnav-next .cnav-label { color: rgba(0, 0, 0, 0.65); }
.cnav-next:hover { transform: translateY(-3px); filter: brightness(1.06); }
.case-all-link {
  display: table;
  margin: 1.25rem auto 0;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: .82rem;
  transition: color .2s, border-color .2s;
}
.case-all-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 560px) { .cnav { min-width: 0; flex: 1 1 100%; } .cnav-next { text-align: left; align-items: flex-start; } }

/* Botón "subir" (scroll to top), global, esquina inferior derecha */
.to-top {
  position: fixed; bottom: 1.4rem; right: 1.4rem;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--accent); color: #000;
  display: grid; place-items: center;
  font-size: 1.2rem; line-height: 1;
  z-index: 90; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--bone); }

/* ---- Página Hablemos: contacto + formulario ---- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.ci-block { display: flex; flex-direction: column; gap: 0.45rem; }
.ci-block .label { color: var(--accent); }
.ci-link { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 500; color: var(--bone); width: fit-content; transition: color 0.25s var(--ease); }
.ci-link:hover { color: var(--accent); }
.ci-text { color: var(--bone-dim); font-size: 1.02rem; }
.ci-mail { display: flex; align-items: center; gap: 0.6rem; }
.ci-copy {
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 2rem; height: 2rem; border-radius: 7px;
  border: 1px solid var(--line); color: var(--bone-dim); cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.ci-copy svg { width: 16px; height: 16px; }
.ci-copy:hover { color: var(--accent); border-color: var(--accent); }
.ci-copy.copied { color: var(--accent); border-color: var(--accent); background: rgba(184, 214, 43, 0.08); }
.ci-copied {
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000;
  font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 5px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease);
}
.ci-copy.copied .ci-copied { opacity: 1; }
/* email + copiar en línea (footer, CTA, etc.) */
.mail-wrap { display: inline-flex; align-items: center; gap: 0.45rem; }
.ci-copy.mini { width: 1.55rem; height: 1.55rem; border-radius: 5px; }
.ci-copy.mini svg { width: 13px; height: 13px; }
.cta-sub .mail-wrap .gmail-link { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.cta-sub .mail-wrap .gmail-link:hover { color: var(--accent); border-color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.cf-field { display: flex; flex-direction: column; gap: 0.5rem; }
.cf-label { font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--ff-body); font-size: 1rem; color: var(--bone);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.85rem 1rem; width: 100%;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(184, 214, 43, 0.04); }
.contact-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238f8f88' stroke-width='2'><path d='M3 5l4 4 4-4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.contact-form select option { background: var(--ink-2); color: var(--bone); }
.cf-submit { align-self: flex-start; margin-top: 0.4rem; border: 0; cursor: pointer; }
.cf-note { font-size: 0.82rem; color: var(--bone-faint); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cf-row { grid-template-columns: 1fr; }
}

/* 3 Sub mockups */
.experience-sub-mockups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.sub-mockup-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.sub-mock-img-wrapper {
  height: 160px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.sub-mock-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 49%;
}
.sub-mockup-title {
  padding: 1rem 1.2rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
  text-align: center;
}

/* Section 5: Comparison Slider */
.comparison-slider-container {
  max-width: 1000px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.slider-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  user-select: none;
  pointer-events: none;
}
.slider-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.after-image {
  /* DESPUÉS a la derecha (Antes queda a la izquierda, como la referencia) */
  clip-path: polygon(var(--position) 0, 100% 0, 100% 100%, var(--position) 100%);
}
.slider-label {
  position: absolute;
  top: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
}
.before-image .slider-label {
  left: 1rem;
  color: var(--bone-dim);
}
.after-image .slider-label {
  right: 1rem;
  color: var(--accent);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  background: var(--accent);
  z-index: 20;
  pointer-events: none;
  transform: translateX(-50%);
}
.handle-line {
  width: 100%; height: 100%;
}
.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.2rem;
  height: 3.2rem;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease);
}
.slider-input:active ~ .slider-handle .handle-button {
  transform: translate(-50%, -50%) scale(1.1);
}
.handle-button svg {
  width: 1.2rem;
  height: 1.2rem;
}

.slider-input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 30;
}

.compare-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.bullet-col-title {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bone-faint);
  margin-bottom: 1.2rem;
}
.bullet-col.after-bullets .bullet-col-title {
  color: var(--accent);
}
.bullet-col ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bullet-col li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--bone);
}
.bullet-cross {
  color: #ff5252;
  font-family: monospace;
  font-weight: bold;
  font-size: 1.2rem;
}
.bullet-check {
  color: var(--accent);
  font-family: monospace;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Section 6: Multi-Device Showcase */
.result-ctas {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}

.device-showcase {
  position: relative;
  width: 100%;
  height: 380px;
  margin-top: 1rem;
}
.showcase-monitor {
  position: absolute;
  top: 0; left: 15%;
  width: 70%;
  z-index: 1;
}
.showcase-monitor .monitor-screen {
  aspect-ratio: 16 / 10;
  border: 10px solid #1f1f1f;
  border-bottom-width: 16px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: var(--ink-2);
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 15px 35px rgba(0, 0, 0, 0.6);
}
.showcase-monitor .monitor-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: object-position 4.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.showcase-monitor:hover .monitor-screen img {
  object-position: bottom;
}
.showcase-monitor .monitor-stand {
  width: 18%; height: 35px;
  background: linear-gradient(to right, #1a1a1a 0%, #353535 30%, #4a4a4a 50%, #353535 70%, #1a1a1a 100%);
  margin-inline: auto;
  border-bottom: 1px solid #1a1a1a;
  box-shadow: inset 0 6px 10px -5px rgba(0, 0, 0, 0.8);
}
.showcase-monitor .monitor-base {
  width: 32%; height: 6px;
  background: linear-gradient(to bottom, #3a3a3a 0%, #202020 80%, #151515 100%);
  border-radius: 4px 4px 0 0;
  margin-inline: auto;
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.showcase-monitor::after {
  content: "";
  position: absolute;
  bottom: 47px;
  right: 16px;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--accent);
  z-index: 10;
  pointer-events: none;
}

.showcase-tablet {
  position: absolute;
  bottom: -10px; left: 0;
  width: 32%;
  aspect-ratio: 3.2 / 4;
  border: 10px solid #1a1a1a;
  border-radius: 12px;
  background: var(--ink-2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.showcase-tablet .tablet-screen {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.showcase-tablet .tablet-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.showcase-tablet .tablet-home {
  height: 10px;
  background: #1a1a1a;
  position: relative;
}
.showcase-tablet .tablet-home::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5px; height: 5px;
  border: 1px solid #333;
  border-radius: 50%;
}

.showcase-phone {
  position: absolute;
  bottom: -25px; right: 8%;
  width: 18%;
  aspect-ratio: 9 / 18;
  border: 8px solid #222;
  border-radius: 14px;
  background: var(--ink-2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  z-index: 3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.showcase-phone .phone-screen {
  flex: 1;
  overflow: hidden;
}
.showcase-phone .phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.showcase-phone .phone-speaker {
  height: 8px;
  background: #222;
  position: relative;
}
.showcase-phone .phone-speaker::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 15px; height: 2px;
  background: #333;
  border-radius: 1px;
}

@media (max-width: 1080px) {
  .connector-lines-svg {
    display: none;
  }
  .hero-split, .step-grid-2col, .experience-interactive-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual-side {
    order: 1;
  }
  .monitor-image-wrapper,
  .monitor-png {
    margin-right: 0;          /* sin sangrado al apilar: monitor centrado */
    margin-inline: auto;
    max-width: 560px;
  }
  .hero-text-side {
    order: 2;
  }
  .objectives-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .obj-card:last-child {
    grid-column: span 2;
  }
  .experience-sub-mockups {
    grid-template-columns: 1fr;
  }
  .compare-container {
    flex-direction: column;
  }
  .compare-arrow {
    transform: rotate(90deg);
    animation: compare-bounce-v 2s ease-in-out infinite;
  }
  @keyframes compare-bounce-v {
    0%, 100% { transform: rotate(90deg) translateY(0); }
    50% { transform: rotate(90deg) translateY(6px); }
  }
  .compare-bullets {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 780px) {
  .objectives-grid {
    grid-template-columns: 1fr;
  }
  .obj-card:last-child {
    grid-column: span 1;
  }
  .result-ctas, .hero-ctas {
    flex-direction: column;
  }
  .btn-filled, .btn-outline {
    text-align: center;
  }
  .device-showcase {
    height: 250px;
  }
  .showcase-monitor {
    width: 80%; left: 10%;
  }
  .showcase-tablet {
    width: 38%;
  }
  .showcase-phone {
    width: 22%; right: 4%;
  }
}

/* ============================================================
   ACCESSIBILITY & FALLBACKS
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .r-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-load .line > span {
    transform: none !important;
    animation: none !important;
  }
  .ticker-row {
    animation-play-state: paused !important;
  }
}

/* ============================================================
   MODERN FEATURED CASES
   Shared editorial system based on Botbox and Moon Baby
   ============================================================ */
.modern-case-hero {
  min-height: min(860px, 92vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(8rem, 12vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.modern-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  flex: 1;
}
.modern-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
.modern-hero-kicker {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--accent);
}
.modern-hero-title {
  max-width: 9ch;
  font-size: clamp(3.2rem, 7.5vw, 8.2rem);
  line-height: .88;
}
.modern-hero-copy .case-tagline { max-width: 34ch; }
.modern-hero-year {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 25rem);
  margin-top: 1.5rem;
  color: var(--bone-dim);
  font-size: .82rem;
}
.modern-hero-year::before {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.modern-hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  min-height: clamp(360px, 50vw, 650px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-2);
}
.modern-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
}
.modern-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.modern-hero-visual:hover img { transform: scale(1.018); }
.modern-hero-index {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: .55rem .7rem;
  background: rgba(11, 9, 20, .82);
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--bone);
  font-size: .72rem;
  text-transform: uppercase;
}
.case-story {
  padding-top: clamp(5rem, 10vw, 10rem);
  padding-bottom: clamp(5rem, 10vw, 10rem);
}
.case-story .case-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: .98;
  max-width: 12ch;
}
.modern-media {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(.8rem, 2vw, 1.5rem);
  align-items: stretch;
}
.modern-media-main,
.modern-media-stack > * {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-2);
}
.modern-media-main img,
.modern-media-stack img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.modern-media-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(.8rem, 2vw, 1.5rem);
}
.modern-deliverables .sec-head {
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
.modern-deliverables .sec-head h2 { font-size: clamp(2.5rem, 6vw, 6rem); }
.modern-deliverables .case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.modern-deliverables .case-list li {
  min-height: 190px;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.modern-deliverables .case-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.modern-outcome {
  margin-top: clamp(5rem, 10vw, 10rem);
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.modern-outcome .case-text h2 { color: var(--accent); }
.modern-case--album .modern-hero-visual img { object-position: center; }
.modern-case--visit .modern-hero-visual img { object-position: 52% center; }
.modern-case .case-body > .label {
  color: var(--accent);
  font-weight: 700;
}
.modern-case .case-text h2 {
  color: var(--bone);
}
.modern-case .case-text h2 em {
  color: var(--accent);
  font: inherit;
}
.modern-case .case-body.has-step-visual {
  grid-template-columns: minmax(110px, .38fr) minmax(0, .9fr) minmax(320px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.case-step-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-2);
}
.case-step-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.case-step-visual:hover img { transform: scale(1.02); }
.whatsapp-future,
.whatsapp-future[hidden] {
  display: none !important;
}

/* Compact modernization for supporting case studies. */
.modern-case-lite .case-hero {
  min-height: min(820px, 90vh);
  padding-top: clamp(8rem, 12vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr);
  grid-template-rows: auto 1fr auto auto;
  column-gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}
.modern-case-lite .case-hero .crumb { grid-column: 1 / -1; }
.modern-case-lite .case-hero > h1 {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  max-width: 9ch;
  font-size: clamp(3.2rem, 7vw, 7.4rem) !important;
  line-height: .9 !important;
}
.modern-case-lite .case-hero > .case-tagline {
  grid-column: 1;
  grid-row: 3;
  max-width: 34ch;
}
.modern-case-lite .case-hero > .case-cover {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: stretch;
  min-height: clamp(360px, 48vw, 620px);
  height: 100%;
  margin-top: 0;
  border-radius: 8px !important;
  object-fit: cover;
}
.modern-case-lite .case-hero > .case-facts {
  grid-column: 1 / -1;
  grid-row: 4;
}
.modern-case-lite .case-body {
  padding-top: clamp(5rem, 10vw, 10rem);
  padding-bottom: clamp(5rem, 10vw, 10rem);
}
.modern-case-lite .case-body .case-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: .98;
  max-width: 12ch;
}
.modern-case-lite .case-gallery {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(.8rem, 2vw, 1.5rem);
}
.modern-case-lite .case-gallery .g-full { grid-column: 1; }
.modern-case-lite .case-gallery .g-duo {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(.8rem, 2vw, 1.5rem);
}
.modern-case-lite .case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.modern-case-lite .case-list li {
  min-height: 180px;
  padding: clamp(1.4rem, 3vw, 2.5rem);
}
.modern-case-lite .case-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.modern-case-lite .case-body:last-of-type {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.modern-case-lite .case-body:last-of-type .case-text h2 { color: var(--accent); }

@media (max-width: 1080px) {
  .modern-case-hero { min-height: auto; }
  .modern-hero-grid { grid-template-columns: 1fr; }
  .modern-hero-copy { max-width: 720px; }
  .modern-hero-visual { min-height: clamp(340px, 72vw, 620px); }
  .modern-media { grid-template-columns: 1fr; }
  .modern-media-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .modern-case-lite .case-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 2rem;
  }
  .modern-case-lite .case-hero .crumb,
  .modern-case-lite .case-hero > h1,
  .modern-case-lite .case-hero > .case-tagline,
  .modern-case-lite .case-hero > .case-cover,
  .modern-case-lite .case-hero > .case-facts {
    grid-column: 1;
    grid-row: auto;
  }
  .modern-case-lite .case-hero > .case-cover { order: 4; }
  .modern-case-lite .case-hero > .case-facts { order: 5; }
  .modern-case-lite .case-hero > .case-cover {
    min-height: clamp(340px, 72vw, 620px);
  }
  .modern-case-lite .case-gallery { grid-template-columns: 1fr; }
  .modern-case-lite .case-gallery .g-full,
  .modern-case-lite .case-gallery .g-duo { grid-column: 1; }
  .modern-case-lite .case-gallery .g-duo {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .modern-case .case-body.has-step-visual {
    grid-template-columns: 1fr;
  }
  .modern-case .case-body.has-step-visual > .label {
    position: static;
  }
  .case-step-visual {
    width: 100%;
    max-width: 760px;
  }
}
@media (max-width: 560px) {
  .modern-case-hero { padding-top: 7.5rem; }
  .modern-hero-grid { gap: 2.2rem; }
  .modern-hero-title { font-size: clamp(3rem, 17vw, 5rem); }
  .modern-hero-year::before { display: none; }
  .modern-hero-visual {
    min-height: 0;
    width: calc(100vw - (2 * var(--pad)));
    justify-self: start;
  }
  .modern-hero-visual img {
    min-height: 0;
    height: auto;
    object-fit: contain;
  }
  .modern-hero-index { display: none; }
  .modern-media-stack { grid-template-columns: 1fr; }
  .modern-deliverables .case-list { grid-template-columns: 1fr; }
  .modern-deliverables .case-list li:nth-child(odd) { border-right: 0; }
  .modern-case-lite .case-hero { padding-top: 7.5rem; }
  .modern-case-lite .case-hero > h1 { font-size: clamp(3rem, 17vw, 5rem) !important; }
  .modern-case-lite .case-hero > .case-cover {
    min-height: 0;
    height: auto;
    width: calc(100vw - (2 * var(--pad)));
    justify-self: start;
    object-fit: contain;
  }
  .modern-case-lite .case-gallery .g-duo { grid-template-columns: 1fr; }
  .modern-case-lite .case-list { grid-template-columns: 1fr; }
  .modern-case-lite .case-list li:nth-child(odd) { border-right: 0; }
}
