/* Flujos de la dueña como pasos guiados y tarjetas (D-233) */
/* Se apoya en la hoja a pantalla completa de Equipo (.hoja-perfil, .hp-*, .as-*, .eq-opcion en estilos.css). */

/* ---------- Piezas comunes de los asistentes ---------- */
.du-icono-paso {
  display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 24px; margin-bottom: .2rem;
  background: linear-gradient(145deg, var(--marca), color-mix(in srgb, var(--marca) 55%, #ff9a5a));
  color: #fff; box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--marca) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.du-una-columna { grid-template-columns: 1fr; }
.du-h2 { font-size: 1.15rem; font-weight: 700; margin-top: 1.4rem; }
.du-contador { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--marca); }
.du-input { margin-top: .8rem; }

/* Cantidad grande con − y +. */
.du-cant { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem; border-radius: 18px; background: var(--superficie); box-shadow: inset 0 0 0 1.5px var(--linea); }
.du-cant .btn { width: 44px; height: 44px; border-radius: 14px; }
.du-cant-input {
  width: 5.5rem; padding: .35rem .2rem; border: 0; background: none; color: var(--texto); text-align: center;
  font: inherit; font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.du-cant-input::-webkit-outer-spin-button, .du-cant-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.du-cant-input:focus { outline: none; }
.du-cant:focus-within { box-shadow: inset 0 0 0 2px var(--marca), 0 0 0 4px var(--marca-suave); }

/* Final festejado con ícono (en vez del avatar de Equipo). */
.du-festejo-ic {
  display: grid; place-items: center; width: 132px; height: 132px; border-radius: 40px; color: #fff;
  background: linear-gradient(145deg, var(--ok), color-mix(in srgb, var(--ok) 60%, #22d3ee));
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: du-salta .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes du-salta { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.du-tareas { width: min(560px, 100%); margin: .8rem 0 .4rem; text-align: left; }

/* ---------- Llegó mercadería ---------- */
.du-zona { width: min(560px, 100%); margin-top: 1rem; padding: 2rem 1rem; border-radius: 22px; }
.du-zona.con-archivo { border-style: solid; border-color: var(--ok); background: var(--ok-suave); }
.du-foto { margin-top: 1rem; position: relative; }
.du-papel {
  position: relative; display: grid; gap: .25rem; width: min(560px, 100%); margin-top: .8rem; padding: 1rem 1.2rem 1rem 1.4rem; text-align: left;
  border-radius: 6px 18px 18px 6px; background: var(--superficie); box-shadow: var(--sombra-1), inset 4px 0 0 var(--marca);
}
.du-papel small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); }
.du-papel strong { font-size: 1.1rem; overflow-wrap: anywhere; }
.du-papel code { font-size: .85rem; padding: .05rem .35rem; border-radius: 6px; background: var(--relleno); }
.du-duda { display: flex; gap: .35rem; align-items: center; font-size: .85rem; color: var(--aviso-tinta); }
.du-buscar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; width: min(560px, 100%); margin-top: .9rem; }
.du-lector {
  flex: 1 1 14rem; min-width: 0; padding: .7rem 1rem; border: 1.5px dashed var(--linea-fuerte, var(--linea)); border-radius: 14px;
  background: var(--superficie); color: var(--texto); font: inherit; text-align: center;
}
.du-lector:focus { outline: none; border-style: solid; border-color: var(--marca); box-shadow: 0 0 0 4px var(--marca-suave); }
.du-cuantos { display: grid; justify-items: center; gap: .6rem; width: min(560px, 100%); margin-top: 1.4rem; padding: 1.2rem; border-radius: 22px; background: var(--superficie-2); animation: du-aparece .32s var(--ease) both; }
.du-cuantos h2 { font-size: 1.25rem; font-weight: 700; }
@keyframes du-aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.du-pregunta { display: grid; gap: .6rem; justify-items: center; }
.du-pregunta p { margin: 0; color: var(--texto-2); }
.du-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.du-chip {
  min-width: 3.2rem; min-height: 44px; padding: .45rem 1rem; border: 1.5px solid var(--linea); border-radius: 999px; background: var(--superficie);
  color: var(--texto); font: inherit; font-weight: 650; cursor: pointer; transition: transform .15s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.du-chip:hover { border-color: var(--marca); }
.du-chip:active { transform: scale(.96); }
.du-chip[aria-pressed="true"] { border-color: var(--marca); background: var(--marca); color: #fff; }
.du-chip:focus-visible { outline: 3px solid var(--marca); outline-offset: 2px; }
.du-costo { margin: 0; font-size: .88rem; color: var(--texto-2); }
.du-costo.sube { color: var(--aviso-tinta); }
.du-costo.baja { color: var(--ok-tinta, var(--ok)); }
.du-otros { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .8rem; }

.du-lista { list-style: none; margin: 1rem 0 0; padding: 0; width: 100%; display: grid; gap: .55rem; text-align: left; }
.du-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem .7rem 1rem; border-radius: 18px; background: var(--superficie); box-shadow: var(--sombra-1); }
.du-item-txt { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.du-item-txt strong { overflow-wrap: anywhere; }
.du-item-txt small { color: var(--texto-3); font-size: .8rem; }
.du-item .du-cant-input { width: 4rem; font-size: 1.25rem; }
.du-item .du-cant .btn { width: 40px; height: 40px; }
.du-recien { animation: du-latido .5s var(--ease); }
@keyframes du-latido { 0% { box-shadow: 0 0 0 0 var(--marca); } 100% { box-shadow: var(--sombra-1), 0 0 0 10px transparent; } }
.du-vacio { margin-top: 1.2rem; }
.du-vacio[hidden] { display: none; }
.du-resumen { list-style: none; margin: 1rem 0 .2rem; padding: .4rem 1.2rem; width: min(560px, 100%); border-radius: 18px; background: var(--superficie); box-shadow: var(--sombra-1); text-align: left; max-height: 40vh; overflow-y: auto; }
.du-resumen li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.du-resumen li + li { border-top: 1px solid var(--linea); }
.du-resumen strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.du-dup { max-width: 560px; margin-top: .6rem; text-align: left; }
.du-nota-fila { display: grid; gap: .35rem; width: min(560px, 100%); margin-top: .8rem; text-align: left; color: var(--texto-2); font-size: .9rem; }
.du-nota { padding: .7rem 1rem; border: 1.5px solid var(--linea); border-radius: 14px; background: var(--superficie); color: var(--texto); font: inherit; }
.du-nota:focus { outline: none; border-color: var(--marca); box-shadow: 0 0 0 4px var(--marca-suave); }

/* ---------- Precios por aprobar de a uno ---------- */
.pr-modo { margin: .2rem 0 .8rem auto; width: max-content; }
.pr-tarjetas { display: grid; justify-items: center; gap: .6rem; padding: .5rem 0 1rem; }
.pr-contador { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--marca); min-height: 1.2em; }
.pr-escena { width: min(560px, 100%); }
.pr-tarjeta {
  display: grid; gap: .9rem; padding: 1.6rem clamp(1.1rem, 4vw, 2rem); border-radius: 26px; text-align: center;
  background: var(--superficie); box-shadow: var(--sombra-2); border: 1px solid var(--linea);
}
.pr-tarjeta header { display: grid; gap: .2rem; }
.pr-tarjeta h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 750; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pr-tarjeta header small { color: var(--texto-3); font-size: .85rem; }
.pr-que { margin: 0; color: var(--texto-2); font-size: 1rem; }
.pr-precio { display: grid; justify-items: center; gap: .1rem; padding: .9rem; border-radius: 20px; background: var(--superficie-2); }
.pr-precio span { font-size: .85rem; color: var(--texto-3); font-weight: 600; }
.pr-precio strong { font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pr-precio small { color: var(--texto-3); font-size: .9rem; text-decoration: line-through; }
.pr-sin { color: var(--texto-3); }
.pr-nota { display: flex; gap: .4rem; align-items: flex-start; justify-content: center; margin: 0; font-size: .85rem; color: var(--texto-2); }
.pr-acciones { display: grid; gap: .5rem; }
.pr-acciones[hidden], .pr-otro[hidden] { display: none; }
.pr-otro { display: flex; align-items: center; gap: .5rem; padding: .35rem .35rem .35rem 1rem; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--marca); animation: du-aparece .25s var(--ease) both; }
.pr-signo { font-size: 1.4rem; font-weight: 700; color: var(--texto-3); }
.pr-input { flex: 1; min-width: 0; border: 0; background: none; color: var(--texto); font: inherit; font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.pr-input:focus { outline: none; }
.pr-despues { justify-self: center; border: 0; background: none; color: var(--texto-3); font: inherit; font-size: .85rem; cursor: pointer; padding: .4rem .6rem; border-radius: 10px; }
.pr-despues:hover { color: var(--texto); background: var(--relleno); }
.pr-fin { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: 1rem 0; }
.pr-fin h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 750; }
.pr-todos { text-align: center; margin: 0 0 1rem; font-size: .9rem; }

/* ---------- Revisión de sincronización: una tarjeta por problema ---------- */
.rv-grupo { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.rv-grupo > h2 { font-size: 1.1rem; font-weight: 700; }
.rv-tarjeta { display: grid; gap: .9rem; padding: 1.2rem 1.3rem; border-radius: 22px; background: var(--superficie); box-shadow: var(--sombra-1); border: 1px solid var(--linea); }
.rv-tarjeta > header { display: flex; gap: .8rem; align-items: flex-start; }
.rv-tarjeta h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.rv-tarjeta header small { color: var(--texto-3); font-size: .82rem; }
.rv-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--aviso-suave); color: var(--aviso-tinta); }
.rv-tarjeta.resuelta .rv-ic { background: var(--ok-suave); color: var(--ok); }
.rv-explica { display: grid; gap: .2rem; margin: 0; padding: .8rem 1rem; border-radius: 16px; background: var(--superficie-2); }
.rv-explica dt { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--texto-3); }
.rv-explica dd { margin: 0 0 .5rem; color: var(--texto); }
.rv-explica dd:last-child { margin-bottom: 0; }
.rv-resuelta { margin: 0; }
.rv-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.rv-acciones .btn { min-height: 44px; }
.rv-tecnico { margin-left: auto; border: 0; background: none; color: var(--texto-3); font: inherit; font-size: .85rem; cursor: pointer; padding: .4rem .6rem; border-radius: 10px; }
.rv-tecnico:hover { color: var(--texto); background: var(--relleno); }
.rv-cajas { margin-top: .5rem; }
.rv-cajas > summary { cursor: pointer; color: var(--texto-2); font-weight: 600; padding: .5rem 0; }
.rv-cajas .cajas-grilla { margin-top: .6rem; }

/* ---------- Notificaciones: un botón con el verbo y pasos para tildar ---------- */
.notif.notif-con-accion { cursor: default; }
.notif.notif-con-accion:active { transform: none; }
.notif-con-accion .notif-cuerpo > .btn { justify-self: start; margin-top: .45rem; }
.notif-pasos { list-style: none; margin: .45rem 0 0; padding: 0; display: grid; gap: .2rem; counter-reset: paso; }
.notif-pasos label { display: flex; align-items: flex-start; gap: .5rem; padding: .25rem .3rem; border-radius: 8px; cursor: pointer; font-size: .88rem; color: var(--texto); }
.notif-pasos label:hover { background: var(--relleno); }
.notif-pasos input { margin-top: .15rem; accent-color: var(--marca); }
.notif-pasos label.hecho span { color: var(--texto-3); text-decoration: line-through; }
.pend-ver-todos { display: block; margin: .5rem auto 0; border: 0; background: none; color: var(--marca); font: inherit; font-weight: 650; cursor: pointer; padding: .4rem .8rem; border-radius: 10px; }
.pend-ver-todos:hover { background: var(--marca-suave); }

@media (max-width: 640px) {
  .rv-tecnico { margin-left: 0; }
  .du-item { flex-wrap: wrap; }
  .du-item-txt { flex-basis: 100%; }
  .du-icono-paso { width: 64px; height: 64px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .du-festejo-ic, .du-cuantos, .du-recien { animation: none; }
}
