/* Via et Ordine — homepage mockup v4
   Referencia visual aprobada: data/referencia-aprobada/"ChatGPT Image Sep 2, 2026, 01_45_47 AM (1).png"
   Brief del director (2-sep): minimalista, cinemático, institucional, multimedia, internacional.
   Paleta: burdeos · dorado · marfil · negro/charcoal. */

:root {
  --burg: #3d0b16;
  --burg-deep: #1f060c;
  --wine: #5a0f2e;
  --ivory: #f4f1ec;
  --veo-red: #E30613;
  --altiro-blue: #5E6EBF;
  --elcuadro-gray: #9A9A9A;
  --gold: #c9a96b;
  --gold-2: #d8bc84;
  --gold-ink: #7a5c26;   /* dorado legible sobre marfil (contraste ≥ 4.5) */
  --gold-line: #d9c29a;  /* bordes de pills */
  --black: #0b0b0a;
  --charcoal: #0e0a0b;
  --ink: #1a1214;
  --stone: #6b5d57;
  --line-gold: rgba(201, 169, 107, 0.22);
  --serif: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 0.9s;
  --header: 76px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
em { font-style: italic; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
[id] { scroll-margin-top: var(--header); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ivory);
  color: var(--burg-deep);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.dot {
  display: block;
  width: 5px;
  height: 5px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--gold);
}
@media (max-width: 699px) { .br-desk { display: none; } }

/* Aparición: opacity 0 → 1, translateY 20px → 0 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Header ── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.header.is-solid {
  background: rgba(11, 11, 10, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.logo img {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(0.92) sepia(0.35) saturate(2.2) hue-rotate(5deg);
}
.burger {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  margin-right: -10px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold-2);
}

.menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 100;
  width: min(420px, 100vw);
  background: var(--burg-deep);
  padding: 6rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
  color: var(--ivory);
}
.menu.is-open { transform: none; }
.menu[hidden] { display: flex; visibility: hidden; pointer-events: none; }
.menu.is-open[hidden] { visibility: visible; pointer-events: auto; }
.menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-gold);
  transition: color 0.3s, padding-left 0.4s var(--ease);
}
.menu a:hover { color: var(--gold); padding-left: 0.5rem; }
.menu-x {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
}

/* ── 1 · Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
  background: var(--black);
}
.hero__media {
  position: absolute;
  inset: -8% 0 0;
  will-change: transform;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 6, 7, 0.82) 0%, rgba(11, 6, 7, 0.5) 45%, rgba(11, 6, 7, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 6, 7, 0.35) 0%, transparent 30%, transparent 70%, rgba(11, 6, 7, 0.6) 100%);
}
.hero__copy {
  position: relative;
  z-index: 1;
  padding: var(--header) var(--gutter) 0 clamp(1.5rem, 11vw, 11rem);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 8.4vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}
.hero h1 span {
  display: block;
  color: var(--gold);
}
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold-2);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.btn-play__icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: background 0.4s var(--ease), transform 0.5s var(--ease);
}
.btn-play:hover { color: #fff; }
.btn-play:hover .btn-play__icon {
  background: rgba(201, 169, 107, 0.14);
  transform: scale(1.06);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1;
  width: 5px;
  height: 64px;
  transform: translateX(-50%);
}
.hero__scroll::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: drift 2.6s var(--ease) infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(26px); opacity: 0.2; }
}

/* ── 2 · Cinturón interactivo ── */
.rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  background: var(--burg);
  padding: 0.85rem 0.75rem;
}
.rail__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
}
.rail__btn {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(244, 241, 236, 0.72);
  padding: 0.35rem 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.rail__btn:hover,
.rail__btn:focus-visible {
  color: var(--gold-2);
  outline: none;
}
.rail__btn.is-active {
  color: var(--ivory);
  border-bottom-color: rgba(197, 165, 106, 0.55);
}
@media (max-width: 520px) {
  .rail__btn { font-size: 0.6rem; letter-spacing: 0.14em; }
}

/* ── 3 · Manifiesto ── */
.manifesto {
  background: var(--ivory);
  padding: clamp(1.35rem, 3.5vh, 2.1rem) var(--gutter) clamp(1.15rem, 3vh, 1.85rem);
  text-align: center;
  overflow: hidden;
}
.manifesto__parallax {
  will-change: transform;
}
.manifesto__panel {
  max-width: 36rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.manifesto__panel.is-visible {
  opacity: 1;
  transform: none;
}
.manifesto__title {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
  font-weight: 600;
}
.manifesto__short { display: none; }
@media (max-width: 640px) {
  .manifesto__panel.has-short .manifesto__long { display: none; }
  .manifesto__panel.has-short .manifesto__short { display: block; }
}
.manifesto__text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 30em;
  margin: 0 auto;
  text-wrap: balance;
}
.manifesto .dot {
  margin-top: 0.5rem;
}

/* ── 4 · Marcas (capítulos) ── */
.chapters {
  background: var(--black);
  color: var(--ivory);
}
.chapter__media,
.chapter__shade {
  position: absolute;
  inset: 0;
}
.chapter__media { overflow: hidden; }
.chapter__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--black) center / cover no-repeat;
}
.chapter__name {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.chapter__mark {
  display: block;
  width: auto;
  height: auto;
  max-width: min(8.8rem, 70%);
  max-height: 4.5rem;
  object-fit: contain;
  object-position: left center;
}
/* VEO (--stack): 15% más chico que el tamaño unificado */
.chapter__mark--stack {
  max-width: min(6.7rem, 65%);
  max-height: 3.4rem;
}
/* El Cuadro trae margen vacío: recortar al trazo para igualar altura visual. */
.chapter__mark[src*="elcuadro"] {
  object-view-box: inset(25.22% 6.84% 25.35% 7.85%);
  max-width: min(8.8rem, 70%);
  max-height: 4.5rem;
}
/* Blanco en reposo. El color real entra al acercar el cursor. */
.chapters__logo,
.chapter__mark {
  filter: brightness(0) invert(1);
  transition: filter 0.6s var(--ease), opacity 0.5s var(--ease);
}
.chapters__tab:hover .chapters__logo,
.chapters__tab:focus-visible .chapters__logo,
.chapter:hover .chapter__mark,
.chapter:focus-within .chapter__mark {
  filter: none;
}
/* VEO: blanco en reposo → rojo de marca al hover (el PNG es blanco) */
.chapter:hover .chapter__mark[src*="veo"],
.chapter:focus-within .chapter__mark[src*="veo"],
.chapter:hover .chapter__mark--stack,
.chapter:focus-within .chapter__mark--stack {
  filter: brightness(0) saturate(100%) invert(16%) sepia(97%) saturate(7470%) hue-rotate(350deg) brightness(98%) contrast(118%) !important;
}
.chapters__tab[data-brand="veo"]:hover .chapters__logo,
.chapters__tab[data-brand="veo"]:focus-visible .chapters__logo,
.chapters__tab[data-brand="veo"].is-active .chapters__logo {
  filter: brightness(0) saturate(100%) invert(16%) sepia(97%) saturate(7470%) hue-rotate(350deg) brightness(98%) contrast(118%) !important;
}
/* Altiro: blanco → azul de marca #5E6EBF */
.chapters__tab[data-brand="altiro"]:hover .chapters__logo,
.chapters__tab[data-brand="altiro"]:focus-visible .chapters__logo,
.chapters__tab[data-brand="altiro"].is-active .chapters__logo {
  filter: brightness(0) saturate(100%) invert(42%) sepia(28%) saturate(1200%) hue-rotate(203deg) brightness(95%) contrast(92%) !important;
}
.chapter:hover .chapter__mark[src*="altiro"],
.chapter:focus-within .chapter__mark[src*="altiro"] {
  filter: brightness(0) saturate(100%) invert(42%) sepia(28%) saturate(1200%) hue-rotate(203deg) brightness(95%) contrast(92%) !important;
}
/* El Cuadro: blanco → gris medio visible (#9A9A9A). El gris claro no se notaba. */
.chapters__tab[data-brand="elcuadro"]:hover .chapters__logo,
.chapters__tab[data-brand="elcuadro"]:focus-visible .chapters__logo,
.chapters__tab[data-brand="elcuadro"].is-active .chapters__logo {
  filter: brightness(0) invert(0.60) !important;
}
.chapter:hover .chapter__mark[src*="elcuadro"],
.chapter:focus-within .chapter__mark[src*="elcuadro"] {
  filter: brightness(0) invert(0.60) !important;
}
.chapter__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
}
.chapter__desc {
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.82);
  max-width: 36ch;
}
.chapter__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.chapter__enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s;
}
.chapter__enter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}
.chapter__enter span {
  font-size: 1.1rem;
  letter-spacing: 0;
  transition: transform 0.5s var(--ease);
}
.chapter__enter:hover { color: #fff; }
.chapter__enter:hover::before { width: 100%; }
.chapter__enter:hover span { transform: translateX(6px); }
.chapter__more {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 107, 0.6);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.chapter.is-open .chapter__more { transform: rotate(45deg); }

/* Drawer: pleca discreta con sitio, redes y frase */
.chapter__drawer { color: var(--ivory); }
.chapter__drawer-inner {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.75rem var(--gutter) 2rem;
}
.chapter__drawer p {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  padding-right: 2.5rem;
}
.chapter__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.chapter__links li:has(a[href=""]) { display: none; }
.chapter__links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}
.chapter__links a:hover { color: #fff; border-color: currentColor; }
.chapter__close {
  position: absolute;
  top: 0.6rem;
  right: calc(var(--gutter) - 0.75rem);
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}

/* Móvil: cards verticales con video; tap abre el drawer debajo */
@media (max-width: 899px) {
  .chapters__list { display: none; }
  .chapters__stage {
    display: grid;
    gap: 1px;
    background: var(--line-gold);
  }
  .chapter { background: var(--black); }
  .chapter__frame {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 82svh;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
  }
  .chapter__shade {
    background: linear-gradient(0deg, rgba(11, 6, 7, 0.95) 0%, rgba(11, 6, 7, 0.72) 34%, rgba(11, 6, 7, 0.08) 68%);
  }
  .chapter__body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    display: grid;
    justify-items: start;
    gap: 0.6rem;
    padding: 0 var(--gutter) 1.75rem;
  }
  .chapter__name { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .chapter__mark { max-height: 3.5rem; }
  .chapter__mark--stack { max-height: 2.65rem; }
  .chapter__desc { display: none; }
  .chapter__tag { font-size: 0.62rem; letter-spacing: 0.14em; }
  .chapter__actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.25rem;
  }
  .chapter__drawer {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    background: var(--burg);
    transition: grid-template-rows 0.6s var(--ease), visibility 0s linear 0.6s;
  }
  .chapter__drawer-inner {
    min-height: 0;
    overflow: hidden;
    padding-block: 0;
    transition: padding 0.6s var(--ease);
  }
  .chapter.is-open .chapter__drawer {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.6s var(--ease), visibility 0s;
  }
  .chapter.is-open .chapter__drawer-inner { padding-block: 1.5rem 1.75rem; }
}

