/* ===== Tokens ===== */
:root {
  --bg: #F4F3EE;
  --bg-alt: #FFFFFF;
  --ink: #141414;
  --ink-soft: #2C2B27;
  --gray-700: #46453F;
  --gray-500: #8A887F;
  --gray-400: #9C9A90;
  --gray-300: #C7C5BB;
  --line: #C9C7BD;
  --rojo: #E2231A;
  --azul: #1E4FA0;
  --verde: #1E8A5B;
  --amarillo: #F2C200;
  --naranja: #E58A1E;
  --pad-x: clamp(18px, 4vw, 52px);
  --pad-seccion: clamp(52px, 7vw, 96px);
  --gap-grilla: clamp(18px, 2.4vw, 32px);
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', monospace;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; }
section[id] { scroll-margin-top: 74px; }
::selection { background: #141414; color: #F4F3EE; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }

.contenedor { max-width: 1340px; margin: 0 auto; }

h1, h2 { font-family: 'Archivo', system-ui, sans-serif; text-transform: uppercase; }

/* ===== Animaciones ===== */
@keyframes dcUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dcCue { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(6px); opacity: 1; } }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(244, 243, 238, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  height: 72px; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.marca { display: flex; align-items: center; gap: 12px; }
.marca-cuadrado { width: 13px; height: 13px; background: var(--rojo); flex-shrink: 0; }
.marca-texto { display: flex; flex-direction: column; }
.marca-nombre {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 900; font-size: 18px;
  text-transform: uppercase; letter-spacing: -.01em; line-height: 1;
}
.marca-sub {
  margin-top: 3px; font-size: 9px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gray-500);
}
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.nav-links a {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.nav-links a:hover { border-bottom-color: var(--rojo); }
.btn-idioma {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  background: none; border: 2px solid var(--ink); color: var(--ink);
  padding: 6px 12px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn-idioma:hover { background: var(--ink); color: var(--bg); }

/* ===== Hero ===== */
.hero { padding: 96px var(--pad-x) clamp(40px, 5vw, 72px); }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
  animation: dcUp .5s ease both;
}
.hero-meta span {
  padding: 11px 16px; border-left: 1px solid var(--line);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-700);
}
.hero-meta .hero-meta-acento { color: var(--rojo); }
.hero-principal {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px); align-items: center;
  padding-top: clamp(30px, 4vw, 56px);
}
.hero-texto { animation: dcUp .7s ease both; }
.hero h1 {
  font-weight: 900; font-size: clamp(62px, 10.5vw, 176px);
  line-height: .82; letter-spacing: -.035em;
}
.franja { display: flex; }
.franja span:nth-child(1) { background: var(--amarillo); flex: 2.4; }
.franja span:nth-child(2) { background: var(--rojo); flex: 1.3; }
.franja span:nth-child(3) { background: var(--azul); flex: 2; }
.franja span:nth-child(4) { background: var(--verde); flex: 1.1; }
.franja span:nth-child(5) { background: var(--naranja); flex: 1.6; }
.franja-hero { height: 14px; max-width: 340px; margin-top: 30px; }
.hero-intro {
  font-size: 15px; line-height: 1.65; color: var(--gray-700);
  max-width: 42ch; margin-top: 30px;
}
.hero-botones { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figura { position: relative; animation: dcUp .9s ease both; }
.hero-figura-fondo { position: absolute; inset: 26px -20px -20px 26px; background: var(--azul); z-index: 0; }
.hero-marco {
  position: relative; z-index: 1;
  background: #fff; border: 7px solid var(--ink);
  padding: clamp(14px, 1.8vw, 22px);
  box-shadow: 0 30px 60px -30px rgba(20, 20, 20, 0.5);
}
.hero-marco img { width: 100%; height: auto; }
.hero-caption {
  position: relative; z-index: 1;
  margin-top: 16px; display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500);
}
.hero-caption-anio { color: var(--rojo); }
.hero-cue {
  margin-top: clamp(34px, 4vw, 54px);
  display: flex; gap: 10px; align-items: center; width: fit-content;
  color: var(--gray-500);
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
}
.hero-cue-flecha { font-size: 16px; animation: dcCue 1.8s ease-in-out infinite; }

