/* ═══════════════════════════════════════════════════════════════════════════
   SWEET LITTLE TRAUMA — PEDIR UN CAMBIO (23/10/2026)
   ───────────────────────────────────────────────────────────────────────────
   El campo «¿Qué cambiar?» debajo de cada resultado (pedir-cambio.js), en la
   caja de la portada, en /crear/ y en el visor de Mis creaciones. Pedido del
   dueño del 23/10/2026: «donde escribis la modificacion que queres hacer?».

   Sin panel ni recuadro: filetes de 1 px, como el resto de la caja en la
   interfaz grieta, y botones suaves, sin borde (pedido del dueño del
   23/10/2026: «que los botones no tengan un cuadrado que los encierre»).
   Los colores salen de los tokens de la caja (--e-*, entrada.css y
   grieta.css); fuera de la caja, de los del sitio (estetica.css). Nada rosa:
   el acento es el de la casa, el mismo de «Descargar».
   ═══════════════════════════════════════════════════════════════════════════ */

.pc {
  --pc-tinta: var(--e-tinta, var(--tinta, #edf2f4));
  --pc-tenue: var(--e-tenue, var(--tinta-dim, #d5e1e7));
  --pc-linea: var(--e-linea, var(--linea-fuerte, rgba(213, 232, 240, .36)));
  --pc-linea-suave: var(--e-linea-suave, var(--linea, rgba(213, 232, 240, .17)));
  --pc-acento: var(--e-acento, var(--acento, #ffe4bf));
  --pc-acento-tinta: var(--e-acento-tinta, var(--acento-ink, #28161f));
  --pc-error: var(--e-error, #ffb4a8);
  --pc-boton: color-mix(in oklch, var(--pc-tinta) 9%, transparent);
  --pc-boton-encima: color-mix(in oklch, var(--pc-tinta) 16%, transparent);
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--pc-linea-suave);
  color: var(--pc-tinta);
  font-family: var(--gr-texto, inherit);
  text-shadow: none;
}
.pc[hidden], .pc [hidden] { display: none !important; }
.pc *, .pc *::before, .pc *::after { box-sizing: border-box; }
.pc p { margin: 0; }

/* Solo para lectores de pantalla. */
.pc .pc-solo-lectores {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pc-rotulo {
  font: 600 11.5px/1.2 var(--gr-texto, inherit);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pc-tinta);
}
.pc-ayuda { font-size: 13px; line-height: 1.45; color: var(--pc-tenue); }

/* ── El campo: la voz de la caja, con un filete abajo que toma el acento con el foco ── */
.pc-campo { position: relative; }
.pc .pc-texto {
  display: block;
  width: 100%;
  min-height: 64px;
  max-height: 220px;
  margin: 0;
  padding: 10px 52px 12px 0;
  border: 0;
  border-bottom: 1px solid var(--pc-linea);
  border-radius: 0;
  background: transparent;
  color: var(--pc-tinta);
  font: 400 17px/1.4 var(--gr-voz, inherit);
  letter-spacing: -.005em;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pc .pc-texto::placeholder { color: var(--pc-tenue); opacity: .72; }
.pc .pc-texto:focus { outline: none; border-bottom-color: var(--pc-acento); box-shadow: inset 0 -1px 0 var(--pc-acento); }
.pc .pc-texto:focus-visible { outline: none; }
.pc .pc-texto[aria-invalid="true"] { border-bottom-color: var(--pc-error); box-shadow: inset 0 -1px 0 var(--pc-error); }
.pc-contador {
  position: absolute; right: 0; bottom: 14px;
  font: 500 12px/1 var(--gr-texto, inherit);
  font-variant-numeric: tabular-nums;
  color: var(--pc-tenue);
}

/* ── El modelo: un renglón que dice cuál va y desde cuánto sale, y la lista ── */
.pc-modelo { display: grid; gap: 4px; min-width: 0; }
.pc .pc-modelo-boton {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  justify-self: start; max-width: 100%;
  min-height: 44px; padding: 8px 0;
  border: 0; border-radius: 0; background: none;
  color: var(--pc-tinta);
  font: inherit; text-align: left;
  cursor: pointer;
}
.pc-modelo-rotulo {
  font: 600 10.5px/1 var(--gr-texto, inherit);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--pc-tenue);
}
.pc-modelo-nombre {
  font-size: 14px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: var(--pc-linea);
  overflow-wrap: anywhere;
}
.pc-modelo-precio { font-size: 13px; color: var(--pc-tenue); font-variant-numeric: tabular-nums; }
.pc .pc-modelo-boton:hover .pc-modelo-nombre { text-decoration-color: var(--pc-acento); }
.pc .pc-modelo-boton:disabled { cursor: progress; opacity: .7; }
.pc-flecha { display: inline-flex; align-self: center; transition: transform .2s ease; }
.pc-modelo-boton[aria-expanded="true"] .pc-flecha { transform: rotate(180deg); }

.pc-lista {
  min-width: 0;
  max-height: min(340px, 52vh);
  margin: 0; padding: 0;
  overflow-y: auto; overscroll-behavior: contain;
  border: 0;
  border-top: 1px solid var(--pc-linea-suave);
}
.pc-opcion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
  min-height: 44px;
  padding: 11px 6px 11px 2px;
  border-bottom: 1px solid var(--pc-linea-suave);
  cursor: pointer;
  transition: background .15s linear;
}
.pc-opcion:hover { background: color-mix(in oklch, var(--pc-tinta) 5%, transparent); }
.pc-opcion:has(input:checked) { background: color-mix(in oklch, var(--pc-tinta) 8%, transparent); }
.pc-opcion input {
  width: 16px; height: 16px; margin: 3px 0 0;
  accent-color: var(--pc-acento);
}
.pc-opcion-cuerpo { display: grid; gap: 2px; min-width: 0; }
.pc-opcion-nombre { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pc-opcion-para { font-size: 13px; line-height: 1.4; color: var(--pc-tenue); }
.pc-opcion-precio { font-size: 12.5px; color: var(--pc-tenue); font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 1px; }

/* ── Los botones: suaves, sin borde ────────────────────────────────────────── */
.pc-acciones, .pc-fila { display: flex; flex-wrap: wrap; gap: 8px; }
.pc .pc-boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 2px;
  background: var(--pc-boton);
  color: var(--pc-tinta);
  font: 600 13.5px/1.2 var(--gr-texto, inherit);
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background .15s linear, filter .15s linear;
}
.pc .pc-boton:hover { background: var(--pc-boton-encima); }
.pc .pc-boton[aria-expanded="true"] { background: var(--pc-boton-encima); }
.pc .pc-boton-suave { background: transparent; }
.pc .pc-boton-suave:hover { background: var(--pc-boton); }
.pc .pc-boton-fuerte { background: var(--pc-acento); color: var(--pc-acento-tinta); }
.pc .pc-boton-fuerte:hover { background: var(--pc-acento); filter: brightness(1.06); }
.pc .pc-boton:disabled { cursor: not-allowed; opacity: .5; }
.pc :is(button, a, input, textarea):focus-visible { outline: 2px solid var(--pc-acento); outline-offset: 3px; }
.pc .pc-texto:focus-visible { outline: none; }
.pc .pc-opcion input:focus-visible { outline-offset: 2px; border-radius: 50%; }

/* ── La confirmación: sin caja, con un filete arriba ───────────────────────── */
.pc-confirmar {
  display: grid; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--pc-linea-suave);
  font-size: 13.5px;
}
.pc-confirmar-texto { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--pc-tinta); }
.pc-confirmar-texto:focus { outline: none; }
.pc-confirmar-nota { font-size: 13px; line-height: 1.45; color: var(--pc-tenue); }
.pc-falta { font-size: 13.5px; color: var(--pc-tinta); }
.pc .generar-permisos { margin: 0; }

/* ── Lo que se dice en voz baja y los errores, en texto ───────────────────── */
.pc-estado { font-size: 13px; color: var(--pc-tenue); }
.pc-error { font-size: 13.5px; color: var(--pc-error); }
.pc-estado:empty, .pc-error:empty { display: none; }

/* ── Celular: los botones a lo ancho, el precio de cada modelo debajo ─────── */
@media (max-width: 640px) {
  .pc-acciones .pc-boton { flex: 1 1 100%; }
  .pc-fila .pc-boton { flex: 1 1 0; padding-inline: 12px; }
  .pc-opcion { grid-template-columns: auto minmax(0, 1fr); }
  .pc-opcion-precio { grid-column: 2; padding-top: 0; }
  .pc .pc-texto { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-flecha, .pc .pc-texto, .pc .pc-boton, .pc-opcion { transition: none; }
}
