:root {
  color-scheme: dark;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: #061a3a;
  color: #f7fbff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  background: #061a3a;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 2%) 0.0625rem, transparent 0.0625rem),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 0.0625rem, transparent 0.0625rem),
    linear-gradient(145deg, #061a3a 0%, #08224c 48%, #0b2a5c 100%);
  background-size: 3.5rem 3.5rem, 3.5rem 3.5rem, auto;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: min(42rem, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  will-change: transform, opacity;
}

body::before {
  top: -18rem;
  left: -15rem;
  background: radial-gradient(circle, rgb(45 132 255 / 31%) 0%, rgb(27 105 218 / 12%) 40%, transparent 70%);
  animation: halo-azul 24s ease-in-out infinite alternate;
}

body::after {
  right: -18rem;
  bottom: -22rem;
  background: radial-gradient(circle, rgb(240 134 39 / 18%) 0%, rgb(240 134 39 / 7%) 42%, transparent 70%);
  animation: halo-ambar 28s ease-in-out infinite alternate;
}

.selector {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1rem, 4vw, 2.75rem) 2rem;
}

.encabezado {
  max-width: 45rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  animation: entrada-suave 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.etiqueta {
  width: fit-content;
  margin: 0 auto 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.72rem;
  border: 0.0625rem solid rgb(158 199 255 / 36%);
  border-radius: 999rem;
  background: rgb(5 24 54 / 58%);
  color: #bcd8ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.etiqueta img {
  flex: 0 0 auto;
}

h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.introduccion {
  margin: 1rem 0 0;
  color: #c9ddfb;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

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

.tarjeta {
  position: relative;
  min-width: 0;
  min-height: 23rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 0.125rem solid rgb(206 224 248 / 78%);
  border-radius: 1.45rem;
  background: #ffffff;
  color: #082859;
  text-decoration: none;
  box-shadow: 0 1.5rem 4rem rgb(0 7 24 / 32%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: entrada-tarjeta 720ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.tarjeta-camiones {
  animation-delay: 120ms;
}

.tarjeta-marioja {
  animation-delay: 230ms;
}

.tarjeta:focus-visible {
  z-index: 1;
  border-color: #ffd36c;
  outline: 0.25rem solid #fff1bd;
  outline-offset: 0.3rem;
  transform: translateY(-0.5rem);
}

.tarjeta-camiones:focus-visible {
  box-shadow: 0 1.8rem 4.5rem rgb(20 88 179 / 38%), 0 0 0 0.0625rem #d3282f;
}

.tarjeta-marioja:focus-visible {
  box-shadow: 0 1.8rem 4.5rem rgb(240 134 39 / 37%), 0 0 0 0.0625rem #f5a04d;
}

.marca {
  min-height: 17rem;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #ffffff;
}

.marca img {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: contain;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tarjeta-marioja .marca img {
  height: 15rem;
}

.accion {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  padding: 1rem 1.25rem;
  background: #082859;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
}

.accion img {
  flex: 0 0 auto;
  transition: transform 220ms ease;
}

.tarjeta-marioja .accion {
  background: #8c3b00;
}

.descarga {
  margin-top: clamp(2.25rem, 5vw, 4rem);
  overflow: hidden;
  border: 0.0625rem solid rgb(151 190 241 / 35%);
  border-radius: 1.45rem;
  background: rgb(5 22 48 / 88%);
  box-shadow: 0 1.5rem 4rem rgb(0 7 24 / 30%);
  animation: entrada-suave 720ms 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@supports (backdrop-filter: blur(0.75rem)) {
  .descarga {
    background: rgb(5 22 48 / 74%);
    backdrop-filter: blur(0.75rem);
  }
}

.descarga-contenido {
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  text-align: center;
}

.descarga .etiqueta {
  border-color: rgb(255 207 117 / 40%);
  background: rgb(112 55 6 / 25%);
  color: #ffd78d;
}

.descarga-introduccion {
  margin: 0.85rem 0 1.65rem;
  color: #c9ddfb;
  line-height: 1.65;
}

.boton-descarga {
  position: relative;
  width: min(100%, 33rem);
  min-height: 4.65rem;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1.35rem;
  border: 0.125rem solid #5aa5eb;
  border-radius: 0.9rem;
  background: #0e4f8a;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 0.9rem 2rem rgb(0 8 24 / 35%);
  transition: transform 180ms ease;
}

.boton-descarga::after {
  position: absolute;
  inset: -45% auto -45% -35%;
  width: 22%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 42%), transparent);
  transform: translateX(-180%) rotate(14deg);
  transition: transform 620ms ease;
}

.boton-descarga:focus-visible,
summary:focus-visible {
  outline: 0.25rem solid #fff1bd;
  outline-offset: 0.25rem;
}

.boton-descarga:focus-visible {
  transform: translateY(-0.18rem);
}

.boton-descarga img {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.boton-descarga span {
  position: relative;
  z-index: 1;
}

.descarga-meta {
  margin: 1rem 0 0;
  color: #d8e8ff;
  font-weight: 700;
}

.aviso-windows {
  max-width: 46rem;
  margin: 1rem auto 0;
  color: #f6d99d;
  font-size: 0.94rem;
  line-height: 1.6;
}

.detalles-descarga {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}

details {
  min-width: 0;
  border: 0.0625rem solid rgb(159 193 236 / 27%);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 7%);
  color: #d8e8ff;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  color: #ffffff;
  font-weight: 800;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 auto;
  border-right: 0.125rem solid #9fc6f5;
  border-bottom: 0.125rem solid #9fc6f5;
  content: "";
  transform: rotate(45deg) translate(-0.1rem, -0.1rem);
  transition: transform 180ms ease;
}

details[open] summary::after {
  transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

details p,
details ul,
details code {
  margin: 0 1rem 0.85rem;
}

details ul {
  padding-left: 1.25rem;
  line-height: 1.6;
}

details code {
  display: block;
  max-width: calc(100% - 2rem);
  overflow-wrap: anywhere;
  padding: 0.7rem;
  border: 0.0625rem solid rgb(159 193 236 / 20%);
  border-radius: 0.45rem;
  background: #041329;
  color: #e3efff;
  font-size: 0.79rem;
  line-height: 1.5;
  user-select: all;
}

.pie {
  padding: 1.6rem 0 0;
  color: #9ab6dc;
  font-size: 0.85rem;
  letter-spacing: 0.025em;
  text-align: center;
  animation: entrada-suave 650ms 460ms ease both;
}

@media (hover: hover) and (pointer: fine) {
  .tarjeta:hover {
    transform: translateY(-0.5rem);
  }

  .tarjeta-camiones:hover {
    border-color: #4a8de2;
    box-shadow: 0 1.8rem 4.5rem rgb(20 88 179 / 38%), 0 0 0 0.0625rem #d3282f;
  }

  .tarjeta-marioja:hover {
    border-color: #f5a04d;
    box-shadow: 0 1.8rem 4.5rem rgb(240 134 39 / 37%), 0 0 0 0.0625rem #f5a04d;
  }

  .tarjeta:hover .marca img {
    transform: scale(1.03);
  }

  .tarjeta:hover .accion img {
    transform: translateX(0.35rem);
  }

  .boton-descarga:hover {
    transform: translateY(-0.18rem);
  }

  .boton-descarga:hover::after {
    transform: translateX(720%) rotate(14deg);
  }
}

@keyframes entrada-suave {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes entrada-tarjeta {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes halo-azul {
  from {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0.98;
    transform: translate3d(8vw, 5vh, 0) scale(1.08);
  }
}

@keyframes halo-ambar {
  from {
    opacity: 0.68;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0.9;
    transform: translate3d(-7vw, -4vh, 0) scale(1.06);
  }
}

@media (max-width: 44rem) {
  .selector {
    padding-top: 2.2rem;
    padding-bottom: 1.5rem;
  }

  .encabezado {
    margin-bottom: 1.8rem;
  }

  .opciones {
    grid-template-columns: 1fr;
  }

  .tarjeta {
    min-height: 0;
    border-radius: 1.15rem;
  }

  .tarjeta:focus-visible {
    transform: none;
  }

  .marca {
    min-height: 12rem;
    padding: 1.25rem 1.5rem;
  }

  .marca img,
  .tarjeta-marioja .marca img {
    height: 10rem;
  }

  .accion {
    min-height: 4.1rem;
  }

  .descarga {
    border-radius: 1.15rem;
  }

  .detalles-descarga {
    grid-template-columns: 1fr;
  }

  .boton-descarga {
    font-size: 1rem;
  }

  .pie {
    line-height: 1.5;
  }
}

@media (max-width: 23rem) {
  .selector {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .descarga-contenido {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .boton-descarga {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
