/* Tokens y piezas comunes a los tres bocetos. Valores tomados de DESIGN.md (Solarized claro). */
:root {
  --canvas: #fdf6e3;
  --card: #fffbf2;
  --paper: #f6f0dd;
  --mist: #eee8d5;
  --ash: #e6dec6;
  --smoke: #d8ceb2;
  --ink: #002b36;
  --text: #073642;
  --muted: #4f646b;
  --faint: #93a1a1;
  --on-ink: #fdf6e3;
  --accent: #268bd2;
  --accent-ink: #1b679e;
  --accent-soft: #e3ecee;
  --c-orange: #cb4b16;
  --i-orange: #a33a0f;
  --c-violet: #6c71c4;
  --i-violet: #4d52a3;
  --c-green: #859900;
  --i-green: #5a6800;
  --c-yellow: #b58900;
  --c-cyan: #2aa198;
  --pebble: #c6bb9c;
  --senal: #f5c400;
  --logo-tinta: #15171c;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--canvas);
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 32;
}
p {
  margin: 0;
}
.mono {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}
.contenedor {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

/* Marco de página: la landing vive en una "tarjeta" con margen, como en las referencias. */
.marco {
  margin: 14px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 0 0 1px rgb(0 43 54 / 0.06);
}

/* Navegación */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.marca img {
  width: 30px;
  height: 30px;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav__links a {
  opacity: 0.85;
}
.nav__links a:hover {
  opacity: 1;
}
.nav__acciones {
  display: flex;
  gap: 8px;
}

/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}
.boton:hover {
  transform: translateY(-1px);
}
.boton--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.boton--tinta {
  background: var(--ink);
  color: var(--on-ink);
}
.boton--hoja {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--ash);
}
.boton svg {
  width: 16px;
  height: 16px;
}

/* Etiqueta-píldora encima de los títulos */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--ash);
}
.chip__punto {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
}
.chip__punto svg {
  width: 12px;
  height: 12px;
}

/* Pill de emisor (Emisor Constancy Rule) */
.emisor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
}
.emisor__codigo {
  display: grid;
  place-items: center;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.emisor--em .emisor__codigo {
  background: #f6dccd;
  color: var(--i-orange);
}
.emisor--js .emisor__codigo {
  background: #e2e1f2;
  color: var(--i-violet);
}

/* Captura del producto dentro de una ventana */
.ventana {
  border-radius: 14px;
  background: var(--card);
  padding: 6px;
  box-shadow:
    0 0 0 1px rgb(0 43 54 / 0.1),
    0 30px 80px -20px rgb(0 43 54 / 0.35);
}
.ventana__barra {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 10px;
}
.ventana__barra i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ash);
}
.ventana__url {
  margin-left: 12px;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.ventana img {
  border-radius: 9px;
  width: 100%;
}

/* Badge de estado: punto y palabra */
.estado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px 0 8px;
  border-radius: 999px;
  font-size: 12px;
}
.estado::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.estado--vigente {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.estado--aceptado {
  background: #eef0cf;
  color: var(--i-green);
}

/* Tarjeta de verificación (texto real de servicio.ts) */
.verif {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  background: var(--card);
  box-shadow:
    0 0 0 1px var(--ash),
    0 24px 60px -24px rgb(0 43 54 / 0.3);
  overflow: hidden;
  color: var(--text);
}
.verif__cabeza {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ash);
}
.verif__ok {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eef0cf;
  color: var(--i-green);
}
.verif__ok svg {
  width: 18px;
  height: 18px;
}
.verif__titulo {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.verif__sub {
  font-size: 12px;
  color: var(--muted);
}
.verif__filas {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.verif__filas div {
  padding: 12px 20px;
  border-bottom: 1px solid var(--ash);
}
.verif__filas div:nth-child(odd) {
  border-right: 1px solid var(--ash);
}
.verif__filas small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.verif__filas span {
  font-size: 14px;
  color: var(--ink);
}
.verif__pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--paper);
  font-size: 13px;
  color: var(--muted);
}
.qr {
  width: 64px;
  height: 64px;
  flex: none;
}

/* Pie */
.pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--ash);
}
.pie nav {
  display: flex;
  gap: 20px;
}

/* Aparición suave al hacer scroll */
.aparece {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.aparece.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .aparece {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .boton:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
  .marco {
    margin: 0;
    border-radius: 0;
  }
}
