.paso-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fee2e2; color: #dc2626; font-size: .8rem; font-weight: 800;
}

.campo-label {
  display: block; font-size: .8rem; font-weight: 700; color: #374151;
  margin-bottom: 6px;
}

.campo-input {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 11px 14px; font-size: .9rem; font-family: inherit;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.campo-input:focus {
  outline: none; border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15);
}

.file-input { padding: 8px 12px; cursor: pointer; }

.autocomplete-ciudad { position: relative; }
.autocomplete-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 16px 32px rgba(15,23,42,.14);
  max-height: 260px; overflow-y: auto; padding: 6px;
}
.autocomplete-panel.hidden { display: none; }
.autocomplete-item {
  display: block; width: 100%; text-align: left; border: none; background: transparent;
  padding: 9px 12px; border-radius: 8px; font-size: .85rem; font-family: inherit; color: #374151;
  cursor: pointer; transition: background .15s ease;
}
.autocomplete-item:hover { background: #fee2e2; color: #dc2626; }
.autocomplete-vacio { padding: 10px 12px; font-size: .82rem; color: #9ca3af; }

.check-card {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
}
.check-card:has(input:checked) { border-color: #dc2626; background: #fef2f2; }

.preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px; margin-top: 16px;
}
.preview-item {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: 1px solid #e5e7eb; animation: previewIn .3s cubic-bezier(.34,1.56,.64,1);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .preview-remove {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: none; line-height: 1;
}
.preview-item .preview-cover {
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(220,38,38,.9);
  color: #fff; font-size: .6rem; font-weight: 700; text-align: center; padding: 2px 0;
}
@keyframes previewIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

#formMensaje.ok { background: #dcfce7; color: #166534; display: block; }
#formMensaje.error { background: #fee2e2; color: #991b1b; display: block; }

#btnPublicar { transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, opacity .3s ease; }
#btnPublicar:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(220,38,38,.35); }
#btnPublicar:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ===== Modal de éxito ===== */
.modal-exito-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(11,15,25,.75);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: modalExitoFade .25s ease;
}
.modal-exito-overlay.hidden { display: none; }
@keyframes modalExitoFade { from { opacity: 0; } to { opacity: 1; } }

.modal-exito-box {
  background: #fff; border-radius: 18px; max-width: 420px; width: 100%;
  padding: 34px 28px 28px; text-align: center;
  animation: modalExitoPop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalExitoPop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-exito-icono {
  width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.modal-exito-titulo { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.modal-exito-texto { font-size: .85rem; color: #4b5563; line-height: 1.55; margin-bottom: 16px; }

.modal-exito-whatsapp {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: #f0fdf4; border: 1px solid #dcfce7; border-radius: 10px; padding: 12px 14px;
  font-size: .78rem; font-weight: 600; color: #166534; margin-bottom: 22px;
}
.modal-exito-whatsapp svg { flex-shrink: 0; color: #16a34a; }

.modal-exito-cerrar {
  width: 100%; background: #dc2626; color: #fff; font-weight: 700; padding: 12px; border-radius: 10px;
  border: none; cursor: pointer; font-family: inherit; font-size: .88rem;
  transition: filter .2s ease, transform .2s ease;
}
.modal-exito-cerrar:hover { filter: brightness(1.1); transform: translateY(-2px); }
