/* TasadorPro CL - Estilos PropTech Enterprise (Mobile-First & PWA) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-teal: #0f766e;
  --primary-teal-dark: #115e59;
  --primary-teal-light: #f0fdfa;
  --navy-dark: #0f172a;
  --slate-bg: #f8fafc;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--slate-bg);
  color: #1e293b;
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
  -webkit-tap-highlight-color: transparent;
}

/* Sidebar Styling */
.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  border-radius: 0.5rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.sidebar-link:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.sidebar-link.active {
  background-color: #f0fdfa;
  color: #0f766e;
  font-weight: 700;
}

.sidebar-link.active i {
  color: #0f766e;
}

/* Card Styling */
.proptech-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  max-width: 100%;
}

.proptech-badge-teal {
  background-color: #f0fdfa;
  color: #0f766e;
  border: 1px solid #ccfbf1;
}

.proptech-badge-amber {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
}

/* Wizard Buttons for Property Type (Pills) */
.tipo-prop-btn {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.75rem;
  min-height: 46px;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  touch-action: manipulation;
}

.tipo-prop-btn:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.tipo-prop-btn.selected {
  border-color: #0f766e;
  background-color: #f0fdfa;
  color: #0f766e;
  box-shadow: 0 0 0 1px #0f766e;
}

.tipo-prop-btn.selected i {
  color: #0f766e;
}

/* Wizard Steps Accordion */
.wizard-step-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background-color: #ffffff;
  transition: all 0.2s ease-in-out;
}

.wizard-step-card.active-step {
  border-color: #0f766e;
  box-shadow: 0 1px 3px 0 rgba(15, 118, 110, 0.1);
}

.step-badge-number {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.step-badge-active {
  background-color: #0f766e;
  color: #ffffff;
}

.step-badge-completed {
  background-color: #ccfbf1;
  color: #0f766e;
}

.step-badge-inactive {
  background-color: #f1f5f9;
  color: #94a3b8;
}

/* Mini Map & Main Map */
#summary-mini-map {
  width: 100%;
  height: 190px;
  border-radius: 0.5rem;
  z-index: 5;
}

#leaflet-map {
  width: 100%;
  height: 520px;
  border-radius: 0.75rem;
  z-index: 10;
}

#inf-map {
  width: 100%;
  height: 240px;
  border-radius: 0.5rem;
  z-index: 5;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth momentum scrolling for table and chips wrappers */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Mobile-First Touch Targets & Controls (Android 360px - 430px) */
@media (max-width: 640px) {
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  select {
    min-height: 44px;
    font-size: 14px !important; /* Prevents auto-zoom in Android Chrome */
  }

  button:not(.btn-inline),
  .tipo-prop-btn {
    min-height: 44px;
  }

  .sidebar-link {
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-size: 0.875rem;
  }

  #summary-mini-map {
    height: 180px;
  }

  #leaflet-map {
    height: 380px;
  }

  #inf-map {
    height: 210px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-content {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ========================================================================= */
/* ESTILOS EDITORIALES DEL INFORME COMPLETO DE TASACIÓN (8 SECCIONES)        */
/* ========================================================================= */
.report-section {
  scroll-margin-top: 5.5rem;
}

.report-nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  border-left: 3px solid transparent;
}

.report-nav-link:hover {
  background-color: #f8fafc;
  color: #0f766e;
  border-left-color: #cbd5e1;
}

.report-nav-link.active {
  background-color: #f0fdfa;
  color: #0f766e;
  border-left-color: #0f766e;
}

.report-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.report-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================================================= */
/* ESTILOS DEL NUEVO FLUJO DE 3 PASOS, RESULTADOS & CHECKOUT MERCADO PAGO    */
/* ========================================================================= */
.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #334155;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.stepper-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.stepper-btn:active {
  background-color: #e2e8f0;
  transform: scale(0.96);
}

.custom-circular-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 9999px;
  outline: none;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease-in-out;
}

.custom-circular-checkbox:checked {
  background-color: #0f766e;
  border-color: #0f766e;
}

.custom-circular-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Botón Mercado Pago */
.btn-mercadopago {
  background-color: #FFE600;
  color: #009EE3;
  font-weight: 800;
  transition: all 0.2s ease-in-out;
}

.btn-mercadopago:hover {
  background-color: #f5dc00;
  box-shadow: 0 4px 12px rgba(255, 230, 0, 0.4);
}

.btn-mercadopago:active {
  background-color: #e6ce00;
  transform: translateY(1px);
}

/* Botón de compra rojo/coral */
.btn-comprar-informe {
  background-color: #e11d48;
  color: #ffffff;
  font-weight: 800;
  transition: all 0.2s ease-in-out;
}

.btn-comprar-informe:hover {
  background-color: #be123c;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.btn-comprar-informe:active {
  background-color: #9f1239;
  transform: translateY(1px);
}

/* Resumen dinámico en vivo */
.summary-card-item {
  animation: fadeIn 0.25s ease-out forwards;
}

