/* Nothing Will Remain — landing. Paleta tomada del arte clave. */
:root {
  --fondo: #11100e;          /* carbón */
  --fondo-acero: #1b1c1d;    /* acero oscuro */
  --linea: #3a3833;
  --texto: #ece6dc;          /* hueso */
  --texto-suave: #b9ae9d;
  --oro: #d9a441;            /* polvo dorado del atardecer */
  --oro-claro: #f0c46a;
  --oxido: #a3352a;          /* rojo óxido de los estandartes */
  --cian: #5fd8e3;           /* implantes */
  --titulo: "Saira Stencil One", "Arial Black", Impact, sans-serif;
  --encabezado: "Oswald", "Arial Narrow", sans-serif;
  --cuerpo: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --alto-barra: 3.5rem;      /* alto de la barra fija: el arte empieza debajo */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grano sutil de polvo sobre toda la página */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--oro-claro); }
a:hover { color: var(--texto); }

:focus-visible {
  outline: 3px solid var(--cian);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 {
  font-family: var(--encabezado);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 1rem;
}
h3 {
  font-family: var(--encabezado);
  font-weight: 500;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
p { margin: 0 0 1rem; }

.saltar {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--oro);
  color: var(--fondo);
  font-weight: 600;
}
.saltar:focus { top: 1rem; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.etiqueta {
  font-family: var(--encabezado);
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--oro);
  margin-bottom: .75rem;
}
.etiqueta::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  margin-right: .6rem;
  vertical-align: middle;
  background: var(--oxido);
}

/* ---------- Barra superior ---------- */
.barra {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem var(--gutter);
  background: rgba(17, 16, 14, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 56, 51, .6);
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--texto);
  text-decoration: none;
  font-family: var(--titulo);
  font-size: 1.25rem;
  letter-spacing: .1em;
}
.emblema { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--oro); stroke-width: 2.5; }
.emblema path + path { stroke: var(--texto); stroke-width: 2; }
.barra ul {
  display: flex;
  gap: clamp(.75rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--encabezado);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .9rem;
}
.barra nav a { color: var(--texto); text-decoration: none; }
.barra nav a:hover { color: var(--oro-claro); }
.nav-cta { border-bottom: 2px solid var(--oxido); padding-bottom: 2px; }

@media (max-width: 40rem) {
  .barra li:not(:last-child) { display: none; }
}
/* En pantallas angostas el logo del arte no cabe completo: se centra en el personaje y el nombre lo da el h1. */
@media (max-width: 55.99rem) {
  .hero-arte { object-position: 28% 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-arte {
  position: absolute;
  top: var(--alto-barra);
  left: 0;
  z-index: -2;
  width: 100%;
  height: calc(100% - var(--alto-barra));
  object-fit: cover;
  /* Anclado arriba para que el logo del arte se vea completo bajo la barra. */
  object-position: 50% 0;
  transform-origin: 50% 0;
  animation: acercar 24s ease-out both;
}
.hero-velo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--fondo) 0%, rgba(17, 16, 14, .82) 28%, rgba(17, 16, 14, .1) 62%, rgba(17, 16, 14, 0) 100%),
    linear-gradient(to right, rgba(17, 16, 14, .6), rgba(17, 16, 14, 0) 60%);
}
.hero-texto {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 7rem var(--gutter) clamp(3rem, 8vh, 5rem);
  animation: subir .9s ease-out .2s both;
}
.hero-texto > * { max-width: 40rem; }
.hero-texto .etiqueta, .bajada { text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
h1 {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(2.9rem, 11vw, 6.5rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--texto);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 30px rgba(0, 0, 0, .6);
  margin-bottom: 1.25rem;
}
h1 span { display: block; }
.h1-sub {
  font-family: var(--encabezado);
  font-weight: 500;
  font-size: .4em;
  letter-spacing: .42em;
  margin-top: .45em;
  color: var(--texto);
}
.h1-sub::after {
  content: "";
  display: block;
  width: 7rem;
  height: 2px;
  margin-top: .6em;
  background: linear-gradient(to right, var(--oro), transparent);
}
.bajada { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--texto); }