/* ===== Botones ===== */
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1;
  padding: 14px 28px; border: 2px solid transparent; border-radius: 0;
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.boton-icono { font-size: 14px; }
.boton-solid { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.boton-solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.boton-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.boton-outline:hover { background: var(--ink); color: var(--bg); }
.boton-dark-outline { background: transparent; color: var(--bg); border-color: rgba(244, 243, 238, 0.5); }
.boton-dark-outline:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ===== Encabezado de sección ===== */
.enc-fila { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.enc-num {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 17px; color: #fff;
}
.enc-num-rojo { background: var(--rojo); }
.enc-num-amarillo { background: var(--amarillo); color: var(--ink); }
.enc-num-verde { background: var(--verde); }
.enc-label {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-500);
}
.enc h2 {
  font-weight: 800; font-size: clamp(32px, 4.6vw, 60px);
  line-height: .95; letter-spacing: -.025em; color: var(--ink);
}
.enc-sub {
  font-size: 14px; line-height: 1.6; color: var(--gray-700);
  max-width: 52ch; margin-top: 14px;
}
.enc-invertido .enc-label { color: var(--gray-400); }
.enc-invertido h2 { color: var(--bg); }

/* ===== Obras ===== */
.obras {
  background: var(--bg-alt);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  padding: var(--pad-seccion) var(--pad-x);
}
.filtros {
  margin-top: clamp(34px, 4vw, 54px); padding-top: 22px;
  border-top: 3px solid var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 18px; border: 2px solid var(--ink); color: var(--ink);
  background: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { background: var(--ink); color: var(--bg); }
.chip-activo, .chip-activo:hover { background: var(--chip-color, #141414); border-color: var(--chip-color, #141414); color: #fff; }
.contador { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); }
.grilla {
  margin-top: clamp(28px, 4vw, 46px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 224px), 1fr));
  gap: var(--gap-grilla);
}
.tarjeta {
  background: none; border: none; padding: 0; text-align: left;
  cursor: zoom-in; display: block; width: 100%;
}
.tarjeta[hidden] { display: none; }
.lamina { display: block; }
.lamina-marco {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  aspect-ratio: 0.74;
  background: #fff; border: 2px solid var(--ink);
  padding: clamp(12px, 1.6vw, 20px);
  transition: box-shadow .2s ease, transform .2s ease;
}
.lamina-marco img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.tarjeta:hover .lamina-marco {
  box-shadow: 0 26px 54px -28px rgba(20, 20, 20, 0.5);
  transform: translateY(-3px);
}
.tarjeta-caption {
  margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.tarjeta-titulo {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 700; font-size: 17px;
  text-transform: uppercase; letter-spacing: -.01em; color: var(--ink);
}
.tarjeta-serie {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500);
}
.punto { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }

/* ===== Statement ===== */
.statement {
  background: var(--azul); color: #fff;
  padding: clamp(60px, 9vw, 124px) var(--pad-x);
  position: relative; overflow: hidden;
}
.statement-cuadrado {
  position: absolute; width: 46px; height: 46px; background: var(--amarillo);
  top: clamp(40px, 6vw, 72px); left: var(--pad-x);
}
.statement-contenido { max-width: 1040px; margin: 0 auto; text-align: center; }
.statement-frase {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 4.4vw, 56px); line-height: 1.12; letter-spacing: -.02em;
}

