/* Página principal de droadly.com. Los mismos colores, letra y logo que la app
   (docs/identidad-visual.md); el hexágono del logo es el motivo de la página. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fuentes/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --amarillo: #fcbe0e;
  --amarillo-hover: #e7ad00;
  --amarillo-texto: #8c6800;
  --serie: #b98a00;
  --carbon: #202121;
  --carbon-hondo: #181919;
  --carbon-superficie: #2a2b2b;
  --claro: #e7e8e8;
  --claro-2: #c5c7c7;
  --claro-sec: #9d9f9f;
  --fondo: #f4f5f5;
  --blanco: #ffffff;
  --texto: #202121;
  --texto-sec: #5a5b5b;
  --borde: #e2e3e3;
  --exito: #15803d;
  --ancho: 1160px;
  --hexagono: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--texto);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

p {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 3px;
  border-radius: 4px;
}

.seccion--clara :focus-visible,
.seccion--blanca :focus-visible,
.seccion--amarilla :focus-visible {
  outline-color: var(--carbon);
}

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

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saltar {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--amarillo);
  color: var(--carbon);
  font-weight: 600;
  text-decoration: none;
}

.saltar:focus {
  top: 1rem;
}

/* Botones */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.boton .ico {
  width: 1.125rem;
  height: 1.125rem;
}

.boton--primario {
  background: var(--amarillo);
  color: var(--carbon);
  box-shadow: 0 10px 30px -12px rgb(252 190 14 / 0.6);
}

.boton--primario:hover {
  background: var(--amarillo-hover);
}

.boton--fantasma {
  border-color: rgb(255 255 255 / 0.2);
  color: var(--claro);
}

.boton--fantasma:hover {
  border-color: rgb(255 255 255 / 0.38);
  background: rgb(255 255 255 / 0.06);
}

.boton--chico {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

/* Cabecera */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
  background: rgb(32 33 33 / 0.84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.cabecera__fila {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.cabecera__logo {
  margin-right: auto;
}

.cabecera__logo img {
  width: 128px;
}

.cabecera__nav {
  display: none;
  gap: 2rem;
  font-size: 0.9375rem;
}

.cabecera__nav a {
  color: var(--claro-sec);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

@media (min-width: 860px) {
  .cabecera__nav {
    display: flex;
  }

  .cabecera__logo img {
    width: 144px;
  }
}

/* Portada */

.portada {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  color: var(--claro);
}

.portada::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10rem;
  right: -14rem;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(252 190 14 / 0.16), transparent);
}

.panal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  color: rgb(255 255 255 / 0.055);
  pointer-events: none;
}

.panal path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.portada__panal {
  z-index: -2;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 72% 38%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 72% 38%, #000 25%, transparent 78%);
}

.portada__rejilla {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .portada__rejilla {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 2.5rem;
  }
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem 0.375rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--claro-2);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 380px) {
  .etiqueta {
    font-size: 0.8125rem;
  }
}

.etiqueta__punto {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amarillo);
}

.portada h1 {
  margin-top: 1.5rem;
  color: #fff;
  font-size: clamp(2.375rem, 4.4vw + 1rem, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

/* Subrayado de líneas de carretera. */
.resaltado {
  padding-bottom: 0.12em;
  background-image: repeating-linear-gradient(
    90deg,
    var(--amarillo) 0 0.55em,
    transparent 0.55em 0.9em
  );
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 0.09em;
  color: var(--amarillo);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.portada__entrada {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--claro-2);
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem);
}

.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.sellos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2.25rem;
  color: var(--claro-sec);
  font-size: 0.9375rem;
}

.sellos li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sellos .ico {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--amarillo);
}

/* Ilustración: teléfono con la app y dos avisos flotantes. Todo en em: escala con .maqueta. */

.portada__visual {
  display: flex;
  justify-content: center;
}

.maqueta {
  position: relative;
  font-size: 12px;
}

@media (min-width: 400px) {
  .maqueta {
    font-size: 13px;
  }
}

.telefono {
  width: 21.5em;
  height: 44em;
  padding: 0.75em;
  border-radius: 3.25em;
  background: linear-gradient(160deg, #3a3b3b, #111212);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 30px 70px -30px rgb(0 0 0 / 0.7),
    0 40px 120px -40px rgb(252 190 14 / 0.28);
}

.telefono__pantalla {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.5em;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.35;
}

.telefono__pantalla::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0.7em;
  left: 50%;
  width: 6.5em;
  height: 1.6em;
  border-radius: 1em;
  background: #0b0b0b;
  transform: translateX(-50%);
}

