* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --fondo: #080606;
  --linea: rgba(255, 255, 255, 0.13);
  --oro-oscuro: #6e4413;
  --oro-medio: #b8842c;
  --oro-claro: #ecc85e;
  --oro-brillo: #fdf3c2;
  --oro: #e8b04b;
  --tinta: #f2ede4;
  --gris: #b3aca0;
  --verde: #86d993;
  --vidrio: rgba(9, 6, 4, 0.55);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--fondo);
  color: var(--tinta);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

#escena {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oro);
}

.oroPulido {
  background: linear-gradient(105deg,
    var(--oro-oscuro) 0%,
    var(--oro-medio) 22%,
    var(--oro-claro) 38%,
    var(--oro-brillo) 50%,
    var(--oro-claro) 62%,
    var(--oro-medio) 78%,
    var(--oro-oscuro) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: destello 6s linear infinite;
}

@keyframes destello {
  from { background-position: 200% 0; }
  to { background-position: -20% 0; }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4vw;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

nav.solida {
  background: rgba(8, 6, 4, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--linea);
}

nav img {
  height: 52px;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

nav .enlaces {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav .enlaces a {
  display: none;
  color: var(--tinta);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

nav .enlaces a:hover {
  opacity: 1;
  color: var(--oro-claro);
}

@media (min-width: 820px) {
  nav .enlaces a {
    display: inline;
  }
}

.cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #241303;
  background: linear-gradient(165deg, #f9e9a8 0%, #e3b654 34%, #a87121 72%, #7c4f13 100%);
  border: 1px solid rgba(253, 243, 194, 0.55);
  border-radius: 2px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -6px 14px rgba(90, 55, 10, 0.45), 0 6px 22px rgba(216, 164, 65, 0.22);
  transition: filter 0.3s, transform 0.3s, box-shadow 0.3s;
}

.cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 14px rgba(90, 55, 10, 0.4), 0 8px 30px rgba(236, 200, 94, 0.35);
}

.cta.grande {
  padding: 16px 34px;
  font-size: 0.82rem;
}

.secundario {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinta);
  text-decoration: none;
  border: 1px solid rgba(232, 176, 75, 0.4);
  border-radius: 2px;
  padding: 12px 22px;
  background: rgba(9, 6, 4, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, color 0.3s;
}

.secundario:hover {
  border-color: var(--oro-claro);
  color: var(--oro-brillo);
}

#inicio {
  position: relative;
  height: 100vh;
  height: 100svh;
  z-index: 1;
}

.cubierta {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 4, 3, 0.74) 0%, rgba(6, 4, 3, 0.3) 46%, rgba(6, 4, 3, 0) 70%),
    linear-gradient(0deg, rgba(6, 4, 3, 0.55) 0%, rgba(6, 4, 3, 0) 30%);
  pointer-events: none;
}

.heroTexto {
  position: absolute;
  left: 6vw;
  bottom: 18vh;
  z-index: 4;
  max-width: 660px;
}

.heroTexto > * {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s ease, translate 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
}

body.lista .heroTexto > * {
  opacity: 1;
  translate: 0 0;
}

body.lista .heroTexto > *:nth-child(2) {
  transition-delay: 0.15s;
}

body.lista .heroTexto > *:nth-child(3) {
  transition-delay: 0.3s;
}

.heroTexto h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 18px 0 30px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.oroTexto {
  background: linear-gradient(105deg,
    var(--oro-medio) 0%,
    var(--oro-claro) 30%,
    var(--oro-brillo) 50%,
    var(--oro-claro) 70%,
    var(--oro-medio) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: destello 6s linear infinite;
}

.heroBotones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.indicio {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(242, 237, 228, 0.7);
  font-size: 2rem;
  text-decoration: none;
  animation: flotar 2.2s ease-in-out infinite;
  z-index: 5;
}

@keyframes flotar {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

body.cargando {
  overflow: hidden;
}

#velo {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, #191009, #080605 72%);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  pointer-events: none;
  z-index: 100;
  transition: opacity 1.4s ease;
}

#velo.oculto {
  opacity: 0;
}

.marca {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(3.4rem, 15vw, 7rem);
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  background: linear-gradient(105deg,
    #6e4413 0%,
    #b8842c 22%,
    #ecc85e 38%,
    #fdf3c2 50%,
    #ecc85e 62%,
    #b8842c 78%,
    #6e4413 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: destello 4.2s linear infinite;
  filter: drop-shadow(0 0 22px rgba(236, 200, 94, 0.28));
}

.lema {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: clamp(0.7rem, 2.4vw, 0.85rem);
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  text-transform: uppercase;
  color: #c9a054;
  opacity: 0.85;
}

.barra {
  margin-top: 26px;
  width: min(240px, 58vw);
  height: 2px;
  background: rgba(201, 160, 84, 0.16);
  overflow: hidden;
}

#progreso {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #b8842c, #fdf3c2);
  transition: width 0.35s ease;
}

.marco {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  border-left: 1px solid var(--linea);
  border-right: 1px solid var(--linea);
}

.bloque {
  border-top: 1px solid var(--linea);
  padding: 72px 5vw;
  background: var(--vidrio);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.bloque > .mono {
  margin-bottom: 16px;
}

.titulo {
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  letter-spacing: -0.015em;
  margin-bottom: 46px;
  background: linear-gradient(105deg,
    var(--oro-oscuro) 0%,
    var(--oro-medio) 22%,
    var(--oro-claro) 38%,
    var(--oro-brillo) 50%,
    var(--oro-claro) 62%,
    var(--oro-medio) 78%,
    var(--oro-oscuro) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: destello 6.5s linear infinite;
}

.titulo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.titulo.visible span {
  opacity: 1;
  transform: none;
}

.dosColumnas {
  display: grid;
  gap: 44px;
}

@media (min-width: 860px) {
  .dosColumnas {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .dosColumnas > div {
    padding-right: 44px;
  }
  .dosColumnas > div + div {
    border-left: 1px solid var(--linea);
    padding-left: 44px;
    padding-right: 0;
  }
}

.texto {
  color: var(--gris);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 54ch;
  margin-top: 14px;
}

.terminal {
  list-style: none;
  margin-top: 18px;
}

.terminal li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--gris);
  padding: 7px 0;
}

.terminal li::before {
  content: '● ';
  color: var(--verde);
  font-size: 0.7rem;
}

.collage {
  position: relative;
  height: min(70vh, 600px);
}

.tarjeta {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(140px, 23%, 220px);
  aspect-ratio: 3 / 4;
  z-index: var(--z);
  transform: rotate(var(--rot)) scale(var(--esc));
  transition: left 0.85s cubic-bezier(0.22, 0.85, 0.25, 1),
    top 0.85s cubic-bezier(0.22, 0.85, 0.25, 1),
    transform 0.85s cubic-bezier(0.22, 0.85, 0.25, 1),
    filter 0.6s ease,
    box-shadow 0.6s ease;
  filter: brightness(0.55) saturate(0.9);
  border: 1px solid var(--linea);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.collage.viva .tarjeta {
  animation: llegar 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) backwards;
  animation-delay: var(--espera);
}

@keyframes llegar {
  from {
    opacity: 0;
    translate: 0 44px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.tarjeta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tarjeta.protagonista {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.5);
  z-index: 130;
  filter: none;
  border-color: rgba(236, 200, 94, 0.6);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65), 0 0 44px rgba(232, 176, 75, 0.3);
}

@media (max-width: 700px) {
  .tarjeta {
    width: 34%;
  }
  .tarjeta.protagonista {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.75);
  }
}

.centrado {
  text-align: center;
}

.centrado .titulo {
  margin-bottom: 18px;
}

.sub {
  margin: 0 auto 32px;
}

.aparece {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.aparece.visible {
  opacity: 1;
  transform: none;
}

.franjaDatos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding: 0;
}

.franjaDatos > div {
  padding: 26px 5vw;
  border-top: 1px solid var(--linea);
}

@media (min-width: 820px) {
  .franjaDatos > div {
    border-top: none;
    padding: 28px 30px;
  }
  .franjaDatos > div + div {
    border-left: 1px solid var(--linea);
  }
}

.dato {
  margin-top: 10px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--tinta);
}

