:root {
  color-scheme: dark;
  --fondo: #080d13;
  --fondo-elevado: #101923;
  --fondo-suave: #0c141d;
  --texto: #f7f3e9;
  --texto-suave: #bcc6cc;
  --acento: #e7c27a;
  --acento-claro: #f5dba5;
  --energia: #73d9d0;
  --borde: rgb(190 213 219 / 18%);
  --ancho: 72rem;
  --radio: 1rem;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 28%, rgb(36 100 100 / 8%), transparent 28rem),
    var(--fondo);
  color: var(--texto);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1,
h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.06;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

strong {
  color: var(--texto);
  font-weight: 700;
}

:where(a, button, video):focus-visible {
  outline: 3px solid var(--acento-claro);
  outline-offset: 5px;
}

.contenedor {
  width: min(calc(100% - 3rem), var(--ancho));
  margin-inline: auto;
}

.salto {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: 0.35rem;
  background: var(--texto);
  color: var(--fondo);
  font-weight: 800;
}

.salto:focus {
  transform: translateY(0);
}

.cabecera {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--borde);
  background: rgb(8 13 19 / 88%);
  backdrop-filter: blur(18px);
}

.cabecera__interior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(calc(100% - 3rem), 80rem);
  min-height: 5.25rem;
  margin-inline: auto;
}

.marca {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  color: var(--texto);
  font-size: 0.94rem;
  font-weight: 850;
  letter-spacing: 0.19em;
  text-decoration: none;
}

.marca img {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--borde);
  border-radius: 0.7rem;
}

.navegacion {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.navegacion a {
  position: relative;
  padding-block: 0.65rem;
  color: var(--texto-suave);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.navegacion a::after {
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--acento);
  content: "";
  transition: transform 180ms ease;
}

.navegacion a:hover {
  color: var(--acento-claro);
}

.navegacion a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(41rem, 88svh, 56rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--borde);
}

.hero__imagen,
.hero__velo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__imagen {
  z-index: -2;
  object-fit: cover;
  object-position: 52% center;
  animation: revelar-imagen 1.8s ease-out both;
}

.hero__velo {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(5 10 15 / 94%) 0%, rgb(5 10 15 / 70%) 38%, rgb(5 10 15 / 8%) 72%),
    linear-gradient(0deg, rgb(8 13 19 / 96%) 0%, transparent 55%),
    linear-gradient(180deg, rgb(8 13 19 / 30%), transparent 25%);
}

.hero__contenido {
  padding-block: clamp(5rem, 10vh, 8rem) clamp(5rem, 10vh, 7rem);
  animation: revelar-contenido 900ms 150ms ease-out both;
}

.etiqueta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--acento);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.etiqueta__punto {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--energia);
  box-shadow: 0 0 1rem rgb(115 217 208 / 70%);
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 8.5vw, 7.6rem);
  letter-spacing: -0.055em;
  text-shadow: 0 0.15rem 2rem rgb(0 0 0 / 35%);
}

