:root {
  --dg: #1B4332;
  --mg: #2D6A4F;
  --lg: #40916C;
  --ac: #74C69D;
  --pa: #D8F3DC;
  --go: #F59E0B;
  --re: #EF4444;
  --bl: #3B82F6;
  --wh: #fff;
  --gl: #F9FAFB;
  --gm: #E5E7EB;
  --gt: #6B7280;
  --da: #1F2937;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #F4F6F4;
  color: var(--da);
  font-size: 14px;
}

/* HEADER */
.header {
  background: var(--dg);
  color: white;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.header-sub {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 500;
  margin-top: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ac);
  color: var(--dg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(116, 198, 157, 0.2);
}

.saved-lbl {
  font-size: 12px;
  color: var(--ac);
  font-weight: 600;
}

/* LAYOUT & SIDEBAR */
.layout {
  display: flex;
  min-height: calc(100vh - 58px);
}

.sidebar {
  width: 230px;
  background: var(--mg);
  padding: 16px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 3px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.sidebar-item.active {
  background: var(--ac);
  color: var(--dg);
  box-shadow: 0 4px 12px rgba(116, 198, 157, 0.15);
}

.sidebar-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.4);
  padding: 12px 24px 6px;
}

.sidebar-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 18px;
}

/* BOTTOM NAVIGATION (MÓVIL) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--mg);
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-nav-inner {
  display: flex;
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  gap: 4px;
  transition: all 0.2s ease;
}

.bn-item.active {
  color: var(--ac);
}

.bn-icon {
  font-size: 20px;
}

/* MAIN CONTENT */
.main {
  flex: 1;
  padding: 24px;
  overflow: auto;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dg);
  letter-spacing: -0.02em;
  flex: 1;
}