.telefono__pantalla::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4em;
  background: linear-gradient(rgb(244 245 245 / 0), var(--fondo));
}

.app-barra {
  display: flex;
  align-items: center;
  gap: 0.625em;
  padding: 2.6em 1.25em 0.9em;
  background: var(--carbon);
  color: #fff;
  font-weight: 700;
}

.app-barra img {
  width: 1.9em;
}

.app-cuerpo {
  display: grid;
  gap: 0.75em;
  padding: 1em;
}

.app-chips {
  display: flex;
  gap: 0.5em;
}

.app-chip {
  padding: 0.3em 0.85em;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: #fff;
  color: var(--texto-sec);
  font-size: 0.85em;
  font-weight: 500;
}

.app-chip--activo {
  border-color: var(--amarillo);
  background: var(--amarillo);
  color: var(--carbon);
  font-weight: 600;
}

.app-cifras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625em;
}

.app-cifra,
.app-tarjeta {
  border: 1px solid var(--borde);
  border-radius: 1em;
  background: #fff;
}

.app-cifra {
  display: grid;
  padding: 0.7em 0.875em;
}

.app-cifra span {
  color: var(--texto-sec);
  font-size: 0.8em;
}

.app-cifra b {
  font-size: 1.45em;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.app-tarjeta {
  padding: 0.875em;
}

.app-titulo {
  display: block;
  margin-bottom: 0.625em;
  font-size: 0.85em;
  font-weight: 600;
}

.app-barras {
  display: flex;
  align-items: flex-end;
  gap: 0.3em;
  height: 5.25em;
  border-bottom: 1px solid var(--borde);
}

.app-barras i {
  flex: 1;
  border-radius: 0.3em 0.3em 0 0;
  background: var(--serie);
}

.app-barras i:nth-child(1) {
  height: 45%;
}
.app-barras i:nth-child(2) {
  height: 62%;
  animation-delay: 0.04s;
}
.app-barras i:nth-child(3) {
  height: 38%;
  animation-delay: 0.08s;
}
.app-barras i:nth-child(4) {
  height: 70%;
  animation-delay: 0.12s;
}
.app-barras i:nth-child(5) {
  height: 55%;
  animation-delay: 0.16s;
}
.app-barras i:nth-child(6) {
  height: 82%;
  animation-delay: 0.2s;
}
.app-barras i:nth-child(7) {
  height: 48%;
  animation-delay: 0.24s;
}
.app-barras i:nth-child(8) {
  height: 66%;
  animation-delay: 0.28s;
}
.app-barras i:nth-child(9) {
  height: 92%;
  animation-delay: 0.32s;
}
.app-barras i:nth-child(10) {
  height: 58%;
  animation-delay: 0.36s;
}
.app-barras i:nth-child(11) {
  height: 74%;
  animation-delay: 0.4s;
}
.app-barras i:nth-child(12) {
  height: 40%;
  animation-delay: 0.44s;
}
.app-barras i:nth-child(13) {
  height: 86%;
  animation-delay: 0.48s;
}
.app-barras i:nth-child(14) {
  height: 68%;
  animation-delay: 0.52s;
}

.app-fila {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.5em 0;
  border-top: 1px solid var(--borde);
}

.app-titulo + .app-fila {
  padding-top: 0;
  border-top: 0;
}

.app-fila__icono {
  display: grid;
  place-items: center;
  width: 2.25em;
  height: 2.25em;
  border-radius: 0.75em;
  background: var(--fondo);
}

.app-fila__icono .ico {
  width: 1.15em;
  height: 1.15em;
}

.app-fila__texto {
  display: grid;
  flex: 1;
}

.app-fila__texto b {
  font-size: 0.9em;
  font-weight: 600;
}

.app-fila__texto small {
  color: var(--texto-sec);
  font-size: 0.78em;
}

.app-fila__foto {
  color: var(--amarillo-texto);
}

.app-fila__foto .ico {
  width: 1.1em;
  height: 1.1em;
}

.flotante {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.8em 1em;
  border-radius: 1.1em;
  background: #fff;
  color: var(--texto);
  line-height: 1.3;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.04),
    0 20px 50px -18px rgb(0 0 0 / 0.6);
}

/* Sin tapar textos del teléfono: uno como notificación sobre la barra, otro sobre las barras. */
.flotante--pdf {
  top: 2.9em;
  right: -3em;
}

.flotante--foto {
  top: 22.6em;
  left: -3em;
}

