:root {
  --t365-red: #d31e24;
  --t365-black: #0a0a0a;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
}

.navbar-brand {
  letter-spacing: 0.02em;
}

.card-stat {
  border-left: 4px solid var(--t365-red);
}

.table td, .table th {
  vertical-align: middle;
}

.badge-borrador { background: #6c757d; }
.badge-publicada { background: #198754; }

.preview-frame {
  width: 270px;
  height: 480px;
  border: 1px solid #ccc;
  overflow: hidden;
  background: #ececec;
}

.bloque-handle {
  cursor: grab;
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  user-select: none;
}

.bloque-handle:active {
  cursor: grabbing;
}

.bloque-item.bloque-dragging {
  opacity: 0.55;
  border: 1px dashed var(--t365-red);
}

.bloque-item.bloque-over {
  box-shadow: 0 0 0 2px rgba(211, 30, 36, 0.35);
}

.rte-wrap {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
  overflow: hidden;
}

.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  border-bottom: 1px solid #ced4da;
  background: #f8f9fa;
  padding: 0.25rem;
}

.rte-toolbar .btn {
  border-radius: 0.25rem;
  margin: 0.1rem;
}

.rte-editor {
  min-height: 110px;
  max-height: 280px;
  overflow-y: auto;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.75rem;
  line-height: 1.4;
}

.rte-editor:focus {
  outline: none;
  box-shadow: none !important;
}

.rte-editor:empty:before {
  content: attr(data-placeholder);
  color: #adb5bd;
  pointer-events: none;
}

.rte-editor ul,
.rte-editor ol {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.rte-editor p {
  margin-bottom: 0.4rem;
}
