@font-face {
  font-family: "Manrope";
  src: url("assets/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --ink: #191d1b;
  --ink-deep: #080d0b;
  --ink-soft: #101613;
  --cream: #f7f6f3;
  --surface: #ffffff;
  --muted: #6c7370;
  --muted-dark: #aeb5b1;
  --line: #e8e6e0;
  --green: #0b9155;
  --green-bright: #2fcb85;
  --green-soft: #e4f3eb;
  --shell: min(1440px, calc(100% - 80px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink-deep);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--cream);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  min-height: 700px;
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 70% 45%, rgba(20, 179, 108, 0.13), transparent 27%),
    radial-gradient(circle at 32% 77%, rgba(47, 203, 133, 0.07), transparent 28%),
    linear-gradient(115deg, var(--ink-deep) 0%, var(--ink-soft) 56%, #070b09 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero-glow--one {
  width: 460px;
  height: 460px;
  right: 18%;
  bottom: -260px;
  background: rgba(47, 203, 133, 0.14);
}

.hero-glow--two {
  width: 260px;
  height: 260px;
  left: 17%;
  bottom: -160px;
  background: rgba(11, 145, 85, 0.12);
}

.site-header {
  min-height: 96px;
  position: relative;
  z-index: 20;
  display: grid;
  /* Cuatro columnas y no tres: la marca, el menú, el botón de entrar y el
     compañero. El botón necesita su propia celda para no depender del menú. */
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand-word {
  display: inline-flex;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-o {
  color: var(--green-bright);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.site-nav a {
  position: relative;
  /* Sin esto, al añadir el botón de entrar «Cómo funciona» se partía en dos
     líneas alrededor de 768 px y descuadraba la cabecera entera. */
  white-space: nowrap;
  color: var(--muted-dark);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cream);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.portal-login {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border: 1px solid rgba(27, 214, 135, 0.45);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(27, 214, 135, 0.10);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.portal-login:hover {
  border-color: var(--green-bright);
  background: rgba(27, 214, 135, 0.18);
  transform: translateY(-1px);
}

.portal-login:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
}

.companion-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 17px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  color: #c5cbc7;
  background: rgba(255, 255, 255, 0.055);
  font-size: 11px;
  line-height: 1.24;
}

.companion-chip img {
  width: 48px;
  height: 48px;
  border: 2px solid var(--green);
  border-radius: 50%;
  object-fit: cover;
}

.menu-toggle {
  display: none;
}

.hero-layout {
  min-height: 604px;
  display: grid;
  grid-template-columns: minmax(440px, 0.88fr) minmax(560px, 1.12fr);
  align-items: center;
  gap: 12px;
}

.hero-copy {
  position: relative;
  z-index: 10;
  padding: 16px 0 80px 30px;
}

.device-pill {
  display: inline-flex;
  margin-bottom: 30px;
  padding: 7px 13px;
  border: 1px solid #10bd70;
  border-radius: 999px;
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 500;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(54px, 5vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero h1 span {
  color: #16c77a;
}

.mobile-only-break {
  display: none;
}

.hero-copy > p {
  margin: 27px 0 42px;
  color: var(--muted-dark);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.45;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  min-height: 68px;
  padding: 8px 9px 8px 27px;
  border-radius: 999px;
  color: #07100c;
  background: linear-gradient(95deg, #1bd687, #10bb6e);
  box-shadow: 0 16px 36px rgba(11, 145, 85, 0.2);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}

.primary-cta:hover {
  box-shadow: 0 20px 48px rgba(18, 203, 123, 0.28);
  transform: translateY(-3px);
}

.primary-cta:active {
  transform: scale(0.97);
}

.primary-cta:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 5px;
}

.primary-cta__arrow {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-bright);
  background: #0b1c14;
  font-size: 27px;
  font-weight: 500;
}

.product-stage {
  align-self: end;
  height: 604px;
  position: relative;
  min-width: 0;
}

.product-stage::before {
  content: "";
  position: absolute;
  width: 590px;
  height: 590px;
  left: 8%;
  top: -4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255,255,255,.14), transparent 17%),
    radial-gradient(circle, rgba(38, 198, 128, .16), transparent 66%);
  filter: blur(5px);
}

.product-shadow {
  position: absolute;
  z-index: 1;
  right: -4%;
  bottom: 1px;
  left: 3%;
  height: 72px;
  background:
    radial-gradient(ellipse at 52% 42%, rgba(0,0,0,.82), transparent 62%),
    radial-gradient(ellipse, rgba(47,203,133,.18), transparent 70%);
  filter: blur(12px);
}

.phone,
.cinema-phone {
  position: absolute;
  overflow: visible;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(232,239,235,.52);
  border-radius: 50px;
  background:
    linear-gradient(145deg, #aeb6b2 0%, #3c423f 8%, #111513 24%, #050706 53%, #313734 82%, #929a96 96%, #d7ddda 100%);
  isolation: isolate;
  transform-style: preserve-3d;
  box-shadow:
    0 52px 92px rgba(0,0,0,.43),
    0 18px 34px rgba(0,0,0,.28),
    -3px 0 8px rgba(255,255,255,.12),
    4px 0 10px rgba(0,0,0,.42),
    inset 0 0 0 1px rgba(255,255,255,.34),
    inset 0 0 0 3px rgba(0,0,0,.5);
}

.phone::before,
.cinema-phone::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 8px;
  border-radius: 41px;
  background:
    linear-gradient(118deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.08) 16%, transparent 39%),
    linear-gradient(300deg, rgba(255,255,255,.09), transparent 28%);
  opacity: .34;
  pointer-events: none;
}

.phone::after,
.cinema-phone::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 6px;
  border: 1px solid rgba(0,0,0,.9);
  border-radius: 43px;
  box-shadow:
    inset 10px 0 18px rgba(255,255,255,.045),
    inset -10px 0 18px rgba(0,0,0,.16),
    0 0 0 1px rgba(255,255,255,.06);
  pointer-events: none;
}

