.board-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  margin-bottom: 4px;
}

.board-header h1 {
  margin: 0;
}

.board-header .btn {
  position: absolute;
  right: 0;
}

.postit-board-hint {
  text-align: center;
  color: #999;
  margin: 6px 0 30px;
  font-size: 0.9rem;
}

.postits-board {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.postit {
  width: 220px;
  min-height: 190px;
  border-radius: 3px;
  box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.45);
  padding: 16px 16px 46px;
  position: relative;
  display: flex;
  flex-direction: column;
  color: #2b2b2b;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.postit:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 5px 8px 20px rgba(0, 0, 0, 0.6);
  z-index: 5;
}

.postit-text {
  flex: 1;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  max-height: 260px;
  overflow-y: auto;
}

.postit-text:empty::before {
  content: 'Escribe algo\2026';
  color: rgba(0, 0, 0, 0.4);
}

.postit-image {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  border-radius: 3px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.06);
}

.postit-toolbar {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.postit-toolbar button {
  border: none;
  background: rgba(0, 0, 0, 0.12);
  color: #2b2b2b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.postit-toolbar button:hover {
  background: rgba(0, 0, 0, 0.25);
}

.postit-toolbar button.copiado {
  background: #2e7d32;
  color: #fff;
}

.postit-nuevo {
  width: 220px;
  min-height: 190px;
  border: 2px dashed #444;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 2.4rem;
  cursor: pointer;
  background: transparent;
}

.postit-nuevo:hover {
  border-color: #187cff;
  color: #187cff;
}

.dragover-board {
  outline: 3px dashed #187cff;
  outline-offset: 8px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .board-header {
    flex-direction: column;
  }

  .board-header .btn {
    position: static;
  }

  .postit,
  .postit-nuevo {
    width: 100%;
  }
}
