/* ==========================================================================
   WIZARD DE PROYECTOS (INTEGRADO EN DASHBOARD)
   ========================================================================== */

:root {
  --w-primary: #000;
  --w-accent: #2c3e50;
  --w-bg: #fff;
  --w-sidebar-w: 280px;
  --w-radius: 24px;
}

.project-wizard-app {
  padding-bottom: 5rem;
  font-family: "Inter", sans-serif;
}

/* CONTENEDOR MAESTRO */
.wizard-container {
  display: flex;
  position: relative;
  margin-bottom: 3rem;
  border: 1px solid #f0f0f0;
  background: #fff;
  min-height: 650px;
  overflow: hidden;
}

/* SIDEBAR IZQUIERDO */
.wizard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: #000;
  padding: 3rem 2rem;
  width: var(--w-sidebar-w);
  color: #fff;
}

.wizard-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  font-size: 2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text span {
  opacity: 0.6;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-text strong {
  font-size: 1.2rem;
}

.wizard-steps-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  opacity: 0.3;
  transition: all 0.4s ease;
}

.step-num {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-weight: 700;
  font-size: 0.75rem;
}

.step-label {
  font-weight: 500;
  font-size: 0.95rem;
}

.step-item.active {
  transform: translateX(5px);
  opacity: 1;
}

.step-item.active .step-num {
  background: #fff;
  color: #000;
}

/* CUERPO DEL WIZARD */
.wizard-body {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  padding: 4rem;
}

.wizard-panel {
  display: none;
  animation: wizardFade 0.5s ease;
}

.wizard-panel.active {
  display: block;
}

@keyframes wizardFade {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.panel-header {
  margin-bottom: 3rem;
}

.panel-header h3 {
  margin-bottom: 0.5rem;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -1px;
}

.panel-header p {
  color: #666;
  font-size: 1.1rem;
}

/* FORMULARIO */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.input-group.full {
  grid-column: span 2;
}

.input-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: #888;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.input-group input,
.input-group select,
.input-group textarea {
  transition: all 0.3s ease;
  border: 1.5px solid #eee;
  border-radius: 12px;
  background: #fafafa;
  padding: 1.2rem;
  width: 100%;
  font-size: 1rem;
}

.input-group input:focus {
  outline: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: #000;
  background: #fff;
}

/* LISTAS DINÁMICAS */
.dynamic-entries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.entry-row {
  display: flex;
  gap: 1rem;
  border-radius: 12px;
  background: #f9f9f9;
  padding: 1.2rem;
}

.entry-card {
  border: 1.5px solid #eee;
  border-radius: 16px;
  background: #fff;
  padding: 2rem;
  position: relative;
}

.wizard-panel .btn-remove-entry.btn-remove-unit {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  min-width: 44px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0 0.9rem;
  background: rgba(255, 241, 242, 0.92);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 999px;
  color: #b91c1c;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
  z-index: 10;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  text-decoration: none;
}

.wizard-panel .btn-remove-entry.btn-remove-unit svg {
  flex-shrink: 0;
}

.wizard-panel .btn-remove-entry.btn-remove-unit:hover {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.22);
}

.wizard-panel .btn-remove-entry.btn-remove-unit:focus,
.wizard-panel .btn-remove-entry.btn-remove-unit:active {
  outline: none;
  box-shadow: none;
}

.wizard-panel .btn-remove-entry.btn-remove-unit:focus-visible {
  outline: 3px solid rgba(248, 113, 113, 0.28);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .wizard-panel .btn-remove-entry.btn-remove-unit {
    padding: 0;
    width: 40px;
    min-width: 40px;
  }

  .wizard-panel .btn-remove-entry.btn-remove-unit span {
    display: none;
  }
}

.btn-add {
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background: #f0f0f0;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-add:hover {
  background: #000;
  color: #fff;
}

/* FOOTER NAVEGACIÓN */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4rem;
}

.btn-next,
.btn-prev {
  transition: all 0.4s;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  padding: 1.2rem 3rem;
  font-weight: 700;
}

.btn-next {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: #000;
  color: #fff;
}

.btn-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.btn-next:disabled {
  transform: none;
  cursor: not-allowed;
  box-shadow: none;
  background: #eee;
  color: #aaa;
}

.btn-prev {
  background: #f5f5f5;
  color: #666;
}

.btn-prev:disabled {
  opacity: 0;
  pointer-events: none;
}

/* MULTIMEDIA */
.upload-zone {
  transition: all 0.4s;
  cursor: pointer;
  margin-bottom: 1.5rem;
  border: 2.5px dashed #eee;
  border-radius: 24px;
  background: #fafafa;
  padding: 1.5rem;
  min-height: 12rem;
  overflow: hidden;
  text-align: center;
}