.phone img,
.cinema-phone img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 41px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.phone-button {
  position: absolute;
  z-index: 0;
  display: block;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, #777e7a, #171b19 20% 82%, #555b58);
  box-shadow: 0 3px 7px rgba(0,0,0,.48);
}

.phone-button--action {
  top: 27%;
  right: -5px;
  width: 5px;
  height: 58px;
  border-radius: 0 4px 4px 0;
}

.phone-button--volume {
  top: 24%;
  left: -5px;
  width: 5px;
  height: 44px;
  border-radius: 4px 0 0 4px;
  box-shadow:
    0 61px 0 -1px #242926,
    0 3px 7px rgba(0,0,0,.48);
}

.dynamic-island {
  position: absolute;
  z-index: 4;
  top: 11px;
  left: 50%;
  width: 34%;
  height: 24px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 1px rgba(255,255,255,.22),
    0 1px 4px rgba(0,0,0,.46);
}

.phone--map {
  z-index: 3;
  width: 326px;
  height: 706px;
  left: 8%;
  top: -15px;
  transform: perspective(1400px) rotateY(5deg) rotateZ(-1.5deg);
  transform-origin: center bottom;
}

.phone--strength {
  z-index: 4;
  width: 266px;
  height: 576px;
  right: 1%;
  top: 95px;
  transform: perspective(1400px) rotateY(-8deg) rotateZ(4.3deg);
  transform-origin: center bottom;
}

.apple-watch {
  position: absolute;
  z-index: 7;
  width: 194px;
  height: 390px;
  margin: 0;
  filter: drop-shadow(0 34px 32px rgba(0, 0, 0, .5));
}

.apple-watch--hero {
  right: -7%;
  top: 250px;
  transform: rotate(2.5deg);
}

.watch-band {
  position: absolute;
  z-index: 0;
  left: 40px;
  width: 114px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 16% 80%, rgba(255,255,255,.05)),
    linear-gradient(180deg, #222423, #0d0f0e);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 18px rgba(255,255,255,.045);
}

.watch-band--top {
  top: 0;
  height: 130px;
  border-radius: 52px 52px 23px 23px;
  transform: perspective(140px) rotateX(-4deg);
}

.watch-band--bottom {
  bottom: 0;
  height: 137px;
  border-radius: 23px 23px 58px 58px;
  transform: perspective(140px) rotateX(4deg);
}

