/* Website-scoped styles · BUTACO */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');
* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  background: #FFFFFF; color: #080808; margin: 0;
  font-family: "Inter", sans-serif; font-weight: 300; font-size: 14px; line-height: 1.7;
  cursor: url("assets/cursor-arrow.svg") 3 3, default;
}

/* Cursor — flecha BUTACO en toda la web. Hotspot en la punta (3,3). */
*,
a, a:hover,
button, button:hover,
[role="button"],
.btn, .btn:hover,
.filter, .filter:hover,
.brand, .links a, .ln, .dot,
.proj, .field input, .field textarea, .field select,
input, textarea, select, label,
.nav .brand img, .nav .links a, .nav .lang-btn,
.gnav, .footer .ln, .clients-marquee, .client-item {
  cursor: url("assets/cursor-arrow.svg") 3 3, default !important;
}
/* Inverso sobre superficies oscuras: cursor blanco.
   Estos selectores aplican sobre la home (.frame.dark), el hero y los
   bloques de respiro — y sobre TODOS sus descendientes, incluso los que
   tienen reglas específicas (nav, links, botones, etc). */
.frame.dark,
.frame.dark *,
.frame.dark a,
.frame.dark button,
.frame.dark .nav .brand img,
.frame.dark .nav .links a,
.frame.dark .nav .lang-btn,
.web-hero,
.web-hero *,
.respiro,
.respiro * {
  cursor: url("assets/cursor-arrow-white.svg") 3 3, default !important;
}

a { border-bottom: none; }
a:hover { opacity: 0.6; }

