.agentes main {
  min-width: 0;
}

.agentes main [hidden] {
  display: none;
}

.agentes main [id] {
  scroll-margin-top: 0;
}

.agentes main :focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

.agentes .ag-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
}

.agentes .ag-hero h1 {
  margin: 0;
  color: var(--qv-content-ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: var(--fw-600);
  letter-spacing: var(--trk-tighter);
  line-height: 1.05;
  text-wrap: balance;
}

.agentes .ag-hero h1 span {
  display: block;
  margin-top: .13em;
  color: var(--brand);
}

.agentes .ag-intro {
  max-width: 42ch;
  margin: 23px 0 27px;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: var(--fw-400);
  letter-spacing: -.01em;
  line-height: 1.62;
  text-wrap: pretty;
}

.agentes .ag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agentes .ag-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.agentes .ag-text-link,
.agentes .ag-guide-legal a {
  color: var(--brand);
  font-weight: var(--fw-600);
  transition: color var(--motion-fast) var(--motion-ease);
}

.agentes .ag-text-link:hover,
.agentes .ag-guide-legal a:hover {
  color: var(--brand-dark);
}

.agentes main .btn svg,
.agentes .ag-text-link svg,
.agentes .ag-demo-result svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.agentes main a {
  text-decoration: none;
}

.agentes main .btn {
  box-shadow: none;
  font-weight: var(--fw-600);
}

.agentes main .btn:hover {
  transform: none;
}

.agentes main .btn--primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.agentes main .btn--ghost {
  background: var(--qv-surface);
  border-color: var(--qv-divider);
  color: var(--brand);
}

.agentes main .btn--ghost:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.agentes .ag-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.agentes .ag-icon svg {
  width: 19px;
  height: 19px;
}

.agentes .ag-demo {
  min-width: 0;
  padding: clamp(16px, 2.25vw, 28px);
  border: 1px solid var(--qv-divider);
  border-radius: 22px;
  background: var(--qv-surface);
}

.agentes .ag-demo-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
}

.agentes .ag-demo-icon {
  width: 34px;
  height: 34px;
}

.agentes .ag-demo-header h2 {
  margin: 0;
  font-size: var(--fs-15);
  font-weight: var(--fw-600);
  letter-spacing: -.01em;
}

.agentes .ag-demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: var(--qv-neutral-surface);
}

.agentes .ag-demo-tabs button {
  min-height: 38px;
  padding: 5px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-13);
  font-weight: var(--fw-600);
  cursor: pointer;
}

.agentes .ag-demo-tabs button[aria-selected="true"] {
  border-color: var(--qv-divider);
  background: var(--qv-surface);
  color: var(--brand);
}

.agentes .ag-demo-tabs button:hover {
  color: var(--brand);
}

.agentes .ag-demo-tabs:not([hidden]) + .ag-demo-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.agentes .ag-demo-panel {
  padding-top: 18px;
  font-size: .89rem;
}

.agentes .ag-demo-panel[role="tabpanel"] {
  grid-area: 1 / 1;
}

/* La altura de la fila se ajusta al mayor de los tres paneles. */
.agentes .ag-demo-panel[role="tabpanel"][hidden] {
  display: block;
  visibility: hidden;
}

.agentes .ag-demo-panel h3 {
  margin: 0 0 3px;
}

.agentes .ag-demo-panel h3,
.agentes .ag-access h3 {
  font-size: 1.05rem;
  font-weight: var(--fw-600);
  letter-spacing: -.01em;
  line-height: 1.3;
}

.agentes .ag-demo-description {
  margin: 0 0 13px;
  color: var(--muted);
}

.agentes .ag-demo-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.agentes .ag-demo-table th,
.agentes .ag-demo-table td {
  padding: 7px 5px;
  border-bottom: 1px solid var(--qv-divider-soft);
  text-align: right;
  line-height: 1.3;
}

.agentes .ag-demo-table tr > :first-child {
  width: 37%;
  padding-left: 0;
  text-align: left;
}

.agentes .ag-demo-table tr > :last-child {
  padding-right: 0;
}

.agentes .ag-demo-table thead th,
.agentes .ag-demo-selected strong,
.agentes .ag-demo-result b {
  font-weight: var(--fw-600);
}

.agentes .ag-demo-table tbody th {
  color: var(--muted);
  font-weight: var(--fw-500);
}

.agentes .ag-demo-table small,
.agentes .ag-demo-selected small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .77em;
  font-weight: 500;
}

.agentes .ag-demo-price td {
  color: var(--qv-content-ink);
  font-size: clamp(.875rem, 1.3vw, 1rem);
  font-weight: var(--fw-600);
}

.agentes .ag-demo-facts {
  margin: 7px 0 13px;
}

.agentes .ag-demo-facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--qv-divider-soft);
}

.agentes .ag-demo-facts dt {
  color: var(--muted);
}

.agentes .ag-demo-facts dd {
  margin: 0;
  font-weight: var(--fw-600);
  text-align: right;
}

.agentes .ag-demo-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--qv-content-ink);
  line-height: 1.45;
}

.agentes .ag-demo-result svg {
  margin-top: 2px;
  color: var(--brand);
}

.agentes .ag-demo-selected {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 16px 0 12px;
  padding: 12px;
  border: 1px solid var(--qv-divider);
  border-radius: 12px;
}

.agentes .ag-demo-selected > :last-child {
  text-align: right;
}

.agentes .ag-demo-date {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}

.agentes main .h2 {
  font-weight: var(--fw-600);
}

.agentes .ag-section-heading .h2 {
  margin: 0;
  text-wrap: balance;
}

