.ag-modelo .ag-encabezado {
  margin-bottom: clamp(24px, 5vw, 60px);
  text-align: center;
}

.ag-modelo .ag-etiqueta { justify-content: center; }
.ag-modelo .ag-h2, .ag-modelo .ag-intro { margin-inline: auto; }
.ag-modelo .ag-intro { max-width: 54ch; }

.ag-modelo__filas,
.ag-modelo__puntos,
.ag-modelo__hitos {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ag-modelo__fila {
  display: grid;
  align-items: center;
  gap: clamp(22px, 4vw, 66px);
  padding: clamp(28px, 5vw, 62px) 0;
  border-bottom: 1px solid var(--ag-border-soft);
}

.ag-modelo__fila:first-child { padding-top: 0; }
.ag-modelo__fila:last-child { padding-bottom: 0; border-bottom: 0; }

.ag-modelo__contenido {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-width: 0;
}

.ag-modelo__etiqueta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ag-accent);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ag-modelo__etiqueta::before,
.ag-modelo__pie::before,
.ag-modelo__estado::before {
  width: 6px;
  height: 6px;
  flex: none;
  background: currentColor;
  content: '';
}

.ag-modelo__titulo {
  margin: 0;
  max-width: 25ch;
  color: var(--ag-heading);
  font: 400 clamp(1.375rem, 1rem + 1.15vw, 1.875rem)/1.22 'Sora', system-ui, sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.ag-modelo__texto {
  max-width: 48ch;
  color: var(--ag-muted);
  font-size: .9375rem;
}

.ag-modelo__puntos {
  display: grid;
  gap: 8px;
  color: var(--ag-text);
  font-size: .875rem;
}

.ag-modelo__puntos li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
}

.ag-modelo__puntos li::before {
  width: 9px;
  height: 5px;
  margin-top: .45em;
  transform: rotate(-45deg);
  border: solid var(--ag-accent);
  border-width: 0 0 1px 1px;
  content: '';
}

.ag-modelo__enlace {
  min-height: 44px;
  gap: 12px;
  margin-top: 4px;
  padding-inline: 16px;
  font-size: .875rem;
}

.ag-modelo__vista {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: var(--ag-muted);
  font-size: .75rem;
}

.ag-modelo__lienzo {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(16px, 3.3vw, 36px);
  background-image:
    linear-gradient(rgba(200, 184, 149, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 184, 149, .055) 1px, transparent 1px),
    radial-gradient(ellipse at 46% 54%, rgba(200, 184, 149, .11), transparent 74%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  background-position: center;
}

.ag-modelo__documento,
.ag-modelo__panel {
  position: relative;
  display: grid;
  gap: 8px;
  width: min(100%, 300px);
  padding: clamp(12px, 2.6vw, 24px);
  border: 1px solid var(--ag-border);
  border-radius: 10px;
  background: linear-gradient(140deg, #222225, #14161a 75%);
  box-shadow: 0 14px 24px -9px rgba(0, 0, 0, .55);
}

.ag-modelo__documento {
  width: min(85%, 265px);
  box-shadow: -8px 7px 0 -2px #17181b, -8px 7px 0 -1px rgba(200, 184, 149, .23), 0 14px 24px -9px rgba(0, 0, 0, .55);
}

.ag-modelo__documento > strong,
.ag-modelo__panel > strong {
  color: var(--ag-heading);
  font-size: clamp(.75rem, 1.35vw, .9375rem);
  font-weight: 600;
}

.ag-modelo__renglon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--ag-border-soft);
}

.ag-modelo__documento .ag-modelo__renglon::after {
  width: 18px;
  height: 1px;
  flex: none;
  background: var(--ag-accent);
  opacity: .5;
  content: '';
}

.ag-modelo__renglon--doble {
  margin-top: 10px;
  padding-top: 10px;
}

.ag-modelo__renglon--doble strong { color: var(--ag-text); }

.ag-modelo__hitos {
  --ag-modelo-avance: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  color: var(--ag-text);
  font-size: clamp(.625rem, 1.1vw, .75rem);
  text-align: center;
}

.ag-modelo__hitos::before,
.ag-modelo__hitos::after {
  position: absolute;
  inset: 6px 16.666% auto;
  height: 1px;
  content: '';
}

.ag-modelo__hitos::before { background: var(--ag-border); }

.ag-modelo__hitos::after {
  transform: scaleX(var(--ag-modelo-avance));
  transform-origin: left;
  background: var(--ag-accent);
  opacity: .62;
}

.ag-modelo__hitos li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.ag-modelo__hitos li::before {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ag-accent);
  border-radius: 50%;
  background: #232226;
  content: '';
}

.ag-modelo__hitos li:last-child::before { background: var(--ag-accent); }

.ag-modelo__impacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.ag-modelo__impacto span {
  padding: 8px;
  border: 1px solid var(--ag-border-soft);
  border-radius: 6px;
  background: rgba(200, 184, 149, .055);
  color: var(--ag-text);
  text-align: center;
}

.ag-modelo__estado {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 7px;
  color: var(--ag-accent);
}

.ag-modelo__estado::before { width: 5px; height: 5px; }

.ag-modelo__pie {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-top: 1px solid var(--ag-border-soft);
  background: rgba(13, 14, 16, .64);
  color: var(--ag-accent);
  font-size: .6875rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .ag-modelo__fila { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-modelo__vista { justify-self: end; }

  .ag-modelo__fila:nth-child(even) .ag-modelo__contenido { grid-area: 1 / 2; }
  .ag-modelo__fila:nth-child(even) .ag-modelo__vista { grid-area: 1 / 1; justify-self: start; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ag-modelo__vista :is(.ag-modelo__documento, .ag-modelo__panel) {
    transition: translate .32s ease, border-color .32s ease;
  }

  .ag-modelo__vista:hover :is(.ag-modelo__documento, .ag-modelo__panel) {
    translate: 0 -5px;
    border-color: rgba(200, 184, 149, .46);
  }
}
