/* --------------------------------------------------------------------------
   GESTIÓN AGRÍCOLA - SISTEMA DE DISEÑO PWA
   Tema Moderno Agro (Oscuro y Claro)
   -------------------------------------------------------------------------- */

:root {
  /* Color Palette - Pioneer Argentina & Agroads Daylight (Default) */
  --bg-main: #f8faf7;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --border-color: #e5e7eb;
  --border-highlight: #10b981;

  --text-main: #0f172a;
  --text: #0f172a;
  --text-muted: #374151;
  --text-dim: #64748b;

  --primary: #059669;
  --primary-light: #10b981;
  --primary-hover: #047857;
  --primary-glow: rgba(16, 185, 129, 0.2);

  --accent-gold: #f59e0b;
  --accent-blue: #0284c7;
  --accent-purple: #7c3aed;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.05);
  --font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 64px;
  --mobile-nav-height: 65px;
}

/* Dark Theme Overrides (cuando el usuario conmuta el tema) */
body.dark-theme {
  --bg-main: #09130d;
  --bg-header: #0f1f16;
  --bg-card: rgba(18, 38, 27, 0.7);
  --bg-card-solid: #12261b;
  --border-color: rgba(34, 197, 94, 0.15);
  --border-highlight: rgba(34, 197, 94, 0.4);

  --text-main: #f0fdf4;
  --text: #f0fdf4;
  --text-muted: #86efac;
  --text-dim: #94a3b8;

  --primary: #10b981;
  --primary-light: #34d399;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);

  --accent-gold: #f59e0b;
  --accent-blue: #0284c7;
  --accent-purple: #a855f7;
  --danger: #ef4444;

  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset & Base Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
.app-header {
  height: var(--header-height);
  background-color: var(--bg-header);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.farm-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Weather & Connection Pills */
.weather-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #e6f7e6;
  border: 1px solid #86efac;
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-pill.offline {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  padding: 0.35rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0fdf4;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--primary);
  background: #f8fafc;
}

.nav-tab.active {
  color: var(--primary);
  background: #e6f7e6;
  border-color: #bbf7d0;
  font-weight: 700;
}

/* App Main Container */
.app-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  margin-bottom: calc(var(--mobile-nav-height) + 1rem);
}

@media (min-width: 769px) {
  .app-content {
    margin-bottom: 2rem;
  }
}

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pane-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.pane-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #1f2937;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0fdf4;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 6px;
}

.btn-success {
  background: #e6f7e6;
  border: 1px solid #86efac;
  color: var(--primary);
}

.btn-success:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-danger {
  background: #ef4444;
  border: 1px solid #dc2626;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-confirm-active {
  background: #b91c1c !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  animation: pulseDanger 1s infinite alternate;
}

@keyframes pulseDanger {
  from { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  to { transform: scale(1.02); box-shadow: 0 0 12px 4px rgba(220, 38, 38, 0.6); }
}

/* Cards & Layouts */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #e6f7e6;
  color: var(--primary);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  margin: 0.1rem 0;
}

.stat-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