h1 span {
  display: block;
  max-width: 19ch;
  margin-top: 0.65rem;
  color: var(--acento-claro);
  font-size: clamp(1.6rem, 3.7vw, 3.25rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.hero__lema {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: #d4dcdf;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero__datos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 55rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__datos li {
  padding: 0.42rem 0.8rem;
  border: 1px solid rgb(231 194 122 / 28%);
  border-radius: 999px;
  background: rgb(8 13 19 / 52%);
  color: #e7e4dc;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}

.hero__datos li:first-child {
  border-color: rgb(231 194 122 / 55%);
  color: var(--acento-claro);
}

.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--acento);
  border-radius: 0.45rem;
  background: var(--acento);
  color: #191309;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.boton:hover {
  transform: translateY(-2px);
  border-color: var(--acento-claro);
  background: var(--acento-claro);
}

.boton:disabled {
  opacity: 0.65;
  cursor: wait;
}

.boton:disabled:hover {
  transform: none;
}

.boton--secundario {
  border-color: rgb(247 243 233 / 35%);
  background: rgb(8 13 19 / 40%);
  color: var(--texto);
  backdrop-filter: blur(8px);
}

.boton--secundario:hover {
  border-color: var(--texto);
  background: rgb(8 13 19 / 75%);
}

.hero__pie {
  position: absolute;
  right: 1.75rem;
  bottom: 2rem;
  margin: 0;
  color: rgb(247 243 233 / 58%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.seccion {
  padding-block: clamp(5rem, 10vw, 8rem);
  scroll-margin-top: 5rem;
}

.seccion--borde {
  border-block: 1px solid var(--borde);
  background: linear-gradient(135deg, rgb(16 25 35 / 90%), rgb(8 13 19 / 60%));
}

.seccion__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.seccion__lead {
  max-width: 37rem;
  margin: 0;
  color: var(--texto-suave);
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
}

.tarjetas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tarjeta {
  position: relative;
  min-width: 0;
  min-height: 17rem;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 3%), transparent 55%),
    var(--fondo-elevado);
  transition: border-color 200ms ease, transform 200ms ease;
}

.tarjeta:first-child {
  background:
    radial-gradient(circle at 90% 15%, rgb(231 194 122 / 16%), transparent 15rem),
    var(--fondo-elevado);
}

.tarjeta:hover {
  transform: translateY(-3px);
  border-color: rgb(231 194 122 / 45%);
}

.tarjeta__numero {
  margin-bottom: 2.5rem;
  color: var(--acento);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.tarjeta__cifra {
  margin: -1.25rem 0 0.25rem;
  color: var(--acento-claro);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 1;
}

.tarjeta h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.tarjeta > p:last-child {
  max-width: 30rem;
  margin-bottom: 0;
  color: var(--texto-suave);
}

.composicion {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.composicion > * {
  min-width: 0;
}

.imagen-marco {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(231 194 122 / 24%);
  border-radius: var(--radio);
  background: var(--fondo-elevado);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 30%);
}

.imagen-marco::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.imagen-marco img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.composicion__texto > p:not(.etiqueta) {
  color: var(--texto-suave);
}

.composicion__texto h2 {
  margin-bottom: 1.5rem;
}

.composicion__texto h3 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 500;
}

.origen-literario {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--borde);
  border-radius: 0.65rem;
  background: rgb(255 255 255 / 2%);
}

.origen-literario h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.origen-literario p:not(.etiqueta) {
  margin: 0.65rem 0 0;
  color: var(--texto-suave);
  font-size: 0.92rem;
}

.cronologia {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.cronologia li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--borde);
}

.cronologia li:last-child {
  border-bottom: 1px solid var(--borde);
}

.cronologia__marca {
  padding-top: 0.15rem;
  color: var(--acento);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cronologia h3 {
  margin-bottom: 0.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 750;
}

.cronologia p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.vinculos__cabecera {
  max-width: 58rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.vinculos__cabecera .etiqueta {
  justify-content: center;
}

.vinculos__cabecera h2 {
  margin-bottom: 1.5rem;
}

.vinculos__cabecera > p:last-child {
  max-width: 45rem;
  margin: 0 auto;
  color: var(--texto-suave);
  font-size: 1.08rem;
}

.imagen-marco--panoramica {
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 40%);
}

.linajes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.linajes li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--borde);
  border-radius: 0.55rem;
  background: var(--fondo-suave);
  font-size: 0.9rem;
  font-weight: 700;
}

.linajes span {
  color: var(--acento);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.composicion--compacta {
  margin-top: clamp(3rem, 7vw, 6rem);
}

.composicion--inversa .imagen-marco {
  order: 2;
}

.composicion--inversa .composicion__texto {
  order: 1;
}

.trailers {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
}

.trailer__cabecera {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.trailer__cabecera .etiqueta {
  margin-bottom: 0.5rem;
}

.trailer__cabecera h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
}

.trailer__numero {
  color: rgb(231 194 122 / 40%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1;
}

.video-marco {
  overflow: hidden;
  border: 1px solid rgb(231 194 122 / 28%);
  border-radius: var(--radio);
  background: #000;
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 38%);
}

.video-marco video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

.autor {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--borde);
  background: var(--fondo-suave);
  text-align: center;
}

