/* ============================================
   SOVEREIGN — landing editorial
   Mobile-first. Paleta: negro, blanco, gris.
   ============================================ */

:root {
  --bg: #050505;
  --ink: #f4f1ea;
  --ink-soft: rgba(244, 241, 234, 0.72);
  --ink-mute: rgba(244, 241, 234, 0.46);
  --line: rgba(244, 241, 234, 0.78);
  --veil: rgba(8, 7, 6, 0.28);
  --serif: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  min-height: 100dvh;
}

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

/* ---------- Escenario a pantalla completa ---------- */

.stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.frame {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding:
    calc(1.15rem + var(--safe-t))
    calc(1.25rem + var(--safe-r))
    calc(0.95rem + var(--safe-b))
    calc(1.25rem + var(--safe-l));
}

/* ---------- Carrusel / fondo ---------- */

.carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  overflow: hidden;
}

.carousel__slides {
  position: absolute;
  inset: -1.6%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 0;
  filter: blur(2.2px);
  transform: scale(1.04);
  transition: opacity 0.85s ease;
  will-change: opacity;
  pointer-events: none;
  user-select: none;
}

.carousel__slide.is-active {
  opacity: 1;
}

.carousel__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.12) 28%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.46) 100%);
  pointer-events: none;
}

/* ---------- Firma ---------- */

.brand {
  justify-self: start;
}

.brand__name,
.brand__role {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1.55;
  color: var(--ink);
}

.brand__role {
  color: var(--ink-soft);
  letter-spacing: 0.46em;
}

/* ---------- Título y modelo ---------- */

.hero {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-width: 0;
  padding-bottom: 4.5vh;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.55rem, calc((100vw - 2.7rem) / 6.7), 7.2rem);
  line-height: 0.88;
  letter-spacing: 0.028em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  max-width: 100%;
  font-optical-sizing: auto;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.18);
}

.hero__label {
  margin-top: 1.85rem;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero__model {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Botón de descarga ---------- */

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.15rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.download__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.download:active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.download:focus {
  outline: none;
}

.download:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

/* ---------- Pie e indicadores ---------- */

.meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
}

.meta__line {
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
}

.dots__item {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.28);
  transition: background-color 0.45s ease, transform 0.45s ease;
}

.dots__item.is-active {
  background: rgba(244, 241, 234, 0.92);
  transform: scale(1.12);
}

/* ---------- Móvil pequeño ---------- */

@media (max-width: 360px) {
  .hero__title {
    font-size: clamp(2.35rem, calc((100vw - 2.2rem) / 6.85), 3.1rem);
    letter-spacing: 0.02em;
  }

  .download {
    letter-spacing: 0.14em;
    padding-inline: 1rem;
  }
}

/* ---------- Móvil grande ---------- */

@media (min-width: 430px) {
  .frame {
    padding:
      calc(1.4rem + var(--safe-t))
      calc(1.6rem + var(--safe-r))
      calc(1.15rem + var(--safe-b))
      calc(1.6rem + var(--safe-l));
  }

  .hero {
    padding-bottom: 5.5vh;
  }
}

/* ---------- Tablet ---------- */

@media (min-width: 768px) {
  .carousel__slide {
    object-position: 50% 30%;
  }

  .brand__name,
  .brand__role {
    font-size: 0.68rem;
  }

  .hero {
    padding-bottom: 7vh;
  }

  .hero__title {
    font-size: clamp(5.4rem, 12vw, 8.2rem);
  }

  .hero__label {
    margin-top: 2.4rem;
  }

  .hero__model {
    font-size: 0.86rem;
  }

  .download {
    margin-top: 2.5rem;
    padding: 0.95rem 1.7rem;
  }

  .meta__line {
    font-size: 0.56rem;
    letter-spacing: 0.42em;
  }
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
  .carousel__slide {
    object-position: 50% 40%;
  }

  .frame {
    padding:
      calc(2.2rem + var(--safe-t))
      calc(3.2rem + var(--safe-r))
      calc(1.6rem + var(--safe-b))
      calc(3.2rem + var(--safe-l));
  }

  .hero {
    align-items: flex-start;
    text-align: left;
    padding-bottom: 8vh;
    max-width: 78vw;
  }

  .hero__title {
    font-size: clamp(7.2rem, 10.4vw, 11.4rem);
    letter-spacing: 0.06em;
  }

  .hero__label {
    margin-top: 2.7rem;
  }

  .hero__model {
    letter-spacing: 0.46em;
  }

  .download {
    margin-top: 2.8rem;
  }

  .download:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
  }

  .meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
  }

  .meta__line {
    text-align: left;
  }
}

/* ---------- Pantallas grandes / ultrawide ---------- */

@media (min-width: 1440px) {
  .frame {
    padding:
      calc(2.6rem + var(--safe-t))
      calc(4.4rem + var(--safe-r))
      calc(2rem + var(--safe-b))
      calc(4.4rem + var(--safe-l));
  }

  .hero {
    padding-bottom: 10vh;
  }

  .hero__title {
    font-size: clamp(9rem, 9.2vw, 13.5rem);
  }
}

@media (min-width: 1920px) {
  .hero__title {
    font-size: clamp(10rem, 8.4vw, 15rem);
  }
}

/* Landscape en teléfono: comprimir verticalmente, sin scroll */
@media (max-height: 480px) and (orientation: landscape) {
  .frame {
    padding:
      calc(0.7rem + var(--safe-t))
      calc(1.2rem + var(--safe-r))
      calc(0.55rem + var(--safe-b))
      calc(1.2rem + var(--safe-l));
  }

  .carousel__slide {
    object-position: 50% 40%;
  }

  .hero {
    padding-bottom: 0.4rem;
    align-items: flex-start;
    text-align: left;
  }

  .hero__title {
    font-size: clamp(2.4rem, 12vh, 4.4rem);
  }

  .hero__label {
    margin-top: 0.55rem;
  }

  .download {
    margin-top: 0.7rem;
    min-height: 40px;
    padding: 0.55rem 1.1rem;
  }

  .meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__slide {
    transition: none;
  }

  .dots__item,
  .download {
    transition: none;
  }
}