/* Desktop: índice vertical a la izquierda + gran panel multimedia a la derecha */
@media (min-width: 900px) {
  .chapters {
    display: grid;
    grid-template-columns: minmax(250px, 22%) 1fr;
    height: clamp(560px, 82vh, 860px);
  }
  .chapters__index {
    position: relative;
    display: flex;
    padding: clamp(1rem, 3vh, 2rem) clamp(1.75rem, 3vw, 3rem);
    border-right: 1px solid #40372b;
  }
  /* Como la referencia: los 4 capítulos reparten toda la altura */
  .chapters__list {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    width: 100%;
  }
  .chapters__tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    color: rgba(244, 241, 236, 0.62);
    transition: color 0.5s var(--ease);
  }
  .chapters__tab + .chapters__tab { border-top: 1px solid rgba(244, 241, 236, 0.1); }
  .chapters__tab::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transform: translateY(-50%) scale(0);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .chapters__logo {
    display: block;
    width: auto;
    height: 2.65rem;
    max-width: 100%;
    max-height: 2.65rem;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    opacity: 0.72;
    transition: filter 0.6s var(--ease), opacity 0.5s var(--ease);
  }
  .chapters__logo[src*="elcuadro"] {
    object-view-box: inset(25.22% 6.84% 25.35% 7.85%);
  }
  .chapters__tab:hover .chapters__logo,
  .chapters__tab.is-active .chapters__logo { opacity: 1; }
  .chapters__tab:hover { color: var(--ivory); }
  .chapters__tab.is-active { color: var(--gold); }
  .chapters__tab.is-active::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  .chapters__stage {
    position: relative;
    overflow: hidden;
  }
  /* Crossfade entre marcas */
  .chapter {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--slow) var(--ease), visibility 0s linear var(--slow);
  }
  .chapter.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity var(--slow) var(--ease), visibility 0s;
  }
  .chapter__frame {
    position: absolute;
    inset: 0;
    cursor: pointer;
  }
  .chapter__video {
    transform: scale(1.05);
    transition: transform 6s linear;
  }
  .chapter.is-active .chapter__video { transform: scale(1); }
  .chapter__shade {
    background:
      linear-gradient(90deg, rgba(11, 6, 7, 0.94) 0%, rgba(11, 6, 7, 0.78) 34%, rgba(11, 6, 7, 0.2) 70%, rgba(11, 6, 7, 0.35) 100%),
      linear-gradient(0deg, rgba(11, 6, 7, 0.4) 0%, transparent 40%);
  }
  .chapter__body {
    position: absolute;
    top: 50%;
    left: clamp(3rem, 6.5vw, 7rem);
    z-index: 1;
    width: min(36rem, 60%);
    display: grid;
    justify-items: start;
    transform: translateY(-50%);
  }
  .chapter__name {
    font-size: clamp(3.4rem, 6vw, 6.25rem);
    margin-bottom: 1.4rem;
  }
  .chapter__mark { max-height: 5rem; }
  .chapter__mark--stack { max-height: 3.75rem; }
  .chapter__tag { margin-bottom: 1.4rem; }
  .chapter__actions { margin-top: 2.25rem; }
  .chapter__more { display: none; }
  .chapter__body > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .chapter.is-active .chapter__body > * { opacity: 1; transform: none; }
  .chapter.is-active .chapter__body > :nth-child(2) { transition-delay: 0.08s; }
  .chapter.is-active .chapter__body > :nth-child(3) { transition-delay: 0.16s; }
  .chapter.is-active .chapter__body > :nth-child(4) { transition-delay: 0.24s; }

  .chapter__drawer {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    background: rgba(61, 11, 22, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
  }
  .chapter.is-open .chapter__drawer {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s;
  }
  .chapter__drawer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.6rem 5rem 1.6rem clamp(3rem, 6.5vw, 7rem);
  }
}

