/* ==========================================================================
   ESTILOS DE SUBIDA (QR / MOBILE-FIRST) — BODA MIRIAM & ALAN
   ========================================================================== */

@import url('main.css');

.upload-page {
  padding: 2.2rem 1.4rem 3rem;
  text-align: center;
}

.upload-header {
  margin-bottom: 2rem;
}

.upload-monogram {
  width: 90px;
  height: 90px;
  margin: 0 auto 0.8rem;
  display: block;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-gradient);
  color: var(--white);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0.8rem auto 0;
  box-shadow: 0 4px 12px rgba(168, 135, 59, 0.3);
}

.table-badge svg {
  width: 16px;
  height: 16px;
}

.upload-box {
  background: var(--cream-glow);
  border: 1.5px dashed var(--border-gold);
  border-radius: 20px;
  padding: 2.2rem 1.4rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.upload-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 380px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .upload-action-buttons {
    flex-direction: row;
  }
  .upload-action-buttons .btn {
    flex: 1;
  }
}

/* Previsualizaciones */
.previews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 1.5rem;
}

.preview-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.preview-card img, .preview-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(155, 44, 44, 0.85);
  color: white;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.preview-type-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 4px;
}

/* Campos de formulario */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-label span {
  font-weight: 400;
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: normal;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #D6CEBE;
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 135, 59, 0.15);
  background: var(--white);
}

.form-textarea {
  resize: vertical;
  min-height: 85px;
}

.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.3rem;
}

/* Barra de progreso de subida */
.upload-progress-container {
  display: none;
  background: var(--white);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.progress-track {
  width: 100%;
  height: 12px;
  background: var(--paper-deep);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  transition: width 0.2s ease;
}

.progress-status-text {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}

/* Pantalla de éxito */
.success-card {
  display: none;
  background: var(--cream-glow);
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.success-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

.privacy-notice {
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 1.5rem;
  line-height: 1.4;
}

/* Campo honeypot anti-bots (oculto para humanos) */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}