.dato a {
  color: var(--tinta);
  text-decoration: none;
  transition: color 0.3s;
}

.dato a:hover {
  color: var(--oro-claro);
}

footer {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid var(--linea);
  border-bottom: none;
  text-align: center;
  padding: 52px 5vw 40px;
  background: rgba(8, 6, 4, 0.68);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

#logoPie {
  height: 78px;
  opacity: 0.95;
  cursor: pointer;
}

.derechos {
  margin-top: 20px;
  color: rgba(179, 172, 160, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .marca,
  .indicio,
  .titulo,
  .oroTexto {
    animation: none;
  }
}

@media (max-width: 700px) {
  nav {
    padding: 12px 4vw;
  }
  nav img {
    height: 42px;
  }
  .cta {
    padding: 11px 16px;
    font-size: 0.7rem;
  }
  .heroTexto {
    left: 6vw;
    right: 6vw;
    bottom: 14vh;
    max-width: none;
  }
  .bloque {
    padding: 56px 6vw;
    background: rgba(8, 6, 4, 0.74);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  footer {
    background: rgba(8, 6, 4, 0.8);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .collage {
    height: 62 vh;
  }
  .dosColumnas {
    gap: 36px;
  }
  .ventana input,
  .ventana textarea {
    font-size: 1 rem;
  }
}