/* ── 5 · Ecosistema ── */
.eco {
  background: var(--ivory);
  padding: clamp(2.25rem, 6vh, 3.5rem) var(--gutter) clamp(2.5rem, 6.5vh, 3.75rem);
  text-align: center;
}
.eco__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  color: var(--stone);
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.eco.is-inview .eco__title {
  opacity: 1;
  transform: none;
}
.eco__tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem 2.4rem;
  max-width: 920px;
  margin: 0 auto 3rem;
}
.eco__tags li {
  opacity: 0;
  transform: translateY(8px);
}
.eco.is-inview .eco__tags li {
  animation: eco-fade-in 0.65s var(--ease) forwards;
}
.eco.is-inview .eco__tags li:nth-child(1) { animation-delay: 0.12s; }
.eco.is-inview .eco__tags li:nth-child(2) { animation-delay: 0.24s; }
.eco.is-inview .eco__tags li:nth-child(3) { animation-delay: 0.36s; }
.eco.is-inview .eco__tags li:nth-child(4) { animation-delay: 0.48s; }
.eco.is-inview .eco__tags li:nth-child(5) { animation-delay: 0.6s; }
.eco.is-inview .eco__tags li:nth-child(6) { animation-delay: 0.72s; }
.eco.is-inview .eco__tags li:nth-child(7) { animation-delay: 0.84s; }
.eco.is-inview .eco__tags li:nth-child(8) { animation-delay: 0.96s; }
@keyframes eco-fade-in {
  to { opacity: 1; transform: none; }
}
.eco__tags span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0.7rem 0.2rem 0.65rem;
  border-bottom: 1px solid rgba(168, 132, 74, 0.38);
  color: var(--ink);
  background: none;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