.frame { display: flex; flex-direction: column; min-height: 100vh; background: #FFFFFF; color: #080808; --nav-h: 92px;}
.frame.dark { background: #080808; color: #FFFFFF; }
.frame.hero-dark { background: #080808; color: #FFFFFF; }

/* Nav · P.55 — discreta, label small */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px;
  border-bottom: 1px solid currentColor;
  position: sticky; top: 0; background: inherit; z-index: 20;
}
.nav .brand img {
  height: 48px; width: auto; display: block; cursor: pointer;
}
.nav .links { display: flex; gap: 32px; }
.nav .links a {
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  cursor: pointer; padding-bottom: 4px; border-bottom: 1px solid transparent;
}
.nav .links a.active { border-bottom-color: currentColor; }
.nav .lang {
  display: flex; align-items: center; gap: 4px;
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
}
.nav .lang-btn {
  background: transparent; color: inherit;
  border: 0; padding: 4px 2px; margin: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  cursor: pointer; opacity: 0.45;
  transition: opacity 160ms;
  border-bottom: 1px solid transparent;
}
.nav .lang-btn:hover { opacity: 0.8; }
.nav .lang-btn.active { opacity: 1; border-bottom-color: currentColor; }
.nav .lang-sep { opacity: 0.45; }

/* Hamburger — hidden on desktop, shown ≤900px */
.nav-burger { display: none; }
.nav-mobile { display: none; }
.iconbar { display: none; }

/* Home (frame.dark) — sin líneas divisorias bajo nav ni encima del footer */
.frame.dark > .nav { border-bottom: 0; }
.frame.dark > .footer { border-top: 0; }

/* Hero · P.55 — fondo negro, eyebrow label, wordmark a escala, ciudad label */
.hero { padding: 80px 40px 64px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;}
.hero .kicker {
  grid-column: 1 / span 6;
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
}
.hero .h {
  grid-column: 1 / span 12;
  font-family: "Inter", sans-serif; font-weight: 700;
  font-size: clamp(60px, 10vw, 144px); line-height: 0.96;
  letter-spacing: -0.005em; margin: 18px 0 0;
}
.hero .h.uppercase { text-transform: uppercase;}
.hero .sub {
  grid-column: 8 / span 5;
  font-family: "Inter", sans-serif; font-weight: 300;
  font-size: 15px; line-height: 1.7;
  margin-top: 28px;
}

.projects-intro {
  grid-column: 1 / span 10;
  font-family: "Inter", sans-serif; font-weight: 400;
  font-size: 24px; line-height: 1.45;
  max-width: 920px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid currentColor;
}

/* Hero web on negro — wordmark a escala (P.55) con media a sangre detrás */
.home-only { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column;}
.web-hero {
  padding: 0;
  position: relative;
  flex: 1; min-height: 0;
  overflow: hidden;
  background: #080808;
}
/* Hero media slot — imagen fija. Para video, reemplazar el <div class="media"> por <video class="media"> y este background queda como poster fallback. */
.web-hero .media,
.web-hero video.media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background-color: #0F0E0C;
  background-image: url("assets/hero.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
/* Hero loop — 6 imágenes en crossfade detrás del wordmark */
.web-hero .hero-loop {
  position: absolute; inset: 0;
  z-index: 0;
  background: #080808;
}
.web-hero .hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1200ms ease-in-out;
}
.web-hero .hero-slide.active { opacity: 1; }
.web-hero .scrim { position: absolute; inset: 0; z-index: 1; background: transparent; }
.web-hero .stage { z-index: 2; }
/* Legacy .media slot left harmless: hide it if it appears */
.web-hero > .media { display: none; }
.web-hero .stage {
  position: absolute; left: 0; right: 0; z-index: 2;
  top: 0; height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 0 40px; box-sizing: border-box;
}
.web-hero .stage .logo { position: relative; display: block; }
.web-hero .stage .eyebrow {
  position: absolute; bottom: 100%; left: 0; right: 0;
  text-align: center; margin-bottom: 22px; white-space: nowrap;
}
.web-hero .media-tag {
  position: absolute; top: 24px; right: 40px; z-index: 3;
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  color: #DDD4C8; opacity: 0.7;
}
.web-hero .eyebrow,
.web-hero .ciudad {
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 14px; letter-spacing: 0.34em; text-transform: uppercase;
  color: #FFFFFF;
}
.web-hero .logo img { width: min(62vw, 760px); display: block;}

/* Section */
.section { padding: 64px 40px; border-top: 1px solid currentColor; }
.section .head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 40px;}
.section .head .idx { grid-column: 1 / span 1; font-family: "Inter", sans-serif; font-weight: 700; font-size: 24px; line-height: 1;}
.section .head .title { grid-column: 2 / span 7; font-family: "Inter", sans-serif; font-weight: 700; font-size: 48px; line-height: 1.0; letter-spacing: -0.005em;}
.section .head .desc { grid-column: 9 / span 4; font-family: "Inter", sans-serif; font-weight: 300; font-size: 15px; line-height: 1.7;}
.section .subkicker { grid-column: 1 / span 12; font-family: "Inter", sans-serif; font-weight: 500; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: #5A5A5A; padding-bottom: 8px; border-bottom: 1px solid currentColor; margin-bottom: 24px;}

/* Projects header — title + filters + search */
.proj-header {
  grid-column: 1 / span 12;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  margin-top: 12px;
}
.proj-header .h { margin: 0; }
.proj-controls {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 10px; margin-bottom: 12px;
}
.filters {
  display: flex; align-items: stretch;
  border: 1px solid currentColor;
}
.filter {
  background: transparent; color: inherit;
  border: 0; border-left: 1px solid currentColor;
  border-radius: 0;
  padding: 12px 22px;
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  cursor: url("assets/cursor-arrow.svg") 3 3, default !important;
  line-height: 1;
  transition: background 160ms, color 160ms;
}
.filter:first-child { border-left: 0; }
.filter:hover { background: rgba(8,8,8,0.06); }
.frame.dark .filter:hover { background: rgba(255,255,255,0.08); }
.filter.active { background: #080808; color: #FFFFFF; }
.frame.dark .filter.active { background: #FFFFFF; color: #080808; }

/* Projects search — small editorial input */
.proj-search {
  position: relative;
  display: flex; align-items: center;
  width: 280px; max-width: 100%;
}
.proj-search input {
  flex: 1; min-width: 0;
  background: transparent; color: inherit;
  border: 0; border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 8px 24px 8px 0;
  font-family: "Inter", sans-serif; font-weight: 400;
  font-size: 13px; letter-spacing: 0.02em;
  outline: none;
}
.proj-search input::placeholder {
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: #5A5A5A;
}
.proj-search-clear {
  position: absolute; right: 0; bottom: 4px;
  background: transparent; border: 0;
  font-family: "Inter", sans-serif; font-weight: 400;
  font-size: 18px; line-height: 1; padding: 2px 6px;
  color: #5A5A5A;
}
.proj-search-clear:hover { color: #080808; }
@media (max-width: 720px) {
  .proj-controls { align-items: stretch; width: 100%; }
  .proj-search { width: 100%; }
}

/* Projects grid */
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px;}
.proj { grid-column: span 6; display: flex; flex-direction: column; cursor: pointer;}
.proj.large { grid-column: span 12; }
.proj.small { grid-column: span 4; }
/* Project detail grid — placeholder visible solo cuando no hay imagen.
   Con imagen, el slot adopta la proporción natural (horizontal o vertical). */
.proj .ph { width: 100%; aspect-ratio: 4 / 3; background: #FFFFFF; display: flex; align-items: center; justify-content: center; border: 1px solid currentColor;}
.proj .ph.dark { background: #080808; color: #FFFFFF;}
.proj .ph.has-img {
  aspect-ratio: auto;
  background: transparent; border: 0;
  padding: 0;
  min-height: 220px;
}
.proj .ph .pimg {
  display: block;
  width: 100%; height: auto;
  max-height: 70vh;
  object-fit: contain;
}
/* Tile thumbnails in the projects index keep cover — they are previews */
.proj .ph.has-img.tile {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
}
.proj .ph span { font-family: "Inter", sans-serif; font-weight: 500; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;}
.proj .row1 { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px;}
.proj .num { font-family: "Inter", sans-serif; font-weight: 700; font-size: 24px;}
.proj .meta-inline { font-family: "Inter", sans-serif; font-weight: 500; font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: #5A5A5A;}
.proj .name { font-family: "Inter", sans-serif; font-weight: 700; font-size: 28px; line-height: 1.0; letter-spacing: -0.005em; margin: 6px 0 8px;}
.proj .meta-full { font-family: "Inter", sans-serif; font-weight: 300; font-size: 14px; color: #5A5A5A; line-height: 1.6;}
.proj:hover .ph { opacity: 0.85; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 22px;
  background: #080808; color: #FFFFFF;
  border: 1px solid #080808; border-radius: 0;
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase; cursor: pointer;
  transition: background 200ms, color 200ms;
}
.btn:hover { background: #FFFFFF; color: #080808;}
.frame.dark .btn { background: #FFFFFF; color: #080808; border-color: #FFFFFF;}
.frame.dark .btn:hover { background: transparent; color: #FFFFFF;}
.btn.ghost { background: transparent; color: #080808;}
.btn.ghost:hover { background: #080808; color: #FFFFFF;}
.frame.dark .btn.ghost { background: transparent; color: #FFFFFF; border-color: #FFFFFF;}

/* Footer */
.footer { margin-top: auto; padding: 28px 40px 14px; border-top: 1px solid currentColor; }.footer .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 48px; row-gap: 28px;
  width: 100%;
  margin: 0;
}
.footer .col { display: flex; flex-direction: column; gap: 4px; text-align: center; align-items: center;}
.footer .k { font-family: "Inter", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.36em; text-transform: uppercase; color: #5A5A5A; margin-bottom: 10px;}
.footer .ln { font-family: "Inter", sans-serif; font-weight: 300; font-size: 14px; letter-spacing: 0.04em; cursor: pointer; line-height: 1.6; color: inherit; border-bottom: 0; text-decoration: none;}
a.footer-ln, .footer .col a.ln { color: inherit; border-bottom: 0; text-decoration: none; }
.footer .ln:hover { opacity: 0.6;}
.footer .bottom { display: flex; justify-content: center; align-items: end; margin: 14px -40px 0; padding: 10px 40px 0; border-top: 1px solid currentColor; font-family: "Inter", sans-serif; font-weight: 500; font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase; color: #5A5A5A;}
.footer .mega img { width: 100%; max-width: 1320px; display: block; margin: 32px 0 0;}

/* Team group photo */
.team-photo .ph.wide { width: 100%; aspect-ratio: 21 / 9; background: #FFFFFF; display: flex; align-items: center; justify-content: center; border: 1px solid currentColor;}
.team-photo .ph.wide span { font-family: "Inter", sans-serif; font-weight: 500; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;}
.team-photo-full { width: 100%; margin: 0 auto;}
.team-photo-full img { width: 100%; height: auto; display: block;}

/* Detail */
.cover { padding: 0; border-top: 1px solid currentColor; }
.cover .ph { aspect-ratio: 16 / 9; background: #FFFFFF; border: 1px solid currentColor; border-left: 0; border-right: 0; display: flex; align-items: center; justify-content: center;}
.cover .ph span { font-family: "Inter", sans-serif; font-weight: 500; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;}
/* Detail meta — ficha técnica con divisores verticales y línea superior + inferior */
.detail-meta-section {
  padding: 0 40px;
  margin: 0;
  position: relative;
}
.detail-meta-section::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  border-top: 1px solid #080808;
}
.detail-meta-section::after { content: none; }
.detail-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  border-top: 0;
}
.detail-meta .cell {
  padding: 16px 28px;
  border-left: 1px solid #080808;
  background: transparent;
  min-height: 0;
  display: flex; flex-direction: column;
  justify-content: flex-start;
}
.detail-meta .cell:first-child {
  padding-left: 0;
  border-left: 0;
}
.detail-meta .cell:last-child { padding-right: 0; }
.detail-meta .k {
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 9px; letter-spacing: 0.36em; text-transform: uppercase;
  color: #5A5A5A; margin: 0 0 6px;
}
.detail-meta .v {
  font-family: "Inter", sans-serif; font-weight: 400;
  font-size: 15px; letter-spacing: 0; color: #080808;
}

/* Body text columns — Concepto más presente */
.txt2 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px 32px; }
.txt2 .a { grid-column: 1 / span 5; font-family: "Inter", sans-serif; font-weight: 400; font-size: 19px; line-height: 1.45; color: #080808;}
.txt2 .b { grid-column: 7 / span 5; font-family: "Inter", sans-serif; font-weight: 300; font-size: 15px; line-height: 1.7; color: #1A1A1A;}
.txt2 .b p + p { margin-top: 16px;}

/* Commercial: two-block dialog (Concept + Brand) split at meta midpoint.
   Vertical divider drawn on the section container so it spans full height,
   from the top hairline (Concepto section border-top) to the bottom. */
.section.concepto-com { position: relative; border-bottom: 1px solid #080808; }
.section.concepto-com::before {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 1px;
  background: #080808;
  pointer-events: none;
}
.txt2.txt2-com .a { grid-column: 1 / span 6; padding-right: 32px; }
.txt2.txt2-com .b { grid-column: 7 / span 6; padding: 0; padding-left: 32px; border-left: 0; }
.txt2.txt2-com .brand-block { display: none; }
.brand-block { font-family: "Inter", sans-serif; }
.brand-block .brand-kicker {
  font-weight: 500; font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: #5A5A5A; margin-bottom: 10px;
}
.brand-block .brand-name {
  font-weight: 700; font-size: 22px; line-height: 1.1;
  letter-spacing: -0.005em; margin: 0 0 14px; text-transform: none;
}
.brand-block p {
  font-weight: 300; font-size: 14px; line-height: 1.7; color: #080808;
}

/* Editorial mosaic (bottom of project detail) */
.detail-mosaic-section { padding: 32px 40px 80px; }
.detail-mosaic {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 48px 24px;
  align-items: end;
}
.mosaic-slot {
  margin: 0; overflow: hidden;
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.mosaic-slot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mosaic-slot.placeholder {
  border: 1px solid #080808;
  color: #5A5A5A;
}
.mosaic-slot.placeholder span {
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px;}
.field { display: block; margin-bottom: 22px;}
.field .lbl { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: #5A5A5A; margin-bottom: 8px;}
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid currentColor; padding: 10px 0; border-radius: 0;
  font-family: "Inter", sans-serif; font-weight: 300; font-size: 15px; color: inherit;
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.7;}
.field input::placeholder, .field textarea::placeholder { color: #8A8A8A;}

/* Studio · Valores cards — Valores + frase de cierre forman un capítulo de pantalla completa */
.values-section {
  padding: 96px 40px 24px;
  min-height: 0;
}
.values-section .head { margin-bottom: 40px; }
/* Studio section heads alineados a la izquierda con la N de "Nosotros" */
.values-section .head .title,
.team-section .head .title,
.section:has(.clients-marquee:not(.clients-marquee--home)) .head .title {
  grid-column: 1 / span 8;
}
.values-section .head .desc,
.team-section .head .desc,
.section:has(.clients-marquee:not(.clients-marquee--home)) .head .desc {
  grid-column: 9 / span 4;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  align-items: start;
  gap: 8px;
  max-width: none;
  margin: 0;
}
.bio {
  padding: 13px 16px;
  border: 0;
  background: #1A1A1A;
  color: #FFFFFF;
  display: flex; flex-direction: column;
  cursor: url("assets/cursor-arrow.svg") 3 3, default !important;
}
.bio-head { position: relative; }
.bio-toggle {
  position: absolute; top: 0; right: 0;
  font-family: "Inter", sans-serif; font-weight: 400;
  font-size: 16px; line-height: 1; color: #DDD4C8;
}
.bio .desc {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 300ms ease, opacity 250ms ease, margin-top 300ms ease;
  margin-top: 0;
}
.bio.open .desc { max-height: 240px; opacity: 1; margin-top: 14px; }

/* Web: valores siempre expandidos, sin toggle ni click-to-open */
@media (min-width: 901px) {
  .bio .desc { max-height: none; overflow: visible; opacity: 1; margin-top: 14px; }
  .bio-toggle { display: none; }
  .bio { cursor: default !important; min-height: 190px; padding: 24px 26px; }
  .bio .role { font-size: 13px; margin-bottom: 16px; }
  .bio .name { font-size: 34px; }
  .bio .desc { font-size: 25px; line-height: 1.4; }
}
.bio .role {
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 8px; letter-spacing: 0.32em; text-transform: uppercase;
  color: #DDD4C8;
  margin-bottom: 6px;
}
.bio .name {
  font-family: "Inter", sans-serif; font-weight: 700;
  font-size: 16px; line-height: 1.1; letter-spacing: -0.005em;
  margin: 0 0 0;
  color: #FFFFFF;
}
.bio .desc {
  font-family: "Inter", sans-serif; font-weight: 300;
  font-size: 13px; line-height: 1.45;
  color: #DDD4C8;
}
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
  .bio { min-height: 0; }
}

/* Pull quote · respiro */
.respiro { padding: 80px 40px; display: flex; align-items: center; justify-content: flex-start;}
.respiro.tight { padding: 16px 40px 96px; }
.respiro .q { font-family: "Inter", sans-serif; font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.005em; max-width: 980px;}

/* Studio (Nosotros) — capítulo editorial: ocupa altura propia, manifiesto integrado al título */
.hero.studio-hero {
  padding: 96px 40px 80px;
  min-height: 86vh;
  display: grid; align-content: center;
}
.hero.studio-hero .sub {
  grid-column: 6 / span 7;
  font-size: 13px; line-height: 1.85;
  margin-top: 24px;
}

/* Studio · Nosotros + Manifiesto — composición editorial */
.studio-headline {
  grid-column: 1 / span 12;
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 40px 56px;
  align-items: start;
  margin-top: 8px;
}
.studio-mobile { display: none; }

.studio-title {
  grid-column: 1 / span 5;
  margin: 0;
  align-self: start;
}
.manifesto {
  grid-column: 6 / span 7;
  display: flex; flex-direction: column;
  padding-top: 18px;
  max-width: 680px;
}
.manifesto-open {
  font-family: "Inter", sans-serif; font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25; letter-spacing: -0.005em;
  color: #080808; margin: 0 0 32px;
}
.manifesto-body {
  font-family: "Inter", sans-serif; font-weight: 300;
  font-size: 15px; line-height: 1.7;
  color: #1A1A1A; margin: 0 0 22px;
  text-align: justify; hyphens: auto;
}
.manifesto-body:last-of-type { margin-bottom: 0; }
.manifesto-close {
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 16px; line-height: 1.55; letter-spacing: 0.005em;
  color: #080808; margin: 28px 0 0;
}
@media (max-width: 1100px) {
  .studio-headline { gap: 32px; }
  .studio-title { grid-column: 1 / span 6; }
  .manifesto { grid-column: 7 / span 6; padding-top: 14px; }
}
@media (max-width: 900px) {
  .hero.studio-hero { min-height: 0; padding: 64px 24px 56px; }
  .studio-headline { grid-template-columns: 1fr; gap: 28px;}
  .studio-title, .manifesto { grid-column: 1 / -1; max-width: none; }
  .manifesto { padding-top: 0; }
  .manifesto-open { font-size: 19px; }
  .manifesto-body { font-size: 16px; }
}

/* Project detail gallery — sin bordes, sin paginación visible, solo imagen + nav.
   Sin marco ni passe-partout: la imagen se muestra a su escala natural,
   horizontales casi a pantalla completa, verticales con su altura natural. */
/* Project detail gallery — más presencia visual, contenida y editorial */
.gallery { padding: 80px 8px 40px; border-top: 1px solid currentColor; position: relative;}
.gallery-stack { display: none; }
.gallery-frame {
  position: relative; display: block;
  width: 100%; margin: 0;
}
.gallery .gslide {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-width: 0; min-height: 860px;
  background: transparent; border: 0; color: #5A5A5A;
  padding: 56px 0 16px;
  position: relative;
}
/* Photo credit — overlay desactivado */
.gallery .gcredit-hidden { display: none; }
/* Photo credit — figura ajustada al ancho de la foto; crédito alineado a su borde izquierdo */
.gallery .gfig {
  margin: 0; display: inline-flex; flex-direction: column; align-items: stretch;
}
.gallery .gfig .gimg { margin: 0; }
.gallery .gcredit-below {
  font-family: "Inter", sans-serif; font-weight: 400;
  font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #5A5A5A; padding: 8px 0 0; margin: 0; text-align: left;
}
.gallery .gslide.dark,
.frame.dark .gallery .gslide { color: #8A8A8A;}
.gallery .gimg {
  display: block;
  max-width: 100%;
  max-height: min(92vh, 1320px);
  width: auto; height: auto;
  object-fit: contain;
  margin: 0;
  background: #FFFFFF;
}

/* Ghost arrows over the gallery */
.gnav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  background: transparent; color: #080808; border: 0; padding: 24px 28px;
  font-family: "Inter", sans-serif; font-weight: 400; font-size: 32px;
  line-height: 1; cursor: pointer;
  opacity: 0.28; transition: opacity 200ms;
}
.gnav:hover { opacity: 1;}
.gnav.prev { left: 0;}
.gnav.next { right: 0;}
.frame.dark .gnav { color: #080808;}
.gallery .glabel {
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
}

/* Ghost arrows over the gallery — minimal, opacity-only hover */
.gnav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  background: transparent; color: #080808; border: 0; padding: 24px 28px;
  font-family: "Inter", sans-serif; font-weight: 400; font-size: 32px;
  line-height: 1; cursor: pointer;
  opacity: 0.28; transition: opacity 200ms;
}
.gnav:hover { opacity: 1;}
.gnav.prev { left: 0;}
.gnav.next { right: 0;}
.frame.dark .gnav { color: #080808;}

/* Clients marquee carousel — logos PNG en loop horizontal */
.clients-marquee {
  position: relative; overflow: hidden;
  border: 0;
  padding: 40px 0;
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
/* Home variant — fondo negro, logos blancos, loop más lento y discreto */
.footer.footer-home {
  background: #080808; color: #FFFFFF;
  border-top: 0;
  padding: 0; margin-top: auto;
}
.clients-marquee.clients-marquee--home {
  padding: 22px 0;
  background: #080808;
}
.clients-marquee--home .clients-track {
  animation-duration: 220s;
  gap: 64px;
}
.clients-marquee--home .client-item {
  height: 44px;
}
.clients-marquee--home .client-item img {
  max-width: 160px;
  filter: none !important;
}
@media (max-width: 768px) {
  .clients-marquee--home { padding: 14px 0; }
  .clients-marquee--home .clients-track { gap: 40px; animation-duration: 180s; }
  .clients-marquee--home .client-item { height: 30px; }
  .clients-marquee--home .client-item img { max-width: 110px; }
}
.clients-track {
  display: flex; gap: 0; align-items: center;
  width: max-content;
  animation: clients-scroll 140s linear infinite;
}
.client-item {
  display: flex; align-items: center; justify-content: center;
  width: 240px; height: 110px; flex: 0 0 auto;
}
.client-item img {
  max-height: 100%; width: auto; max-width: 150px;
  object-fit: contain; display: block;
  filter: none !important;
  opacity: 1 !important;
}
@media (max-width: 768px) {
  .client-item { width: 160px; height: 80px; }
  .client-item img { max-width: 110px; }
  .clients-track { animation-duration: 110s; }
}
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Legal page (Tratamiento de datos) */
.section.legal { padding: 64px 40px 96px; }
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-lead {
  font-family: "Inter", sans-serif; font-weight: 400;
  font-size: 16px; line-height: 1.55; margin: 0 0 32px;
  padding-bottom: 24px; border-bottom: 1px solid currentColor;
}
.legal-h {
  font-family: "Inter", sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 28px 0 10px;
}
.legal-doc p {
  font-family: "Inter", sans-serif; font-weight: 300;
  font-size: 15px; line-height: 1.75; margin: 0 0 14px;
}
.legal-doc p:last-child { margin-bottom: 0; }
.legal-block {
  padding: 18px 22px;
  border-left: 1px solid #080808;
  background: #FAFAFA;
  margin: 8px 0 18px;
}
.legal-block p { margin: 0; }
.legal-list {
  font-family: "Inter", sans-serif; font-weight: 300;
  font-size: 15px; line-height: 1.75;
  margin: 0 0 18px;
  padding-left: 0; list-style: none;
}
.legal-list li {
  position: relative; padding-left: 22px; margin-bottom: 4px;
}
.legal-list li::before {
  content: "—"; position: absolute; left: 0; top: 0; color: #5A5A5A;
}
.legal-cta { margin-top: 40px; padding-top: 24px; border-top: 1px solid currentColor; }

/* ========================================
   Cookie consent — banner, panel, FAB
   ======================================== */
.cc-banner {
  position: fixed; left: 24px; right: 24px; bottom: 24px;
  z-index: 1000;
  background: #FFFFFF; color: #080808;
  border: 1px solid #080808;
  padding: 22px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: center;
  max-width: 1280px; margin: 0 auto;
}
.cc-banner-text {
  font-family: "Inter", sans-serif; font-weight: 300;
  font-size: 14px; line-height: 1.6; margin: 0;
  max-width: 760px;
}
.cc-banner-text--short { display: none; }
.cc-banner-actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}

.cc-btn {
  background: transparent; color: #080808;
  border: 1px solid #080808; border-radius: 0;
  padding: 10px 18px;
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  cursor: url("assets/cursor-arrow.svg") 3 3, default !important;
  transition: background 160ms, color 160ms;
  white-space: nowrap;
}
.cc-btn:hover { background: #080808; color: #FFFFFF; }
.cc-btn--primary { background: #080808; color: #FFFFFF; }
.cc-btn--primary:hover { background: #FFFFFF; color: #080808; }
.cc-btn--ghost { border-color: #5A5A5A; color: #5A5A5A; }
.cc-btn--ghost:hover { background: #5A5A5A; color: #FFFFFF; }

.cc-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(8,8,8,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.cc-panel {
  background: #FFFFFF; color: #080808;
  border: 1px solid #080808;
  width: 100%; max-width: 640px;
  max-height: 86vh; overflow: auto;
  padding: 28px 32px 24px;
}
.cc-panel-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 18px; border-bottom: 1px solid #080808;
  margin-bottom: 22px;
}
.cc-panel-title {
  font-family: "Inter", sans-serif; font-weight: 700;
  font-size: 22px; letter-spacing: -0.005em; margin: 0;
}
.cc-close {
  background: transparent; border: 0; color: #080808;
  font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px;
}
.cc-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid #DDD4C8;
}
.cc-row-title {
  font-family: "Inter", sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 8px;
}
.cc-row-desc {
  font-family: "Inter", sans-serif; font-weight: 300;
  font-size: 13px; line-height: 1.65; color: #1A1A1A; margin: 0;
}
.cc-always {
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  color: #5A5A5A; padding-top: 4px;
}
.cc-toggle {
  width: 40px; height: 22px; border: 1px solid #080808;
  background: #FFFFFF; padding: 0; border-radius: 0;
  position: relative; cursor: pointer;
  transition: background 160ms;
}
.cc-toggle-dot {
  position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #080808;
  transition: left 160ms, background 160ms;
}
.cc-toggle.on { background: #080808; }
.cc-toggle.on .cc-toggle-dot { left: 20px; background: #FFFFFF; }

.cc-panel-foot {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 22px; margin-top: 6px;
}

.cc-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 999;
  width: 38px; height: 38px;
  background: #FFFFFF; color: #080808;
  border: 1px solid #080808; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: url("assets/cursor-arrow.svg") 3 3, default !important;
  transition: background 160ms, color 160ms;
}
.cc-fab:hover { background: #080808; color: #FFFFFF; }

@media (max-width: 720px) {
  .cc-banner {
    grid-template-columns: 1fr; gap: 10px;
    left: 10px; right: 10px; bottom: 10px;
    padding: 14px 14px 13px;
    max-height: 34vh; overflow: auto;
  }
  .cc-banner-text { font-size: 11.5px; line-height: 1.45; }
  .cc-banner-actions { justify-content: stretch; gap: 7px; flex-wrap: wrap; }
  .cc-banner-actions .cc-btn { flex: 1 1 auto; padding: 9px 12px; font-size: 9px; letter-spacing: 0.22em; }
  .cc-banner-text--full { display: none; }
  .cc-banner-text--short { display: block; font-size: 11.5px; line-height: 1.45; margin: 0; }
  .cc-overlay { align-items: center; padding: 24px; }
  .cc-panel {
    padding: 26px 22px 22px;
    max-height: 70vh; overflow: auto;
    width: 100%; max-width: 340px;
    border: 1px solid #080808;
  }
  .cc-panel-head { padding-bottom: 20px; margin-bottom: 0; border-bottom: 0; }
  .cc-panel-title {
    font-size: 8px; font-weight: 500; letter-spacing: 0.36em;
    text-transform: uppercase; color: #8A8A8A;
  }
  .cc-close { font-size: 18px; color: #080808; }
  .cc-row {
    grid-template-columns: 1fr auto; gap: 0 14px;
    padding: 15px 0; border-bottom: 0; border-top: 1px solid #ECE8E2;
    align-items: center;
  }
  .cc-row-title { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #080808; margin-bottom: 0; }
  .cc-row-desc { display: none; }
  .cc-always { font-size: 8px; letter-spacing: 0.2em; color: #B5B0A8; }
  .cc-toggle { width: 32px; height: 18px; border-color: #C8C3BB; }
  .cc-toggle-dot { width: 12px; height: 12px; background: #C8C3BB; }
  .cc-toggle.on { background: #080808; border-color: #080808; }
  .cc-toggle.on .cc-toggle-dot { left: 16px; background: #FFFFFF; }
  .cc-panel-foot { flex-direction: column; gap: 6px; padding-top: 18px; margin-top: 0; border-top: 0; }
  .cc-panel-foot .cc-btn { width: 100%; flex: none; padding: 10px 12px; font-size: 8px; letter-spacing: 0.2em; }
  .cc-panel-foot .cc-btn--primary { order: -1; }
  .cc-fab { right: 12px; bottom: 116px; width: 34px; height: 34px; z-index: 46; }
}

/* Project — back button at the bottom of each detail page */
.project-back {
  padding: 64px 40px;
  display: flex; justify-content: center; align-items: center; text-align: center;
  margin-top: 0;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 16px;
  background: transparent; color: #080808;
  border: 1px solid #080808; border-radius: 0;
  padding: 16px 32px;
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  cursor: url("assets/cursor-arrow.svg") 3 3, default !important;
  transition: background 160ms, color 160ms, padding 200ms ease;
  line-height: 1;
}
.back-btn:hover {
  background: #080808; color: #FFFFFF;
  padding-left: 28px; padding-right: 36px;
}
.back-btn-arrow {
  font-size: 14px; line-height: 1;
  transition: transform 200ms ease;
}
.back-btn:hover .back-btn-arrow { transform: translateX(-4px); }
.back-btn-label { line-height: 1; }
@media (max-width: 720px) {
  .project-back { padding: 48px 24px; }
  .back-btn { padding: 14px 24px; font-size: 10px; gap: 12px; }
}

/* Screen transitions */
.screen { opacity: 1; transition: opacity 200ms;}
.screen.fading { opacity: 0;}

/* ============================================================
   RESPONSIVE — tablet (≤1023) y móvil (≤767).
   Desktop (≥1024px) queda intacto: nada aquí lo toca.
   ============================================================ */

/* ---- TABLET ≤1023px ---- */
@media (max-width: 1023px) {
  .nav { padding: 18px 28px; }
  .hero { padding: 56px 28px 48px; }
  .section { padding: 48px 28px; }
  .hero .h { font-size: clamp(48px, 9vw, 104px); }
  .hero .sub { grid-column: 1 / span 10; }
  .section .head .title { font-size: clamp(36px, 5vw, 52px); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- MÓVIL ≤900px: nav hamburguesa ---- */
@media (max-width: 900px) {
  .nav { z-index: 50; }
  .nav .links { display: none; }
  .nav .lang { display: none; }
  .nav-burger {
    position: relative; z-index: 55;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0;
    background: transparent; border: 0; cursor: pointer;
    margin-left: auto;
  }
  .nav-burger span {
    display: block; width: 24px; height: 1.5px; background: currentColor;
    transition: transform 200ms, opacity 200ms;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-mobile {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: fixed; inset: 0; z-index: 40;
    background: rgba(8,8,8,0.62);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    padding: 0; gap: 36px;
  }
  .nav-mobile-links { display: flex; flex-direction: column; gap: 14px; align-items: center; }
  .nav-mobile-links a {
    font-family: "Inter", sans-serif; font-weight: 500;
    font-size: 17px; line-height: 1.2; letter-spacing: 0.04em;
    color: #FFFFFF; cursor: pointer; padding: 4px 0; text-align: center;
  }
  .nav-mobile-lang {
    display: flex; align-items: center; gap: 10px;
    font-family: "Inter", sans-serif; font-weight: 500;
    font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
    color: #8A8A8A;
  }
  .nav-mobile-lang button {
    background: transparent; border: 0; color: #8A8A8A; cursor: pointer;
    font: inherit; letter-spacing: inherit;
  }
  .nav-mobile-lang button.active { color: #FFFFFF; }
  .frame.dark:has(.nav-mobile) .web-hero .stage { opacity: 0; }
}

/* ---- MÓVIL ≤767px ---- */
@media (max-width: 767px) {
  /* Hero */
  .hero { padding: 40px 20px 36px; display: block; }
  .hero .kicker { font-size: 10px; }
  .hero .h { font-size: clamp(40px, 13vw, 72px); margin-top: 12px; }
  .hero .sub { font-size: 15px; line-height: 1.6; margin-top: 20px; }

  /* Web hero (home) — full screen estático, BUTACO centrado */
  .frame.dark { height: 100vh; overflow: hidden; }
  .frame.dark > .nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
    padding: 18px 20px;
  }
  .frame.dark .nav-burger { display: flex; z-index: 55; position: relative; }
  .frame.dark .nav-burger span { background: #FFFFFF; height: 2px; width: 24px; }
  .home-only { flex: 1; min-height: 0; }
  .web-hero { height: 100vh; min-height: 100vh; }
  .web-hero .hero-loop, .web-hero .hero-slide { position: absolute; inset: 0; }
  .web-hero .stage { padding: 0 24px; gap: 18px; height: 100vh; justify-content: center; }
  .iconbar { display: flex; }
  .web-hero .eyebrow, .web-hero .ciudad { font-size: 11px; letter-spacing: 0.28em; }
  .web-hero .logo img { width: 80vw; }
  /* Barra inferior de íconos — global móvil (todas las secciones) */
  .iconbar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 9px 22px calc(9px + env(safe-area-inset-bottom));
    background: #080808;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .iconbar .hib {
    background: transparent; border: 0; padding: 8px; cursor: pointer;
    color: #FFFFFF; opacity: 0.85;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 160ms;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .iconbar .hib:hover { opacity: 1; }
  .iconbar .hib svg { width: 18px; height: 18px; display: block; pointer-events: none; }
  /* Franja según fondo: claro en rutas blancas, negro en home */
  .frame:not(.dark) .iconbar { background: #FFFFFF; border-top: 1px solid #DDD4C8; }
  .frame:not(.dark) .iconbar .hib { color: #080808; opacity: 0.9; }
  /* Deja aire para que la barra fija no tape contenido */
  .frame:not(.dark) { padding-bottom: 46px; }

  /* Overlay legal */
  .home-legal-overlay {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(8,8,8,0.6);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 32px;
  }
  .home-legal {
    position: relative; background: #FFFFFF; color: #080808;
    width: 100%; max-width: 320px; padding: 28px 26px 24px;
    display: flex; flex-direction: column; gap: 0;
  }
  .home-legal-close {
    position: absolute; top: 12px; right: 14px;
    background: transparent; border: 0; font-size: 20px; line-height: 1; color: #5A5A5A; cursor: pointer;
  }
  .home-legal-k {
    font-family: "Inter", sans-serif; font-weight: 500;
    font-size: 8px; letter-spacing: 0.32em; text-transform: uppercase;
    color: #8A8A8A; margin-bottom: 14px;
  }
  .home-legal a {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 13px; line-height: 1.4; color: #5A5A5A; cursor: pointer;
    padding: 12px 0; border-top: 1px solid #ECE8E2;
  }
  .home-legal a:last-child { border-bottom: 1px solid #ECE8E2; }

  /* Sections */
  .section { padding: 40px 20px; }
  .section .head { display: block; margin-bottom: 24px; }
  .section .head .idx { font-size: 18px; margin-bottom: 8px; }
  .section .head .title { font-size: clamp(32px, 9vw, 44px); }
  .section .head .desc { font-size: 14px; margin-top: 12px; }

  /* Projects — one column */
  .proj-header { flex-direction: column; align-items: stretch; gap: 20px; }
  .proj-controls { align-items: stretch; }
  .filters { align-self: flex-start; width: auto; }
  .proj-grid { grid-template-columns: 1fr; gap: 32px; }
  .proj { grid-column: 1 / -1 !important; }
  .proj.large, .proj.small { grid-column: 1 / -1 !important; }
  .projects-intro { font-size: 14px; line-height: 1.5; max-width: none; border-top: 0; padding-top: 0; margin-top: 20px; }

  /* Project detail — galería stack con borde lateral y vertical uniforme */
  .gallery { padding: 0; border-top: 0; }
  .gallery-frame { display: none; }
  .gallery-stack {
    display: block;
    width: 100%;
    background: #FFFFFF;
    padding: 6px;
  }
  .gallery-stack .gstack-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 0 6px;
  }
  .gallery-stack .gstack-img:last-child { margin-bottom: 0; }
  .gallery-stack .gstack-credit {
    display: block;
    padding: 6px 6px 4px;
    font-family: "Inter", sans-serif; font-weight: 500;
    font-size: 6.5px; letter-spacing: 0.28em; text-transform: uppercase;
    color: #5A5A5A;
  }
  .gnav { padding: 16px 12px; font-size: 26px; }

  /* Ficha técnica — bloques con divisores verticales completos, editorial */
  .detail-meta-section { padding: 0 0 0; }
  .detail-meta-section::before { display: none; }
  .detail-meta {
    grid-template-columns: repeat(4, 1fr); column-gap: 0; padding: 0;
    border-top: 1px solid #080808; border-bottom: 1px solid #080808;
  }
  .detail-meta .cell {
    border-left: 1px solid #DDD4C8;
    padding: 14px 8px;
    align-items: center; text-align: center;
    justify-content: center;
  }
  .detail-meta .cell:first-child { padding-left: 8px; border-left: 0; }
  .detail-meta .cell:last-child { padding-right: 8px; }
  .detail-meta .k { font-size: 8px; letter-spacing: 0.14em; margin: 0 0 6px; }
  .detail-meta .v { font-size: 12px; letter-spacing: 0; }
  /* Concepto / Marca — sin líneas extra en móvil (ya enmarca la ficha) */
  .section.concepto-com { border-bottom: 0; }
  .section.concepto-com, .section:has(.txt2) { border-top: 0; }

  /* Concepto / Marca — títulos más contenidos */
  .txt2 { display: block; }
  .txt2 .a, .txt2 .b { width: auto; margin-bottom: 16px; }
  .section.concepto-com::before { display: none; }
  .txt2.txt2-com .a, .txt2.txt2-com .b { grid-column: auto; padding: 0; }
  .section.concepto-com .txt2 > div { grid-column: 1 / -1 !important; max-width: none !important; padding: 0 0 24px !important; }
  .section.concepto-com .txt2 > div:first-child { border-bottom: 1px solid #080808; margin: 0 -20px 24px; padding: 0 20px 24px !important; }
  .txt2 h2 { font-size: 26px !important; margin-bottom: 14px !important; }
  .txt2 p { font-size: 15px !important; }

  /* Studio / manifiesto */
  .hero.studio-hero { padding: 40px 20px; min-height: 0; display: block; }
  .studio-headline { display: block; }
  .studio-title { display: block; margin: 0 0 120px 0; }
  .manifesto { display: none; }
  .studio-mobile { display: block; }
  .studio-mobile-photo { width: 100vw; margin-left: calc(50% - 50vw); margin-top: 24px; padding: 0 6px; }
  .studio-mobile-photo img { width: 100%; height: auto; display: block; }
  .studio-mobile-text {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 15px; line-height: 1.65; color: #1A1A1A;
    margin: 24px 0 0; text-align: justify; hyphens: auto;
  }
  .team-section { display: none; }

  /* Nuestros clientes — banda horizontal compacta, editorial */
  .section:has(.clients-marquee:not(.clients-marquee--home)) { padding: 40px 0 44px; }
  .section:has(.clients-marquee:not(.clients-marquee--home)) .head { padding: 0 20px; margin-bottom: 22px; }
  .section:has(.clients-marquee:not(.clients-marquee--home)) .head .title { font-size: clamp(30px, 9vw, 44px); }
  .clients-marquee:not(.clients-marquee--home) { padding: 18px 0; border: 0; }
  .clients-marquee:not(.clients-marquee--home) .client-item { width: 150px; height: 64px; }
  .clients-marquee:not(.clients-marquee--home) .client-item img { max-width: 118px; }

  /* Valores */
  .values-section { padding: 48px 20px 24px; min-height: 0; }
  .values-grid { grid-template-columns: 1fr; gap: 8px; }
  .bio { min-height: 0; padding: 18px 18px; }
  .respiro, .respiro.tight { padding: 32px 20px; }
  .respiro .q { font-size: clamp(28px, 8vw, 40px); }

  /* Team photo */
  .team-photo .ph.wide { aspect-ratio: 4 / 3; }
  .team-section { padding-left: 0; padding-right: 0; }
  .team-section .head { padding: 0 20px; }
  .team-photo-full { width: 100vw; margin-left: calc(50% - 50vw); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-block-web { display: none; }

  /* Clients carousel */
  .clients-marquee--home .client-item { width: 130px; }

  /* Footer textual — reemplazado por la barra de íconos en móvil */
  .footer { display: none; }

  /* Legal */
  .section.legal { padding: 40px 20px 64px; }

  /* Back button */
  .project-back { padding: 32px 20px 48px; }

  /* No horizontal scroll safety */
  .gallery-frame { width: 100%; }
}

/* Evita scroll horizontal global */
html, body { overflow-x: hidden; max-width: 100%; }

/* Oculta la barra de scroll (navegación táctil / estética limpia) */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; background: transparent !important; }

/* === Free-font display headings (Oswald) === */
.hero .h,
.section .head .title,
.section .head .idx,
.proj .name,
.proj .num,
.respiro .q,
.manifesto-open,
.bio .name,
.cc-panel-title,
.legal .h1 {
  font-family: "Oswald", sans-serif !important;
}
