/*
 * Chat de huecos de la página de detalle («Piezas que conversan»).
 * Colores, sombras, radios y letras salen de tokens.css. Todo va bajo
 * .slot-layout para ganar a las reglas generales de campos y botones.
 */

.slot-layout {
  display: grid;
  gap: 28px;
  align-items: start;
  margin-block: 8px 28px;
  color: var(--tinta);
  font-family: var(--letra-texto);
}
@media (min-width: 960px) {
  .slot-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
  }
}

/* ---------- Progreso: «2 de 4 piezas» ---------- */
.slot-layout .slot-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.slot-layout .slot-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.slot-layout .slot-dot {
  display: block;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px dashed var(--hueco-borde);
  border-radius: var(--radio-pildora);
}
.slot-layout .slot-dot.is-done {
  border: 2px solid var(--tinta);
  background: var(--acento);
}
.slot-layout .slot-progress-text {
  font-size: 0.8125rem;
  font-weight: 800;
}

/* ---------- Chat ---------- */
.slot-layout .slot-chat-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.slot-layout .slot-chat-panel > h2 {
  margin: 0;
  font-family: var(--letra-titulo);
  font-size: 1.25rem;
  font-weight: 800;
}
.slot-layout .slot-chat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slot-layout .slot-q {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slot-layout .slot-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.slot-layout .slot-avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  border: var(--borde-grueso);
  border-radius: var(--radio-pildora);
  background: var(--acento);
  color: var(--sobre-acento);
}
.slot-layout .slot-bubble {
  max-width: 86%;
  margin: 0;
  padding: 10px 14px;
  border: var(--borde-grueso);
  border-radius: 18px 18px 18px 4px;
  background: var(--hoja);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.slot-layout .slot-bubble.is-question {
  font-weight: 700;
}
.slot-layout .slot-bubble:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}

/* Respuesta ya dada: píldora morada a la derecha, con «Cambiar». */
.slot-layout .slot-answer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.slot-layout .slot-answer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 420px);
  padding: 7px 14px;
  border: var(--borde-grueso);
  border-radius: 18px 18px 4px 18px;
  background: var(--hueco-relleno);
  box-shadow: var(--sombra-dura-xs);
  color: var(--hueco-relleno-texto);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.slot-layout .slot-answer-pill.is-skipped {
  border: 2px dashed var(--hueco-borde);
  background: var(--hueco-fondo);
  box-shadow: none;
  color: var(--hueco-texto);
}
.slot-layout .slot-answer-pill .slot-flag,
.slot-layout .slot-answer-pill .slot-logo {
  flex: none;
}