@media (max-width: 700px) {
  .eco__tags {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    max-width: 16rem;
  }
  .eco__tags span {
    letter-spacing: 0.28em;
    padding: 0.95rem 0 0.8rem;
  }
}
.eco__tags li:hover span {
  color: var(--burg);
  border-bottom-color: var(--burg);
}
.eco__brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.6rem 3.2rem;
  max-width: 920px;
  margin: 0.5rem auto 0;
}
.eco__brands a {
  display: flex;
  align-items: center;
  opacity: 0.72;
  transition: opacity 0.35s var(--ease);
}
.eco__brands a:hover { opacity: 1; }
.eco__brands img {
  display: block;
  height: 3.6rem;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  filter: brightness(0);
}
.eco__brands img.is-stack { height: 3.6rem; }
/* El Cuadro trae margen vacío arriba y abajo. Se recorta al trazo para igualar la altura. */
.eco__brands img[src*="elcuadro"] {
  object-view-box: inset(25.22% 6.84% 25.35% 7.85%);
}

/* ── 6 · Franja filosófica / color liso ── */
.philo {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 12vh, 7.5rem) var(--gutter);
  text-align: center;
  color: var(--ivory);
  background: var(--burg-deep);
}
/* Textura portada (viaetordine.com) retinta al burdeos de marca */
.philo__bg {
  display: block;
  position: absolute;
  inset: -12% -4%;
  z-index: 0;
  pointer-events: none;
  background: url("assets/posters/portada-burdeos.svg") top center / cover no-repeat;
  opacity: 1;
  will-change: transform;
}
.philo__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* velo ligero para unificar tono sin matar la textura */
  background: rgba(61, 11, 22, 0.22);
  pointer-events: none;
}
.philo__text {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.1vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.philo .dot { position: relative; z-index: 1; }

/* ── 7 · Trayectoria ── */
.clients {
  background: #ffffff;
  padding: clamp(3.5rem, 9vh, 5rem) var(--gutter) clamp(2.5rem, 6vh, 3.5rem);
}
.clients__marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: clients-marquee 80s linear infinite;
}
.clients__track:hover { animation-play-state: paused; }
@keyframes clients-marquee {
  to { transform: translateX(-50%); }
}
.clients__logos {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(3.2rem, 6vw, 5.5rem);
  padding: 0 2rem;
  list-style: none;
  margin: 0;
}
.clients__logos li {
  display: flex;
  align-items: center;
  margin: 0;
}
.clients__logos figure {
  margin: 0;
  display: flex;
  align-items: center;
}
.clients__logos img {
  height: var(--h, 36px);
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  transition: opacity 0.4s var(--ease);
}
.clients__logos li:hover img { opacity: 0.7; }
@media (max-width: 700px) {
  .clients__logos img { height: calc(var(--h, 36px) * 0.78); }
}