.autor__interior .etiqueta {
  justify-content: center;
}

.autor__interior h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.autor__foto {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--acento);
  border-radius: 50%;
  object-fit: cover;
}

.autor__credito {
  margin: 1.5rem 0 0;
  color: var(--acento-claro);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 650;
}

.autor__bio {
  max-width: 48rem;
  margin: 1.25rem auto 0;
  color: var(--texto-suave);
  font-size: 1rem;
}

.apoyo {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem);
  border-block: 1px solid rgb(231 194 122 / 25%);
  background:
    radial-gradient(circle at 50% 0%, rgb(72 142 137 / 20%), transparent 32rem),
    linear-gradient(145deg, #111c25, #0a1119);
  text-align: center;
  scroll-margin-top: 5rem;
}

.apoyo__interior {
  max-width: 53rem;
}

.apoyo .etiqueta {
  justify-content: center;
}

.apoyo h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
}

.apoyo__interior > p:not(.etiqueta, .apoyo__feedback) {
  max-width: 41rem;
  margin: 1.5rem auto 0;
  color: var(--texto-suave);
  font-size: 1.05rem;
}

.apoyo__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.apoyo__red {
  margin: 0;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--borde);
  border-radius: 0.45rem;
  color: var(--texto-suave);
  font-size: 0.9rem;
  font-weight: 700;
}

.apoyo__feedback {
  min-height: 1.65rem;
  margin: 1rem 0 0;
  color: var(--acento-claro);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2rem;
  color: var(--texto-suave);
  font-size: 0.8rem;
}

.marca--pie {
  font-size: 0.8rem;
}

.pie p {
  margin: 0;
  text-align: right;
}

@keyframes revelar-imagen {
  from { opacity: 0.6; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes revelar-contenido {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 60rem) {
  .composicion {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .composicion--inversa .imagen-marco,
  .composicion--inversa .composicion__texto {
    order: initial;
  }

  .composicion--compacta .composicion__texto {
    max-width: 43rem;
  }

  .linajes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 47.5rem) {
  html {
    scroll-padding-top: 8.5rem;
  }

  .cabecera__interior {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    min-height: 0;
    padding-block: 0.65rem 0.35rem;
  }

  .cabecera .marca {
    align-self: center;
  }

  .cabecera .marca img {
    width: 2.1rem;
    height: 2.1rem;
  }

  .navegacion {
    justify-content: center;
    gap: 1.25rem;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .navegacion a {
    font-size: 0.78rem;
  }

  .hero__imagen {
    object-position: 62% center;
  }

  .hero__velo {
    background:
      linear-gradient(90deg, rgb(5 10 15 / 82%), rgb(5 10 15 / 20%)),
      linear-gradient(0deg, rgb(8 13 19 / 98%) 0%, rgb(8 13 19 / 45%) 65%, rgb(8 13 19 / 18%));
  }

  .hero__pie {
    display: none;
  }

  .seccion__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .tarjetas {
    grid-template-columns: minmax(0, 1fr);
  }

  .tarjeta {
    min-height: 0;
  }

  .tarjeta__numero {
    margin-bottom: 1.75rem;
  }

  .linajes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 35rem) {
  .contenedor,
  .cabecera__interior {
    width: min(calc(100% - 2rem), var(--ancho));
  }

  .navegacion {
    justify-content: flex-start;
  }

  .hero {
    min-height: 42rem;
  }

  .hero__contenido {
    padding-block: 4.5rem;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.5rem);
  }

  h1 span {
    font-size: clamp(1.45rem, 8vw, 2.2rem);
  }

  .hero__datos {
    align-items: flex-start;
  }

  .hero__datos li:first-child {
    width: 100%;
    border-radius: 0.6rem;
  }

  .hero__acciones .boton {
    flex: 1 1 10rem;
  }

  .vinculos__cabecera br {
    display: none;
  }

  .linajes li {
    padding-inline: 0.75rem;
  }

  .trailer__numero {
    display: none;
  }

  .pie {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .pie p {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
