/* =====================================================
   UPLOAD - Vista de subir contenido
   ===================================================== */

.upload-container {
  padding: 16px;
}

.upload-drop-zone {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 400px;
  max-height: 533px;
  margin: 0 auto;
  border: 2px dashed #e0e0e0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
  background: #fafafa;
}

.upload-drop-zone:hover {
  border-color: #000;
  background: #f5f5f5;
}

.upload-drop-zone.has-image {
  border-style: solid;
  border-color: #000;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #666;
}

.upload-icon {
  font-size: 48px;
}

.upload-placeholder p {
  margin: 0;
  font-size: 14px;
}

.upload-hint {
  font-size: 12px !important;
  color: #999;
}

.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.upload-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  background: #f8f8f8;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.upload-form textarea:focus {
  outline: none;
  border-color: #000;
  background: #fff;
}

.upload-char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: -8px;
}

.btn-upload {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-upload:hover {
  background: #333;
}

.btn-upload:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.success {
  color: #4caf50;
  font-size: 14px;
  margin-top: 12px;
}