@media (min-width: 1100px) {
  .flotante--pdf {
    right: -7em;
  }

  .flotante--foto {
    left: -8em;
  }
}

.flotante__icono {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 0.8em;
  background: var(--carbon);
  color: var(--amarillo);
}

.flotante__icono--ok {
  border-radius: 50%;
  background: var(--exito);
  color: #fff;
}

.flotante__texto {
  display: grid;
}

.flotante__texto b {
  font-size: 0.95em;
}

.flotante__texto small {
  color: var(--texto-sec);
  font-size: 0.8em;
}

.flotante__accion {
  margin-left: 0.25em;
  color: var(--texto-sec);
}

/* Carretera al pie de la portada. */
.carretera {
  position: relative;
  height: 3rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / 0.06);
  background: var(--carbon-hondo);
}

.carretera__lineas {
  position: absolute;
  top: 50%;
  right: -6rem;
  left: 0;
  height: 4px;
  margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--amarillo) 0 3rem, transparent 3rem 6rem);
  opacity: 0.9;
}

/* Secciones */

.seccion {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.seccion--clara {
  background: var(--fondo);
}

.seccion--blanca {
  background: var(--blanco);
}

.seccion--amarilla {
  background: var(--amarillo);
  color: var(--carbon);
}

.seccion--oscura {
  background: var(--carbon);
  color: var(--claro);
}

.encabezado {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.encabezado--centro {
  margin-inline: auto;
  text-align: center;
}

.antetitulo {
  color: var(--amarillo-texto);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seccion--oscura .antetitulo {
  color: var(--amarillo);
}

.seccion--amarilla .antetitulo {
  color: var(--carbon);
}

h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 2.6vw + 1.1rem, 2.875rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.seccion--oscura h2 {
  color: #fff;
}

.encabezado h2 + p {
  margin-top: 1rem;
  color: var(--texto-sec);
  font-size: 1.125rem;
}

/* Hexágono del logo: borde amarillo y relleno carbón. */
.hexagono {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: 3.5rem;
  height: 3.03rem;
  background: var(--amarillo);
  color: var(--amarillo);
  clip-path: var(--hexagono);
}

.hexagono::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px;
  background: var(--carbon);
  clip-path: var(--hexagono);
}

.hexagono .ico {
  width: 1.375rem;
  height: 1.375rem;
}

/* Funciones */

.funciones {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .funciones {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .funciones {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.funcion {
  padding: 1.75rem;
  border: 1px solid var(--borde);
  border-radius: 1.25rem;
  background: var(--blanco);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.funcion:hover {
  border-color: #d3d4d4;
  box-shadow: 0 22px 44px -28px rgb(32 33 33 / 0.4);
}

.funcion h3 {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.funcion p {
  margin-top: 0.5rem;
  color: var(--texto-sec);
  font-size: 1rem;
}

/* Cómo funciona: tres pasos unidos por una carretera. */

.pasos {
  position: relative;
  display: grid;
  gap: 2.5rem;
  max-width: 62rem;
  margin-inline: auto;
}

.pasos::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.375rem;
  width: 0.75rem;
  border-radius: 999px;
  background-color: var(--carbon);
  background-image: repeating-linear-gradient(
    180deg,
    var(--amarillo) 0 0.9rem,
    transparent 0.9rem 1.6rem
  );
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: 2px 100%;
}

.paso {
  position: relative;
  padding-left: 5rem;
}

.paso__numero {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.375rem;
  font-weight: 800;
}

.paso h3 {
  padding-top: 0.5rem;
  font-size: 1.25rem;
}

.paso p {
  margin-top: 0.5rem;
  color: var(--texto-sec);
}

@media (min-width: 860px) {
  .pasos {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
  }

  .pasos::before {
    top: 1.14rem;
    right: 16.67%;
    bottom: auto;
    left: 16.67%;
    width: auto;
    height: 0.75rem;
    background-image: repeating-linear-gradient(
      90deg,
      var(--amarillo) 0 0.9rem,
      transparent 0.9rem 1.6rem
    );
    background-position: 0 50%;
    background-size: 100% 2px;
  }

  .paso {
    padding-left: 0;
  }

  .paso__numero {
    position: relative;
    margin: 0 auto 1.5rem;
  }

  .paso h3 {
    padding-top: 0;
  }
}

/* La app */

.app {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .app {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.app__texto > p:not(.antetitulo) {
  margin-top: 1rem;
  color: #3b3c3c;
  font-size: 1.125rem;
}

.lista-check {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.75rem;
}

.lista-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.lista-check .ico {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: var(--carbon);
  color: var(--amarillo);
  stroke-width: 3;
}

.inicio-tel {
  justify-self: center;
  width: min(100%, 20rem);
  padding: 2rem 1.5rem 2.75rem;
  border-radius: 2.5rem;
  background: radial-gradient(120% 90% at 20% 0%, #3a3b3b, var(--carbon) 60%);
  box-shadow:
    0 0 0 8px #151616,
    0 40px 80px -40px rgb(32 33 33 / 0.8);
}

.inicio-tel__rejilla {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem 0.9rem;
}

.inicio-tel__rejilla > span {
  aspect-ratio: 1;
  border-radius: 22%;
  background: rgb(255 255 255 / 0.09);
}

.inicio-tel__rejilla > span:nth-child(3n) {
  background: rgb(255 255 255 / 0.06);
}

.inicio-tel__rejilla > span:nth-child(5n + 1) {
  background: rgb(255 255 255 / 0.13);
}

.inicio-tel__rejilla > .inicio-tel__app {
  position: relative;
  background: none;
}

.inicio-tel__app img {
  width: 100%;
  border-radius: 22%;
}

.inicio-tel__app::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--amarillo);
  border-radius: 28%;
  opacity: 0.5;
}

.inicio-tel__app small {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  transform: translateX(-50%);
}

/* Seguridad y cierre */

.garantias {
  display: grid;
  gap: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .garantias {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .garantias {
    grid-template-columns: repeat(4, 1fr);
  }
}

.garantias .ico {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--amarillo);
}

.garantias h3 {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.125rem;
}

.garantias p {
  margin-top: 0.4rem;
  color: var(--claro-sec);
  font-size: 1rem;
}

.cierre {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, var(--carbon-superficie), var(--carbon));
  text-align: center;
}

.cierre__panal {
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}

.cierre img {
  width: 4rem;
}

.cierre h2 {
  margin-top: 0.5rem;
}

.cierre p {
  max-width: 32rem;
  color: var(--claro-2);
}

.cierre .boton {
  margin-top: 0.75rem;
}

/* Pie */

.pie {
  border-top: 1px solid rgb(255 255 255 / 0.06);
  background: var(--carbon-hondo);
  color: var(--claro-sec);
  font-size: 0.9375rem;
}

.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
}

.pie__fila img {
  width: 110px;
}

.pie a {
  color: var(--claro);
  font-weight: 600;
  text-decoration: none;
}

.pie a:hover {
  text-decoration: underline;
}

/* Página 404 */

.pagina-error {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--claro);
}

.error {
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: min(100% - 2rem, 32rem);
  padding-block: 4rem;
  text-align: center;
}

.error img {
  width: 160px;
  margin-bottom: 1.5rem;
}

.error__codigo {
  color: var(--amarillo);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.error h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw + 1rem, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.error p {
  color: var(--claro-2);
}

.error__acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Movimiento: solo si la persona no pidió reducirlo. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .boton--primario .ico {
    transition: transform 0.15s ease;
  }

  .boton--primario:hover .ico {
    transform: translateX(2px);
  }

  .funcion:hover {
    transform: translateY(-3px);
  }

  .etiqueta__punto {
    animation: latir 2.2s ease-in-out infinite;
  }

  .telefono {
    animation: flotar 7s ease-in-out infinite;
  }

  .flotante--pdf {
    animation:
      aparecer 0.8s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both,
      flotar 6s 1.3s ease-in-out infinite;
  }

  .flotante--foto {
    animation:
      aparecer 0.8s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both,
      flotar 6.5s 1.7s ease-in-out infinite;
  }

  .app-barras i {
    transform-origin: bottom;
    animation: crecer 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .carretera__lineas {
    animation: avanzar 2.6s linear infinite;
  }

  .inicio-tel__app::after {
    animation: anillo 2.4s ease-out infinite;
  }
}

@keyframes latir {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(252 190 14 / 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgb(252 190 14 / 0);
  }
}

@keyframes flotar {
  50% {
    transform: translateY(-0.6em);
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(1em) scale(0.96);
  }
}

@keyframes crecer {
  from {
    transform: scaleY(0);
  }
}

@keyframes avanzar {
  to {
    transform: translateX(-6rem);
  }
}

@keyframes anillo {
  from {
    opacity: 0.9;
    transform: scale(0.92);
  }
  to {
    opacity: 0;
    transform: scale(1.25);
  }
}
