/* ============================================================
   ArqueoHabilis Campo (Mobile-First) - Estilos Nativos Táctiles
   ============================================================ */

:root {
  --bg-app: #090d16;
  --bg-card: #111827;
  --bg-card-subtle: #1f2937;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(234, 88, 12, 0.5);

  --primary: #ea580c;
  --primary-hover: #c2410c;
  --primary-glow: rgba(234, 88, 12, 0.25);

  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --nav-height: 64px;
  --header-base-height: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --header-height: calc(var(--header-base-height) + var(--safe-top));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.4;
  font-size: 15px;
  padding-top: var(--header-height);
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

/* ==========================================
   HEADER SUPERIOR MÓVIL
   ========================================== */
.mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding-top: var(--safe-top);
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 1000;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-topbar-back {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  margin-right: 2px;
  transition: all 0.15s ease;
}

.btn-topbar-back:active {
  background: rgba(234, 88, 12, 0.25);
  border-color: var(--primary);
  transform: scale(0.94);
}

.topbar-brand .logo-icon {
  font-size: 1.3rem;
}

.topbar-brand .brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  background: rgba(234, 88, 12, 0.2);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  border: 1px solid rgba(234, 88, 12, 0.4);
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.offline {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ==========================================
   BANNER DE ESTADO OFFLINE (NO INTRUSIVO)
   ========================================== */
.banner-offline-alert {
  position: fixed;
  top: var(--header-height, 56px);
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 990;
  /* Por debajo de la barra superior (1000) y de los modales/bottom sheets (2000) */
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: slideDownBanner 0.25s ease;
}

@keyframes slideDownBanner {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================
   SELECTOR DE YACIMIENTO ACTIVO (Sticky Bar)
   ========================================== */
.active-site-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.active-site-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.active-site-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.active-site-select {
  background: transparent;
  color: var(--text-main);
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  padding-right: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

/* ==========================================
   VISTAS Y CONTENEDORES
   ========================================== */
.mobile-view {
  display: none;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

#view-fotomapeo.mobile-view {
  padding: 0;
}

.mobile-view.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   TARJETAS Y BOTONES DE ACCIÓN RÁPIDA
   ========================================== */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.stat-card-m {
  container: stat-card / inline-size;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0;
  inline-size: 100%;
  min-inline-size: 0;
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
  appearance: none;
  transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.stat-card-m:active {
  transform: scale(0.98);
  border-color: var(--border-active);
}

.stat-card-m:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.stat-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 10px 6px;
  inline-size: 100%;
  block-size: 100%;
}

.stat-card-m .stat-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.05);
}

.stat-card-m .stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.stat-card-m .stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.85rem, 13cqi, 1.15rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.stat-card-m .stat-lbl {
  font-size: clamp(0.65rem, 9cqi, 0.75rem);
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@container stat-card (inline-size >= 150px) {
  .stat-card-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: start;
    gap: 10px;
    padding: 12px 14px;
  }

  .stat-card-m .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .stat-card-m .stat-val {
    font-size: clamp(1rem, 9cqi, 1.3rem);
  }
}

.section-heading-m {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Botones de acción gigante para pulgar */
.action-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-field-action {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.2s ease, background 0.2s ease;
  width: 100%;
  text-align: left;
}

.btn-field-action:active {
  transform: scale(0.98);
  border-color: var(--primary);
  background: rgba(234, 88, 12, 0.08);
}

.btn-field-action .action-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.btn-field-action .action-text {
  flex: 1;
}

.btn-field-action .action-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
}

.btn-field-action .action-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.btn-field-action .action-chevron {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Variantes cromáticas de botones */
.action-ue .action-icon-box {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.action-hal .action-icon-box {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
}

.action-bio .action-icon-box {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}

.action-mue .action-icon-box {
  background: rgba(59, 130, 246, 0.18);
  color: #3b82f6;
}

.action-voz .action-icon-box {
  background: rgba(234, 88, 12, 0.18);
  color: #ea580c;
}

.action-qr .action-icon-box {
  background: rgba(139, 92, 246, 0.18);
  color: #8b5cf6;
}

/* ==========================================
   LISTAS VERTICALES TIPO FEED (UEs y Hallazgos)
   ========================================== */
.record-card-m {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.record-card-m:active {
  border-color: rgba(255, 255, 255, 0.2);
}

.record-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.record-card-code {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.record-card-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 600;
}

.record-card-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.record-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
  margin-top: 2px;
}

/* ==========================================
   MODAL BOTTOM SHEET TÁCTIL (Deslizable)
   ========================================== */
.mobile-bottom-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  overflow: hidden;
  overscroll-behavior: contain;
}

.mobile-bottom-sheet.open {
  display: flex;
  animation: fadeInOverlay 0.2s ease;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.sheet-content {
  background: var(--bg-card);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 16px 20px calc(24px + var(--safe-bottom)) 20px;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 12px auto;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sheet-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}

.sheet-body {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

/* Campos de Formulario Táctiles */
.m-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.m-input,
.m-select,
.m-textarea {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
}

.m-input:focus,
.m-select:focus,
.m-textarea:focus {
  border-color: var(--primary);
}

.btn-m-submit {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-m-submit:active {
  background: var(--primary-hover);
  transform: scale(0.98);
}

/* ==========================================
   BOTTOM NAVIGATION BAR FIJA
   ========================================== */
.mobile-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  flex: 1;
  padding: 8px 0;
  transition: color 0.15s ease;
}

.nav-tab-item i {
  font-size: 1.25rem;
  transition: transform 0.15s ease;
}

.nav-tab-item span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-tab-item.active {
  color: var(--primary);
}

.nav-tab-item.active i {
  transform: translateY(-2px);
}

/* ==========================================
   BARRA GPS DE CAMPO (TELEMETRÍA)
   ========================================== */
.gps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 24, 39, 0.95);
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gps-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
  display: inline-block;
  transition: all 0.3s ease;
}

.gps-dot.active {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulseGps 2s infinite;
}

@keyframes pulseGps {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.btn-gps-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-gps-action:active {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(0.97);
}

/* ==========================================
   PREVIEWS Y HERRAMIENTAS DE FOTO
   ========================================== */
.photo-uploader-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-camera-trigger {
  background: rgba(234, 88, 12, 0.12);
  border: 1px dashed var(--primary);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: all 0.2s ease;
}

.btn-camera-trigger:active {
  background: rgba(234, 88, 12, 0.25);
  transform: scale(0.99);
}

.photo-preview-container {
  position: relative;
  width: 100%;
  max-height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: none;
}

.photo-preview-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.btn-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ==========================================
   GRABADOR DE AUDIO Y TEMPORIZADOR
   ========================================== */
.audio-recorder-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  animation: pulseRecording 1.5s infinite alternate;
}

@keyframes pulseRecording {
  from {
    border-color: rgba(239, 68, 68, 0.3);
  }

  to {
    border-color: rgba(239, 68, 68, 0.9);
  }
}

.audio-pulse-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  animation: pulseDot 1s infinite;
}

/* ==========================================
   BIOARQUEOLOGÍA & BRÚJULA TÁCTIL EN CUADRÍCULA Y TRINCHERA
   ========================================== */
.btn-compass-action {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-compass-action:active {
  background: rgba(168, 85, 247, 0.3);
  transform: scale(0.97);
}

.btn-compass-action.reading {
  background: rgba(168, 85, 247, 0.35);
  border-color: #c084fc;
  animation: pulseRecording 1s infinite alternate;
}

/* ==========================================
   AUTH TABS & SEGMENTED CONTROLS (Sheet Auth)
   ========================================== */
.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 8px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: var(--bg-card-subtle);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   DESKTOP PROMO CTA CARD (Inicio)
   ========================================== */
.desktop-promo-card {
  margin-top: 24px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.desktop-promo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.desktop-promo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(234, 88, 12, 0.4);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.desktop-promo-title-wrap {
  flex: 1;
}

.desktop-promo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.desktop-promo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.desktop-promo-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.desktop-promo-desc strong {
  color: var(--text-main);
}

.desktop-promo-actions {
  display: flex;
  gap: 8px;
}

.btn-desktop-promo {
  flex: 1;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-desktop-promo:active {
  background: var(--primary-hover);
  transform: scale(0.98);
}

.btn-desktop-share {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-desktop-share:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.98);
}

/* ==========================================
   TOAST FLOTANTE INFORMATIVO (e.g. Salida)
   ========================================== */
.mobile-toast {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.95);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 3000;
  pointer-events: none;
  animation: fadeInToast 0.2s ease;
  white-space: nowrap;
}

@keyframes fadeInToast {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


/* ============================================================
   v1.1.0 — Aviso sin sitio, dictado a la IA, bloqueo con el celular
   ============================================================ */
.action-voz-ia .action-icon-box {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
}

/* Sin yacimiento: se atenúan las acciones que requieren sitio (el QR sigue disponible) */
body.sin-sitio-activo .btn-field-action:not(.action-qr) {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.6);
}

.no-site-card {
  background: linear-gradient(160deg, rgba(234, 88, 12, 0.14), rgba(17, 24, 39, 0.95));
  border: 1px solid var(--border-active);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.no-site-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.no-site-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Outfit", sans-serif;
}

.no-site-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 88, 12, 0.2);
  color: var(--primary);
}

.no-site-card p {
  margin: 6px 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-main, #e5e7eb);
}

.no-site-tip {
  color: var(--text-muted, #9ca3af) !important;
  font-size: 0.8rem !important;
}

.no-site-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 8px;
}

.no-site-refresh {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border-active);
  color: var(--accent);
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* Dictado a la IA */
.dia-sitio-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: rgba(234, 88, 12, 0.15);
  color: var(--accent);
  border: 1px solid var(--border-active);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.dia-hint {
  font-size: 0.78rem;
  color: var(--text-muted, #9ca3af);
  margin: 4px 0 10px;
  line-height: 1.4;
}

.dia-estado {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  margin-bottom: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.dia-estado[data-tipo="ok"] {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.dia-estado[data-tipo="warn"] {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.dia-estado[data-tipo="error"] {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.dia-resumen {
  font-size: 0.82rem;
  color: var(--text-muted, #9ca3af);
  margin: 6px 0 10px;
}

.dia-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.dia-item-guardado {
  opacity: 0.5;
  border-color: var(--success);
}

.dia-item-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.dia-field {
  display: block;
  margin-bottom: 8px;
}

.dia-field>span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 3px;
}

.dia-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}

.dia-item-error {
  color: #fca5a5;
  font-size: 0.78rem;
  margin-top: 4px;
}

.dia-original {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
  margin: 6px 0 12px;
}

/* Cuenta */
.cuenta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}

.cuenta-row small {
  color: var(--text-muted, #9ca3af);
}

.cuenta-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

/* Bloqueo con el celular */
.m-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-app);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  overscroll-behavior: contain;
}

.m-lock-overlay.visible {
  display: flex;
}

.m-lock-card {
  text-align: center;
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.m-lock-card .btn-m-submit {
  width: 100%;
  justify-content: center;
}

.m-lock-card h2 {
  font-family: "Outfit", sans-serif;
  margin: 12px 0 6px;
}

.m-lock-card p {
  color: var(--text-muted, #9ca3af);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.m-lock-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(234, 88, 12, 0.18);
  color: var(--primary);
}

.m-lock-link {
  background: none;
  border: none;
  color: var(--text-muted, #9ca3af);
  margin-top: 14px;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
}

/* ============================================================
   v1.2.0 — Cierre de sesión hermético, ingreso biométrico y Modo Prospección
   ============================================================ */
body.sin-sesion-activa .active-site-bar,
body.sin-sesion-activa #m-gps-bar,
body.sin-sesion-activa .mobile-view,
body.sin-sesion-activa .mobile-navbar,
body.sin-sesion-activa .mobile-bottom-nav,
body.sin-sesion-activa #btn-mobile-back {
  display: none !important;
}

body.sin-sesion-activa #sheet-login-mobile {
  display: flex !important;
  background: var(--bg-app);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

body.sin-sesion-activa #sheet-login-mobile .sheet-content {
  border-radius: 20px;
  border: 1px solid var(--border-color);
  max-width: 430px;
  width: 100%;
}

body.sin-sesion-activa #sheet-login-mobile .sheet-handle,
body.sin-sesion-activa #sheet-login-mobile .sheet-close-btn {
  display: none !important;
}

.btn-bio-login {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  margin: 0;
}

.auth-bio-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.auth-bio-divider::before,
.auth-bio-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.prospeccion-banner {
  background: linear-gradient(155deg, rgba(14, 165, 233, 0.16), rgba(17, 24, 39, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.prospeccion-banner-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.prospeccion-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.22);
  color: #38bdf8;
  font-size: 1.05rem;
}

.prospeccion-banner h4 {
  margin: 0 0 3px;
  font-size: 0.96rem;
  font-family: "Outfit", sans-serif;
  color: #e0f2fe;
}

.prospeccion-banner p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted, #9ca3af);
}

.prospeccion-banner-actions {
  display: flex;
  gap: 8px;
}

.btn-prosp-primary {
  flex: 1;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-prosp-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}