/* ── 8 · Footer ── */
.footer {
  background: #10080b;
  color: rgba(244, 241, 236, 0.78);
  margin-inline: 0;
  padding: 2.4rem var(--gutter) 2.6rem;
  border-top: 1px solid rgba(197, 165, 106, 0.35);
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 0.95rem;
}
.footer__logo {
  height: 16px;
  width: auto;
  filter: none;
  opacity: 0.92;
}
.footer__center { display: grid; gap: 0.2rem; }
.footer__legal { display: flex; justify-content: center; gap: 1.25rem; }
.footer__legal a:hover,
.footer__meta a:hover { color: var(--gold); }
.footer__meta {
  display: grid;
  gap: 0.2rem;
  color: rgba(197, 165, 106, 0.88);
}
@media (min-width: 900px) {
  .footer {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
  }
  .footer__logo { justify-self: start; }
  .footer__center { text-align: center; }
  .footer__meta { justify-self: end; text-align: right; }
}

/* ── Showreel ── */
.reel {
  width: min(1200px, 100vw - 2rem);
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: #000;
  overflow: visible;
}
.reel[open] { animation: reel-in 0.5s var(--ease); }
@keyframes reel-in { from { opacity: 0; transform: scale(0.98); } }
.reel::backdrop { background: rgba(8, 4, 5, 0.94); }
.reel__video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 2rem);
  aspect-ratio: 16 / 9;
  background: #000;
}
.reel__x {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
  .reveal, .chapter__body > * { opacity: 1; transform: none; }
  .manifesto__panel, .eco__title, .eco__tags li { opacity: 1; transform: none; }
  .clients__track { transform: none; }
  .hero__video { display: none; }
  .hero__media { background: url("assets/video/hero-veo.svg") center / cover; }
}


/* Hot Plot: mismo tamaño que el resto de chapter__mark */
.eco__brands img[src*="hotplot"] {
  height: 3.6rem;
  max-width: none;
}
@media (min-width: 900px) {
  .chapters__logo[src*="hotplot"] {
    width: auto;
    height: 2.78rem;
    max-width: 100%;
    max-height: 2.78rem;
  }
}
