/* ==========================================================================
   Automate.ai · Componentes
   Requiere tokens/tokens.css. Solo usa variables --am-*; ningún color ni
   tamaño escrito a mano. Breakpoints: 720px (tablet) y 1024px (escritorio).
   Estilo editorial del dossier de Leo: líneas de 1px antes que cajas.
   ========================================================================== */


/* --------------------------------------------------------------------------
   0. Base
   -------------------------------------------------------------------------- */

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

body {
  margin: 0;
  background: var(--am-bg);
  color: var(--am-text);
  font-family: var(--am-font-sans);
  font-size: var(--am-fs-body);
  line-height: var(--am-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* Saltos a anclas: que la barra fija (.am-nav--sticky) no tape el título */
[id] { scroll-margin-top: calc(var(--am-nav-height) + var(--am-space-4)); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:focus-visible {
  outline: none;
  box-shadow: var(--am-focus-ring);
  border-radius: var(--am-radius-sm);
}

.am-visually-hidden {
  position: absolute;
  width: var(--am-border);
  height: var(--am-border);
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.am-skip-link {
  position: absolute;
  left: var(--am-space-4);
  top: calc(var(--am-space-10) * -1);
  padding: var(--am-space-3) var(--am-space-4);
  background: var(--am-ink);
  color: var(--am-on-ink);
  border-radius: var(--am-radius-md);
  z-index: 10;
}
.am-skip-link:focus { top: var(--am-space-4); }


/* --------------------------------------------------------------------------
   1. Layout
   -------------------------------------------------------------------------- */

/* Página: en <body>. Con poco contenido, el pie queda abajo sin hueco */
.am-page {
  display: flex;
  flex-direction: column;
  min-height: var(--am-page-min-height);
}
.am-page__main { flex: 1 0 auto; }

.am-container {
  width: 100%;
  max-width: calc(var(--am-max-width) + var(--am-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--am-gutter);
}

.am-section { padding-block: calc(var(--am-section-gap) / 2); }
.am-section--alt { background: var(--am-bg-alt); }
.am-section--flush-top { padding-top: 0; }

.am-stack > * + * { margin-top: var(--am-space-5); }
.am-stack--lg > * + * { margin-top: var(--am-space-7); }

.am-prose { max-width: var(--am-text-width); }

/* Rejilla simple con hueco (objetos que van uno junto a otro) */
.am-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--am-space-6);
  align-items: start;
}
@media (min-width: 720px) {
  .am-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .am-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Línea separadora */
.am-rule {
  border: 0;
  border-top: var(--am-border) solid var(--am-line);
  margin: 0;
}
.am-rule--strong { border-top-color: var(--am-line-strong); }
.am-rule--heavy { border-top: var(--am-border-strong) solid var(--am-text); }

/* Columnas separadas por líneas verticales finas (sin cajas) */
.am-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--am-border) solid var(--am-line-strong);
}
.am-cols > * {
  padding-block: var(--am-space-5);
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-cols > *:last-child { border-bottom: 0; }

@media (min-width: 720px) {
  .am-cols--2,
  .am-cols--3,
  .am-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-cols > * {
    padding-inline: var(--am-space-5);
    border-bottom: 0;
    border-left: var(--am-border) solid var(--am-line);
  }
  .am-cols > *:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .am-cols > *:nth-child(2n) { padding-right: 0; }
}

@media (min-width: 1024px) {
  .am-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .am-cols--3 > *:nth-child(2n + 1),
  .am-cols--4 > *:nth-child(2n + 1) {
    border-left: var(--am-border) solid var(--am-line);
    padding-left: var(--am-space-5);
  }
  .am-cols--3 > *:nth-child(3n + 1),
  .am-cols--4 > *:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
  .am-cols--3 > *:nth-child(2n),
  .am-cols--4 > *:nth-child(2n) { padding-right: var(--am-space-5); }
  .am-cols--3 > *:nth-child(3n),
  .am-cols--4 > *:nth-child(4n) { padding-right: 0; }
}


/* --------------------------------------------------------------------------
   2. Tipografía
   -------------------------------------------------------------------------- */

.am-display,
.am-h1,
.am-h2,
.am-h3 {
  font-family: var(--am-font-serif);
  font-weight: var(--am-weight-medium);
  color: var(--am-text);
  margin: 0;
  text-wrap: balance;
}
.am-display { font-size: var(--am-fs-display); line-height: var(--am-lh-display); letter-spacing: var(--am-tracking-tight); }
.am-h1 { font-size: var(--am-fs-h1); line-height: var(--am-lh-h1); letter-spacing: var(--am-tracking-tight); }
.am-h2 { font-size: var(--am-fs-h2); line-height: var(--am-lh-h2); }
.am-h3 { font-size: var(--am-fs-h3); line-height: var(--am-lh-h3); }

.am-lead {
  font-family: var(--am-font-serif);
  font-weight: var(--am-weight-regular);
  font-size: var(--am-fs-lead);
  line-height: var(--am-lh-lead);
  margin: 0;
}
.am-text { font-size: var(--am-fs-body); line-height: var(--am-lh-body); margin: 0; }
.am-small { font-size: var(--am-fs-small); line-height: var(--am-lh-small); margin: 0; }
.am-muted { color: var(--am-text-muted); }

.am-label {
  font-family: var(--am-font-mono);
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-label);
  line-height: var(--am-lh-label);
  letter-spacing: var(--am-tracking-label);
  text-transform: uppercase;
}

.am-numeral {
  font-family: var(--am-font-serif);
  font-weight: var(--am-weight-regular);
  font-size: var(--am-fs-numeral);
  line-height: var(--am-lh-numeral);
  letter-spacing: var(--am-tracking-tight);
  color: var(--am-line-strong);
  font-variant-numeric: lining-nums;
}

/* La palabra o frase en cursiva de color: una por titular */
.am-em {
  font-style: italic;
  font-weight: var(--am-weight-medium);
  color: var(--am-green);
}
.am-em--leo { color: var(--am-leo-text); }
.am-em--lola { color: var(--am-lola); }
.am-em--vera { color: var(--am-vera); }
.am-em--ink { color: var(--am-text); }
.am-em--on-ink { color: var(--am-mint); }

/* Enlace en el texto */
.am-link {
  color: var(--am-green);
  text-decoration: underline;
  text-decoration-thickness: var(--am-border);
  text-underline-offset: var(--am-underline-offset);
  transition: text-decoration-thickness var(--am-duration) var(--am-ease);
}
.am-link:hover { text-decoration-thickness: var(--am-border-strong); }


/* --------------------------------------------------------------------------
   3. Botón
   -------------------------------------------------------------------------- */

.am-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--am-space-2);
  min-height: var(--am-btn-height);
  padding: 0 var(--am-space-5);
  border: var(--am-border) solid transparent;
  border-radius: var(--am-radius-md);
  font-family: var(--am-font-sans);
  font-weight: var(--am-weight-semibold);
  font-size: var(--am-fs-body);
  line-height: var(--am-lh-small);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--am-duration) var(--am-ease),
              border-color var(--am-duration) var(--am-ease),
              color var(--am-duration) var(--am-ease);
}
.am-btn:focus-visible { box-shadow: var(--am-focus-ring); border-radius: var(--am-radius-md); }

