* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 25% 25%, #3b82f6 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, #8b5cf6 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0px 20px;
  position: relative;
  margin-top: 0;
  padding-top: 0;
}
/* Definiciones movidas más abajo para optimización */
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  width: 0%;
  border-radius: 8px;
  transition: width 0.5s ease;
}
/* Definición de form-container movida más abajo para optimización */
.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  animation: float-shapes 15s infinite linear;
}
.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.shape:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}
.shape:nth-child(3) {
  width: 40px;
  height: 40px;
  bottom: 30%;
  left: 20%;
  animation-delay: 10s;
}
@keyframes float-shapes {
  0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}
.form-section {
  display: block;
  margin-bottom: 28px;
  padding: 20px;
  background: #fafafa;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.form-section:first-child {
  margin-top: 0;
}

.form-section:hover {
  background: #f9f9f9;
  border-color: #e0e0e0;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-subtitle {
  color: #6b7280;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.form-grid.two-cols {
  grid-template-columns: 1fr 1fr;
}
.form-group {
  position: relative;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.required {
  color: #ef4444;
}
input, select, textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #ffffff;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
input:hover, select:hover, textarea:hover {
  border-color: #d1d5db;
}

/* Estilo específico para campo de precio */
#property_price {
  font-family: 'Courier New', Consolas, monospace;
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.5px;
  background: #f8fffe;
}

#property_price:focus {
  background: #f0fffe;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}
textarea {
  resize: vertical;
  min-height: 120px;
}
.input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.1rem;
}
.file-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fafafa;
}
.file-upload-area:hover {
  border-color: #3b82f6;
  background: #f8faff;
}
.file-upload-area.dragover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: scale(1.02);
}
.file-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.7;
}
.upload-text {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}
.file-subtext {
  font-size: 0.85rem;
  color: #6b7280;
}
.file-list {
  margin-top: 16px;
  text-align: left;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  font-size: 14px;
  transition: all 0.2s ease;
}

.file-item:last-child {
  border-bottom: none;
}

.file-item:hover {
  background: rgba(59, 130, 246, 0.1);
}
.files-summary {
  text-align: center;
  padding: 8px;
  color: #6b7280;
  font-style: italic;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 8px;
}
/* Indicadores de estado de archivos */
.file-status-ok {
  color: #10b981;
  font-weight: 500;
}

.file-status-compress {
  color: #f59e0b;
  font-weight: 500;
}

.file-status-error {
  color: #ef4444;
  font-weight: 500;
}
/* Mejoras al área de upload */
.file-upload-area.processing {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border-color: #f59e0b;
}

.file-upload-area.processing .upload-text {
  color: white;
}
/* Loading states para archivos */
.file-processing {
  position: relative;
  overflow: hidden;
}

.file-processing::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.success-message {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  margin-top: 24px;
  display: none;
  font-weight: 500;
}
.error-message {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 16px;
  display: none;
  font-weight: 500;
}
/* Estilos de botones */
.btn-group {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  align-items: center;
}

.btn-group.single-btn {
  justify-content: center;
}

.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 2px solid #e5e7eb;
  flex: 1;
}

.btn-secondary:hover {
  background: #e5e7eb;
  color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  flex: 2;
  position: relative;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-group.single-btn {
  justify-content: center;
}

.btn-group.single-btn .btn {
  min-width: 200px;
  max-width: 300px;
}

/* Toast Notification */
.toast-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  z-index: 1000;
  max-width: 400px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  border-left: 4px solid #059669;
}

.toast-success.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
  animation: bounce 1s ease-in-out;
}

.toast-text {
  flex: 1;
  line-height: 1.4;
  font-size: 14px;
}

.toast-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  margin-left: 10px;
  opacity: 0.7;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.toast-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* Animación de pulso para el mensaje principal */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
  100% { transform: scale(1); }
}

@keyframes bounce {
  0%, 20%, 60%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  80% { transform: translateY(-5px); }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .toast-success {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100%);
  }
  
  .toast-success.show {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px 16px;
  }
  .form-container {
    padding: 16px;
    border-radius: 16px;
  }
  .form-grid.two-cols {
    grid-template-columns: 1fr;
  }
  .btn-group {
    flex-direction: column;
  }
  .header {
    margin-bottom: 15px;
    padding: 8px 0;
  }
  .form-section {
    margin-bottom: 20px;
    padding: 16px;
  }
  .header h1 {
    font-size: 2rem;
  }
}

/* Estilos personalizados para FilePond */
.filepond--root {
  font-family: inherit;
}

.filepond--drop-label {
  color: #6b7280;
  font-size: 16px;
}

.filepond--label-action {
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
}

.filepond--panel-root {
  background-color: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.filepond--panel-root:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

/* Miniaturas más pequeñas y compactas */
.filepond--item {
  width: calc(20% - 0.4em);
  margin: 0.2em;
  height: 80px !important;
  min-height: 80px !important;
}

/* Eliminar completamente el panel gris */
.filepond--item-panel {
  height: 80px !important;
  min-height: 80px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Solo mostrar la imagen, sin contenedor gris */
.filepond--image-preview-wrapper {
  height: 80px !important;
  max-height: 80px !important;
  background: transparent !important;
  border-radius: 8px;
  overflow: hidden;
}

.filepond--image-preview {
  height: 80px !important;
  max-height: 80px !important;
  width: 100% !important;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* Ocultar la información del archivo por defecto */
.filepond--file-info {
  display: none !important;
}

/* Mostrar información solo al hacer hover */
.filepond--item:hover .filepond--file-info {
  display: block !important;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 9px;
  padding: 2px 4px;
  border-radius: 0 0 8px 8px;
  line-height: 16px;
}

.filepond--item-panel {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.filepond--image-preview {
  border-radius: 8px;
}

.filepond--file-action-button {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filepond--file-action-button:hover {
  background-color: #ffffff;
  transform: scale(1.1);
}

.filepond--file-action-button.filepond--action-remove-item {
  color: #ef4444;
}

.filepond--file-action-button.filepond--action-remove-item:hover {
  background-color: #fee2e2;
}

.filepond--progress-indicator {
  color: #3b82f6;
}

.filepond--file-status {
  color: #374151;
  font-weight: 500;
}

/* Ajustes para pantallas móviles */
@media (max-width: 768px) {
  .filepond--item {
    width: calc(33.33% - 0.4em);
    margin: 0.2em;
    height: 70px !important;
    min-height: 70px !important;
  }
  
  .filepond--item-panel {
    height: 70px !important;
    min-height: 70px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .filepond--image-preview-wrapper {
    height: 70px !important;
    max-height: 70px !important;
    background: transparent !important;
  }
  
  .filepond--image-preview {
    height: 70px !important;
    max-height: 70px !important;
    width: 100% !important;
  }
  
  .filepond--drop-label {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .filepond--item {
    width: calc(50% - 0.4em);
    height: 60px !important;
    min-height: 60px !important;
  }
  
  .filepond--item-panel {
    height: 60px !important;
    min-height: 60px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .filepond--image-preview-wrapper {
    height: 60px !important;
    max-height: 60px !important;
  }
  
  .filepond--image-preview {
    height: 60px !important;
    max-height: 60px !important;
  }
  
  .filepond--item:hover .filepond--file-info {
    font-size: 8px;
    height: 16px;
    line-height: 12px;
  }
}

/* Ocultar el texto "Powered by PQINA" de FilePond */
.filepond--credits {
  display: none !important;
}

/* Alternativa más específica si la anterior no funciona */
.filepond--root .filepond--credits {
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Ocultar cualquier enlace de créditos */
a[href*="pqina"] {
  display: none !important;
}