* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sidebar-bg: #111827;
  --sidebar-hover: #1f2937;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #0ea5e9;
  --text-dark: #111827;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #f3f4f6;
  --white: #ffffff;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
}

/* ===== APP LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: var(--white);
  padding: 20px 16px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.logo-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.sidebar-header h2 {
  font-size: 18px;
  line-height: 1.2;
}

.sidebar-header p {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 4px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e5e7eb;
  text-decoration: none;
  padding: 14px 14px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.menu-link:hover,
.menu-link.active {
  background: var(--sidebar-hover);
}

.menu-link i {
  font-size: 18px;
  min-width: 18px;
}

/* ===== MAIN ===== */
.main-area {
  margin-left: 260px;
  width: calc(100% - 260px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}



.page-title {
  font-size: 24px;
  font-weight: 700;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info strong {
  font-size: 14px;
}

.user-info small {
  color: var(--text-light);
  font-size: 12px;
}

.logout-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #fee2e2;
  color: var(--danger);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s ease;
}

.logout-btn:hover {
  background: #fecaca;
}

/* ===== CONTENT ===== */
.page-content {
  flex: 1;
  width: 100%;
  max-width: 100%;
  padding: 24px;
}

.content-header {
  margin-bottom: 24px;
}

.content-header h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.content-header p {
  color: var(--text-light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card i {
  font-size: 30px;
  color: var(--primary);
}

.card-label {
  color: var(--text-light);
  margin-bottom: 8px;
}

.card h3 {
  margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}

.btn-primary {
  background: var(--primary);
}

.btn-success {
  background: var(--success);
}

.btn-warning {
  background: var(--warning);
}

.btn-danger {
  background: var(--danger);
}

.btn-info {
  background: var(--info);
}

/* ===== TABLE ===== */
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

table th,
table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table th {
  background: #f9fafb;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.badge.success {
  background: #dcfce7;
  color: #166534;
}

.badge.inactive {
  background: #fee2e2;
  color: #991b1b;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== FORMULARIOS ===== */
.form-title {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  background: var(--white);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
  color: var(--text-light);
}

/* ===== LOGIN ===== */
.login-body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 430px;
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.login-brand h1 {
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.login-brand p {
  color: var(--text-light);
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-icon {
    position: relative;
    width: 100%;
}

.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #6b7280;
    z-index: 2;
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 50px; /* ← Este es el importante */
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
}

.input-icon input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 14px;
  text-align: center;
}

.btn-login {
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-login:hover {
  background: var(--primary-hover);
}

.btn-login i {
  margin-right: 8px;
}

/* ===== MENSAJES ===== */
#usuarios-mensaje,
#clientes-mensaje {
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary);
}

/* ===== MAPA CON PANEL DERECHO FLOTANTE ===== */
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.map-toolbar {
  display: flex;
  gap: 10px;
}

.map-shell {
  position: relative;
  width: 100%;
}

.map-only-card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

#mapa-lotes {
  width: 100%;
  height: calc(100vh - 190px);
  min-height: 520px;
  display: block;
  background: #dbeafe;
  border-radius: 16px;
}

.leaflet-container {
  width: 100% !important;
  min-height: 520px !important;
}

.lot-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 92vw;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 1;
}

.panel-hidden .lot-sidebar {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.lot-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.lot-sidebar-header h3 {
  margin: 0;
}

.lot-sidebar-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 16px;
}

.lot-sidebar-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lot-summary-box {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.lot-summary-box p,
#detalleLote p {
  margin-bottom: 10px;
}

.map-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-area {
    margin-left: 0;
    width: 100%;
  }



  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .lot-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .map-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }

  .map-page {
    min-height: calc(100dvh - 72px - 24px);
  }

  .map-page #mapa-lotes {
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .table-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }

  .map-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .map-toolbar select,
  .map-toolbar .btn {
    width: 100%;
  }

  .map-page {
    min-height: calc(100dvh - 72px - 18px);
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0 16px;
  }

  .page-content {
    padding: 12px;
  }

  .page-title {
    font-size: 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .user-info {
    display: none;
  }

  .login-card {
    padding: 28px 20px;
  }

  .login-brand h1 {
    font-size: 22px;
  }

  .map-only-card {
    border-radius: 12px;
  }

  .map-page #mapa-lotes {
    border-radius: 12px;
  }

  .content-header {
    margin-bottom: 12px;
  }

  .content-header h2 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .content-header p {
    font-size: 14px;
  }
}