/* Tarjeta con el control de la pregunta abierta */
.slot-layout .slot-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin-left: 40px;
  padding: 14px;
  border: var(--borde-grueso);
  border-radius: var(--radio-tarjeta);
  background: var(--hoja);
  box-shadow: var(--sombra-dura-s);
  animation: slot-appear 0.28s ease-out both;
}
@media (max-width: 359px) {
  .slot-layout .slot-card {
    margin-left: 0;
  }
}
@keyframes slot-appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.slot-layout .slot-hint,
.slot-layout .slot-note {
  margin: 0;
  color: var(--tinta-2);
  font-size: 0.875rem;
  line-height: 1.45;
}
.slot-layout .slot-note:empty {
  display: none;
}
.slot-layout .slot-caps {
  color: var(--tinta-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slot-layout .slot-sub {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slot-layout .slot-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---------- Fichas (chips) ---------- */
.slot-layout .slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.slot-layout .slot-chips.is-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.slot-layout .slot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  box-sizing: border-box;
  border: var(--borde-grueso);
  border-radius: var(--radio-pildora);
  background: var(--hoja);
  color: var(--tinta);
  font-family: var(--letra-texto);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    background-color 0.12s;
}
.slot-layout .slot-chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--sombra-dura-xs);
}
.slot-layout .slot-chip[aria-pressed="true"] {
  background: var(--acento);
  box-shadow: var(--sombra-dura-xs);
  color: var(--sobre-acento);
}
.slot-layout .slot-chip.is-dashed {
  border-style: dashed;
}
.slot-layout .slot-chip.is-small {
  padding: 0 12px;
  font-size: 0.8125rem;
}
.slot-layout .slot-chip.is-big {
  min-height: 52px;
  padding: 0 20px;
  font-size: 1.0625rem;
}
.slot-layout .slot-chip.is-round {
  min-width: 44px;
  padding: 0 10px;
  font-family: var(--letra-mono);
}
.slot-layout .slot-chip.is-code {
  font-family: var(--letra-mono);
  font-weight: 500;
}
.slot-layout .slot-chip.is-tile {
  justify-content: flex-start;
  gap: 8px;
  min-height: 56px;
  padding: 4px 10px;
  border-radius: var(--radio-mosaico);
  text-align: left;
}
.slot-layout .slot-chip-check,
.slot-layout .slot-chip .slot-icon {
  display: inline-flex;
  flex: none;
}
.slot-layout .slot-chip-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.slot-layout .slot-chip-two {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.slot-layout .slot-chip-two > span:last-child {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
}
.slot-layout .slot-chip-code {
  font-family: var(--letra-mono);
  font-size: 0.8125rem;
  font-weight: 500;
}
.slot-layout .slot-flag {
  flex: none;
  box-sizing: border-box;
  border: 2px solid var(--tinta);
  border-radius: var(--radio-pildora);
  object-fit: cover;
}
.slot-layout .slot-answer-pill .slot-flag {
  border-color: var(--sobre-acento);
}
.slot-layout .slot-logo {
  flex: none;
  color: var(--tinta);
}
.slot-layout [aria-pressed="true"] .slot-logo {
  color: var(--sobre-acento);
}
.slot-layout .slot-symbol {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: var(--radio-pildora);
  font-family: var(--letra-mono);
  font-size: 0.75rem;
}

/* Interruptor de dos partes («Uno por uno · Pegar lista») */
.slot-layout .slot-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: var(--borde-grueso);
  border-radius: var(--radio-pildora);
  background: var(--panel);
}
.slot-layout .slot-chip.is-seg {
  min-height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.875rem;
  transform: none;
}
.slot-layout .slot-chip.is-seg[aria-pressed="true"] {
  background: var(--tinta);
  color: var(--hoja);
}
.slot-layout .slot-chip.is-seg .slot-chip-check {
  display: none;
}

/* Muestra «Así suena» */
.slot-layout .slot-sample {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 2px dashed var(--linea-punteada);
  border-radius: 12px;
  background: var(--panel);
}
.slot-layout .slot-sample p {
  margin: 0;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.45;
  white-space: pre-line;
}

/* «Así queda en el prompt» */
.slot-layout .slot-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 10px;
  border-top: 2px dotted var(--linea-punteada);
}
.slot-layout .slot-mini {
  max-width: 100%;
  padding: 2px 9px;
  border-radius: var(--radio-pildora);
  font-family: var(--letra-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.slot-layout .slot-mini.is-empty {
  border: 2px dashed var(--hueco-borde);
  background: var(--hueco-fondo);
  color: var(--hueco-texto);
}
.slot-layout .slot-mini.is-filled {
  border: var(--borde-grueso);
  border-radius: 12px;
  background: var(--hueco-relleno);
  box-shadow: var(--sombra-dura-xs);
  color: var(--hueco-relleno-texto);
}

/* ---------- Campos ---------- */
.slot-layout .slot-input {
  display: block;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 12px;
  border: var(--borde-grueso);
  border-radius: var(--radio-campo);
  background: var(--hoja);
  color: var(--tinta);
  font-family: var(--letra-texto);
  font-size: 1rem;
}
.slot-layout .slot-textarea {
  min-height: 0;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
.slot-layout .slot-textarea.is-code {
  font-family: var(--letra-mono);
  font-size: 0.9375rem;
  tab-size: 2;
  white-space: pre;
  overflow-x: auto;
}
.slot-layout .slot-select {
  padding-right: 32px;
}
.slot-layout .slot-input:focus,
.slot-layout .slot-amount:focus-within {
  outline: 3px solid var(--foco);
  outline-offset: 2px;
}
.slot-layout .slot-count {
  margin: -6px 0 0;
  color: var(--tinta-2);
  font-size: 0.8125rem;
}
.slot-layout .slot-count.is-over {
  color: var(--peligro);
  font-weight: 700;
}
.slot-layout .slot-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.slot-layout .slot-example summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--acento-texto);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.slot-layout .slot-example pre {
  max-height: 220px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border-radius: 10px;
  background: var(--panel);
  font-family: var(--letra-mono);
  font-size: 0.8125rem;
  white-space: pre-wrap;
}

/* Lista con búsqueda / país */
.slot-layout .slot-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  margin: 0;
  padding: 4px;
  overflow: auto;
  border: var(--borde-grueso);
  border-radius: var(--radio-campo);
  list-style: none;
}
.slot-layout .slot-results[hidden] {
  display: none;
}
.slot-layout .slot-results.is-tall {
  max-height: 300px;
}
.slot-layout .slot-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 6px 10px;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--tinta);
  font-family: var(--letra-texto);
  text-align: left;
  cursor: pointer;
}
.slot-layout .slot-opt:hover {
  background: var(--panel);
}
.slot-layout .slot-opt[aria-pressed="true"] {
  background: var(--seleccion);
  box-shadow: inset 0 0 0 2px var(--tinta);
}
.slot-layout .slot-opt[aria-pressed="true"]::after {
  content: "✓";
  margin-left: auto;
  font-weight: 900;
}
.slot-layout .slot-opt-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.slot-layout .slot-opt-label {
  font-size: 0.9375rem;
  font-weight: 700;
}
.slot-layout .slot-opt-sub,
.slot-layout .slot-tag,
.slot-layout .slot-opt-code {
  color: var(--tinta-2);
  font-size: 0.75rem;
}
.slot-layout .slot-opt-code {
  font-family: var(--letra-mono);
  font-size: 0.875rem;
}
.slot-layout .slot-tag {
  margin-left: auto;
  font-weight: 800;
}
.slot-layout .slot-none {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.slot-layout .slot-none p {
  margin: 0;
  font-size: 0.875rem;
}

/* Escala */
.slot-layout .slot-scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 4px;
  padding: 3px;
  border: var(--borde-grueso);
  border-radius: var(--radio-mosaico);
}
.slot-layout .slot-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 6px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--tinta);
  font-family: var(--letra-texto);
  cursor: pointer;
}
.slot-layout .slot-step:hover {
  background: var(--panel);
}
.slot-layout .slot-step[aria-pressed="true"] {
  background: var(--tinta);
  color: var(--hoja);
}
.slot-layout .slot-step-label {
  font-size: 0.875rem;
  font-weight: 800;
}
.slot-layout .slot-step-sub {
  font-family: var(--letra-mono);
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: center;
}