.am-btn--primary { background: var(--am-green); color: var(--am-on-green); }
.am-btn--primary:hover { background: var(--am-green-hover); }

.am-btn--secondary {
  background: transparent;
  color: var(--am-text);
  border-color: var(--am-line-strong);
}
.am-btn--secondary:hover { border-color: var(--am-text); background: var(--am-surface); }

.am-btn--link {
  min-height: var(--am-tap);
  padding: 0;
  background: none;
  color: var(--am-green);
  text-decoration: underline;
  text-decoration-thickness: var(--am-border);
  text-underline-offset: var(--am-underline-offset);
}
.am-btn--link:hover { text-decoration-thickness: var(--am-border-strong); }

.am-btn--sm {
  min-height: var(--am-btn-height-sm);
  padding: 0 var(--am-space-4);
  font-size: var(--am-fs-small);
}
/* La zona táctil del botón pequeño llega a 44px aunque se vea de 38px */
.am-btn--sm::after {
  content: "";
  position: absolute;
  inset: calc((var(--am-tap) - var(--am-btn-height-sm)) / -2) 0;
}

.am-btn--block { width: 100%; }

.am-btn:disabled,
.am-btn[aria-disabled="true"] {
  background: var(--am-surface-2);
  border-color: var(--am-surface-2);
  color: var(--am-text-muted);
  cursor: not-allowed;
  text-decoration: none;
}

.am-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--am-space-4) var(--am-space-5);
}


/* --------------------------------------------------------------------------
   4. Badge de producto (punto de color + mono mayúsculas)
   -------------------------------------------------------------------------- */

.am-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--am-space-2);
  font-family: var(--am-font-mono);
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-label);
  line-height: var(--am-lh-label);
  letter-spacing: var(--am-tracking-label);
  text-transform: uppercase;
  color: var(--am-green);
}
.am-badge::before {
  content: "";
  width: var(--am-dot);
  height: var(--am-dot);
  border-radius: var(--am-radius-pill);
  background: currentColor;
  flex: none;
}
.am-badge--leo { color: var(--am-leo-text); }
.am-badge--leo::before { background: var(--am-leo); }
.am-badge--lola { color: var(--am-lola); }
.am-badge--vera { color: var(--am-vera); }


/* --------------------------------------------------------------------------
   5. Eyebrow
   -------------------------------------------------------------------------- */

.am-eyebrow {
  display: flex;
  align-items: baseline;
  gap: var(--am-space-3);
  margin: 0 0 var(--am-space-3);
  font-family: var(--am-font-mono);
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-label);
  line-height: var(--am-lh-label);
  letter-spacing: var(--am-tracking-label);
  text-transform: uppercase;
  color: var(--am-text-muted);
}
.am-eyebrow__num { color: inherit; }
.am-eyebrow--green { color: var(--am-green); }
.am-eyebrow--leo { color: var(--am-leo-text); }
.am-eyebrow--lola { color: var(--am-lola); }
.am-eyebrow--vera { color: var(--am-vera); }
.am-eyebrow--on-ink { color: var(--am-on-ink-muted); }


/* --------------------------------------------------------------------------
   6. Cabecera de sección
   -------------------------------------------------------------------------- */

.am-section-header { margin-bottom: var(--am-space-7); }
.am-section-header__title { max-width: calc(var(--am-text-width) + var(--am-space-9) * 2); }
.am-section-header__lead {
  margin: var(--am-space-4) 0 0;
  max-width: var(--am-text-width);
  color: var(--am-text-muted);
}

@media (min-width: 1024px) {
  .am-section-header--split {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--am-space-7);
    align-items: end;
  }
  .am-section-header--split .am-section-header__lead { margin-top: 0; }
}


/* --------------------------------------------------------------------------
   7. Encabezado numerado ("01 Pedidos.")
   -------------------------------------------------------------------------- */

.am-numhead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--am-space-5);
  align-items: start;
  margin-bottom: var(--am-space-7);
}
.am-numhead__num { grid-row: span 2; }
.am-numhead__title { align-self: end; padding-top: var(--am-space-3); }
.am-numhead__sub {
  margin: var(--am-space-2) 0 0;
  color: var(--am-text-muted);
}


/* --------------------------------------------------------------------------
   8. Avatar
   -------------------------------------------------------------------------- */

.am-avatar {
  width: var(--am-avatar-md);
  height: var(--am-avatar-md);
  border-radius: var(--am-radius-pill);
  flex: none;
}
.am-avatar--sm { width: var(--am-avatar-sm); height: var(--am-avatar-sm); }
.am-avatar--lg { width: var(--am-avatar-lg); height: var(--am-avatar-lg); }


/* --------------------------------------------------------------------------
   9. Producto
   -------------------------------------------------------------------------- */

.am-product {
  display: flex;
  flex-direction: column;
  gap: var(--am-space-5);
  height: 100%;
}
.am-product__head {
  display: flex;
  align-items: center;
  gap: var(--am-space-4);
}
.am-product__name {
  font-family: var(--am-font-serif);
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-h1);
  line-height: var(--am-lh-h1);
  letter-spacing: var(--am-tracking-tight);
  margin: 0;
}
.am-product__channel { margin: var(--am-space-1) 0 0; }
.am-product__desc { margin: 0; }
.am-product__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--am-border) solid var(--am-line-strong);
}
.am-product__benefit {
  padding-block: var(--am-space-3);
  border-bottom: var(--am-border) solid var(--am-line);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
}
.am-product__cta { margin-top: auto; padding-top: var(--am-space-2); }