.upload-zone:hover {
  border-color: #000;
  background: #fff;
}

.upload-zone .filepond--root {
  margin: 0;
  width: 100%;
}

.upload-zone .filepond--drop-label {
  min-height: 4rem;
}

.upload-zone .filepond--panel-root {
  border-radius: 16px;
}

.filepond--root.filepond-gallery.filepond--hopper,
.filepond--root.filepond-blueprints.filepond--hopper {
  min-height: 5rem;
}

.filepond--root.filepond-gallery.filepond--hopper .filepond--list-scroller,
.filepond--root.filepond-blueprints.filepond--hopper .filepond--list-scroller {
  min-height: 0;
}

.filepond--root.filepond-gallery.filepond--hopper .filepond--item,
.filepond--root.filepond-blueprints.filepond--hopper .filepond--item {
  height: 5rem;
}

.filepond--root.filepond-gallery.filepond--hopper .filepond--item-panel,
.filepond--root.filepond-blueprints.filepond--hopper .filepond--item-panel {
  border-radius: 12px;
}

.filepond--root.filepond-gallery.filepond--hopper .filepond--image-preview-wrapper,
.filepond--root.filepond-blueprints.filepond--hopper .filepond--image-preview-wrapper {
  height: 5rem !important;
}

.filepond--root.filepond-gallery.filepond--hopper .filepond--image-preview,
.filepond--root.filepond-blueprints.filepond--hopper .filepond--image-preview {
  background: #f3f4f6;
}

.filepond--root.filepond-gallery.filepond--hopper .filepond--image-preview img,
.filepond--root.filepond-blueprints.filepond--hopper .filepond--image-preview img {
  object-fit: cover;
}

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

.grilla-multimedia {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-items: start;
  gap: 1rem;
}

.grilla-multimedia>[class*="col-"] {
  width: 100%;
  max-width: none;
}

/* AMENITIES */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: 0.3s;
  cursor: pointer;
  border-radius: 12px;
  background: #f9f9f9;
  padding: 1.2rem;
  font-weight: 600;
}

.amenity-item:hover {
  background: #eee;
}

/* SUMMARY */
.summary-box {
  border: 1px solid #eee;
  border-radius: 20px;
  background: #f8f9fa;
  padding: 3rem;
}

.summary-item {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

@media (max-width: 992px) {
  .wizard-container {
    flex-direction: column;
  }

  .wizard-sidebar {
    border-radius: 0;
    padding: 2rem;
    width: 100%;
  }

  .wizard-body {
    padding: 2rem;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .grilla-multimedia {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .grilla-multimedia {
    grid-template-columns: 1fr;
  }
}
/**
 * ESTILOS PREMIUM PARA CHECKBOXES DE AMENIDADES
 */
.dropdown-content .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
    font-size: 0.95rem;
    color: #475569;
    border-radius: 8px;
    margin: 2px 8px;
}

.dropdown-content .dropdown-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.dropdown-content .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    flex-shrink: 0;
}

.dropdown-content .form-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.dropdown-content .form-check-input:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dropdown-content .form-check-input:hover {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.dropdown-content .form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/** 
 * CONTENEDOR DE DROP DOWN MEJORADO
 */
.dropdown-container .dropdown-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
    margin-top: 8px;
    transition: all 0.2s ease;
}

/* Scrollbar personalizado para el dropdown */
.dropdown-container .dropdown-content::-webkit-scrollbar {
    width: 6px;
}
.dropdown-container .dropdown-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.dropdown-container .dropdown-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.dropdown-container .dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dropdown-container .dropdown-trigger {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s ease;
}

.dropdown-container .dropdown-trigger:hover {
    border-color: #10b981;
    background: #f8fafc;
}

.dropdown-container.open .dropdown-trigger {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.dropdown-container .arrow-icon {
    width: 10px;
    height: 10px;
    border-left: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
    margin-right: 4px;
    margin-top: -4px;
}

.dropdown-container.open .arrow-icon {
    transform: rotate(135deg);
    margin-top: 4px;
}

/* ==========================================================================
   VALIDACIÓN VISUAL (FEEDBACK DE ERRORES)
   ========================================================================== */
.input-group select.is-invalid,
.input-group input.is-invalid,
.input-group textarea.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fffafa !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.input-group select.is-invalid:focus,
.input-group input.is-invalid:focus,
.input-group textarea.is-invalid:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

/* Efecto de "vibración" suave al fallar validación */
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.is-invalid {
  animation: shakeError 0.3s ease-in-out;
}

#project-map-picker.is-invalid {
  border: 2px solid #ef4444 !important;
  border-radius: 12px;
}

.invalid-feedback-custom {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  letter-spacing: 0.2px;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