/* Número */
.slot-layout .slot-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slot-layout .slot-round {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: var(--borde-grueso);
  border-radius: var(--radio-pildora);
  background: var(--hoja);
  color: var(--tinta);
  cursor: pointer;
}
.slot-layout .slot-round:hover {
  box-shadow: var(--sombra-dura-xs);
}
.slot-layout .slot-number {
  width: 5.5rem;
  min-height: 52px;
  padding: 0 8px;
  font-family: var(--letra-titulo);
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
}
.slot-layout .slot-unit {
  font-size: 0.9375rem;
  font-weight: 700;
}
.slot-layout .slot-limit {
  margin: 0;
  color: var(--tinta);
  font-size: 0.8125rem;
  font-weight: 700;
}
.slot-layout .slot-limit:empty {
  display: none;
}

/* Monto */
.slot-layout .slot-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 0 14px;
  box-sizing: border-box;
  border: var(--borde-grueso);
  border-radius: var(--radio-mosaico);
  background: var(--hoja);
  color: var(--tinta-2);
  font-family: var(--letra-mono);
  font-size: 1.25rem;
}
.slot-layout .slot-amount-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--tinta);
  font-family: var(--letra-mono);
  font-size: 1.5rem;
}
.slot-layout .slot-amount-input:focus {
  outline: none;
}
.slot-layout .slot-amount-code {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Lista de elementos */
.slot-layout .slot-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.slot-layout .slot-items:empty {
  display: none;
}
.slot-layout .slot-item,
.slot-layout .slot-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.slot-layout .slot-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--tinta);
  cursor: pointer;
}
.slot-layout .slot-remove:hover {
  background: var(--panel);
}

/* Sí o no */
.slot-layout .slot-yesno {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* ---------- Botones de la conversación ---------- */
.slot-layout .slot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.slot-layout .slot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  box-sizing: border-box;
  border: var(--borde-grueso);
  border-radius: var(--radio-pildora);
  background: var(--acento);
  box-shadow: var(--sombra-dura-s);
  color: var(--sobre-acento);
  font-family: var(--letra-titulo);
  font-size: 1.0625rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.slot-layout .slot-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--sombra-dura-m);
}
.slot-layout .slot-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--sombra-solida);
}
.slot-layout .slot-btn:disabled {
  border-style: dashed;
  border-color: var(--linea-fuerte);
  background: transparent;
  box-shadow: none;
  color: var(--tinta-2);
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}
.slot-layout .slot-ghost {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--acento-texto);
  font-family: var(--letra-texto);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.slot-layout .slot-ghost:hover {
  color: var(--acento-hover);
}
.slot-layout .slot-card > .slot-ghost {
  align-self: flex-start;
}
.slot-layout :is(.slot-chip, .slot-btn, .slot-ghost, .slot-opt, .slot-step, .slot-round, .slot-remove, .slot-piece, .slot-ai):focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}