.map-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 72px - 32px);
}

.map-page .content-header {
  flex-shrink: 0;
  margin-bottom: 14px;
}

.map-page .map-shell {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map-page .map-only-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.map-page #mapa-lotes {
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  background: #dbeafe;
  border-radius: 16px;
}




/* ===== MAPA UI MEJORADO ===== */

.map-header {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.map-header h2 {
  font-size: 26px;
  font-weight: 700;
}

.map-header p {
  font-size: 14px;
  color: var(--text-light);
}

/* Toolbar mejorado */
.map-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.map-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.map-select:focus {
  border-color: var(--primary);
  background: #fff;
}

/* Botón más moderno */
.map-toolbar .btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.map-toolbar .btn:hover {
  transform: translateY(-1px);
}

/* Card del mapa mejorado */
.map-only-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: none;
}

/* Mapa fondo */
#mapa-lotes {
  background: linear-gradient(180deg, #e0f2fe, #bae6fd);
}

/* ===== SIDEBAR PREMIUM ===== */

.lot-sidebar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.15);
}

/* Header sidebar */
.lot-sidebar-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-bottom: none;
}

.lot-sidebar-header h3 {
  font-size: 18px;
}

.lot-sidebar-close {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.lot-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Body sidebar */
.lot-sidebar-body {
  padding: 20px;
}

/* Box resumen */
.lot-summary-box {
  background: #f1f5f9;
  border-radius: 14px;
  border: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Detalle lote */
#detalleLote {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  font-size: 14px;
}

/* Botones acción */
.map-actions {
  margin-top: 10px;
}

.map-actions .btn {
  width: 100%;
  font-weight: 600;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.map-actions .btn:hover {
  transform: scale(1.02);
}

/* Colores más vivos */
.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-success {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.btn-info {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

/* Animación panel */
.lot-sidebar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.panel-hidden .lot-sidebar {
  transform: translateX(100%);
  opacity: 0;
}

/* ===== EFECTOS EXTRA ===== */

/* Hover sobre el mapa */
.map-only-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Scroll más elegante */
.lot-sidebar-body::-webkit-scrollbar {
  width: 6px;
}

.lot-sidebar-body::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 6px;
}

.lot-detail-card-ui {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.lot-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lot-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.lot-chip.disponible {
  background: #dcfce7;
  color: #166534;
}

.lot-chip.reservado {
  background: #fef3c7;
  color: #92400e;
}

.lot-chip.vendido {
  background: #fee2e2;
  color: #991b1b;
}

.lot-chip.bloqueado {
  background: #e5e7eb;
  color: #374151;
}

.lot-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.lot-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-light);
}

.lot-detail-grid-ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lot-detail-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
}

.lot-detail-box.full {
  grid-column: 1 / -1;
}

.lot-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.lot-detail-box strong {
  display: block;
  color: var(--text-dark);
  font-size: 15px;
  word-break: break-word;
}

.disponible-text {
  color: #166534;
}

.reservado-text {
  color: #92400e;
}

.vendido-text {
  color: #991b1b;
}

.bloqueado-text {
  color: #374151;
}

@media (max-width: 576px) {
  .lot-detail-grid-ui {
    grid-template-columns: 1fr;
  }

  .lot-title {
    font-size: 18px;
  }
}

.label-lote {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #334155;
  border-radius: 4px;
  color: #111827;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  pointer-events: none;
  box-shadow: none;
}

.label-urbanizacion {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #111827;
  border-radius: 8px;
  text-align: center;
  padding: 4px;
}

.label-manzano {
  font-size: 15px;
  font-weight: 700;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  text-align: center;
}

.label-lote {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.leaflet-interactive {
  cursor: default !important;
}

#tabla-pagos {
  font-size: 12px;
}

#tabla-pagos td,
#tabla-pagos th {
  padding: 6px 8px;
  vertical-align: middle;
}

#tabla-pagos small {
  font-size: 10px;
  line-height: 1.2;
}

.texto-dxf {
  background: transparent;
  border: 0;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  text-shadow: 1px 1px 2px #fff;
}

.texto-dxf {
  background: transparent;
  border: 0;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  text-shadow: 1px 1px 2px #fff;
  pointer-events: none;
}

.texto-dxf {
  background: transparent;
  border: 0;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  text-shadow: 1px 1px 2px #fff;
  pointer-events: none;
}