.acciones { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.boton {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-family: var(--encabezado);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  border: 2px solid var(--oro);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background-color .2s, color .2s;
}
.boton-primario { background: var(--oro); color: var(--fondo); }
.boton-primario:hover { background: var(--oro-claro); color: var(--fondo); }
.boton-secundario { background: rgba(17, 16, 14, .55); color: var(--texto); }
.boton-secundario:hover { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.boton:focus-visible { clip-path: none; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(4rem, 10vw, 7rem) 0; }
.seccion-acero {
  background:
    linear-gradient(rgba(27, 28, 29, .97), rgba(27, 28, 29, .97)),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .5) 14px 15px);
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}
.dos-columnas {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 56rem) {
  .dos-columnas { grid-template-columns: 1.4fr 1fr; }
  /* En escritorio el arte ya muestra el nombre completo: el h1 queda solo para lectores de pantalla. */
  .hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.destacado {
  font-size: 1.25rem;
  color: var(--oro-claro);
  border-left: 3px solid var(--oxido);
  padding-left: 1rem;
}
.intro { max-width: 46rem; color: var(--texto-suave); }
.intro strong { color: var(--texto); }
.nota { color: var(--texto-suave); font-size: .95rem; margin-top: 1.5rem; }
.cian { color: var(--cian); }

.ficha {
  background: var(--fondo-acero);
  border: 1px solid var(--linea);
  border-top: 3px solid var(--oxido);
  padding: 1.5rem;
}
.ficha h3 { margin-bottom: 1rem; }
.ficha-pie { margin: 1rem 0 0; color: var(--texto-suave); font-size: .95rem; }

.lista-no, .lista-si { list-style: none; margin: 0; padding: 0; }
.lista-no li, .lista-si li { position: relative; padding-left: 1.75rem; margin-bottom: .7rem; }
.lista-no li::before {
  content: "✕";
  position: absolute; left: 0;
  color: var(--oxido);
  font-weight: 600;
}
.lista-si li::before {
  content: "";
  position: absolute; left: .2rem; top: .55em;
  width: .6rem; height: .6rem;
  background: var(--cian);
  transform: rotate(45deg);
}

/* Pilares */
.pilares {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.pilar {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--fondo);
  border: 1px solid var(--linea);
  transition: border-color .2s, transform .2s;
}
.pilar:hover { border-color: var(--oro); transform: translateY(-3px); }
.pilar-num {
  display: block;
  font-family: var(--titulo);
  font-size: 2rem;
  color: var(--oxido);
  line-height: 1;
  margin-bottom: .75rem;
}
.pilar h3 { margin-bottom: .6rem; color: var(--oro-claro); }
.pilar p { margin: 0; color: var(--texto-suave); }
.pilar strong { color: var(--cian); font-weight: 600; }

/* Pasos de saqueo */
.pasos { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: paso; }
.pasos li {
  counter-increment: paso;
  position: relative;
  padding: 0 0 1.1rem 3rem;
  border-left: 2px solid var(--linea);
  margin-left: 1rem;
}
.pasos li:last-child { border-left-color: transparent; }
.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: -1rem; top: -.15rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  background: var(--fondo);
  border: 2px solid var(--oro);
  font-family: var(--encabezado);
  color: var(--oro);
}
.pasos strong { color: var(--texto); font-family: var(--encabezado); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

.destinos { margin: 0; display: grid; gap: .1rem; }
.destinos div {
  display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--linea);
}
.destinos dt {
  min-width: 6.5rem;
  font-family: var(--encabezado);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--oro-claro);
}
.destinos dd { margin: 0; color: var(--texto-suave); }

/* Hoja de ruta */
.fases {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.fase {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--fondo);
  border: 1px solid var(--linea);
}
.fase-id {
  flex: none;
  font-family: var(--titulo);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--texto-suave);
  min-width: 2.4rem;
}
.fase h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.fase p { margin: 0; font-size: .95rem; color: var(--texto-suave); }
.fase-actual { border-color: var(--oro); box-shadow: inset 4px 0 0 var(--oro); }
.fase-actual .fase-id { color: var(--oro); }
.sello {
  display: inline-block;
  margin-left: .4rem;
  padding: .1rem .5rem;
  font-size: .72rem;
  letter-spacing: .12em;
  vertical-align: middle;
  color: var(--fondo);
  background: var(--cian);
}

.compuerta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px dashed var(--oro);
}
.compuerta h3 { margin-bottom: .6rem; color: var(--oro-claro); }
.decisiones {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.decisiones li {
  padding: .45rem .9rem;
  background: var(--fondo);
  border: 1px solid var(--linea);
  color: var(--texto-suave);
}
.decisiones strong { color: var(--texto); }

/* Testers */
.testers {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 164, 65, .16), transparent 65%),
    var(--fondo);
}
.testers-caja { max-width: 46rem; text-align: left; }
.testers .lista-si { margin: 1.5rem 0; }
.aviso {
  padding: .9rem 1rem;
  border-left: 3px solid var(--cian);
  background: rgba(95, 216, 227, .07);
  color: var(--texto);
  margin-bottom: 1.75rem;
}
.correo-texto { margin-top: 1.25rem; color: var(--texto-suave); font-size: .95rem; overflow-wrap: anywhere; }

/* Pie */
.pie {
  border-top: 1px solid var(--linea);
  padding: 2rem 0;
  font-size: .9rem;
  color: var(--texto-suave);
}
.pie-fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.pie p { margin: 0; }
.vista-id { font-size: .75rem; opacity: .8; }
.vista-id code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
}

/* Animaciones */
@keyframes acercar { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .pilar:hover { transform: none; }
}