/* ---------- Tu prompt ---------- */
.slot-layout .slot-prompt-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
@media (min-width: 960px) {
  /* Let the chat column grow with its content: a one-question prompt must not
     reserve a whole viewport and leave a hole before the actions. Long prompts
     naturally give the sticky preview room to travel. */
  .slot-layout .slot-chat-panel {
    min-height: 0;
  }
  .slot-layout .slot-prompt-panel {
    position: sticky;
    top: calc(var(--barra-alto, 68px) + 16px);
    align-self: start;
    max-height: calc(100vh - var(--barra-alto, 68px) - 80px);
  }
  .slot-layout .slot-prompt-box {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding-right: 6px;
  }
  /* Desplaza el texto, no la caja: barra fina con los colores del tema y un
     degradado abajo que avisa «hay más» sin cortar la última línea. */
  .slot-layout .slot-prompt-text {
    min-height: 0;
    overflow: auto;
    padding-right: 10px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--hueco-borde) transparent;
  }
  .slot-layout .slot-prompt-text::after {
    content: "";
    position: sticky;
    bottom: 0;
    display: block;
    height: 28px;
    margin-top: 4px;
    background: linear-gradient(to bottom, transparent, var(--hoja));
    pointer-events: none;
  }
  .slot-layout .slot-prompt-box .slot-prompt-text:focus-visible {
    outline-offset: -3px;
  }
}
.slot-layout .slot-prompt-panel > h2 {
  margin: 0;
  font-family: var(--letra-titulo);
  font-size: 1.25rem;
  font-weight: 800;
}
.slot-layout .slot-prompt-box {
  flex: 0 1 auto;
  padding: calc(16px + var(--ficha-banda, 0px)) 16px 16px;
  border: var(--borde-grueso);
  border-radius: 20px;
  /* Franja con el tinte de la categoría, como las fichas (solo en claro). */
  background:
    linear-gradient(var(--tinte, var(--hoja)), var(--tinte, var(--hoja))) top / 100% var(--ficha-banda, 0px) no-repeat,
    var(--hoja);
  box-shadow: var(--sombra-dura-m);
}
.slot-layout .slot-prompt-text {
  margin: 0;
  color: var(--tinta);
  font-family: var(--letra-mono);
  font-size: 0.875rem;
  line-height: 2.25;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.slot-layout .slot-prompt-text:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 6px;
}
.slot-layout .slot-piece {
  display: inline;
  margin: 0 1px;
  padding: 1px 9px;
  border-radius: var(--radio-pildora);
  font: inherit;
  line-height: inherit;
  text-align: left;
  white-space: pre-wrap;
  cursor: pointer;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.slot-layout .slot-piece.is-empty {
  border: 2px dashed var(--hueco-borde);
  background: var(--hueco-fondo);
  color: var(--hueco-texto);
}
.slot-layout .slot-piece.is-fallback {
  border: 2px dashed var(--tinta-2);
  background: var(--panel);
  color: var(--tinta);
}
.slot-layout .slot-piece.is-filled {
  border: var(--borde-grueso);
  background: var(--hueco-relleno);
  box-shadow: var(--sombra-dura-xs);
  color: var(--hueco-relleno-texto);
}
/* Respuestas de varias líneas (listas, código): bloque con radio de campo. */
.slot-layout .slot-piece.is-filled.is-block {
  display: block;
  margin: 6px 0;
  padding: 4px 12px;
  border-radius: 12px;
}
.slot-layout .slot-piece:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.slot-layout .slot-piece.just-filled {
  animation: slot-fill 0.4s ease-out;
}
@keyframes slot-fill {
  from {
    box-shadow: 0 0 0 4px var(--seleccion);
  }
}
.slot-layout .slot-tip {
  margin: 0;
  color: var(--tinta-2);
  font-size: 0.875rem;
}
.slot-layout .slot-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: var(--borde-grueso);
  border-radius: var(--radio-pildora);
  background: var(--acento);
  box-shadow: var(--sombra-dura-m);
  color: var(--sobre-acento);
  font-family: var(--letra-titulo);
  font-size: 1.1875rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.slot-layout .slot-copy:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--sombra-dura-l);
}
.slot-layout .slot-copy:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--sombra-solida);
}
.slot-layout .slot-copy:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}
.slot-layout .slot-copy-status {
  margin: 0;
  color: var(--tinta-2);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}