.badge {
  background: var(--pa);
  color: var(--dg);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* CONTROLES / FORMULARIOS */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

select, input[type=text], input[type=number], input[type=email], input[type=tel] {
  background: white;
  border: 1.5px solid var(--gm);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--da);
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

select:focus, input:focus {
  border-color: var(--lg);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
}

select {
  width: auto;
  cursor: pointer;
}

/* BOTONES */
.btn {
  background: linear-gradient(135deg, var(--dg) 0%, var(--mg) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.12);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.22);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  background: var(--dg);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-sm:hover {
  background: var(--mg);
}

.btn-ghost {
  background: transparent;
  color: var(--dg);
  border: 1.5px solid var(--dg);
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-ghost:hover {
  background: var(--pa);
}

/* KPI CARDS (DASHBOARD) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
}

.kpi-label {
  font-size: 10px;
  color: var(--gt);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--dg);
  letter-spacing: -0.03em;
}

.kpi-sub {
  font-size: 11px;
  color: var(--gt);
  margin-top: 4px;
  font-weight: 500;
}

.traf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 6px;
}

.traf-g { background: #ECFDF5; color: #065F46; }
.traf-y { background: #FEF9EC; color: #92400E; }
.traf-r { background: #FEF2F2; color: #991B1B; }

/* TIER STYLES */
.t-a { background: #ECFDF5; color: #065F46; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-block; }
.t-b { background: #EFF6FF; color: #1E3A8A; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-block; }
.t-c { background: #FEF9EC; color: #78350F; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-block; }
.t-d { background: #FEF2F2; color: #991B1B; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-block; }

.tier-sel {
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 20px;
  padding: 2px 10px;
  outline: none;
  width: auto;
}
.tier-sel.tA { background: #ECFDF5; color: #065F46; }
.tier-sel.tB { background: #EFF6FF; color: #1E3A8A; }
.tier-sel.tC { background: #FEF9EC; color: #78350F; }
.tier-sel.tD { background: #FEF2F2; color: #991B1B; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.tier-card {
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: white;
}

.tier-card-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.tier-card-desc {
  font-size: 11px;
  line-height: 1.5;
  color: var(--gt);
  font-weight: 500;
}

/* TABLAS MODERNAS */
.table-wrap {
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
  overflow: hidden;
  margin-bottom: 16px;
}

.table-scroll {
  overflow-x: auto;
}

.table-inner {
  min-width: 860px;
}

.table-head {
  background: #F9FAFB;
  color: var(--mg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.th {
  padding: 12px 10px;
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--gt);
  display: flex;
  align-items: center;
}
.th:last-child {
  border-right: none;
}

.table-row {
  display: grid;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  align-items: center;
  transition: background 0.15s ease;
}
.table-row:hover {
  background: #F9FAFB;
}
.table-row:last-child {
  border-bottom: none;
}

.td {
  padding: 10px 10px;
  border-right: 1px solid rgba(0, 0, 0, 0.02);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 500;
}
.td:last-child {
  border-right: none;
}

.pm-badge {
  background: var(--pa);
  color: var(--dg);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-block;
}

.pm-empty {
  background: var(--gl);
  color: var(--gt);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
}

.sem-sel {
  width: 86px;
  border: 1px solid var(--gm);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 600;
  background: white;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.sem-sel:focus {
  border-color: var(--lg);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.1);
}

.sem-v { background: #ECFDF5; border-color: var(--ac); color: #065F46; }
.sem-l { background: #EFF6FF; border-color: var(--bl); color: #1E3A8A; }
.sem-w { background: #FEF9EC; border-color: var(--go); color: #78350F; }
.sem-n { background: var(--gl); border-color: rgba(0,0,0,0.06); color: var(--gt); }

.pedido-inp {
  border: 1px solid var(--gm);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  text-align: right;
  font-family: inherit;
  font-weight: 600;
  color: var(--da);
}
.pedido-inp:focus {
  border-color: var(--lg);
  outline: none;
}

/* CARDS SEMANA ACTIVA */
.semana-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.semana-card {
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.semana-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.semana-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dg);
}

.semana-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-label {
  font-size: 10px;
  color: var(--gt);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.field-full {
  grid-column: 1/-1;
}

.fi {
  width: 100%;
  border: 1.5px solid var(--gm);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--da);
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.fi:focus {
  border-color: var(--lg);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
}

.estado-sel {
  width: 100%;
  border: 1.5px solid var(--gm);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s ease;
}

.estado-sel:focus {
  border-color: var(--lg);
}

.est-h { background: #ECFDF5; color: #065F46; border-color: var(--ac); }
.est-p { background: #FEF9EC; color: #78350F; border-color: var(--go); }
.est-n { background: #FEF2F2; color: #991B1B; border-color: var(--re); }

/* TARJETAS PROSPECTOS */
.pros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.pros-card {
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.pros-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.pros-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dg);
}

.pros-marca {
  font-size: 12px;
  color: var(--gt);
  margin-bottom: 10px;
  font-weight: 500;
}

.pros-estado {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.pe-id { background: #F3F4F6; color: #374151; }
.pe-co { background: #DBEAFE; color: #1E3A8A; }
.pe-se { background: #ECFDF5; color: #065F46; }
.pe-ci { background: #FEF9EC; color: #78350F; }
.pe-ar { background: #F3F4F6; color: #6B7280; }

.pros-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.pros-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

.pros-info-row .ico {
  width: 18px;
  text-align: center;
  opacity: 0.7;
}

.pros-tier-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pros-tier-row label {
  font-size: 11px;
  color: var(--gt);
  font-weight: 600;
}

/* BITACORA Y SEGUIMIENTOS */
.bitacora {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 14px;
  padding-top: 14px;
}

.bitacora-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--dg);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.seg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 150px;
  overflow-y: auto;
}

.seg-item {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--ac);
  border-top: 1px solid rgba(0,0,0,0.01);
  border-right: 1px solid rgba(0,0,0,0.01);
  border-bottom: 1px solid rgba(0,0,0,0.01);
}

.seg-fecha {
  font-size: 9px;
  color: var(--gt);
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.seg-texto {
  font-size: 12px;
  color: #374151;
  line-height: 1.4;
  font-weight: 500;
}

.seg-vacio {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
  font-weight: 500;
}

.seg-input-row {
  display: flex;
  gap: 8px;
}

.seg-input {
  flex: 1;
  border: 1.5px solid var(--gm);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
}

.seg-input:focus {
  border-color: var(--lg);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.1);
}

.pros-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.pros-btn-next {
  background: var(--dg);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s ease;
  font-family: inherit;
}
.pros-btn-next:hover {
  background: var(--mg);
}

.pros-btn-del {
  background: #FEF2F2;
  color: var(--re);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.pros-btn-del:hover {
  background: #FEE2E2;
}

/* OVERLAYS & MODALES */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 67, 50, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.overlay.open {
  display: flex;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(27, 67, 50, 0.15), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dg);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--dg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.form-opt {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 500;
}

.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* SECCIONES ASESOR (DIRECCIÓN) */
.asesor-section {
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.asesor-section-header {
  background: var(--dg);
  color: white;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}
.asesor-section-header:hover {
  background: var(--mg);
}

.asesor-section-header h3 {
  font-size: 14px;
  font-weight: 700;
}

.asesor-section-body {
  padding: 16px;
  background: #F9FAFB;
}

.pros-mini {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.005);
}

.pros-mini-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.pros-mini-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dg);
}

.pros-mini-segs {
  background: #F9FAFB;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.04);
  padding: 8px;
  max-height: 100px;
  overflow-y: auto;
}

.pros-mini-seg {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
}
.pros-mini-seg:last-child {
  border-bottom: none;
}

.pros-mini-seg .f {
  font-size: 9px;
  font-weight: 700;
  color: var(--gt);
  text-transform: uppercase;
}

.pros-mini-vacio {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
  font-weight: 500;
}

.hint {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
  text-align: center;
  padding: 12px;
  font-weight: 500;
}

/* PIE DE LOGIN (DESACTIVO POR CSS INLINE/HTML SEPARADO) */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dg);
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
}

.login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dg);
}

.login-logo p {
  font-size: 13px;
  color: var(--gt);
  margin-top: 4px;
}

.login-field {
  margin-bottom: 14px;
}

.login-error {
  background: #FEF2F2;
  color: var(--re);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

.login-error.show {
  display: block;
}

/* MENU DE USUARIO */
.user-menu {
  position: absolute;
  top: 44px;
  right: 0;
  background: white;
  color: var(--da);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  width: 220px;
  padding: 6px 0;
  display: none;
  z-index: 250;
  border: 1px solid rgba(0,0,0,.06);
}
.user-menu.open {
  display: block;
}

.user-menu-item {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--da);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all .15s ease;
}
.user-menu-item:hover {
  background: #F3F4F6;
  color: var(--dg);
}

.user-menu-sep {
  height: 1px;
  background: #E5E7EB;
  margin: 6px 0;
}

/* ANIMATION KEYFRAMES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE LAYOUTS */
@media(min-width:600px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .pros-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .bottom-nav { display: none !important; }
  .sidebar { display: flex !important; flex-direction: column !important; }
}

@media(min-width:900px) {
  .kpi-grid { grid-template-columns: repeat(5, 1fr); }
  .pros-grid { grid-template-columns: repeat(3, 1fr); }
  .main { padding-bottom: 24px; }
}

@media(max-width:599px) {
  .sidebar { display: none !important; }
  .bottom-nav { display: block; }
  .main { padding-bottom: 80px; }
  .page-header h1 { font-size: 17px; }
}