/* ===== Historia ===== */
.historia { padding: var(--pad-seccion) var(--pad-x); background: var(--bg); }
.historia-grid { max-width: 1200px; }
.historia-texto { max-width: 76ch; }
.bio { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.bio-1 { margin-top: 24px; }
.bio-2 { margin-top: 18px; }
.bio-cita {
  margin-top: 30px; padding-left: 22px; border-left: 4px solid var(--rojo);
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px); line-height: 1.3;
}
.datos {
  margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--ink);
}
.dato { padding: 18px 16px; }
.dato:not(:last-child) { border-right: 2px solid var(--ink); }
.dato-fila { display: flex; align-items: center; gap: 8px; }
.dato-cuadrado { width: 9px; height: 9px; flex-shrink: 0; }
.dato-cifra {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 900; font-size: 34px;
  line-height: 1; text-transform: uppercase;
}
.dato-label {
  margin-top: 8px;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500);
}

/* ===== Contacto ===== */
.contacto {
  background: var(--ink); color: var(--bg);
  padding: var(--pad-seccion) var(--pad-x) clamp(46px, 6vw, 76px);
}
.contacto-grid {
  max-width: 1200px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.contacto-sub {
  margin-top: 20px; max-width: 38ch;
  font-size: 15px; line-height: 1.7; color: var(--gray-300);
}
.franja-contacto { margin-top: 30px; width: 240px; height: 12px; }
.contacto-fila {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; border-top: 1px solid rgba(244, 243, 238, 0.2);
  transition: color .2s ease;
}
.contacto-fila-ultima { border-bottom: 1px solid rgba(244, 243, 238, 0.2); }
a.contacto-fila:hover { color: var(--amarillo); }
.contacto-etiqueta {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-400);
}
.contacto-valor {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px); text-transform: uppercase; letter-spacing: -.01em;
  overflow-wrap: anywhere; text-align: right; min-width: 0;
}
.contacto-social { margin-top: 26px; display: flex; gap: 10px; }

/* ===== Pie ===== */
.pie { background: var(--ink); color: var(--bg); padding: 0 var(--pad-x) clamp(36px, 5vw, 56px); }
.pie-inner {
  border-top: 1px solid rgba(244, 243, 238, 0.16);
  padding-top: clamp(30px, 4vw, 44px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.pie-marca {
  display: inline-block;
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 900;
  font-size: clamp(34px, 5vw, 64px); line-height: .9;
  text-transform: uppercase; letter-spacing: -.03em;
}
.pie-tag {
  margin-top: 14px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-400);
}
.pie-legal {
  text-align: right;
  font-size: 11px; letter-spacing: .06em; line-height: 1.7; color: var(--gray-400);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 5vw, 72px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-cerrar {
  position: absolute; top: 22px; right: 26px;
  width: 46px; height: 46px;
  border: 2px solid rgba(244, 243, 238, 0.4); background: none;
  color: var(--bg); font-size: 18px; cursor: pointer;
  transition: border-color .2s ease;
}
.lightbox-cerrar:hover { border-color: var(--bg); }
.lightbox-figura {
  max-width: min(92vw, 840px);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  cursor: default;
}
.lightbox-figura img {
  max-width: 100%; max-height: 76vh;
  background: #fff; border: 6px solid #fff;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7);
}
.lightbox-caption { text-align: center; color: var(--bg); }
.lightbox-titulo {
  font-family: 'Archivo', system-ui, sans-serif; font-weight: 800;
  font-size: clamp(20px, 2.6vw, 28px); text-transform: uppercase; letter-spacing: -.01em;
}
.lightbox-meta {
  margin-top: 9px;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #A39D92;
}

/* ===== Responsive ===== */
@media (max-width: 899px) {
  .hero-principal { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { display: none; }
  .hero-figura-fondo { inset: 18px -12px -12px 18px; }
  .contacto-valor { font-size: 16px; }
}
@media (max-width: 639px) {
  .datos { grid-template-columns: 1fr; }
  .dato:not(:last-child) { border-right: none; border-bottom: 2px solid var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-meta, .hero-texto, .hero-figura { animation: none; }
  .hero-cue-flecha { animation: none; }
}