.am-product--leo .am-product__name,
.am-product--leo .am-product__channel { color: var(--am-leo-text); }
.am-product--lola .am-product__name,
.am-product--lola .am-product__channel { color: var(--am-lola); }
.am-product--vera .am-product__name,
.am-product--vera .am-product__channel { color: var(--am-vera); }


/* --------------------------------------------------------------------------
   10. Ticket / comanda
   -------------------------------------------------------------------------- */

.am-ticket {
  position: relative;
  width: 100%;
  max-width: var(--am-ticket-width);
  margin-block: var(--am-ticket-tooth);
  padding: var(--am-space-5) var(--am-space-5) var(--am-space-4);
  background: var(--am-surface);
  color: var(--am-text);
  font-family: var(--am-font-mono);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
  transform: rotate(var(--am-ticket-tilt));
  filter: var(--am-shadow-ticket);
}
/* Bordes dentados de papel de comanda */
.am-ticket::before,
.am-ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--am-ticket-tooth);
  background-size: calc(var(--am-ticket-tooth) * 2) 100%;
  background-repeat: repeat-x;
}
.am-ticket::before {
  bottom: 100%;
  background-image: conic-gradient(from 135deg at 50% 0, var(--am-surface) 90deg, transparent 0);
}
.am-ticket::after {
  top: 100%;
  background-image: conic-gradient(from -45deg at 50% 100%, var(--am-surface) 90deg, transparent 0);
}
.am-ticket--straight { transform: none; }

/* Ticket con pie («Pedido de ejemplo»): el pie va fuera del papel girado */
.am-ticket-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--am-space-4);
  width: 100%;
  max-width: var(--am-ticket-width);
}
.am-ticket-figure__caption {
  display: flex;
  align-items: center;
  gap: var(--am-space-2);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
  color: var(--am-text-muted);
}
.am-ticket-figure__caption::before {
  content: "";
  width: var(--am-dot);
  height: var(--am-dot);
  border-radius: var(--am-radius-pill);
  background: var(--am-leo);
  flex: none;
}
.am-ticket p { margin: 0; }

.am-ticket__head { color: var(--am-text); }
.am-ticket__time {
  font-size: var(--am-fs-h2);
  line-height: var(--am-lh-h2);
  font-weight: var(--am-weight-medium);
}
.am-ticket__part {
  padding-block: var(--am-space-3);
  border-top: var(--am-border-dashed) var(--am-line-strong);
}
.am-ticket__head + .am-ticket__part { margin-top: var(--am-space-3); }
.am-ticket__items { list-style: none; margin: 0; padding: 0; }
.am-ticket__item {
  display: grid;
  grid-template-columns: calc(var(--am-space-6) + var(--am-space-2)) minmax(0, 1fr);
  gap: var(--am-space-2);
}
.am-ticket__item + .am-ticket__item { margin-top: var(--am-space-2); }
.am-ticket__note { display: block; color: var(--am-text-muted); }
.am-ticket__foot { color: var(--am-text-muted); padding-bottom: 0; }


/* --------------------------------------------------------------------------
   11. Objeto con borde (chat, llamada, tabla, formulario)
   -------------------------------------------------------------------------- */

.am-object {
  margin: 0;
  background: var(--am-surface);
  border: var(--am-border) solid var(--am-line);
  border-radius: var(--am-radius-lg);
  overflow: hidden;
}
.am-object__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--am-space-3);
  padding: var(--am-space-4) var(--am-space-5);
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-object__foot {
  display: flex;
  align-items: center;
  gap: var(--am-space-2);
  padding: var(--am-space-3) var(--am-space-5);
  border-top: var(--am-border) solid var(--am-line);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
  color: var(--am-text-muted);
}
/* Punto de color en el pie "Llamada / Conversación / Datos de ejemplo" */
.am-object__dot {
  width: var(--am-dot);
  height: var(--am-dot);
  border-radius: var(--am-radius-pill);
  background: var(--am-line-strong);
  flex: none;
}
.am-object__dot--leo { background: var(--am-leo); }
.am-object__dot--lola { background: var(--am-lola); }
.am-object__dot--vera { background: var(--am-vera); }


/* --------------------------------------------------------------------------
   12. Llamada de Leo
   -------------------------------------------------------------------------- */

.am-call,
.am-chat,
.am-recon,
.am-panel { margin: 0; }
.am-call { max-width: calc(var(--am-text-width) + var(--am-space-9)); }

.am-call__who {
  display: flex;
  align-items: center;
  gap: var(--am-space-3);
}
.am-call__turns { list-style: none; margin: 0; padding: 0 var(--am-space-5); }
.am-call__turn {
  display: grid;
  grid-template-columns: var(--am-speaker-width) minmax(0, 1fr);
  gap: var(--am-space-4);
  padding-block: var(--am-space-4);
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-call__turn:last-child { border-bottom: 0; }
.am-call__speaker {
  padding-top: var(--am-space-1);
  color: var(--am-text-muted);
}
.am-call__turn--leo .am-call__speaker { color: var(--am-leo-text); }
.am-call__line {
  margin: 0;
  font-family: var(--am-font-serif);
  font-size: var(--am-fs-h3);
  line-height: var(--am-lh-h3);
}
.am-call__result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--am-space-2) var(--am-space-3);
  padding: var(--am-space-4) var(--am-space-5);
  background: var(--am-green-soft);
  border-top: var(--am-border) solid var(--am-line);
}
.am-call__result-label { color: var(--am-green); }
.am-call__result-text { font-weight: var(--am-weight-semibold); }

@media (max-width: 719.98px) {
  .am-call__turn { grid-template-columns: minmax(0, 1fr); gap: var(--am-space-1); }
}


/* --------------------------------------------------------------------------
   13. Chat de Lola
   -------------------------------------------------------------------------- */

