/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #be272d;
  --primary-light: #d44047;
  --primary-dark:  #9a1f24;
  --secondary:     #000000;
  --on-primary:    #ffffff;
  --on-secondary:  #ffffff;
  --success:       #1a8c4e;
  --error:         #c0392b;
}

.bg-primary { background-color: var(--primary) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.hover\:bg-primary:hover { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.border-primary\/30 { border-color: color-mix(in srgb, var(--primary) 30%, transparent) !important; }
.hover\:bg-primary-dark:hover { background-color: var(--primary-dark) !important; }
.hover\:border-primary:hover { border-color: var(--primary) !important; }
.hover\:text-primary:hover { color: var(--primary) !important; }
.hover\:text-primary-dark:hover { color: var(--primary-dark) !important; }
.focus\:border-primary:focus { border-color: var(--primary) !important; }
.focus\:ring-primary\/20:focus {
  --tw-ring-color: var(--primary) !important;
  --tw-ring-opacity: 0.2 !important;
}
.from-primary {
  --tw-gradient-from: var(--primary) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: color-mix(in srgb, var(--primary) 0%, transparent) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
.to-primary-dark {
  --tw-gradient-to: var(--primary-dark) var(--tw-gradient-to-position) !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Form inputs  — usados en index.html con class="lp-input"
───────────────────────────────────────────────────────────────────────────── */
.lp-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.lp-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(190,39,45,0.10);
}
select.lp-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23be272d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea.lp-input { resize: vertical; min-height: 90px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Amenidades — el JS agrega/quita clase .checked
───────────────────────────────────────────────────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 13px;
  user-select: none;
  color: #374151;
}
.amenity-item:hover {
  border-color: var(--primary-light);
  background: #fff5f5;
  color: var(--primary);
}
.amenity-item input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.amenity-item.checked {
  border-color: var(--primary);
  background: #fdf0f0;
  color: var(--primary);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Upload zone — JS busca `.upload-zone` y agrega/quita `.drag-over`
───────────────────────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f9fafb;
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary-light);
  background: #fdf2f2;
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload-icon   { font-size: 32px; margin-bottom: 8px; display: block; }
.upload-text   { font-size: 14px; color: #6b7280; }
.upload-text strong { color: var(--primary); }
.upload-hint   { font-size: 11px; color: #9ca3af; margin-top: 4px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Photo preview — el JS crea divs con estas clases
───────────────────────────────────────────────────────────────────────────── */
.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
}
.photo-preview-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-preview-item .cover-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.75);
  color: white; font-size: 9px; font-weight: 700;
  text-align: center; padding: 3px 0;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.photo-preview-item .photo-delete-btn {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.60); color: white;
  border: none; cursor: pointer; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s, background 0.15s;
  padding: 0; z-index: 10;
}
.photo-preview-item:hover .photo-delete-btn { opacity: 1; }
.photo-preview-item .photo-delete-btn:hover  { background: rgba(190,39,45,0.85); }

/* ─────────────────────────────────────────────────────────────────────────────
   Spinner + Loading overlay
───────────────────────────────────────────────────────────────────────────── */
.spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,15,30,0.80);
  z-index: 999;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  backdrop-filter: blur(5px);
}
#loading-overlay.visible { display: flex; }
.loading-text { color: white; font-size: 18px; font-weight: 700; }
.loading-sub  { color: rgba(255,255,255,0.60); font-size: 13px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Botón copiar (results.html)
───────────────────────────────────────────────────────────────────────────── */
.btn-copy {
  background: transparent;
  border: 1.5px solid #e2e8f0;
  color: #94a3b8;
  padding: 5px 14px; border-radius: 6px;
  font-size: 12px; cursor: pointer;
  transition: all 0.2s; font-weight: 500;
}
.btn-copy:hover  { border-color: var(--primary); color: var(--primary); }
.btn-copy.copied { border-color: var(--success); color: var(--success); background: rgba(26,140,78,0.06); }

/* ─────────────────────────────────────────────────────────────────────────────
   Video progress (results.html — JS escribe style.display en estos elementos)
───────────────────────────────────────────────────────────────────────────── */
.progress-bar-wrap {
  background: #e2e8f0; border-radius: 20px;
  height: 6px; overflow: hidden; margin-top: 10px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #7a1018);
  border-radius: 20px; transition: width 0.4s ease; width: 0%;
}
.video-status-msg { font-size: 13px; color: #64748b; margin-top: 8px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Toast notifications
───────────────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 12px 20px; border-radius: 10px; color: white;
  font-size: 14px; font-weight: 500; max-width: 340px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  animation: slideIn 0.3s ease;
}
.toast-success { background: var(--success); }
.toast-error   { background: var(--error); }
.toast-info    { background: var(--primary); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