.watch-case {
  position: absolute;
  z-index: 3;
  top: 92px;
  left: 0;
  width: 194px;
  height: 228px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 55px;
  background:
    linear-gradient(135deg, #4d504e 0%, #171918 34%, #080908 71%, #3a3d3b 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.75),
    inset 0 0 0 3px rgba(255,255,255,.09),
    0 10px 22px rgba(0,0,0,.42);
}

.watch-screen {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border: 2px solid #020302;
  border-radius: 47px;
  background: #000;
  box-shadow: inset 0 0 18px rgba(255,255,255,.055);
}

.watch-screen img {
  width: 108%;
  height: 108%;
  max-width: none;
  display: block;
  object-fit: cover;
  transform: translate(-4%, -4%);
}

.watch-crown {
  position: absolute;
  z-index: 2;
  top: 143px;
  right: -12px;
  width: 16px;
  height: 43px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #282b29 0 2px, #0b0c0c 2px 3px);
  box-shadow: 3px 4px 12px rgba(0,0,0,.6);
}

.watch-button {
  position: absolute;
  z-index: 1;
  top: 205px;
  right: -6px;
  width: 8px;
  height: 35px;
  border-radius: 0 5px 5px 0;
  background: #262927;
}

.loop-section {
  position: relative;
  overflow: hidden;
  padding: 74px 0 66px;
  background:
    radial-gradient(circle at 73% 38%, rgba(47,203,133,.11), transparent 24%),
    radial-gradient(circle at 86% 76%, rgba(11,145,85,.07), transparent 27%),
    linear-gradient(145deg, #fbfaf7 0%, #f5f4ef 61%, #eef5f1 100%);
}

.loop-layout {
  min-height: 682px;
  display: grid;
  grid-template-columns: minmax(260px, .67fr) minmax(760px, 2.33fr);
  align-items: center;
  gap: 18px;
}

.loop-copy {
  position: relative;
  z-index: 8;
  padding: 0 0 20px 16px;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.loop-copy h2,
.closing h2 {
  margin: 21px 0 18px;
  font-size: clamp(35px, 3.2vw, 49px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 800;
}

.loop-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.scene-legend {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.scene-legend span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #424946;
  font-size: 12px;
  font-weight: 700;
}

.scene-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 5px rgba(47,203,133,.11);
}

.phone-scene {
  position: relative;
  z-index: 4;
  min-width: 0;
  height: 682px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.scene-halo {
  position: absolute;
  z-index: 0;
  top: 51%;
  left: 53%;
  width: 610px;
  height: 460px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.72), transparent 20%),
    radial-gradient(ellipse, rgba(32,194,121,.22), rgba(32,194,121,.04) 43%, transparent 72%);
  filter: blur(24px);
  transform: translate(-50%, -50%);
}

.scene-floor {
  position: absolute;
  z-index: 1;
  right: 1%;
  bottom: 3px;
  left: 1%;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(5,16,11,.36), transparent 61%),
    radial-gradient(ellipse, rgba(25,198,118,.22), transparent 48%);
  filter: blur(15px);
  transform: perspective(260px) rotateX(61deg);
}

.cinema-phone {
  scroll-margin-top: 24px;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1), filter 500ms ease;
}

.phone-scene:hover .cinema-phone--strength {
  transform: perspective(1250px) rotateY(10deg) rotateZ(-8deg) translate3d(-9px, -8px, -14px);
}

.phone-scene:hover .cinema-phone--map {
  transform: translateX(-50%) perspective(1250px) rotateX(.6deg) translate3d(0, -12px, 52px);
}

.phone-scene:hover .cinema-phone--progress {
  transform: perspective(1250px) rotateY(-9deg) rotateZ(7deg) translate3d(9px, -7px, -8px);
}

.cinema-phone--strength {
  z-index: 2;
  top: 87px;
  left: 5%;
  width: 258px;
  height: 561px;
  filter: saturate(.96) brightness(.99);
  transform: perspective(1250px) rotateY(12deg) rotateZ(-10deg) translateZ(-30px);
  transform-origin: right bottom;
}

.cinema-phone--map {
  z-index: 5;
  top: 20px;
  left: 50%;
  width: 292px;
  height: 635px;
  transform: translateX(-50%) perspective(1250px) rotateX(.6deg) translateZ(48px);
  box-shadow:
    0 62px 100px rgba(0,0,0,.39),
    0 19px 38px rgba(0,0,0,.24),
    0 0 58px rgba(31,197,121,.14),
    inset 0 0 0 1px rgba(255,255,255,.34),
    inset 0 0 0 3px rgba(0,0,0,.5);
}

.cinema-phone--progress {
  z-index: 3;
  top: 82px;
  right: 4%;
  width: 263px;
  height: 572px;
  filter: saturate(.97) brightness(.99);
  transform: perspective(1250px) rotateY(-11deg) rotateZ(9deg) translateZ(-18px);
  transform-origin: left bottom;
}

.loop-light {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}

.loop-light--one {
  top: 80px;
  right: 19%;
  width: 270px;
  height: 270px;
  background: rgba(47,203,133,.1);
}

.loop-light--two {
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  background: rgba(11,145,85,.08);
}

.closing {
  padding: 80px 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 70% 50%, rgba(47,203,133,.11), transparent 29%),
    var(--ink-soft);
}