.am-chat { max-width: var(--am-chat-width); }
.am-grid > .am-chat { max-width: none; }
.am-chat__contact {
  display: flex;
  align-items: center;
  gap: var(--am-space-3);
}
.am-chat__initials {
  display: grid;
  place-items: center;
  width: var(--am-avatar-sm);
  height: var(--am-avatar-sm);
  border-radius: var(--am-radius-pill);
  background: var(--am-lola-soft);
  color: var(--am-lola);
  font-family: var(--am-font-mono);
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-label);
  letter-spacing: var(--am-tracking-label);
  flex: none;
}
.am-chat__name {
  display: block;
  margin: 0;
  font-weight: var(--am-weight-semibold);
  font-size: var(--am-fs-body);
  line-height: var(--am-lh-small);
}
.am-chat__status {
  display: block;
  margin: 0;
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
  color: var(--am-text-muted);
}
.am-chat__body {
  display: flex;
  flex-direction: column;
  gap: var(--am-space-3);
  padding: var(--am-space-5);
}
.am-chat__msg {
  max-width: var(--am-bubble-max);
  margin: 0;
  padding: var(--am-space-3) var(--am-space-4) var(--am-space-2);
  border-radius: var(--am-radius-md);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
}
.am-chat__msg--in { align-self: flex-start; background: var(--am-bubble-in); }
.am-chat__msg--out { align-self: flex-end; background: var(--am-bubble-out); }
.am-chat__time {
  display: block;
  margin-top: var(--am-space-1);
  text-align: right;
  font-family: var(--am-font-mono);
  font-size: var(--am-fs-label);
  line-height: var(--am-lh-label);
  color: var(--am-text-muted);
}


/* --------------------------------------------------------------------------
   14. Conciliación de Vera
   -------------------------------------------------------------------------- */

.am-recon__scroll { padding: 0 var(--am-space-5); }
.am-recon__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
}
.am-recon__table th {
  padding: var(--am-space-4) var(--am-space-3) var(--am-space-3) 0;
  text-align: left;
  font-family: var(--am-font-mono);
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-label);
  line-height: var(--am-lh-label);
  letter-spacing: var(--am-tracking-label);
  text-transform: uppercase;
  color: var(--am-text-muted);
  border-bottom: var(--am-border) solid var(--am-line-strong);
}
.am-recon__table td {
  padding: var(--am-space-4) var(--am-space-3) var(--am-space-4) 0;
  border-bottom: var(--am-border) solid var(--am-line);
  vertical-align: middle;
}
.am-recon__table tr:last-child td { border-bottom: 0; }
.am-recon__date { font-family: var(--am-font-mono); color: var(--am-text-muted); white-space: nowrap; }
.am-recon__concept { font-weight: var(--am-weight-medium); }
.am-recon__table .am-recon__amount { padding-right: var(--am-space-5); }
.am-recon__amount {
  font-family: var(--am-font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.am-recon__table th.am-recon__amount { text-align: right; }
.am-recon__invoice { color: var(--am-text-muted); }
.am-recon__search { min-height: var(--am-tap); font-size: var(--am-fs-small); font-weight: var(--am-weight-medium); }

/* Pastilla de estado */
.am-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--am-space-1) var(--am-space-3);
  border-radius: var(--am-radius-pill);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
  font-weight: var(--am-weight-medium);
  white-space: nowrap;
}
.am-pill--ok { background: var(--am-status-ok-bg); color: var(--am-status-ok-text); }
.am-pill--suggest { background: var(--am-status-suggest-bg); color: var(--am-status-suggest-text); }
.am-pill--warn { background: var(--am-status-warn-bg); color: var(--am-status-warn-text); }
.am-pill--pending { background: var(--am-status-pending-bg); color: var(--am-status-pending-text); }

/* Móvil: cada fila se apila con su etiqueta */
@media (max-width: 719.98px) {
  .am-recon__table thead { position: absolute; width: var(--am-border); height: var(--am-border); overflow: hidden; clip-path: inset(50%); }
  .am-recon__table,
  .am-recon__table tbody,
  .am-recon__table tr,
  .am-recon__table td { display: block; }
  .am-recon__table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--am-space-1) var(--am-space-3);
    padding-block: var(--am-space-4);
    border-bottom: var(--am-border) solid var(--am-line);
  }
  .am-recon__table tr:last-child { border-bottom: 0; }
  .am-recon__table td { padding: 0; border: 0; }
  .am-recon__date { grid-column: 1; }
  .am-recon__amount { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .am-recon__concept { grid-column: 1; }
  .am-recon__invoice { grid-column: 1 / -1; }
  .am-recon__state { grid-column: 1 / -1; padding-top: var(--am-space-2); }
}


/* --------------------------------------------------------------------------
   15. Panel de Vera
   -------------------------------------------------------------------------- */

.am-panel__stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-panel__stat {
  padding: var(--am-space-5);
  border-left: var(--am-border) solid var(--am-line);
}
.am-panel__stat:nth-child(2n + 1) { border-left: 0; }
.am-panel__stat:nth-child(-n + 2) { border-bottom: var(--am-border) solid var(--am-line); }
.am-panel__stat-label { margin: 0; font-size: var(--am-fs-small); line-height: var(--am-lh-small); color: var(--am-text-muted); }
.am-panel__stat-value {
  margin: var(--am-space-1) 0 0;
  font-family: var(--am-font-serif);
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-h2);
  line-height: var(--am-lh-h2);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
@media (min-width: 720px) {
  .am-panel__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .am-panel__stat:nth-child(2n + 1) { border-left: var(--am-border) solid var(--am-line); }
  .am-panel__stat:first-child { border-left: 0; }
  .am-panel__stat:nth-child(-n + 2) { border-bottom: 0; }
}

.am-panel__channels { padding: var(--am-space-5); }
.am-panel__channels-title { margin: 0 0 var(--am-space-3); color: var(--am-text-muted); }
.am-panel__bars { list-style: none; margin: 0; padding: 0; }
.am-panel__bar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) var(--am-space-7);
  align-items: center;
  gap: var(--am-space-4);
  padding-block: var(--am-space-2);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
}
.am-panel__track {
  height: var(--am-bar-height);
  border-radius: var(--am-radius-pill);
  background: var(--am-surface-2);
  overflow: hidden;
}
/* El ancho viene del HTML: style="--am-value: 52%" */
.am-panel__fill {
  display: block;
  height: 100%;
  width: var(--am-value);
  border-radius: inherit;
  background: var(--am-vera);
}
.am-panel__pct {
  text-align: right;
  font-family: var(--am-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--am-text-muted);
}


/* --------------------------------------------------------------------------
   16. Escena ("Suena el teléfono")
   -------------------------------------------------------------------------- */

