/* Carta del negocio (ADR-041): los estados (no existe, error) y el esqueleto mientras carga, con su
   versión sin movimiento. Va después de carta.css, que define los tokens. */

:root {
  --hueso: #f3e4dc;
  --hueso-brillo: #fbefe9;
}

/* Estados: no existe y error. */
.carta-estado {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.carta-estado-titulo {
  margin: 0;
  font: 600 1.4rem/1.2 var(--titulos);
}

/* Esqueleto mientras carga. */
.carta-esqueleto {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.hueso {
  display: block;
  border-radius: var(--radio);
  background: linear-gradient(90deg, var(--hueso) 0%, var(--hueso-brillo) 50%, var(--hueso) 100%) 0
    0 / 200% 100%;
  animation: hueso 1.4s ease-in-out infinite;
}

.hueso--logo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
}

.hueso--titulo {
  width: 60%;
  height: 1.9rem;
}

.hueso--linea {
  width: 45%;
  height: 1rem;
}

.hueso--boton {
  width: min(22rem, 100%);
  height: 2.75rem;
  border-radius: 999px;
}

.hueso--fila {
  width: 100%;
  height: 4.75rem;
}

@keyframes hueso {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hueso {
    animation: none;
  }

  .boton,
  .carta-mapa {
    transition: none;
  }

  .boton:hover,
  .boton:active {
    transform: none;
  }
}
