/* ========================================
   ESTILOS ELEGANTES - GALIA DIGITAL
   ======================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideUpModal {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ========================================
   MODAL ELEGANTE
   ======================================== */

.modal-overlay {
  animation: fadeIn 0.3s ease-out;
}

.elegant-modal {
  animation: slideUpModal 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CHECKBOXES ELEGANTES
   ======================================== */

.elegant-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.elegant-checkbox:hover {
  border-color: #667eea;
  background: #F9FAFB;
}

.elegant-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
}

.elegant-checkbox span {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.elegant-checkbox input[type="checkbox"]:checked + span {
  color: #667eea;
  font-weight: 600;
}

/* ========================================
   BOTONES ELEGANTES
   ======================================== */

.elegant-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  min-height: 50px;
}

.elegant-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.elegant-btn-primary:active {
  transform: translateY(0);
}

.elegant-btn-secondary {
  background: #F3F4F6;
  color: #374151;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 50px;
}

.elegant-btn-secondary:hover {
  background: #E5E7EB;
  border-color: #D1D5DB;
}

/* ========================================
   POPUPS ELEGANTES DEL MAPA
   ======================================== */

.elegant-popup .leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid #F3F4F6;
}

.elegant-popup .leaflet-popup-tip {
  border: 2px solid #F3F4F6;
}

/* ========================================
   INPUTS CON FOCUS ELEGANTE
   ======================================== */

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #667eea !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
}

/* ========================================
   BOTONES MARCA (HOVER)
   ======================================== */

.elegant-marca-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ========================================
   SCROLLBAR ELEGANTE
   ======================================== */

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ========================================
   LOADING SPINNER (opcional)
   ======================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  border: 3px solid #F3F4F6;
  border-top-color: #667eea;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */

@media (max-width: 640px) {
  .modal-content {
    border-radius: 24px 24px 0 0;
  }
  
  .elegant-btn-primary,
  .elegant-btn-secondary {
    font-size: 16px;
    padding: 14px;
  }
  
  .elegant-marca-btn img {
    width: 50px !important;
    height: 50px !important;
  }
}

/* ========================================
   BOTONES FLOTANTES ANIMADOS
   ======================================== */

.floating-btn {
  animation: fadeIn 0.5s ease-out;
}

.floating-btn:active {
  transform: scale(0.95) !important;
}

/* ========================================
   MAPA LIMPIO (SIN ATRIBUCIONES)
   ======================================== */

.leaflet-control-attribution {
  font-size: 10px;
  opacity: 0.6;
  background: rgba(255, 255, 255, 0.8) !important;
  padding: 2px 6px !important;
}