.agentes .ag-section-heading {
  margin: 0 0 27px;
}

.agentes .ag-section-heading p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.agentes .ag-capabilities-heading {
  margin-bottom: clamp(30px, 4vw, 48px);
}

.agentes .ag-capabilities-heading p {
  max-width: 58ch;
  margin-top: 16px;
}

.agentes .ag-capabilities {
  margin: 0;
  border-top: 1px solid var(--qv-divider);
}

.agentes .ag-capabilities > div {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(25px, 2.7vw, 36px);
  border-bottom: 1px solid var(--qv-divider);
}

.agentes .ag-capabilities dt {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.18rem;
  font-weight: var(--fw-700);
  letter-spacing: -.02em;
}

.agentes .ag-capabilities dd {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
}

.agentes :is(.ag-practice-layout, .ag-guide-help) {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 86px);
  align-items: start;
}

.agentes .ag-practice-layout .ag-section-heading {
  margin: 0;
}

.agentes .ag-practice-layout .ag-section-heading .ag-text-link {
  margin-top: 18px;
}

.agentes .ag-prompts {
  border: 1px solid var(--qv-divider);
  border-radius: 18px;
  background: var(--qv-surface);
  box-shadow: 0 16px 44px -28px rgba(15, 23, 42, .2);
}

.agentes .ag-prompt,
.agentes .ag-followup {
  padding: 16px clamp(14px, 2.6vw, 24px);
}

.agentes .ag-prompt h3,
.agentes .ag-followup summary {
  margin: 0;
  font-size: .92rem;
  font-weight: var(--fw-600);
}

.agentes .ag-prompts blockquote {
  margin: 12px 0 0;
  padding: 13px 15px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--qv-content-ink);
  font-size: .93rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.agentes .ag-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .83rem;
}

.agentes .ag-followup {
  border-top: 1px solid var(--qv-divider);
}

.agentes :is(.ag-followup, .ag-chrome) > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.agentes :is(.ag-followup, .ag-chrome) > summary::-webkit-details-marker {
  display: none;
}

.agentes :is(.ag-followup, .ag-chrome) > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 3px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.agentes :is(.ag-followup, .ag-chrome)[open] > summary::after {
  transform: rotate(225deg);
}

.agentes main summary:hover {
  color: var(--brand);
}

.agentes .ag-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.agentes .ag-access {
  padding: clamp(17px, 2.55vw, 28px);
  border: 1px solid var(--qv-divider);
  border-radius: 16px;
  background: var(--qv-surface);
}

.agentes .ag-access h3 {
  margin: 12px 0 7px;
}

.agentes .ag-access p,
.agentes .ag-chrome ol {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.agentes .ag-chrome {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--qv-neutral-surface);
  font-size: .9rem;
}

.agentes .ag-chrome summary {
  font-weight: var(--fw-600);
}

.agentes .ag-chrome p {
  margin: 10px 0 8px;
}

.agentes .ag-chrome ol {
  padding-left: 19px;
}

.agentes .ag-chrome li + li {
  margin-top: 5px;
}

.agentes .ag-chrome code {
  font-size: .87em;
  overflow-wrap: anywhere;
}

.agentes .ag-guide-video {
  margin: 0;
}

.agentes .ag-guide-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.agentes .ag-guide-player > * {
  grid-area: 1 / 1;
}

.agentes .ag-guide-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  /* La franja superior forma parte de la imagen de portada del video. */
  clip-path: inset(2.1% 0 0 round 10px);
  background: var(--qv-neutral-surface);
}

.agentes #acceso-conector .ag-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.agentes .ag-guide-start {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "steps access";
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}

.agentes .ag-guide-start > aside {
  grid-area: access;
}

.agentes .ag-guide-steps {
  display: grid;
  grid-area: steps;
  gap: 24px;
  margin: 0;
  padding-inline-start: 24px;
}

.agentes .ag-guide-steps > li {
  padding-inline-start: 8px;
}

.agentes .ag-guide-steps li::marker {
  color: var(--brand);
  font-weight: var(--fw-600);
}

.agentes .ag-guide-steps h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-weight: var(--fw-700);
  letter-spacing: -.02em;
}

.agentes .ag-guide-steps li > p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.agentes .ag-guide-example {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--qv-neutral-surface);
  font-size: .94rem;
}

.agentes .ag-guide-documents {
  display: grid;
  gap: 8px;
}

.agentes .ag-guide-documents > h3 {
  margin: 0 0 5px;
}

.agentes .ag-guide-legal h4 {
  margin: 1rem 0 .35rem;
  color: var(--ink);
}

.agentes .ag-guide-legal p + p {
  margin-top: .75rem;
}

.agentes .section--faq .faq-item {
  background: var(--qv-surface);
}

.agentes .faq-item__q:focus-visible {
  outline-offset: -3px;
}

@media (max-width: 850px) {
  .agentes .ag-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 600px;
    gap: 30px;
  }
}

@media (max-width: 680px) {
  .agentes .ag-practice-layout,
  .agentes .ag-guide-start,
  .agentes .ag-guide-help,
  .agentes .ag-access-grid,
  .agentes .ag-capabilities > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .agentes .ag-capabilities > div {
    gap: 12px;
  }

  .agentes .ag-guide-start {
    grid-template-areas: "access" "steps";
  }

  .agentes .ag-intro {
    margin-top: 17px;
    margin-bottom: 22px;
  }
}

@media (max-width: 380px) {
  .agentes .ag-demo-table,
  .agentes .ag-demo-facts,
  .agentes .ag-demo-result {
    font-size: .78rem;
  }
}