.slot-layout .slot-copy-status strong {
  color: var(--tinta);
}
.slot-layout .slot-copy-status:empty,
.slot-layout .form-error:empty {
  display: none;
}
.slot-layout .slot-plain {
  width: 100%;
  min-height: 160px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: var(--borde-grueso);
  border-radius: var(--radio-campo);
  font-family: var(--letra-mono);
  font-size: 0.875rem;
}
.slot-layout .slot-plain[hidden] {
  display: none;
}
.slot-layout .slot-ai-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 2px dashed var(--linea-punteada);
  border-radius: var(--radio-tarjeta);
  background: var(--hoja);
}
.slot-layout .slot-ai-title {
  font-size: 0.8125rem;
  font-weight: 800;
}
.slot-layout .slot-ai-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.slot-layout .slot-ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 6px 4px;
  border: var(--borde-grueso);
  border-radius: var(--radio-mosaico);
  background: var(--hoja);
  color: var(--tinta);
  font-family: var(--letra-texto);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.slot-layout .slot-ai:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--sombra-dura-xs);
}
.slot-layout .slot-ai .model-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
/* El archivo oficial de OpenAI trae mucho margen interno (el dibujo ocupa ~la mitad
   del lienzo): se amplía para que se vea del mismo tamaño que Claude y Gemini. */
.slot-layout .slot-ai .model-logo:is([src*="/openai.svg"], [src*="/openai-white.svg"]) {
  transform: scale(1.75);
}
.slot-layout .slot-template summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--acento-texto);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Movimiento y modos especiales ---------- */
@media (prefers-reduced-motion: reduce) {
  .slot-layout *,
  .slot-layout *::before,
  .slot-layout *::after {
    animation: none !important;
    transition: none !important;
  }
  .slot-layout :is(.slot-chip, .slot-btn, .slot-copy, .slot-ai):is(:hover, :active) {
    transform: none;
  }
}
@media (forced-colors: active) {
  .slot-layout :is(.slot-chip, .slot-step, .slot-opt, .slot-btn, .slot-copy, .slot-ai, .slot-round) {
    border: 2px solid ButtonText;
  }
  .slot-layout :is(.slot-chip, .slot-step, .slot-opt)[aria-pressed="true"],
  .slot-layout :is(.slot-piece.is-filled, .slot-mini.is-filled, .slot-answer-pill:not(.is-skipped), .slot-dot.is-done) {
    forced-color-adjust: none;
    border-color: Highlight;
    background: Highlight;
    color: HighlightText;
  }
  .slot-layout :is(.slot-piece.is-empty, .slot-mini.is-empty, .slot-answer-pill.is-skipped, .slot-dot) {
    border-color: CanvasText;
  }
  .slot-layout .slot-btn:disabled {
    border-color: GrayText;
    color: GrayText;
  }
}

/* ---------- Iconos del chat: tipo de pregunta y botones ----------
   El icono de la burbuja dice qué se pide (texto, opción, fecha, país…);
   los botones llevan su acción dibujada (seguir, saltar, cambiar). */
.slot-layout .slot-bubble.is-question {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}
.slot-layout .slot-tipo {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -2px 0 -2px -4px;
  border-radius: 999px;
  /* En claro, el tinte cálido de la marca; en oscuro, la superficie. */
  background: color-mix(in srgb, var(--tinte-vida-cotidiana) var(--ficha-chip, 0%), var(--seleccion));
  color: var(--tinta);
}
.slot-layout .slot-tipo .slot-icon {
  width: 15px;
  height: 15px;
}
.slot-layout .slot-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.slot-layout .slot-ghost .slot-icon {
  flex: none;
}
.slot-layout .slot-btn:not(:disabled) .slot-icon {
  transition: transform 0.15s;
}
.slot-layout .slot-btn:not(:disabled):hover .slot-icon {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  .slot-layout .slot-btn .slot-icon {
    transition: none;
  }
}
