dialog.app-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  width: min(680px, 95%);
  max-width: 720px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,250,0.98));
  transform: translateY(24px) scale(0.985);
  opacity: 0;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), opacity 260ms ease;
  will-change: transform, opacity;
}

dialog.app-dialog.dialog-open {
  transform: translateY(0);
  opacity: 1;
}

dialog.app-dialog.dialog-closing {
  transform: translateY(18px) scale(0.99);
  opacity: 0;
}

dialog.app-dialog::backdrop {
  background: radial-gradient(circle at top, rgba(0, 51, 54, 0.28), rgba(0, 0, 0, 0.52));
  animation: fadeInBackdrop 260ms ease;
  backdrop-filter: blur(4px);
}

@keyframes fadeInBackdrop {
  from { opacity: 0 }
  to { opacity: 1 }
}

.dialog-content {
  padding: 1.4rem 1.35rem 1.2rem;
  background: transparent;
}

.dialog-header {
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.35rem .9rem;
  border-bottom: 1px solid rgba(0, 51, 54, .08);
}

.dialog-header-copy {
  min-width: 0;
}

.dialog-title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #132226;
}

.dialog-close-button {
  flex: 0 0 auto;
}

.dialog-actions {
  display:flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 1rem 1.35rem 1.25rem;
  border-top: 1px solid rgba(0, 51, 54, .08);
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.9));
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.btn-dialog {
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-dialog.primary { background: var(--primary); color: white; }
.btn-dialog.ghost { background: transparent; color: #333; border: 1px solid #ddd; }
.btn-dialog.danger { background: #ef4444; color: white; }

.dialog-eyebrow {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--primary, #297fbf);
  font-weight: 800;
  margin-bottom: .22rem;
}

.premio-dialog-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 160px;
  gap: 1rem;
  align-items: start;
}

.premio-dialog-shell {
  overflow: hidden;
}

.premio-field-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.premio-field-group-wide {
  min-width: 0;
}

.premio-field-group label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #5c6667;
  font-weight: 800;
}

.premio-field {
  width: 100%;
  border: 1px solid rgba(0, 51, 54, .12);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfcfc);
  padding: .95rem 1rem;
  color: #191c1d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.premio-field:hover {
  border-color: rgba(0, 51, 54, .22);
}

.premio-field:focus,
.premio-field:focus-visible {
  outline: none;
  border-color: var(--primary, #297fbf);
  box-shadow: 0 0 0 4px rgba(41, 127, 191, .14), 0 10px 26px rgba(0, 51, 54, .08);
  transform: translateY(-1px);
}

.premio-field-number {
  text-align: left;
}

@media (max-width: 720px) {
  dialog.app-dialog {
    width: min(94vw, 720px);
    border-radius: 16px;
  }

  .premio-dialog-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Horarios de Venta ── */
.horarios-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  background: linear-gradient(180deg, #f6f8f9, #f0f3f4);
  border: 1px solid rgba(0,51,54,.08);
  border-radius: 14px;
  padding: .55rem .7rem .65rem;
}

.horarios-col-labels {
  display: grid;
  grid-template-columns: 88px 1fr 18px 1fr 44px 28px;
  gap: .55rem;
  align-items: center;
  padding: 0 .1rem .3rem;
  border-bottom: 1px solid rgba(0,51,54,.07);
  margin-bottom: .15rem;
}

.horarios-col-labels span {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--primary, #297fbf);
  text-align: center;
}

.horarios-col-labels span:first-child {
  text-align: left;
}

.horario-row {
  display: grid;
  grid-template-columns: 88px 1fr 18px 1fr 44px 28px;
  gap: .55rem;
  align-items: center;
  padding: .3rem .1rem;
  border-radius: 9px;
  transition: opacity 220ms ease, background 150ms ease;
}

.horario-row:hover {
  background: rgba(255,255,255,.6);
}

.horario-row--off {
  opacity: .42;
}

.horario-dia {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-soft, #404849);
  letter-spacing: .01em;
}

.horario-time-wrap {
  position: relative;
}

.horario-time {
  width: 100%;
  border: 1px solid rgba(0,51,54,.13);
  border-radius: 9px;
  background: #fff;
  padding: .42rem .6rem;
  font-size: .85rem;
  color: var(--text, #191c1d);
  transition: border-color 150ms, box-shadow 150ms;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.horario-time:focus {
  outline: none;
  border-color: var(--primary, #297fbf);
  box-shadow: 0 0 0 3px rgba(41,127,191,.13);
}

.horario-time:disabled {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--muted, #666);
  cursor: not-allowed;
}

.horario-time--error {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,.12) !important;
}

.horario-error-tip {
  display: block;
  font-size: .68rem;
  color: #c53030;
  margin-top: .18rem;
  font-weight: 600;
}

.horario-sep {
  text-align: center;
  color: var(--muted, #666);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

/* Toggle switch */
.horario-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
}

.horario-toggle input {
  display: none;
}

.toggle-track {
  width: 34px;
  height: 19px;
  background: var(--surface-high, #e7e8e9);
  border-radius: 999px;
  position: relative;
  transition: background 200ms ease;
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 200ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.22);
}

.horario-toggle input:checked + .toggle-track {
  background: var(--primary, #297fbf);
}

.horario-toggle input:checked + .toggle-track::after {
  transform: translateX(15px);
}

/* ── Foto de premio ── */
.premio-foto-area {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.premio-foto-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #5c6667;
  font-weight: 800;
}

.premio-foto-input-hidden {
  display: none;
}

.premio-foto-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 100px;
  border: 2px dashed rgba(0, 51, 54, .18);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafb, #f2f6f7);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  color: #536870;
}

.premio-foto-upload-zone:hover {
  border-color: var(--primary, #297fbf);
  background: rgba(41, 127, 191, .04);
  color: var(--primary, #297fbf);
}

.premio-foto-upload-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary, #297fbf);
}

.premio-foto-upload-hint {
  font-size: .7rem;
  color: #a0aaab;
  letter-spacing: .03em;
}

.premio-foto-preview-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f4f5;
  border: 1px solid rgba(0, 51, 54, .1);
}

.premio-foto-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.premio-foto-cambiar-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .28rem .7rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background 150ms ease;
  user-select: none;
}

.premio-foto-cambiar-btn:hover {
  background: rgba(0, 0, 0, .72);
}