.texto-dxf div {
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Número de manzanos */
.texto-manzano div {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 7px;
  border-radius: 8px;
  border: 2px solid #16a34a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}





/* Calles */
.texto-calles div {
  font-size: 14px;
  font-weight: 800;
  color: #374151;
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Quitar el cuadro blanco de Leaflet */
.leaflet-div-icon,
.texto-dxf {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Base general */
.texto-dxf div,
.texto-dxf span {
  display: inline-block;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
  font-family: "Segoe UI", Arial, sans-serif;
}



/* SUPERFICIE */






/* ÁREA VERDE */
.texto-area-verde-pro div,
.texto-area-verde-pro span {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  background: #3f7d59 !important;
  padding: 4px 12px !important;
  border-radius: 8px !important;
  border: 2px solid white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25) !important;
}

/* EQUIPAMIENTO */
.texto-equipamiento-pro div,
.texto-equipamiento-pro span {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: white !important;
  background: #7373e8 !important;
  padding: 4px 12px !important;
  border-radius: 8px !important;
  border: 2px solid white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25) !important;
}

.leaflet-text-label {
  background: transparent !important;
  border: none !important;
}

.leaflet-text-label span {
  display: block;
  width: 120px;
  height: 25px;
  line-height: 30px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  font-family: Arial, sans-serif;
}

/* Calles */
.texto-calle-pro span {
  font-size: 9px !important;
  font-weight: 900 !important;
  color: #374151 !important;

}

/* Manzanos */
.texto-manzano-pro span {
  font-size: 12px;
  font-weight: 500;

  color: #ffffff;
  /* Color interior */

  -webkit-text-stroke: 3px #000000;
  /* Borde blanco */

  paint-order: stroke fill;

  text-shadow:
    0 1px 3px rgba(0, 0, 0, .35);
}

/* Superficie */
.texto-superficie-pro span {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
  -webkit-text-stroke: 3px #ffffff;
  /* Borde blanco */

  paint-order: stroke fill;

  text-shadow:
    0 1px 3px rgba(0, 0, 0, .35);
}

/* Número de lote */
.texto-lote-pro span {
  font-size: 5px !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

/*ESTILOS DE USUARIO*/

.usuarios-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.usuarios-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #1f2937;
}

.usuarios-header p {
  margin: 6px 0 0;
  color: #6b7280;
}

.usuarios-card {
  border: none;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.table-header h3 {
  margin: 0;
  font-size: 20px;
  color: #111827;
}

.tabla-moderna thead th {
  background: #f3f6fb;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: none !important;
}

.tabla-moderna tbody td {
  vertical-align: middle;
  color: #374151;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .35);
}

.btn-warning {
  background: #f59e0b;
  color: #fff;
}

.btn-light {
  background: #eef2f7;
  color: #374151;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .25);
  animation: modalEntrada .25s ease;
}

@keyframes modalEntrada {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  border-radius: 22px 22px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 23px;
  color: #111827;
}

.modal-header p {
  margin: 6px 0 0;
  color: #6b7280;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #374151;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.usuario-form {
  padding: 26px 28px 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  border-radius: 13px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.form-message {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .usuarios-header {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-box {
    max-height: 95vh;
    border-radius: 18px;
  }

  .modal-header {
    border-radius: 18px 18px 0 0;
    padding: 20px;
  }

  .usuario-form {
    padding: 20px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }
}


.oculto {
  display: none;
}

.main-area {
  width: calc(100vw - 260px);
  min-width: 0;
}

.page-content {
  width: 100%;
  min-width: 0;
}

.map-page,
.map-shell,
.map-only-card {
  width: 100%;
  min-width: 0;
}

@media (max-width: 992px) {
  .main-area {
    width: 100vw;
  }

  #mapa-lotes {
    height: 520px;
    min-height: 520px;
  }
}

.btn-sidebar-fixed {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 24px;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.menu-cerrado) .btn-sidebar-fixed {
  left: 278px;
}

body.menu-cerrado #sidebar {
  transform: translateX(-260px) !important;
}

body.menu-cerrado .main-area {
  margin-left: 0 !important;
  width: 100% !important;
}

.nombre-urbanizacion{
    background:transparent !important;
    border:none !important;
}

.nombre-urbanizacion span{

    font-family: Arial, Helvetica, sans-serif;

    font-size:25px;

    font-weight:900;

    letter-spacing:5px;

    color:rgba(255,255,255,.92);

    text-transform:uppercase;

    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0 0 12px rgba(0,0,0,.7);

    user-select:none;

    pointer-events:none;

    white-space:nowrap;

}