/* ============================================================
   Andrés — Director Creativo
   Tipografía: Helvetica exclusiva. Ningún peso bajo 400.
   ============================================================ */

/* Tipografías de marca Camper World — solo para el espécimen del case study */
@font-face {
  font-family: "Ginto Nord";
  src: url("../img/CWC/ABCGintoNord-Ultra-Trial-BF651b7b783d44c.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Ginto Nord Condensed";
  src: url("../img/CWC/ABCGintoNordCondensed-Medium-Trial-BF651b7b785204a.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Ginto Nord Condensed";
  src: url("../img/CWC/ABCGintoNordCondensed-Bold-Trial-BF651b7b7729958.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* Tipografía de marca La Negra — solo para el espécimen del case study */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../img/lanegra/BarlowCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../img/lanegra/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #333333;
  --ink-body: #5f5f5f;
  --ink-soft: #6b6b6b;
  --dark: #1d1d1d;
  --footer-bg: #222222;
  --footer-ink: #d6d6d6;
  --footer-soft: #9a9a9a;
  --footer-line: #3d3d3d;
  --ph-a: #ececec;
  --ph-b: #e3e1da;
  --ph-c: #dcdcdc;
  --ph-d: #eae7dd;
  --ph-e: #e6e6e6;
  --radius-lg: 24px;
  --radius-sm: 12px;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(1600px, 100% - 5rem);
  margin-inline: auto;
}

/* Cuerpos de texto: más retirados de los bordes que los carruseles */
.text-inset { padding-inline: clamp(1.5rem, 5vw, 6rem); }

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ============ Header ============ */
.site-header { padding: 3rem 0 7rem; }

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* Chip de idioma ES / EN — segmented control con indicador deslizante */
.lang-chip {
  position: relative;
  display: inline-flex;
  background: #f1f1f0;
  border-radius: 999px;
  padding: 3px;
}

.lang-chip::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-chip[data-lang="en"]::before { transform: translateX(100%); }

.lang-btn {
  position: relative;
  z-index: 1;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  width: 2.75rem;
  padding: 0.4rem 0;
  text-align: center;
  background: none;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-btn.is-active { color: #ffffff; }

.lang-btn:not(.is-active):hover { color: var(--ink); }

.header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
  align-items: start;
  margin-top: 6rem;
}

.attributes {
  list-style: none;
  font-size: 1rem;
  line-height: 1.9;
}

.intro {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 21em;
}

/* ============ Secciones ============ */
.block { padding: 6.5rem 0 0; }

.section-head {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-head p {
  max-width: 46em;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--ink-body);
  transition-delay: 0.12s;
}

/* ============ Secciones en columna única (ref. ozgur.design) ============ */
.index {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.section-flow h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.section-flow .body {
  max-width: 44em;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--ink-body);
}

.section-flow .body + .body { margin-top: 1.25rem; }

/* Variante partida: texto a la izquierda, foto a la derecha.
   Misma grilla 4fr/7fr que .section-head para que la foto quede
   alineada con el párrafo derecho de Filosofía y visión. */
.section-split {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 2rem;
  align-items: stretch;
}

.section-split .body { max-width: none; }

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-split .thumbs { grid-column: 1 / -1; }

/* Miniaturas discretas bajo cada descripción */
.thumbs {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  overflow-x: auto;
}

.thumb {
  flex: none;
  height: 150px;
  overflow: hidden;
}

.thumb img { height: 100%; width: auto; display: block; }

.thumb.ph { width: 210px; }

/* Trabajos seleccionados */
.works {
  list-style: none;
  margin-top: 2.5rem;
  border-top: 1px solid #e6e6e6;
}

.works li {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e6e6e6;
}

.work-num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.work-title {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.work-meta {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Fila enlazada a página de proyecto */
.works li.linked { padding: 0; }

.work-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  width: 100%;
  padding: 1.5rem 0;
}

.work-link .work-title {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-link:hover .work-title { transform: translateX(8px); }

/* Preview flotante en el vacío de la fila */
.work-thumb {
  position: absolute;
  left: 46%;
  top: 50%;
  width: 190px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0;
  transform: translateY(-46%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-link:hover .work-thumb {
  opacity: 1;
  transform: translateY(-50%);
}

/* La meta cruza a "Ver proyecto ↗" en el mismo eje */
.work-end {
  margin-left: auto;
  position: relative;
  display: inline-block;
}

.work-end .work-meta {
  margin-left: 0;
  display: inline-block;
  transition: opacity 0.3s;
}

.work-cta {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-link:hover .work-meta { opacity: 0; }

.work-link:hover .work-cta {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============ Página de proyecto ============ */
.proj-header { padding-bottom: 2rem; }

.proj-head { padding-top: 0; }

/* Volver como chip */
.back-link {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.75rem;
  transition: color 0.3s, border-color 0.3s;
}

.back-link:hover { color: var(--ink); border-color: var(--ink); }

/* Relato inicial con ficha vertical al costado derecho */
.proj-intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.credits {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.credit .lbl {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.credit .val {
  font-size: 0.9375rem;
  color: var(--ink-body);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g-full { grid-column: 1 / -1; }

.g-crop img { height: clamp(380px, 62vh, 640px); }

/* Capítulos dentro de un proyecto */
.chapter { padding-top: 5rem; }

.chapter h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.chapter .body { margin-bottom: 3rem; }

/* Grilla pequeña: deja espacio al relato de cada capítulo */
.gallery-sm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-sm figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.gallery-sm .g-w2 {
  grid-column: span 2;
  aspect-ratio: auto;
  position: relative;
}

/* La imagen doble se recorta a la altura que fija la fila */
.gallery-sm .g-w2 img {
  position: absolute;
  inset: 0;
}

.gallery-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botón chip */
.btn {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  transition: background 0.3s, color 0.3s;
}

.btn:hover { background: var(--ink); color: #ffffff; }

/* Video corporativo con botón de play propio */
.video-frame {
  position: relative;
}

.video-frame video {
  width: 100%;
  display: block;
  background: #000;
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s;
}

.play-btn svg { margin-left: 4px; }

.play-btn:hover { transform: scale(1.08); background: #ffffff; }

.video-frame.is-playing .play-btn { display: none; }

/* Botón claro para fondos oscuros */
.btn-light { border-color: #ffffff; color: #ffffff; }

.btn-light:hover { background: #ffffff; color: #111111; }

/* Identidad: paneles de logotipo */
.logo-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) 2rem;
}

.logo-panel img { width: min(300px, 62%); height: auto; }

.logo-panel.dark { background: #111111; }

.logo-panel.light { border: 1px solid #e5e5e5; }

/* Sistema de marca: espécimen tipográfico + pantone */
.brand-system {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.type-board {
  background: #111111;
  color: #ffffff;
  padding: clamp(2.5rem, 6vw, 5rem);
}

.color-board {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
}

.chip {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.chip .c-hex { opacity: 0.75; }

.chip-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1.25rem;
}

.chip-red { background: #e23026; color: #ffffff; }

.chip-black { background: #111111; color: #ffffff; }

.chip-gray { background: #9a9a9a; color: #ffffff; }

.chip-light { background: #e5e4e0; color: var(--ink); }

.type-name {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9a9a9a;
  margin-bottom: 2.5rem;
}

.type-sample {
  font-family: "Barlow Condensed", "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
}

.type-alpha {
  font-family: "Barlow Condensed", "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: 0.14em;
  line-height: 1.9;
}

.type-alpha .type-nums { color: #e23026; }

/* Identidad: descarga discreta del brand book */
.book-dl { margin-top: 2rem; }

/* Dúo de piezas horizontales alineadas */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.duo figure { margin: 0; }

.duo img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Composición de packaging: caja vertical + dos piezas a la derecha */
.pack-comp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.pack-comp figure { margin: 0; }

.pack-comp .pc-tall { grid-row: 1 / 3; }

.pack-comp .pc-tall img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.pack-comp .pc-fill { position: relative; overflow: hidden; }

.pack-comp .pc-fill img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Web: tableros con fondo que estructuran los screenshots */
.web-board {
  background: #222222;
  padding: clamp(2rem, 5vw, 4rem);
}

.web-board + .web-board { margin-top: 1.25rem; }

.web-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.web-banners { margin-top: clamp(2rem, 5vw, 4rem); }

.web-cols figure { margin: 0; }

.web-cols .shot img {
  width: 100%;
  display: block;
}

/* Web: recorrido móvil en tramos (filmstrip) */
.filmstrip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.filmstrip {
  width: min(100%, 1000px);
  margin-inline: auto;
}

.filmstrip .seg {
  position: relative;
  aspect-ratio: 645 / 1900;
  overflow: hidden;
}

.filmstrip .seg img {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
}

.filmstrip .seg:nth-child(1) img { top: 0; }
.filmstrip .seg:nth-child(2) img { top: -100%; }
.filmstrip .seg:nth-child(3) img { top: -200%; }
.filmstrip .seg:nth-child(4) img { top: -300%; }
.filmstrip .seg:nth-child(5) img { top: -400%; }
.filmstrip .seg:nth-child(6) img { top: -500%; }

/* Campañas: piezas completas presentadas sobre paneles */
.piece-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.piece-tile {
  margin: 0;
  background: #f1efe9;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.piece-tile img {
  width: 100%;
  display: block;
}

/* ============ Camper World Chile ============ */
.web-board.petrol { background: #072e38; }

.logo-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.logo-trio figure { margin: 0; }

.logo-trio img { width: 100%; display: block; }

.type-board.petrol { background: #072e38; margin-bottom: 1.25rem; }

.type-sample.cw-type {
  font-family: "Ginto Nord", "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 800;
}

.type-alpha.cw-alpha {
  font-family: "Ginto Nord Condensed", "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.type-nums.ocre { color: #a19158; }

.palette-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.palette-row .chip { aspect-ratio: 1 / 1; }

.chip-petrol { background: #072e38; color: #ffffff; }

.chip-verde { background: #334f3b; color: #ffffff; }

.chip-ocre { background: #a19158; color: #ffffff; }

.chip-petrol2 { background: #114755; color: #ffffff; }

/* Brochures como mockup sobre tablero petróleo */
.bro-board {
  background: #072e38;
  padding: clamp(2rem, 5vw, 4rem);
}

.bro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.bro-mock {
  position: relative;
  margin: 0;
}

.bro-mock img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bro:hover .bro-mock img { transform: translateY(-8px); }

.bro-name {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 1.75rem 0 0.9rem;
}

/* Campañas cuadradas y portadas del Handbook */
.cw-campanas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cw-campanas figure, .cw-handbooks figure { margin: 0; }

.cw-campanas img, .cw-handbooks img { width: 100%; display: block; }

.cw-handbooks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ig-stories + .ig-stories { margin-top: 1.25rem; }

.ig-stories.four { grid-template-columns: repeat(4, 1fr); }

/* ============ adidas ============ */
/* Fila de dos fotos verticales + video vertical, todos a la misma altura:
   el ancho de la columna del video compensa su proporción 9:16 */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.728fr;
  gap: 1.25rem;
  align-items: start;
}

.media-row figure { margin: 0; }

.media-row img {
  width: 100%;
  aspect-ratio: 4000 / 5176;
  object-fit: cover;
  display: block;
}

.media-row video {
  width: 100%;
  aspect-ratio: 1080 / 1920;
  display: block;
  background: #000;
}

.media-row.four { grid-template-columns: 1fr 1fr 1fr 0.728fr; }

/* Tráiler 16:9 + reel 9:16 lado a lado, misma altura */
.video-row {
  display: grid;
  grid-template-columns: 3.1605fr 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1rem;
}

.video-row .video-frame { margin: 0; }

.video-row .video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-row .reel {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  background: #000;
}

.media-row + .video-frame { margin-top: 1.25rem; }

.gallery-sm + .duo { margin-top: 1rem; }

.gallery-sm.five { grid-template-columns: repeat(5, 1fr); }

.gallery-sm.four { grid-template-columns: repeat(4, 1fr); }

/* Widget de tema sobre los tableros (Web ● Pages, etc.) */
.board-tag {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #9a9a9a;
  margin-bottom: clamp(1.5rem, 3.5vw, 3rem);
}

.board-tag .tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9a9a9a;
  flex: none;
}

/* Mailing: tablero a ancho completo con todo dentro —
   dos piezas + título + párrafos en grilla de 4, alineados al mismo tope */
.mail-campaign { margin-top: 1.25rem; }

.mail-board2 {
  background: #222222;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.mail-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.mail-inner img {
  width: 100%;
  display: block;
}

.mail-board2 .showcase-lead { color: #ffffff; }

.mail-copy p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: #b0b0b0;
  margin-bottom: 1.1rem;
}

/* Mockups de Instagram: posts */
.ig-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ig-post {
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.ig-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
}

.ig-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ig-handle { font-size: 0.8125rem; font-weight: 500; }

.ig-img { width: 100%; display: block; }

/* Mockups de Instagram: historias */
.ig-stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.ig-story {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}

.ig-story > img { width: 100%; display: block; }

.st-bars {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
}

.st-bars span {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.st-bars span.on { background: #ffffff; }

.st-head {
  position: absolute;
  top: 24px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
}

.st-head img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.st-head .st-time { font-weight: 400; opacity: 0.8; }

.st-msg {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.st-msg .st-input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  color: #ffffff;
  font-size: 0.75rem;
}

/* Pieza sola a ancho completo dentro de un capítulo */
.solo { margin: 1.25rem 0 0; }

.solo img { width: 100%; display: block; }

/* Muestra fotográfica: collage bento + relato lateral */
.showcase {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.showcase-grid figure { margin: 0; }

.showcase-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.showcase-grid .s-big { grid-column: span 2; grid-row: span 2; }

.s-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.s-tile img {
  width: 55%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.s-tile.dark { background: #111111; }

.s-tile.red { background: #e23026; }

.showcase-text {
  position: sticky;
  top: 3rem;
  padding-top: clamp(2rem, 4.5vw, 4rem);
}

.showcase-lead {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.showcase-lead .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e23026;
  flex: none;
}

.showcase-text p:not(.showcase-lead) {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--ink-body);
  margin-bottom: 1.1rem;
  max-width: 30em;
}

/* CTA de cierre en páginas de proyecto */
.proj-cta { padding-top: clamp(4rem, 8vw, 7rem); }

.proj-cta h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
  max-width: 22em;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cta-ig {
  font-size: 0.9375rem;
  color: var(--ink-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.cta-ig:hover { color: var(--ink); }

.proj-footer {
  margin-top: 7rem;
  padding: 3.5rem 0;
  background: var(--footer-bg);
  color: var(--footer-ink);
  font-size: 0.9375rem;
}

.proj-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* ============ Franjas de trabajo ============ */
.strip {
  background: var(--dark);
  border-radius: var(--radius-lg);
  width: min(1600px, 100% - 5rem);
  margin-inline: auto;
  padding: 2.5rem 0;
  overflow: hidden;
}

.strip-track {
  display: flex;
  gap: 2rem;
  padding-inline: 3rem;
  align-items: stretch;
  will-change: transform;
  width: max-content;
}

.card {
  height: clamp(260px, 34vw, 420px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: none;
}

.card img { width: 100%; height: 100%; object-fit: cover; }

/* Proporciones de los espacios de trabajo */
.r-43  { aspect-ratio: 4 / 3; }
.r-34  { aspect-ratio: 3 / 4; }
.r-11  { aspect-ratio: 1 / 1; }
.r-169 { aspect-ratio: 16 / 9; }

/* Placeholders a la espera de proyectos reales */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9b9b9b;
}
.ph-a { background: var(--ph-a); }
.ph-b { background: var(--ph-b); }
.ph-c { background: var(--ph-c); }
.ph-d { background: var(--ph-d); }
.ph-e { background: var(--ph-e); }


/* Imagen destacada (Filosofía y visión) — compacta en vertical */
.feature img {
  width: 100%;
  height: clamp(380px, 58vh, 560px);
  object-fit: cover;
}

/* ============ Cierre / CV ============ */
.site-footer {
  margin-top: 8rem;
  padding: 7rem 0 4rem;
  background: var(--footer-bg);
  color: var(--footer-ink);
}

.footer-lead {
  max-width: 34em;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #e8e8e8;
  margin-bottom: 5rem;
}

.footer-photos {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 6rem;
}

.footer-photos img {
  height: clamp(240px, 28vw, 380px);
  width: auto;
}

.footer-photos figcaption {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.footer-photos figcaption span { color: var(--footer-soft); }

.cv-group { margin-bottom: 4.5rem; }

.cv-group h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--footer-line);
}

.cv-rows { list-style: none; }

.cv-rows li {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px dotted var(--footer-line);
  font-size: 0.9375rem;
}

.cv-what span { color: var(--footer-soft); }

.cv-when { white-space: nowrap; color: var(--footer-soft); }

.clients {
  list-style: none;
  columns: 3;
  column-gap: 3rem;
  font-size: 0.9375rem;
  line-height: 2.2;
}

.keywords {
  max-width: 40em;
  font-size: 0.9375rem;
  color: var(--footer-soft);
  margin: 6rem 0 5rem;
}

.footer-end {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 2rem;
  border-top: 1px solid var(--footer-line);
  font-size: 0.9375rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contact a { text-decoration: underline; text-underline-offset: 3px; }

.contact a.social { text-decoration: none; color: var(--footer-ink); }

.contact a.social:hover { color: #ffffff; }

.contact a.social svg { display: block; }

.contact p { margin-top: 1rem; }

.to-top {
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.5rem;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .text-inset { padding-inline: 0; }
  .header-grid { grid-template-columns: 1fr 1fr; margin-top: 4rem; }
  .intro { grid-column: 1 / -1; margin-top: 2rem; }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .strip { width: calc(100% - 2.5rem); padding: 1.5rem 0; }
  .strip-track { gap: 1.25rem; padding-inline: 1.5rem; }
  .card { height: clamp(200px, 44vw, 300px); }
  .thumb { height: 110px; }
  .thumb.ph { width: 160px; }
  .works li { gap: 1rem; }
  .work-thumb { display: none; }
  .section-split { grid-template-columns: 1fr; }
  .split-media img { height: 300px; }
  .gallery { grid-template-columns: 1fr; gap: 1rem; }
  .proj-intro { grid-template-columns: 1fr; }
  .credits { gap: 1.5rem; }
  .gallery-sm { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .gallery-sm .g-w2 { position: static; aspect-ratio: 3 / 2; }
  .gallery-sm .g-w2 img { position: static; }
  .chapter { padding-top: 3.5rem; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-text { position: static; }
  .logo-panels { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .web-cols { grid-template-columns: 1fr; }
  .filmstrip { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .piece-tiles { grid-template-columns: 1fr; }
  .play-btn { width: 64px; height: 64px; }
  .brand-system { grid-template-columns: 1fr; }
  .logo-trio { grid-template-columns: 1fr; }
  .palette-row { grid-template-columns: 1fr 1fr; }
  .bro-grid { grid-template-columns: 1fr; }
  .cw-campanas { grid-template-columns: 1fr 1fr; }
  .cw-handbooks { grid-template-columns: 1fr 1fr; }
  .media-row { grid-template-columns: 1fr; }
  .video-row { grid-template-columns: 1fr; }
  .video-row .reel { max-width: 340px; margin-inline: auto; }
  .mail-inner { grid-template-columns: 1fr 1fr; }
  .mail-inner .mail-lead, .mail-inner .mail-copy { grid-column: span 2; }
  .ig-posts { grid-template-columns: 1fr; }
  .ig-stories { grid-template-columns: 1fr; width: min(100%, 340px); margin-inline: auto; }
  .clients { columns: 2; }
  .footer-photos { flex-direction: column; }
  .footer-photos img { height: auto; width: 100%; max-width: 420px; }
  .site-header { padding-bottom: 4.5rem; }
  .block { padding-top: 4.5rem; }
  .wrap { width: min(1320px, 100% - 2.5rem); }
}