.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.closing h2 {
  max-width: 750px;
  margin-bottom: 0;
  color: var(--cream);
  font-size: clamp(42px, 4.4vw, 67px);
  white-space: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.eyebrow--dark {
  color: var(--green-bright);
}

.primary-cta--light {
  flex: 0 0 auto;
}

.site-footer {
  color: #acb3af;
  background: var(--ink-deep);
}

.site-footer__inner {
  min-height: 130px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand--footer .brand-word {
  font-size: 25px;
}

.brand--footer img {
  width: 36px;
  height: 36px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.site-footer__inner > a:last-child {
  font-size: 13px;
  text-decoration-color: rgba(255,255,255,.25);
  text-underline-offset: 5px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1260px) {
  :root {
    --shell: min(1140px, calc(100% - 48px));
  }

  .site-header {
    gap: 36px;
  }

  .companion-chip {
    display: none;
  }

  .site-header {
    /* Tres columnas y no dos: al esconderse el compañero, el botón de entrar
       ocupa su sitio. Con dos se caía a una segunda fila y quedaba huérfano
       debajo de la marca. */
    grid-template-columns: auto 1fr auto;
  }

  .hero-layout {
    grid-template-columns: minmax(390px, .84fr) minmax(500px, 1.16fr);
  }

  .hero-copy {
    padding-left: 0;
  }

  .phone--map {
    left: 2%;
  }

  .apple-watch--hero {
    right: -9%;
    transform: scale(.88) rotate(2.5deg);
    transform-origin: center bottom;
  }

  .loop-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 10px;
  }

  .cinema-phone--strength {
    left: 2%;
    width: 238px;
    height: 517px;
  }

  .cinema-phone--map {
    width: 278px;
    height: 604px;
  }

  .cinema-phone--progress {
    right: 1%;
    width: 243px;
    height: 528px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 650px;
  }

  .site-nav {
    gap: 20px;
  }

  .site-header {
    gap: 24px;
  }

  .portal-login {
    padding: 0 16px;
    font-size: 14px;
  }

  .hero-layout {
    min-height: 554px;
    grid-template-columns: 46% 54%;
  }

  .hero h1 {
    font-size: clamp(42px, 6vw, 58px);
  }

  .hero-copy > p {
    margin-bottom: 30px;
  }

  .product-stage {
    height: 554px;
  }

  .phone--map {
    width: 255px;
    height: 552px;
  }

  .phone--strength {
    width: 205px;
    height: 444px;
    right: 5%;
    top: 92px;
  }

  .apple-watch--hero {
    right: -13%;
    top: 270px;
    transform: scale(.72) rotate(2.5deg);
  }

  .loop-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .loop-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 18px 40px;
    padding-top: 0;
  }

  .loop-copy .eyebrow {
    grid-column: 1 / -1;
  }

  .loop-copy h2 {
    margin: 0;
  }

  .scene-legend {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 6px;
  }

  .phone-scene {
    width: min(850px, 100%);
    height: 650px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 32px, 680px);
  }

  .site-header {
    min-height: 82px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 16px;
  }

  .brand img {
    width: 39px;
    height: 39px;
  }

  .brand-word {
    font-size: 27px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
    color: var(--cream);
    background: rgba(255,255,255,.055);
  }

  html.menu-ready .menu-toggle {
    display: grid;
  }

  .menu-toggle__line {
    width: 19px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .portal-login {
    order: 2;
    /* Se queda en 44 px: es el mínimo para tocarlo con el dedo sin fallar, y
       lo mismo que mide la hamburguesa que tiene al lado. Se estrecha por los
       lados, no por arriba. */
    min-height: 44px;
    padding: 0 15px;
    font-size: 14px;
  }

  .site-nav {
    position: static;
    order: 3;
    width: 100%;
    display: flex;
    gap: 4px;
    padding: 3px 0 10px;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  html.menu-ready .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    order: initial;
    width: auto;
    display: grid;
    gap: 0;
    padding: 10px;
    overflow: visible;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background: rgba(15,22,18,.98);
    box-shadow: 0 24px 50px rgba(0,0,0,.36);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  html.menu-ready .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: rgba(255,255,255,.05);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 1050px;
  }

  .hero-layout {
    min-height: 0;
    display: block;
  }

  .hero-copy {
    padding: 38px 0 0;
  }

  .device-pill {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(42px, 11.6vw, 56px);
    line-height: 1.01;
  }

  .hero h1 span {
    display: block;
    margin-top: 4px;
  }

  .mobile-only-break {
    display: block;
  }

  .hero-copy > p {
    margin: 21px 0 27px;
    font-size: 16px;
  }

  .primary-cta {
    width: min(100%, 330px);
    min-height: 60px;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 7px 7px 22px;
    font-size: 16px;
  }

  .primary-cta__arrow {
    width: 46px;
    height: 46px;
  }

  .product-stage {
    height: 585px;
    margin-top: 34px;
  }

  .phone--map {
    width: 232px;
    height: 504px;
    left: 50%;
    top: 0;
    transform: translateX(-67%) perspective(1100px) rotateY(4deg) rotateZ(-2deg);
  }

  .phone--strength {
    width: 160px;
    height: 347px;
    right: 8%;
    top: 80px;
    transform: perspective(1100px) rotateY(-7deg) rotateZ(4deg);
  }

  .apple-watch--hero {
    right: 10%;
    top: 295px;
    transform: scale(.5) rotate(2.5deg);
    transform-origin: top right;
  }

  .loop-section {
    padding: 70px 0 52px;
  }

  .loop-copy {
    display: block;
    padding-left: 0;
  }

  .loop-copy h2 {
    margin: 18px 0;
  }

  .scene-legend {
    display: flex;
    gap: 12px 24px;
    margin-top: 28px;
  }

  .phone-scene {
    width: 100%;
    height: 520px;
    min-height: 0;
    display: block;
    margin-top: 24px;
    padding: 0;
    perspective: 1100px;
  }

  .scene-halo,
  .scene-floor {
    display: block;
  }

  .cinema-phone {
    position: absolute;
    width: 178px;
    height: 387px;
  }

  .cinema-phone--strength {
    z-index: 2;
    top: 86px;
    left: 1%;
    margin-left: 0;
    transform: perspective(1100px) rotateY(11deg) rotateZ(-8deg) translateZ(-24px);
  }

  .cinema-phone--map {
    z-index: 5;
    top: 18px;
    left: 50%;
    width: 210px;
    height: 456px;
    margin-right: 0;
    transform: translateX(-50%) perspective(1100px) translateZ(36px);
  }

  .cinema-phone--progress {
    z-index: 3;
    top: 84px;
    right: 1%;
    left: auto;
    margin-left: 0;
    transform: perspective(1100px) rotateY(-10deg) rotateZ(8deg) translateZ(-16px);
  }

  .phone-scene:hover .cinema-phone--strength {
    transform: perspective(1100px) rotateY(11deg) rotateZ(-8deg) translateZ(-24px);
  }

  .phone-scene:hover .cinema-phone--map {
    transform: translateX(-50%) perspective(1100px) translateZ(36px);
  }

  .phone-scene:hover .cinema-phone--progress {
    transform: perspective(1100px) rotateY(-10deg) rotateZ(8deg) translateZ(-16px);
  }

  .closing {
    padding: 65px 0;
  }

  .closing-inner {
    display: block;
  }

  .closing h2 {
    margin-bottom: 32px;
    font-size: clamp(38px, 10.5vw, 45px);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 35px 0;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 1010px;
  }

  .hero h1 {
    font-size: clamp(41px, 11.2vw, 45px);
  }

  .product-stage {
    height: 510px;
  }

  .phone,
  .cinema-phone {
    padding: 5px;
    border-width: 1px;
    border-radius: 38px;
  }

  .phone img,
  .cinema-phone img {
    border-radius: 32px;
  }

  .phone::before,
  .cinema-phone::before {
    inset: 6px;
    border-radius: 32px;
  }

  .phone::after,
  .cinema-phone::after {
    inset: 4px;
    border-radius: 34px;
  }

  .dynamic-island {
    height: 18px;
    top: 8px;
  }

  .phone--map {
    width: 216px;
    height: 469px;
    left: 50%;
    transform: translateX(-70%) perspective(1050px) rotateY(4deg) rotateZ(-2deg);
  }

  .phone--strength {
    width: 146px;
    height: 317px;
    right: 8%;
    top: 82px;
    transform: perspective(1050px) rotateY(-7deg) rotateZ(4deg);
  }

  .apple-watch--hero {
    right: 14%;
    top: 292px;
    transform: scale(.46) rotate(2.5deg);
  }

  .loop-copy h2 {
    font-size: 35px;
  }

  .closing h2 {
    font-size: 36px;
  }

  .phone-scene {
    height: 480px;
  }

  .cinema-phone {
    width: 154px;
    height: 335px;
  }

  .cinema-phone--strength {
    top: 88px;
    left: 1%;
  }

  .cinema-phone--map {
    top: 20px;
    left: 50%;
    width: 192px;
    height: 417px;
  }

  .cinema-phone--progress {
    top: 88px;
    right: 1%;
  }
}

@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;
  }

  .reveal,
  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
}