.am-scene { margin: 0; }
.am-scene__item { display: flex; flex-direction: column; }
.am-scene__time {
  display: block;
  margin-bottom: var(--am-space-2);
  font-family: var(--am-font-serif);
  font-weight: var(--am-weight-regular);
  font-size: var(--am-fs-h1);
  line-height: var(--am-lh-h1);
  letter-spacing: var(--am-tracking-tight);
  font-variant-numeric: lining-nums;
}
.am-scene__when { display: block; margin-bottom: var(--am-space-3); color: var(--am-text-muted); }
.am-scene__title { margin-bottom: var(--am-space-3); }
.am-scene__text { margin: 0; color: var(--am-text-muted); }
.am-scene__coda {
  margin: var(--am-space-7) auto 0;
  max-width: var(--am-text-width);
  font-family: var(--am-font-serif);
  font-style: italic;
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-h2);
  line-height: var(--am-lh-h2);
  text-align: center;
  text-wrap: balance;
}


/* --------------------------------------------------------------------------
   17. Cita destacada
   -------------------------------------------------------------------------- */

.am-quote {
  margin: 0;
  padding-block: var(--am-space-9);
  background: var(--am-green-soft);
}
.am-quote--leo { background: var(--am-leo-soft); }
.am-quote--lola { background: var(--am-lola-soft); }
.am-quote--vera { background: var(--am-vera-soft); }
.am-quote__text {
  margin: 0;
  max-width: calc(var(--am-text-width) + var(--am-space-8));
  font-family: var(--am-font-serif);
  font-style: italic;
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-display);
  line-height: var(--am-lh-display);
  letter-spacing: var(--am-tracking-tight);
  text-wrap: balance;
}
.am-quote__figure { margin: 0; }
.am-quote__text p { margin: 0; }
.am-quote__cite {
  display: block;
  margin-top: var(--am-space-7);
  font-style: normal;
  color: var(--am-green);
}
.am-quote--leo .am-quote__cite { color: var(--am-leo-text); }
.am-quote--lola .am-quote__cite { color: var(--am-lola); }
.am-quote--vera .am-quote__cite { color: var(--am-vera); }
/* Nota opcional bajo la firma: contexto en una línea */
.am-quote__note {
  margin: var(--am-space-4) 0 0;
  max-width: var(--am-text-width);
  font-family: var(--am-font-sans);
  font-size: var(--am-fs-body);
  line-height: var(--am-lh-body);
  letter-spacing: normal;
  text-transform: none;
  color: var(--am-text);
}


/* --------------------------------------------------------------------------
   18. Sectores
   -------------------------------------------------------------------------- */

.am-sectors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--am-border) solid var(--am-line-strong);
}
.am-sector {
  padding: var(--am-space-5) 0;
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-sector__name { margin-bottom: var(--am-space-2); }
.am-sector__text { margin: 0; color: var(--am-text-muted); }
.am-sector--featured {
  padding-inline: var(--am-space-5);
  background: var(--am-green-soft);
  border-bottom-color: transparent;
}
.am-sector--featured .am-sector__text { color: var(--am-text); }
.am-sector__tag { display: block; margin-bottom: var(--am-space-3); color: var(--am-green); }
.am-sector--other .am-sector__name { font-style: italic; }

@media (min-width: 720px) {
  .am-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-sector { padding-inline: var(--am-space-5); border-left: var(--am-border) solid var(--am-line); }
  .am-sector:nth-child(2n + 1) { border-left: 0; }
  .am-sector--featured { border-left: 0; }
}
@media (min-width: 1024px) {
  .am-sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-sector:nth-child(2n + 1) { border-left: var(--am-border) solid var(--am-line); }
  .am-sector:nth-child(3n + 1) { border-left: 0; }
  .am-sector:nth-last-child(-n + 3) { border-bottom: 0; }
}


/* --------------------------------------------------------------------------
   19. Pasos numerados
   -------------------------------------------------------------------------- */

.am-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--am-border) solid var(--am-line-strong);
}
.am-step {
  display: grid;
  grid-template-columns: var(--am-space-8) minmax(0, 1fr);
  column-gap: var(--am-space-4);
  padding-block: var(--am-space-5);
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-step:last-child { border-bottom: 0; }
.am-step__num { grid-row: span 2; }
.am-step__title { margin-bottom: var(--am-space-2); }
.am-step__text { margin: 0; color: var(--am-text-muted); }
.am-step--first .am-step__num,
.am-step--first .am-step__title { color: var(--am-green); }

@media (min-width: 720px) {
  .am-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-step {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--am-space-5);
    border-bottom: 0;
    border-left: var(--am-border) solid var(--am-line);
  }
  .am-step:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .am-step:nth-child(-n + 2) { border-bottom: var(--am-border) solid var(--am-line); }
  .am-step__num { grid-row: auto; margin-bottom: var(--am-space-5); }
}
@media (min-width: 1024px) {
  .am-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .am-step:nth-child(2n + 1) { border-left: var(--am-border) solid var(--am-line); padding-left: var(--am-space-5); }
  .am-step:first-child { border-left: 0; padding-left: 0; }
  .am-step:nth-child(-n + 2) { border-bottom: 0; }
}


/* --------------------------------------------------------------------------
   20. Garantía
   -------------------------------------------------------------------------- */

.am-guarantee {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--am-space-6);
}
.am-guarantee__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--am-border) solid var(--am-line-strong);
}
.am-guarantee__item {
  display: grid;
  grid-template-columns: var(--am-space-7) minmax(0, 1fr);
  gap: var(--am-space-3);
  padding-block: var(--am-space-4);
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-guarantee__num { padding-top: var(--am-space-1); color: var(--am-text-muted); }
.am-guarantee__text {
  margin: 0;
  font-family: var(--am-font-serif);
  font-size: var(--am-fs-h3);
  line-height: var(--am-lh-h3);
}
@media (min-width: 1024px) {
  .am-guarantee { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--am-space-8); }
}


/* --------------------------------------------------------------------------
   21. Equipo
   -------------------------------------------------------------------------- */

