body.creacion-producto-abierta { overflow: hidden; }
.estado-creacion-producto {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(380px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 24px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(160deg, #fffdf8, #f7eee2);
  color: var(--text);
  text-align: center;
  box-shadow: 0 24px 80px rgba(38, 24, 14, .28);
}
.estado-creacion-producto:not([open]) { display: none; }
.estado-creacion-producto:focus { outline: none; }
.estado-creacion-producto::backdrop { background: rgba(27, 19, 13, .58); backdrop-filter: blur(5px); }
.creacion-emblema {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fffaf2;
}
.creacion-emblema::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid #e9dcc8;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: creacion-giro 1s linear infinite;
}
.creacion-emblema img { width: 60px; height: 60px; object-fit: contain; }
.creacion-emblema svg { display: none; width: 38px; height: 38px; }
.creacion-marca { margin: 0 0 6px; color: var(--gold-2); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
#creacion-titulo { margin: 0; font-size: 22px; line-height: 1.2; color: var(--title); }
#creacion-detalle { margin: 12px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.creacion-espera { margin: 16px 0 0; font-size: 12px; color: var(--text-soft); }
#creacion-continuar {
  width: 100%;
  min-height: 42px;
  margin-top: 22px;
  padding: 10px 14px;
  border: 0;
  border-radius: 11px;
  background: var(--primary-2);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
#creacion-continuar[hidden] { display: none; }
.estado-creacion-producto:not([data-estado="procesando"]) .creacion-emblema::before,
.estado-creacion-producto:not([data-estado="procesando"]) .creacion-emblema img,
.estado-creacion-producto:not([data-estado="procesando"]) .creacion-espera { display: none; }
.estado-creacion-producto[data-estado="creado"] .creacion-emblema { background: #e6f3e9; color: var(--green-2); }
.estado-creacion-producto[data-estado="creado"] .creacion-ok { display: block; }
.estado-creacion-producto[data-estado="error"] .creacion-emblema { background: #f9e7df; color: var(--danger-2); }
.estado-creacion-producto[data-estado="error"] .creacion-error { display: block; }
@keyframes creacion-giro { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .estado-creacion-producto { padding: 26px 20px 20px; }
  #creacion-titulo { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .creacion-emblema::before { animation: none; } }
