/* --- MODAL REPORTE PLANO CATASTRAL OFICIAL CARTA (PREVISUALIZADOR INTERACTIVO) --- */
.modal-reporte-plano {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.reporte-top-bar {
  background: #0f172a;
  border-bottom: 1px solid #334155;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 10;
}
.reporte-top-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.reporte-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reporte-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  flex-shrink: 0;
}
.reporte-title-text {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.3px;
}
.reporte-sub-text {
  font-size: 11px;
  color: #38bdf8;
}
.reporte-close-btn-mobile {
  display: none;
}
.reporte-fondo-selector {
  display: flex;
  align-items: center;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 3px 6px;
  gap: 4px;
}
.reporte-fondo-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  margin-left: 4px;
}
.btn-txt-long {
  display: inline;
}
.btn-txt-short {
  display: none;
}
.reporte-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.reporte-toggle-btn:hover {
  color: #ffffff;
}
.reporte-toggle-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}
.reporte-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reporte-desk-workspace {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px 8px;
  background: #0b1120;
  -webkit-overflow-scrolling: touch;
}
.reporte-sheet-viewport {
  position: relative;
  margin: 0 auto;
  transition: width 0.2s ease, height 0.2s ease;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
}
.reporte-sheet-scaler {
  width: 1056px;
  height: 816px;
  transform-origin: top left;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  flex-shrink: 0;
}
.reporte-mobile-dock {
  display: none;
}
#reporteMapCanvas, #reporteMapCanvas * {
  pointer-events: none;
  user-select: none;
  touch-action: none;
}

/* --- ESTILO OFICIAL CATASTRO AJAM - FORMATO CARTA HORIZONTAL (LETTER LANDSCAPE: 279.4mm x 215.9mm) (IMAGEN 3) --- */
.ajam-carta-page {
  width: 279.4mm;
  height: 215.9mm;
  max-height: 215.9mm;
  padding: 4mm 5mm 4mm 5mm;
  box-sizing: border-box;
  background: #ffffff;
  color: #000000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  page-break-inside: avoid;
  break-inside: avoid;
}
.ajam-carta-border {
  border: 1.5px solid #94a3b8;
  border-radius: 10px;
  padding: 3.5mm 4mm;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-height: 208mm;
  overflow: hidden;
  page-break-inside: avoid;
  break-inside: avoid;
}

/* 1. FICHA TÉCNICA CATASTRAL HORIZONTAL (IMAGEN 3) */
.ficha-tecnica-top {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 14px;
  margin-bottom: 2.5mm;
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
}
.ficha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 3.5px;
  margin-bottom: 4px;
  font-size: 8.5pt;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.ficha-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 1.05fr;
  gap: 12px;
}
.ficha-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid #e2e8f0;
  padding-right: 10px;
}
.ficha-col:last-child {
  border-right: none;
  padding-right: 0;
}
.ficha-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 7.2pt;
  line-height: 1.25;
}
.ficha-label {
  color: #64748b;
  font-weight: 600;
}
.ficha-value {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}
.val-area {
  color: #0f766e;
  font-size: 8pt;
  font-weight: 900;
}
.val-escala {
  color: #dc2626;
  font-weight: 800;
}

/* 2. MARCO CARTOGRÁFICO INTEGRAL (IMAGEN 3) */
.ajam-map-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  position: relative;
  height: calc(100% - 28mm);
  min-height: 165mm;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  overflow: hidden;
  page-break-inside: avoid;
  break-inside: avoid;
}
.ajam-map-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
  width: 100%;
  height: 100%;
}
.ajam-ticks-top, .ajam-ticks-bottom {
  height: 16px;
  position: relative;
  width: 100%;
  overflow: hidden;
  font-size: 6.5pt;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  border-bottom: 0.5px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  flex-shrink: 0;
}
.ajam-ticks-bottom {
  border-bottom: none;
  border-top: 0.5px solid #cbd5e1;
}
.ajam-tick-label-x {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  line-height: 1;
}
.ajam-map-inner-row {
  flex: 1;
  display: flex;
  position: relative;
  height: calc(100% - 32px);
  min-height: 0;
  width: 100%;
}
.ajam-ticks-left, .ajam-ticks-right {
  width: 54px;
  position: relative;
  height: 100%;
  overflow: hidden;
  font-size: 6pt;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  background: #f8fafc;
  color: #475569;
  flex-shrink: 0;
}
.ajam-ticks-left { border-right: 0.5px solid #cbd5e1; }
.ajam-ticks-right { border-left: 0.5px solid #cbd5e1; }
.ajam-tick-label-y {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}
.ajam-map-canvas-wrap {
  flex: 1;
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* 3. TARJETA FLOTANTE DE NORTE Y ESCALA GRÁFICA (IMAGEN 3) */
.ajam-scale-float-box {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid #94a3b8;
  border-radius: 4px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
.scale-north-symbol {
  font-size: 11pt;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}
.scale-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.scale-bar-numbers {
  font-size: 5.5pt;
  font-family: monospace;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}
.scale-bar-graphic {
  width: 75px;
  height: 4px;
  border: 1px solid #0f172a;
  display: flex;
  margin: 1px 0;
}
.scale-bar-seg-black {
  width: 50%;
  background: #0f172a;
}
.scale-bar-seg-white {
  width: 50%;
  background: #ffffff;
}
.scale-bar-text {
  font-size: 6.5pt;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