.am-team { margin: 0; }
.am-team__member {
  display: flex;
  flex-direction: column;
  gap: var(--am-space-3);
}
.am-team__name {
  margin: var(--am-space-2) 0 0;
  font-family: var(--am-font-serif);
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-display);
  line-height: var(--am-lh-display);
  letter-spacing: var(--am-tracking-tight);
}
.am-team__channel,
.am-team__text { margin: 0; }
.am-team__fit { margin: 0; color: var(--am-text-muted); }
.am-team__member--leo .am-team__name,
.am-team__member--leo .am-team__channel { color: var(--am-leo-text); }
.am-team__member--lola .am-team__name,
.am-team__member--lola .am-team__channel { color: var(--am-lola); }
.am-team__member--vera .am-team__name,
.am-team__member--vera .am-team__channel { color: var(--am-vera); }


/* --------------------------------------------------------------------------
   22. Preguntas frecuentes (dos columnas; plegable en móvil)
   -------------------------------------------------------------------------- */

.am-faq { border-top: var(--am-border) solid var(--am-line-strong); }
.am-faq__item { border-bottom: var(--am-border) solid var(--am-line); }
.am-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--am-space-4);
  min-height: var(--am-tap);
  padding-block: var(--am-space-4);
  font-family: var(--am-font-serif);
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-h3);
  line-height: var(--am-lh-h3);
  cursor: pointer;
  list-style: none;
}
.am-faq__q::-webkit-details-marker { display: none; }
.am-faq__q::after {
  content: "";
  display: inline-block; /* Firefox no gira el pseudo-elemento de <summary> sin esto */
  flex: none;
  width: var(--am-chevron);
  height: var(--am-chevron);
  margin-right: var(--am-space-1);
  border-right: var(--am-border-strong) solid currentColor;
  border-bottom: var(--am-border-strong) solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--am-duration) var(--am-ease);
}
.am-faq__item[open] .am-faq__q::after { transform: rotate(-135deg); }
.am-faq__a { padding-bottom: var(--am-space-5); color: var(--am-text-muted); }
.am-faq__a > * { margin: 0; }

/* Escritorio: pregunta y respuesta en dos columnas (float: <details> no
   admite grid de forma fiable en todos los navegadores) */
@media (min-width: 720px) {
  .am-faq__item { display: flow-root; }
  .am-faq__q {
    float: left;
    width: var(--am-faq-question);
    padding-right: var(--am-space-6);
    cursor: default;
  }
  .am-faq__q::after { display: none; }
  .am-faq__a {
    margin-left: var(--am-faq-question);
    padding-top: var(--am-space-4);
    color: var(--am-text);
  }
}


/* --------------------------------------------------------------------------
   23. Campo de formulario
   -------------------------------------------------------------------------- */

.am-form {
  display: grid;
  gap: var(--am-space-5);
  padding: var(--am-space-6) var(--am-space-5);
}
@media (min-width: 720px) {
  .am-form { padding: var(--am-space-7) var(--am-space-7); }
}

.am-field { display: grid; gap: var(--am-space-2); }
.am-field__label {
  font-weight: var(--am-weight-semibold);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
}
.am-field__optional { font-weight: var(--am-weight-regular); color: var(--am-text-muted); }
.am-field__hint { margin: 0; font-size: var(--am-fs-small); line-height: var(--am-lh-small); color: var(--am-text-muted); }

.am-field__control {
  width: 100%;
  min-height: var(--am-btn-height);
  padding: var(--am-space-3) var(--am-space-4);
  background: var(--am-surface);
  color: var(--am-text);
  border: var(--am-border) solid var(--am-line-strong);
  border-radius: var(--am-radius-sm);
  font-family: var(--am-font-sans);
  font-size: var(--am-fs-body);
  line-height: var(--am-lh-small);
  transition: border-color var(--am-duration) var(--am-ease);
}
.am-field__control::placeholder { color: var(--am-text-muted); opacity: 1; }
.am-field__control:hover { border-color: var(--am-text); }
.am-field__control:focus-visible { border-color: var(--am-green); box-shadow: var(--am-focus-ring); }
.am-field__control--textarea { min-height: var(--am-textarea-height); resize: vertical; }

.am-field__select { position: relative; }
.am-field__select .am-field__control {
  appearance: none;
  padding-right: var(--am-space-7);
  cursor: pointer;
}
.am-field__select::after {
  content: "";
  position: absolute;
  right: var(--am-space-4);
  top: 50%;
  width: var(--am-chevron);
  height: var(--am-chevron);
  margin-top: calc(var(--am-chevron) * -0.75);
  border-right: var(--am-border-strong) solid var(--am-text);
  border-bottom: var(--am-border-strong) solid var(--am-text);
  transform: rotate(45deg);
  pointer-events: none;
}

.am-field__error {
  display: none;
  margin: 0;
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
  font-weight: var(--am-weight-medium);
  color: var(--am-error);
}
.am-field--error .am-field__control { border-color: var(--am-error); border-width: var(--am-border-strong); }
.am-field--error .am-field__error { display: block; }

/* Casilla de verificación (p. ej. aceptar la política de privacidad) */
.am-field__check {
  display: flex;
  align-items: flex-start;
  gap: var(--am-space-3);
  min-height: var(--am-tap);
  padding-block: var(--am-space-2);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
  cursor: pointer;
}
.am-field__checkbox {
  flex: none;
  width: var(--am-check-size);
  height: var(--am-check-size);
  margin: calc((var(--am-lh-small) - var(--am-check-size)) / 2) 0 0;
  accent-color: var(--am-green);
  cursor: pointer;
}
.am-field__checkbox:focus-visible { box-shadow: var(--am-focus-ring); }
.am-field--error .am-field__checkbox {
  outline: var(--am-border-strong) solid var(--am-error);
  outline-offset: var(--am-border-strong);
}

/* Resultado del envío (lo escribe components.js) */
.am-form__status {
  margin: 0;
  padding: var(--am-space-3) var(--am-space-4);
  border: var(--am-border) solid transparent;
  border-radius: var(--am-radius-sm);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
  font-weight: var(--am-weight-medium);
}
.am-form__status[hidden] { display: none; }
.am-form__status--success { background: var(--am-green-soft); color: var(--am-green); }
.am-form__status--error { background: var(--am-surface); color: var(--am-error); border-color: var(--am-error); }
.am-btn[aria-busy="true"] { cursor: progress; }

.am-form__legal { margin: 0; font-size: var(--am-fs-small); line-height: var(--am-lh-small); color: var(--am-text-muted); }


/* --------------------------------------------------------------------------
   24. Barra de navegación
   -------------------------------------------------------------------------- */