/* Interactive SVG Map Card */
.map-container-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-toolbar {
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.map-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.color-dot.soja { background-color: #10b981; }
.color-dot.maiz { background-color: #f59e0b; }
.color-dot.trigo { background-color: #eab308; }
.color-dot.pastura { background-color: #06b6d4; }
.color-dot.descanso { background-color: #64748b; }

.svg-map-wrapper {
  position: relative;
  width: 100%;
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.field-svg-map {
  width: 100%;
  height: auto;
  max-height: 520px;
}

/* Map Layers and Polygons */
.lote-polygon {
  stroke-width: 2;
  stroke: rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.lote-polygon:hover {
  stroke: #ffffff;
  stroke-width: 3.5;
  filter: brightness(1.25);
}

.cultivo-soja { fill: rgba(16, 185, 129, 0.35); stroke: #10b981; }
.cultivo-maiz { fill: rgba(245, 158, 11, 0.35); stroke: #f59e0b; }
.cultivo-soja-2 { fill: rgba(5, 150, 105, 0.35); stroke: #059669; }
.cultivo-trigo { fill: rgba(234, 179, 8, 0.35); stroke: #eab308; }
.pastura-activa { fill: rgba(6, 182, 212, 0.35); stroke: #06b6d4; }
.pastura-descanso { fill: rgba(100, 116, 139, 0.25); stroke: #64748b; }

.map-label {
  fill: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.map-sublabel {
  fill: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  text-anchor: middle;
  pointer-events: none;
}

.map-label-sm {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

.map-sublabel-sm {
  fill: #94a3b8;
  font-size: 10px;
  text-anchor: middle;
  pointer-events: none;
}

.pin-text {
  font-size: 16px;
  pointer-events: none;
}

.map-alert-pin {
  fill: #ef4444;
  stroke: #ffffff;
  stroke-width: 2;
  animation: pulsePin 2s infinite;
}

@keyframes pulsePin {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.map-footer-info {
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: #475569;
}

/* Layer selector buttons */
.map-layer-selector {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border-color);
}

.layer-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.layer-btn.active {
  background: var(--primary);
  color: #ffffff;
}

/* Recorridas / Table Grids */
.recorridas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Badges */
.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge.green { background: #e6f7e6; color: #006837; border: 1px solid #86efac; }
.badge.amber { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge.blue { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge.gray { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* Tables */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: #f8fafc;
  color: #475569;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.highlight-blue { color: #0284c7; }
.highlight-green { color: var(--primary); }

/* Scouting Items */
.scouting-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scouting-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.scouting-item.warning {
  border-left: 4px solid var(--accent-gold);
}

.scouting-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
}

.lote-tag {
  font-weight: 700;
  color: var(--primary);
}

.date-tag {
  color: var(--text-dim);
}

.scouting-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.scouting-desc {
  font-size: 0.82rem;
  color: #4b5563;
  margin-bottom: 0.6rem;
}

.scouting-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.urgency.high { color: var(--accent-gold); font-weight: 700; }
.urgency.ok { color: var(--primary); font-weight: 700; }
.author { color: var(--text-dim); }

/* Inventory Grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.inventory-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.inventory-card.alert {
  border-color: rgba(220, 38, 38, 0.4);
}

.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.inv-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inv-category.agroquimico { color: #a855f7; }
.inv-category.fertilizante { color: #f59e0b; }
.inv-category.semilla { color: #10b981; }
.inv-category.combustible { color: #0284c7; }
.inv-category.reserva { color: #06b6d4; }

/* --- PANTALLA DE LOGIN OVERLAY & ROLES --- */
.login-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-screen-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2.25rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.login-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-logo-lg {
  font-size: 2.8rem;
  margin-bottom: 0.3rem;
}

.login-brand h2 {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
}

.login-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.login-demo-roles {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.demo-title {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.demo-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-demo-role {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  text-align: left;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-demo-role:hover {
  border-color: var(--primary);
  background: #e6f7e6;
}

.btn-demo-role span {
  font-size: 1.4rem;
}

.btn-demo-role strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
}

.btn-demo-role small {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

.login-divider {
  text-align: center;
  margin: 1.25rem 0;
  position: relative;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}

.login-divider span {
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  color: #64748b;
}

/* User Pill in Header */
.user-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
}

.user-avatar {
  font-size: 1.2rem;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.user-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
}

.btn-logout {
  color: var(--danger);
}

.inv-status.ok { color: var(--primary); font-weight: 600; font-size: 0.75rem; }
.inv-status.danger { color: var(--danger); font-weight: 700; font-size: 0.75rem; }
.inv-status.warning { color: var(--accent-gold); font-weight: 600; font-size: 0.75rem; }

/* --- METRICS & ANALYTICS STYLES --- */
.metrics-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.metrics-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.chart-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-bar-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 160px;
  padding-top: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  max-width: 32px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(0, 104, 55, 0.3) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.5s ease;
  position: relative;
}

.bar-fill.blue {
  background: linear-gradient(180deg, #0284c7 0%, rgba(2, 132, 199, 0.3) 100%);
}

.bar-fill.amber {
  background: linear-gradient(180deg, #e65100 0%, rgba(230, 81, 0, 0.3) 100%);
}

.bar-fill.purple {
  background: linear-gradient(180deg, #7c3aed 0%, rgba(124, 58, 237, 0.3) 100%);
}

.bar-val {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.bar-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  text-align: center;
}

.chart-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.chart-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
}

.inventory-card h3 {
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.inv-qty {
  margin-bottom: 0.75rem;
}

.inv-qty .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.inv-qty .unit {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.progress-bar-bg {
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
}

.progress-bar-fill.green { background-color: var(--primary); }
.progress-bar-fill.red { background-color: var(--danger); }
.progress-bar-fill.amber { background-color: var(--accent-gold); }

.inv-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Cattle Cards */
.cattle-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.cattle-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.cattle-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.cattle-val {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
}

.cattle-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.cattle-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.mt-4 { margin-top: 1.5rem; }

/* Mobile Bottom Navigation Bar */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 100;
  backdrop-filter: blur(12px);
  justify-content: space-around;
  align-items: center;
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; }
  .weather-pill { display: none; }
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem;
  width: 20%;
}

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

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
}

.hidden { display: none !important; }

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: calc(100% - 1.5rem);
  max-width: 680px;
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.modal-lg {
  max-width: 820px;
}

.modal-card.modal-sm {
  max-width: 520px;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0 0.4rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.close-btn:hover {
  color: var(--danger);
}

.modal-card > form,
.modal-card > .modal-body,
.modal-card > #subscriptionContentBody {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  box-sizing: border-box;
}

.modal-card > #subscriptionContentBody > form {
  padding: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.form-control {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select.form-control {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

select.form-control option {
  background: #ffffff;
  color: var(--text-main);
  padding: 0.5rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .modal-card {
    width: 96%;
    max-height: 94vh;
  }
  .modal-card form div[style*="grid-template-columns"],
  .modal-card .modal-body div[style*="grid-template-columns"],
  .modal-card #subscriptionContentBody div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card-solid);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Styles for Polygon Geometry & Vertex Editor */
.vertex-handle {
  fill: #38bdf8;
  stroke: #ffffff;
  stroke-width: 2px;
  cursor: grab;
  transition: r 0.15s ease, fill 0.15s ease;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.7));
}

.vertex-handle:hover, .vertex-handle.dragging {
  r: 9;
  fill: #f59e0b;
  cursor: grabbing;
}

.vertex-add-handle {
  fill: #10b981;
  stroke: #ffffff;
  stroke-width: 1.5px;
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.15s ease;
}

.vertex-add-handle:hover {
  r: 7;
  opacity: 1;
  fill: #34d399;
}

.field-svg-map.vertex-editor-active .lote-polygon {
  stroke-dasharray: 6 4;
  stroke: #38bdf8 !important;
  stroke-width: 3px !important;
}

/* Styles for Interactive Drawing Mode */
.field-svg-map.drawing-active {
  cursor: crosshair !important;
}

.map-drawing-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid #22c55e;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #f1f5f9;
  font-size: 0.85rem;
  animation: slideDownFade 0.25s ease;
  pointer-events: auto;
}

@keyframes slideDownFade {
  from { transform: translate(-50%, -15px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.draw-guide-line {
  stroke: #22c55e;
  stroke-width: 2.5;
  stroke-dasharray: 6 4;
  pointer-events: none;
}

.draw-polygon-preview {
  fill: rgba(34, 197, 94, 0.22);
  stroke: #22c55e;
  stroke-width: 2.5;
  pointer-events: none;
}

.draw-vertex-point {
  fill: #22c55e;
  stroke: #ffffff;
  stroke-width: 2;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  transition: r 0.15s ease, fill 0.15s ease;
}

.draw-vertex-point.closable {
  fill: #10b981;
  stroke: #fef08a;
  stroke-width: 3;
  r: 9;
}

/* ==========================================================================
   LANDING PAGE INSTITUCIONAL (ESTILO PIONEER & AGROADS ARGENTINA)
   ========================================================================== */

.landing-container.agro-daylight {
  min-height: 100vh;
  background-color: #f8faf7;
  color: #1f2937;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
  z-index: 50;
}

/* Topbar Utilitaria (Estilo Agroads) */
.agro-topbar-util {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.45rem 2rem;
  font-size: 0.8rem;
  color: #4b5563;
}

.agro-topbar-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.agro-topbar-left,
.agro-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.topbar-sep {
  color: #cbd5e1;
}

.topbar-badge-senasa {
  background: #e6f7e6;
  color: #006837;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.74rem;
}

.topbar-wa-link {
  color: #007d00;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.topbar-wa-link:hover {
  color: #005a00;
}

.topbar-pwa-pill {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Landing Navigation Header (Estilo Pioneer) */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid #10b981;
  padding: 0.85rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.landing-logo-icon {
  width: 42px;
  height: 42px;
  background: #059669;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.landing-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #059669;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.landing-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.landing-menu a {
  color: #374151;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.landing-menu a:hover {
  color: #10b981;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-agro-secondary {
  background: #ffffff;
  color: #059669;
  border: 1.5px solid #10b981;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-agro-secondary:hover {
  background: #ecfdf5;
  border-color: #059669;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.85rem;
  border-radius: 8px;
  border: none;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-hero-primary:hover {
  background: #00502a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 104, 55, 0.4);
}

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

.btn-hero-secondary {
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
  padding: 0.85rem 1.85rem;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Hero Section con Fondo de Marca MiCampo.tech */
.landing-hero-wrapper {
  background: linear-gradient(135deg, rgba(11, 19, 32, 0.94) 0%, rgba(15, 23, 42, 0.82) 40%, rgba(11, 19, 32, 0.92) 100%), 
              url('micampo_vaca_brand.jpg') no-repeat center right / cover;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.5);
}

.landing-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 4.5rem 2rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.landing-hero-wrapper .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.landing-hero-wrapper .hero-badge-tag {
  background: #10b981;
  color: #0f172a;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.landing-hero-wrapper .hero-title {
  font-size: 3.1rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.landing-hero-wrapper .agro-green-text {
  color: #10b981;
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.landing-hero-wrapper .hero-subtitle {
  font-size: 1.08rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.landing-hero-wrapper .hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 2rem;
}

.landing-hero-wrapper .check-pill {
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.landing-hero-wrapper .check-pill span {
  color: #10b981;
  font-weight: 900;
}

.landing-hero-wrapper .hero-card-preview {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-top: 4px solid #10b981;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px rgba(16, 185, 129, 0.18);
  backdrop-filter: blur(16px);
  color: #f8fafc;
}

.landing-hero-wrapper .hero-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-hero-wrapper .hero-farm-title strong {
  color: #ffffff;
}

.landing-hero-wrapper .hero-farm-title .farm-loc {
  color: #94a3b8;
}

.landing-hero-wrapper .hero-status-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.landing-hero-wrapper .pulse-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.landing-hero-wrapper .hero-kpi-item {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-hero-wrapper .hero-kpi-val {
  color: #10b981;
}

.landing-hero-wrapper .hero-kpi-label {
  color: #cbd5e1;
}

.landing-hero-wrapper .hero-kpi-sub {
  color: #94a3b8;
}

.landing-hero-wrapper .hero-telemetry-box {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #e2e8f0;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 2rem;
}

.check-pill {
  font-size: 0.88rem;
  color: #374151;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.check-pill span {
  color: #006837;
  font-weight: 900;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero Field Telemetry Card (Estilo Pioneer & Agroads) */
.hero-card-preview {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #006837;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 12px 32px rgba(0, 40, 15, 0.07);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.hero-farm-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-farm-title strong {
  font-size: 1.05rem;
  color: #0f172a;
  display: block;
}

.farm-icon {
  font-size: 1.4rem;
}

.farm-loc {
  font-size: 0.76rem;
  color: #64748b;
  display: block;
}

.hero-status-tag {
  background: #e6f7e6;
  color: #006837;
  border: 1px solid #bbf7d0;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #006837;
  box-shadow: 0 0 6px #006837;
  animation: pulseDotLight 1.8s infinite;
}

@keyframes pulseDotLight {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.hero-kpi-item {
  background: #f8faf7;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
}

.hero-kpi-val {
  font-size: 1.55rem;
  font-weight: 900;
  color: #006837;
  letter-spacing: -0.02em;
}

.hero-kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  margin-top: 0.15rem;
}

.hero-kpi-sub {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.hero-telemetry-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.telemetry-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #166534;
}

.telemetry-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.telemetry-badge-green {
  background: #006837;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* Trust / Social Proof Bar (Estilo Agroads) */
.landing-trust-bar {
  max-width: 1280px;
  margin: 1rem auto 3.5rem auto;
  padding: 0 2rem;
}

.trust-bar-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.trust-item {
  text-align: center;
}

.trust-metric {
  font-size: 2rem;
  font-weight: 900;
  color: #006837;
  letter-spacing: -0.02em;
}

.trust-desc {
  font-size: 0.84rem;
  color: #4b5563;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* Section Title Common */
.landing-section-title {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #006837;
  margin-bottom: 0.5rem;
}

.landing-section-title h2 {
  font-size: 2.35rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.landing-section-title p {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
}

/* Catálogo de Soluciones Técnicas (Estilo Fichas de Producto Pioneer) */
.landing-features-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 30px rgba(0, 40, 15, 0.08);
}

.card-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #006837;
}

.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.feature-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #006837;
  letter-spacing: 0.05em;
}

.feature-badge-soft {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}

.card-bullet-list li {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.45rem;
  padding-left: 1.1rem;
  position: relative;
  font-weight: 500;
}

.card-bullet-list li::before {
  content: '✓';
  color: #006837;
  font-weight: 800;
  position: absolute;
  left: 0;
  font-size: 0.78rem;
}

/* Pricing Section */
.landing-pricing-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
  border: 2.5px solid #006837;
  box-shadow: 0 12px 36px rgba(0, 104, 55, 0.12);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  right: 20px;
  background: #d97706;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.pricing-header-card {
  margin-bottom: 1.25rem;
}

.pricing-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.pricing-desc {
  font-size: 0.88rem;
  color: #64748b;
  min-height: 40px;
  line-height: 1.45;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #006837;
  margin-bottom: 0.15rem;
  letter-spacing: -0.02em;
}

.pricing-amount small {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
}

.pricing-period {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 1.75rem;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.2rem 0;
  flex: 1;
}

.pricing-features-list li {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.4;
}

.pricing-features-list li span.check {
  color: #006837;
  background: #e6f7e6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.btn-pricing-cta {
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
  display: block;
}

.btn-pricing-cta.primary {
  background: #006837;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 104, 55, 0.3);
}

.btn-pricing-cta.primary:hover {
  background: #00502a;
}

.btn-pricing-cta.secondary {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #1f2937;
}

.btn-pricing-cta.secondary:hover {
  background: #e5e7eb;
}

/* Testimonials */
.landing-testimonials-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
}

.testimonial-quote {
  font-size: 0.98rem;
  color: #374151;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #006837;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.author-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.98rem;
}

.author-role {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.15rem;
}

/* Bottom Conversion Banner (Pioneer Deep Green) */
.landing-cta-banner-wrapper {
  max-width: 1280px;
  margin: 2rem auto 4rem auto;
  padding: 0 2rem;
}

.landing-cta-banner {
  background: linear-gradient(135deg, #00502a 0%, #006837 100%);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 60, 25, 0.2);
}

.landing-cta-banner h2 {
  font-size: 2.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.landing-cta-banner p {
  font-size: 1.1rem;
  color: #dcfce7;
  max-width: 680px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.btn-cta-banner-white {
  background: #ffffff;
  color: #006837;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 2.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-cta-banner-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.banner-subnote {
  font-size: 0.82rem;
  color: #a7f3d0;
  margin-top: 1rem;
  font-weight: 500;
}

/* Footer Institucional (Estilo Pioneer & Agroads) */
.landing-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 3.5rem 2rem 1.5rem 2rem;
  color: #4b5563;
}

.footer-top-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  text-align: left;
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-weight: 900;
  font-size: 1.15rem;
  color: #006837;
  margin-bottom: 0.75rem;
}

.footer-brand-col p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
}

.footer-badge-ar {
  display: inline-block;
  margin-top: 0.85rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}

.footer-nav-col h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.footer-nav-col a {
  display: block;
  color: #64748b;
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: #006837;
}

.footer-nav-col p {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.footer-bottom-bar {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Responsive Landing Breakpoints */
@media (max-width: 1024px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    gap: 2.5rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
  .trust-bar-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .agro-topbar-util {
    display: none;
  }
  .landing-header {
    padding: 0.85rem 1.25rem;
  }
  .landing-menu {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .trust-bar-container {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .landing-cta-banner {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   METRICAS EMPTY STATE & VIDEO TUTORIAL ONBOARDING
   ========================================================================== */
.metricas-empty-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.integrity-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(2, 132, 199, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.integrity-icon {
  font-size: 2.25rem;
  background: #ffffff;
  border-radius: 12px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.integrity-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.integrity-content p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

.video-onboarding-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .video-onboarding-grid {
    grid-template-columns: 1fr;
  }
}

.video-player-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.video-player-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-player-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-screen-wrapper {
  position: relative;
  background: #0f172a;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-canvas-display {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(34, 197, 94, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.25);
  transition: all 0.25s ease;
}

.video-overlay-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #16a34a;
  box-shadow: 0 0 0 14px rgba(34, 197, 94, 0.35);
}

.video-controls-bar {
  background: #1e293b;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.8rem;
}

.video-controls-bar button {
  background: transparent;
  border: none;
  color: #f8fafc;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.video-controls-bar button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.video-progress-rail {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: #22c55e;
  border-radius: 3px;
  transition: width 0.1s linear;
}

.video-chapters-panel {
  padding: 1rem 1.25rem;
  background: #ffffff;
}

.video-chapters-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.video-chapters-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.chapter-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.chapter-pill:hover, .chapter-pill.active {
  background: #f0fdf4;
  border-color: #86efac;
}

.chapter-pill.active strong {
  color: var(--primary);
}

.chapter-pill span {
  font-size: 1.1rem;
}

.chapter-pill div strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-main);
}

.chapter-pill div small {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Quick Start Steps Card */
.quickstart-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quickstart-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quickstart-header p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.quickstart-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.step-card-action:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 104, 55, 0.08);
}

.step-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}

.step-text small {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.quickstart-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   AGRO-COPILOT: ASISTENTE INTELIGENTE DE CAMPO (VOZ, CHAT, INSIGHTS)
   ========================================================================== */

/* Floating Action Button (FAB) */
.fab-agro-copilot {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-agro-copilot:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.6);
  background: linear-gradient(135deg, #047857, #059669);
}

.fab-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.fab-mic-badge {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  animation: pulseMic 2s infinite;
}

@keyframes pulseMic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Proactive Insights Banner */
.agent-insights-banner {
  background: linear-gradient(135deg, #064e3b, #047857);
  border: 1px solid #10b981;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: #ecfdf5;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25);
}

.agent-insight-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.agent-insight-icon {
  font-size: 1.7rem;
  background: rgba(255,255,255,0.15);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-insight-text h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.agent-insight-text p {
  margin: 0.15rem 0 0 0;
  font-size: 0.82rem;
  color: #d1fae5;
}

/* Mic Recorder Component */
.mic-recorder-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.12));
  border: 1px dashed var(--accent-green);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  text-align: center;
}

.mic-btn-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.mic-btn-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55);
}

.mic-btn-circle.is-recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: radarRipple 1.2s infinite;
}

@keyframes radarRipple {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.mic-status-label {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.mic-status-sub {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.mic-live-ticker {
  margin-top: 0.6rem;
  padding: 0.4rem 0.85rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-green);
  border-radius: 20px;
  font-size: 0.84rem;
  color: #065f46;
  font-weight: 600;
  max-width: 90%;
  text-align: center;
  word-break: break-word;
}

/* Agent Image Dropzone */
.agent-image-dropzone {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.agent-image-dropzone:hover {
  background: #f1f5f9;
  border-color: var(--accent-green);
}

/* Quick Example Chips */
.quick-phrase-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem 0;
}

.phrase-chip {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.phrase-chip:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-green);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Parsed Actions Cards */
.detected-actions-container {
  margin-top: 1.25rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.detected-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.detected-action-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
}

.detected-action-summary {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 0.2rem;
}

/* Copilot Chat Window */
.copilot-chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 480px;
}

.copilot-chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.agent {
  align-self: flex-start;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.copilot-chat-input-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   ESTILOS: PIZARRA MAG CAÑUELAS, MULTI-MONEDA & SIMULADOR DE ENGORDE
   ========================================================================== */

.currency-switch-group {
  display: inline-flex;
  background: var(--bg-card);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-currency-pill {
  background: transparent;
  border: none;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-currency-pill:hover {
  color: var(--text-main);
  background: rgba(0,0,0,0.04);
}

.btn-currency-pill.active {
  background: var(--primary, #059669);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.mag-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mag-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-color: rgba(16, 185, 129, 0.4);
}

.mag-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.mag-cat-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mag-cat-price {
  font-size: 1.15rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: #047857;
  letter-spacing: -0.3px;
}

.mag-cat-details {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.mag-cat-subtotal {
  border-top: 1px dashed var(--border-color);
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.mag-cat-val {
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-size: 0.95rem;
}


