/* Página «Cómo conectarse» (conector.html). Se apoya en aigos.css: tokens, barra, héroe, botones y pie. */

/* Héroe: título y la dirección del servidor como protagonista */
.heroe-conector .heroe-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: clamp(2.75rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.heroe-conector h1 { font-size: clamp(2.9rem, 7.2vw, 6rem); max-width: 8ch; }
.url-mcp {
  min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 22px;
  background: var(--hondo-2); border: 1px solid var(--hondo-3);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .75);
}
.url-tit { font-size: .95rem; color: var(--brote); margin-bottom: .75rem; }
.url-mcp pre {
  margin: 0 0 1.25rem; padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--hondo); border: 1px dashed rgba(212, 179, 94, .5);
  color: var(--laton); white-space: pre-wrap; overflow-wrap: anywhere;
  font: 500 clamp(.92rem, 1.6vw, 1.1rem)/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.url-acciones { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Lectura */
.lectura { max-width: 64rem; }
.tramo { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1rem 3.5rem; padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--linea); }
.tramo:first-child { border-top: 0; }
.h-tramo { font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.02; font-weight: 700; font-stretch: 85%; letter-spacing: -.012em; color: var(--bosque); }
.h-claro { color: var(--papel); }
.tramo-cuerpo { display: grid; gap: 1rem; max-width: 42rem; }
.h-sub { font-size: 1.3rem; font-weight: 700; font-stretch: 88%; color: var(--tinta); margin-top: .75rem; }

.roles { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.roles div { padding-top: 1rem; border-top: 3px solid var(--bosque); }
.roles dt { font: 700 1.5rem/1.1 var(--f-titulo); font-stretch: 85%; color: var(--tinta); margin-bottom: .5rem; }
.roles dd { margin: 0; color: var(--suave); }

.seguro { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; max-width: 44rem; }
.seguro li { position: relative; padding-left: 1.6rem; }
.seguro li::before { content: ""; position: absolute; left: 0; top: .55rem; width: .6rem; height: .6rem; border-radius: 2px; background: var(--bosque); transform: rotate(45deg); }
.seguro strong { color: var(--bosque); }

.dichos { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.dichos li { justify-self: start; max-width: 100%; padding: .6rem 1rem; border-radius: 16px 16px 16px 4px; background: var(--papel-2); border: 1px solid var(--linea); font-weight: 500; }

/* Pasos por IA: banda en bosque hondo */
.pasos { background: var(--hondo); color: var(--papel); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.pasos a { color: var(--laton); }
.pasos :focus-visible { outline-color: var(--laton); }
.pasos-entrada { margin: 1rem 0 2rem; max-width: 44rem; color: var(--sobre-hondo); font-size: 1.1rem; }
.pasos-entrada strong { color: var(--papel); }

.pestanas { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: .4rem; border-radius: 999px; background: var(--hondo-2); border: 1px solid var(--hondo-3); width: fit-content; max-width: 100%; }
.pestanas a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1.1rem; border-radius: 999px; color: var(--sobre-hondo); text-decoration: none; font-weight: 600; font-size: .98rem; transition: background-color .2s, color .2s; }
.pestanas a:hover { color: var(--papel); background: var(--hondo-3); }
.pestanas a[aria-current="true"] { background: var(--papel); color: var(--hondo); }

.ia-bloque { margin: .75rem 0; border-radius: 18px; background: var(--hondo-2); border: 1px solid var(--hondo-3); padding: 0 clamp(1rem, 3vw, 1.75rem); }
.ia-bloque[open] { border-color: rgba(212, 179, 94, .45); }
.ia-bloque summary {
  list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem;
  padding: 1.1rem 0; min-height: 44px;
  font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.1 var(--f-titulo); font-stretch: 85%; color: var(--papel);
}
.ia-bloque summary::-webkit-details-marker { display: none; }
.ia-bloque summary::after { content: "+"; margin-left: auto; font: 400 1.6rem/1 var(--f-texto); color: var(--laton); }
.ia-bloque[open] summary::after { content: "–"; }
.ia-bloque summary:focus-visible { outline: 3px solid var(--laton); outline-offset: 4px; border-radius: 6px; }
.cond { font: 500 .92rem var(--f-texto); color: var(--brote); }
.ia-bloque > p, .sub-ia > p { margin: 0 0 1rem; max-width: 46rem; color: var(--sobre-hondo); }
.ia-bloque > p strong, .sub-ia > p strong { color: var(--papel); }
.ia-bloque[open] { padding-bottom: 1.5rem; }

.pasos-lista { counter-reset: n; list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .1rem; max-width: 48rem; }
.pasos-lista li { counter-increment: n; position: relative; padding: .7rem 0 .7rem 2.9rem; border-top: 1px solid var(--hondo-3); color: var(--papel); }
.pasos-lista li::before { content: counter(n); position: absolute; left: 0; top: .6rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid var(--laton); color: var(--laton); font: 700 .9rem var(--f-titulo); }
.pasos-lista strong { color: var(--papel); }
.pasos code { font: .88rem ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--hondo); border: 1px solid var(--hondo-3); border-radius: 6px; padding: .05rem .4rem; color: var(--laton); overflow-wrap: anywhere; }
.h-editor { font-size: 1.25rem; font-weight: 700; font-stretch: 88%; color: var(--papel); margin: 1.5rem 0 .75rem; }
.sub-ia { margin-top: 1rem; padding-top: .25rem; border-top: 1px dashed var(--hondo-3); }

.nota { font-size: .92rem; color: var(--sobre-hondo); }
.ia-bloque .nota, .sub-ia .nota { padding-left: .9rem; border-left: 3px solid var(--hondo-3); }
.drive { padding: .85rem 1rem; border-radius: 12px; background: rgba(183, 204, 152, .08); border: 1px solid rgba(183, 204, 152, .22); color: var(--papel) !important; font-size: .97rem; }
.ia-bloque > .drive + .drive { margin-top: -.4rem; }

.drive-cierre { margin-top: 2.5rem; display: grid; gap: 1rem; max-width: 46rem; }
.drive-cierre h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; font-stretch: 85%; color: var(--papel); }
.drive-cierre p { color: var(--sobre-hondo); }
.pendiente { display: inline-block; margin-top: .25rem; padding: .1rem .5rem; border-radius: 6px; background: rgba(212, 179, 94, .16); color: var(--laton); }

/* Fichas para copiar mensajes */
.ficha { min-width: 0; border-radius: 16px; overflow: hidden; background: var(--hondo); color: var(--papel); }
.ficha .tit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .7rem .8rem .7rem 1.1rem; border-bottom: 1px solid var(--hondo-3); font-weight: 600; font-size: .95rem; color: var(--brote); }
.ficha pre { margin: 0; padding: 1.1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: .95rem/1.6 var(--f-texto); color: var(--papel); }
.boton-copiar { min-height: 40px; padding: .45rem 1rem; font-size: .92rem; background: var(--papel); color: var(--hondo); }
.boton-copiar:hover { background: #fff; }
.ficha :focus-visible { outline-color: var(--laton); }

@media (max-width: 900px) {
  .heroe-conector .heroe-in { grid-template-columns: minmax(0, 1fr); }
  .tramo { grid-template-columns: minmax(0, 1fr); }
  .roles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pestanas { border-radius: 18px; }
  .pestanas a { padding: .4rem .85rem; font-size: .93rem; }
  .url-acciones .boton { flex: 1 1 auto; }
  .pasos-lista li { padding-left: 2.6rem; }
}