.am-nav {
  background: var(--am-bg);
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-nav--sticky { position: sticky; top: 0; z-index: 5; }
.am-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--am-space-5);
  min-height: var(--am-nav-height);
}
/* El logo encoge hasta su mínimo (120px); el botón nunca parte su texto */
.am-nav__logo {
  display: flex;
  align-items: center;
  min-height: var(--am-tap);
  flex: 0 1 var(--am-logo-nav);
  min-width: var(--am-logo-min-width);
}
.am-nav__logo img { width: 100%; }
.am-nav__cta { flex: none; }
@media (max-width: 419.98px) {
  .am-nav__inner { gap: var(--am-space-3); }
  .am-nav__cta { padding-inline: var(--am-space-3); }
}
.am-nav__links {
  display: none;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  gap: var(--am-space-1);
}
.am-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--am-tap);
  padding-inline: var(--am-space-3);
  color: var(--am-text);
  font-size: var(--am-fs-small);
  font-weight: var(--am-weight-medium);
  text-decoration: none;
  border-radius: var(--am-radius-sm);
}
.am-nav__link:hover { color: var(--am-green); text-decoration: underline; text-underline-offset: var(--am-underline-offset); }
.am-nav__link[aria-current="page"] { color: var(--am-green); }
@media (min-width: 1024px) {
  .am-nav__links { display: flex; }
}


/* --------------------------------------------------------------------------
   25. Bloque de cierre negro
   -------------------------------------------------------------------------- */

.am-closing {
  background: var(--am-ink);
  color: var(--am-on-ink);
  padding-block: var(--am-space-9) var(--am-space-7);
}
.am-closing :focus-visible { box-shadow: var(--am-focus-ring-on-ink); }
.am-closing__title {
  margin: 0;
  max-width: var(--am-max-width);
  font-family: var(--am-font-serif);
  font-weight: var(--am-weight-medium);
  font-size: calc(var(--am-fs-display) * 1.25);
  line-height: calc(var(--am-lh-display) * 1.2);
  letter-spacing: var(--am-tracking-tight);
  color: var(--am-on-ink);
  text-wrap: balance;
}
.am-closing__text {
  margin: var(--am-space-5) 0 var(--am-space-6);
  max-width: var(--am-text-width);
  font-size: var(--am-fs-lead);
  line-height: var(--am-lh-lead);
  color: var(--am-on-ink-muted);
}
/* Variante corta: solo el email bajo el botón, sin línea ni logo */
.am-closing__email {
  margin: var(--am-space-5) 0 0;
  font-family: var(--am-font-mono);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
}
.am-closing__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--am-space-5);
  margin-top: var(--am-space-9);
  padding-top: var(--am-space-5);
  border-top: var(--am-border) solid var(--am-line-on-ink);
}
.am-closing__contact {
  display: grid;
  font-family: var(--am-font-mono);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
}
.am-closing__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--am-tap);
  color: var(--am-on-ink);
  text-decoration: underline;
  text-decoration-color: var(--am-on-ink-muted);
  text-underline-offset: var(--am-underline-offset);
}
.am-closing__link:hover { text-decoration-color: var(--am-on-ink); }
.am-closing__logo { width: var(--am-logo-nav); min-width: var(--am-logo-min-width); }


/* --------------------------------------------------------------------------
   26. Pie de página
   -------------------------------------------------------------------------- */

.am-footer {
  padding-block: var(--am-space-6);
  border-top: var(--am-border) solid var(--am-line);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
  color: var(--am-text-muted);
}
.am-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--am-space-4) var(--am-space-6);
}
.am-footer__logo { display: flex; align-items: center; min-height: var(--am-tap); }
.am-footer__logo img { width: var(--am-logo-footer); min-width: var(--am-logo-min-width); }
.am-footer__links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0 var(--am-space-5);
}
.am-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--am-tap);
  color: var(--am-text-muted);
  text-decoration: none;
}
.am-footer__link:hover { color: var(--am-green); text-decoration: underline; }
.am-footer__email { color: var(--am-green); }


/* --------------------------------------------------------------------------
   27. Portada (texto + ticket)
   -------------------------------------------------------------------------- */

.am-hero { padding-block: var(--am-space-8) calc(var(--am-section-gap) / 2); }
.am-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--am-space-7);
  align-items: center;
}
.am-hero__text { min-width: 0; }
.am-hero__lead { margin: var(--am-space-5) 0 0; max-width: var(--am-text-width); }
.am-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--am-space-3);
  margin-top: var(--am-space-6);
}
.am-hero__note { margin: 0; font-size: var(--am-fs-small); line-height: var(--am-lh-small); color: var(--am-text-muted); }
.am-hero__aside { display: flex; justify-content: center; }
@media (min-width: 1024px) {
  .am-hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--am-space-8); }
}


/* --------------------------------------------------------------------------
   28. Detalle de producto (texto + objeto de ejemplo)
   -------------------------------------------------------------------------- */

.am-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--am-space-7);
  align-items: start;
}
.am-feature .am-numhead { margin-bottom: var(--am-space-5); }
.am-feature__badge { margin-bottom: var(--am-space-4); }
/* Titular sin número (p. ej. el del formulario de diagnóstico) */
.am-feature__title { margin-bottom: var(--am-space-5); }
.am-feature__body { min-width: 0; }
.am-feature__lead { margin: 0 0 var(--am-space-5); }
.am-feature__points {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--am-border) solid var(--am-line-strong);
}
.am-feature__point {
  padding-block: var(--am-space-3);
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-feature__object { min-width: 0; }
.am-feature__object > .am-chat { max-width: none; }
@media (min-width: 1024px) {
  .am-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--am-space-8); }
  .am-feature--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .am-feature--reverse .am-feature__text { order: 2; }
  /* Apilada: el objeto ancho (tabla) ocupa toda la fila bajo el texto */
  .am-feature--stacked { grid-template-columns: minmax(0, 1fr); gap: var(--am-space-7); }
  .am-feature--stacked .am-feature__text {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--am-space-8);
    align-items: start;
  }
  .am-feature--stacked .am-numhead { margin-bottom: 0; }
}


/* --------------------------------------------------------------------------
   29. Solo para la página de referencia (index.html). No usar en la web.
   -------------------------------------------------------------------------- */

.am-doc-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--am-border) solid var(--am-line-strong);
}
.am-doc-toc__item { border-bottom: var(--am-border) solid var(--am-line); }
.am-doc-toc__link {
  display: flex;
  align-items: baseline;
  gap: var(--am-space-3);
  min-height: var(--am-tap);
  padding-block: var(--am-space-3);
  color: var(--am-text);
  text-decoration: none;
  font-family: var(--am-font-serif);
  font-size: var(--am-fs-h3);
  line-height: var(--am-lh-h3);
}
.am-doc-toc__link:hover { color: var(--am-green); }
.am-doc-toc__num { color: var(--am-text-muted); }
@media (min-width: 1024px) {
  .am-doc-toc { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--am-space-5); }
}

/* Muestras de color */
.am-doc-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--am-space-5) var(--am-space-4);
}
@media (min-width: 720px) { .am-doc-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .am-doc-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.am-doc-swatch { margin: 0; }
.am-doc-swatch__chip {
  height: var(--am-space-9);
  border: var(--am-border) solid var(--am-line);
  border-radius: var(--am-radius-md);
}
.am-doc-swatch__name { display: block; margin-top: var(--am-space-3); font-weight: var(--am-weight-semibold); font-size: var(--am-fs-small); line-height: var(--am-lh-small); }
.am-doc-swatch__meta { display: block; font-family: var(--am-font-mono); font-size: var(--am-fs-label); line-height: var(--am-lh-label); color: var(--am-text-muted); }
.am-doc-swatch__use { display: block; margin-top: var(--am-space-1); font-size: var(--am-fs-small); line-height: var(--am-lh-small); color: var(--am-text-muted); }

/* Logos */
.am-doc-logos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--am-space-4);
}
@media (min-width: 720px) { .am-doc-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .am-doc-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.am-doc-logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: var(--am-border) solid var(--am-line);
  border-radius: var(--am-radius-lg);
  overflow: hidden;
  background: var(--am-surface);
}
.am-doc-logo__stage {
  display: grid;
  place-items: center;
  min-height: calc(var(--am-space-10) + var(--am-space-6));
  padding: var(--am-space-6);
  background: var(--am-bg);
}
.am-doc-logo--ink .am-doc-logo__stage { background: var(--am-ink); }
.am-doc-logo--green .am-doc-logo__stage { background: var(--am-green); }
.am-doc-logo__img { width: 100%; max-width: calc(var(--am-logo-nav) + var(--am-space-8)); }
.am-doc-logo__img--square { max-width: var(--am-avatar-lg); }
.am-doc-logo__img--wide { max-width: 100%; }
.am-doc-logo__caption {
  flex: 1;
  padding: var(--am-space-4) var(--am-space-5);
  border-top: var(--am-border) solid var(--am-line);
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
}
.am-doc-logo__file { display: block; margin-bottom: var(--am-space-1); }

/* Tabla de datos de la documentación */
.am-doc-table-wrap { overflow-x: auto; }
.am-doc-table {
  width: 100%;
  min-width: calc(var(--am-max-width) / 2);
  border-collapse: collapse;
  font-size: var(--am-fs-small);
  line-height: var(--am-lh-small);
}
.am-doc-table th {
  padding: var(--am-space-3) var(--am-space-4) var(--am-space-3) 0;
  text-align: left;
  font-family: var(--am-font-mono);
  font-weight: var(--am-weight-medium);
  font-size: var(--am-fs-label);
  letter-spacing: var(--am-tracking-label);
  text-transform: uppercase;
  color: var(--am-text-muted);
  border-bottom: var(--am-border) solid var(--am-line-strong);
}
.am-doc-table td {
  padding: var(--am-space-3) var(--am-space-4) var(--am-space-3) 0;
  border-bottom: var(--am-border) solid var(--am-line);
  vertical-align: top;
}
.am-doc-table code { font-family: var(--am-font-mono); font-size: var(--am-fs-label); }
.am-doc-sample {
  display: inline-block;
  padding: var(--am-space-1) var(--am-space-3);
  border: var(--am-border) solid var(--am-line);
  border-radius: var(--am-radius-sm);
  font-weight: var(--am-weight-semibold);
  white-space: nowrap;
}

/* Escala tipográfica */
.am-doc-type { border-top: var(--am-border) solid var(--am-line-strong); }
.am-doc-type__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--am-space-2);
  padding-block: var(--am-space-5);
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-doc-type__meta { color: var(--am-text-muted); }
@media (min-width: 720px) {
  .am-doc-type__row { grid-template-columns: calc(var(--am-space-10) + var(--am-space-8)) minmax(0, 1fr); gap: var(--am-space-5); align-items: baseline; }
}

/* Espaciado y radios */
.am-doc-scale { list-style: none; margin: 0; padding: 0; }
.am-doc-scale__row {
  display: grid;
  grid-template-columns: calc(var(--am-space-10) + var(--am-space-8)) minmax(0, 1fr);
  align-items: center;
  gap: var(--am-space-4);
  padding-block: var(--am-space-2);
  border-bottom: var(--am-border) solid var(--am-line);
}
.am-doc-scale__bar { display: block; height: var(--am-space-3); background: var(--am-green); border-radius: var(--am-radius-sm); }
.am-doc-radii { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--am-space-5) var(--am-space-4); }
@media (min-width: 720px) { .am-doc-radii { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.am-doc-radius { margin: 0; text-align: center; font-size: var(--am-fs-small); line-height: var(--am-lh-small); }
.am-doc-radius__box {
  width: var(--am-space-8);
  height: var(--am-space-8);
  margin: 0 auto var(--am-space-2);
  background: var(--am-surface);
  border: var(--am-border) solid var(--am-line-strong);
}

/* Bloque de cada componente */
.am-doc-component { padding-block: var(--am-space-8); border-top: var(--am-border) solid var(--am-line-strong); }
.am-doc-component__head { margin-bottom: var(--am-space-6); }
.am-doc-component__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--am-space-1) var(--am-space-4);
  margin-top: var(--am-space-3);
}
.am-doc-component__classes { font-family: var(--am-font-mono); font-size: var(--am-fs-label); line-height: var(--am-lh-label); color: var(--am-text-muted); }
.am-doc-bleed {
  border: var(--am-border) solid var(--am-line);
  border-radius: var(--am-radius-lg);
  overflow: hidden;
}
