:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --bg-card: rgba(255, 255, 255, 0.05);
  --primary-glow: rgba(255, 122, 24, 0.3);
}

body {
  font-family: var(--font-main);
  /* AUMENTO DE TAMAÑO BASE */
  font-size: 17px; 
  line-height: 1.6;
  background-color: #060608;
  color: #ffffff;
  -webkit-font-smoothing: antialiased; /* Texto más nítido */
}

h1, h2, h3 {
  letter-spacing: -0.03em; /* Ese look "apretadito" moderno */
  font-weight: 700;
}

/* Tarjetas más modernas y limpias */
.card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 24px; /* Más aire */
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 122, 24, 0.5);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.metric h3 {
  font-size: 2rem; /* Números de dinero GIGANTES */
  background: linear-gradient(to right, #fff, #bbb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Sidebar */
.sidebar {
  width: 80px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  gap: 20px;
  z-index: 50;
}

.logo-area {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.15));
  transition: transform 0.3s ease;
}
.logo-area:hover { transform: scale(1.05); }
.logo-area img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px;
}

.nav-btn {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-size: 18px;
}
.nav-btn:hover {
  background: var(--bg-element);
  color: var(--text-main);
  transform: translateY(-2px);
}
.nav-btn.active {
  background: var(--bg-element);
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.nav-btn.active::after {
  content: ''; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 4px;
  background: var(--text-main); border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* Workspace */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app-header {
  height: 70px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(var(--blur));
  position: sticky; top: 0; z-index: 10;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 10px;
}
.breadcrumbs span.current { 
  color: var(--text-main); 
  font-weight: 500;
  text-shadow: 0 0 10px rgba(255,255,255,0.1); 
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: #f97316;
  color: #0b0b0f;
  box-shadow: 0 6px 18px rgba(248, 113, 113, 0.3);
}
.btn-primary:hover { 
  background: #fb923c;
  box-shadow: 0 8px 22px rgba(251, 146, 60, 0.45); 
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-highlight);
  color: var(--text-muted);
}
.btn-ghost:hover { 
  border-color: var(--text-main); 
  color: var(--text-main);
  background: rgba(255,255,255,0.06);
}

/* Content */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  padding-bottom: 100px;
}

/* HERO JOSFOX.me */
.hero-banner {
  background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.24), transparent 55%), 
              linear-gradient(120deg, #020617 0%, #030712 40%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  padding: 32px 32px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.4s ease-out;
}
.hero-main {
  z-index: 1;
  max-width: 540px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fed7aa;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.hero-title span.emoji {
  font-size: 1.9rem;
}
.hero-title h1 {
  font-size: 1.7rem;
  font-weight: 800;
}
.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
}
.hero-bullets {
  margin-top: 16px;
  display: grid;
  grid-auto-flow: row;
  gap: 8px;
}
.hero-bullet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
}
.hero-bullet-icon {
  width: 18px; height: 18px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(251, 146, 60, 0.16);
  color: #fed7aa;
  font-size: 0.85rem;
}
.hero-actions {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  z-index:1;
}
.hero-cta-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CEO section */
.ceo-banner {
  background: var(--bg-panel-soft);
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid var(--border-highlight);
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  animation: fadeInUp 0.45s ease-out;
}
.ceo-left {
  max-width: 520px;
}
.ceo-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ceo-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.ceo-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.ceo-bullets {
  font-size: 0.85rem;
  color: var(--text-muted);
  list-style: none;
  margin-top: 4px;
}
.ceo-bullets li {
  margin-bottom: 4px;
}

/* Section label */
.section-label {
  margin-bottom: 18px;
  display:flex; align-items:center; gap:10px;
}
.section-label h3 {
  font-size: 0.85rem; 
  text-transform:uppercase; 
  letter-spacing:1.2px; 
  color:var(--text-muted); 
  font-weight: 600;
}

/* Grids & Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 34px;
  animation: fadeInUp 0.5s ease-out;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -8px rgba(0,0,0,0.7), 0 0 20px rgba(59, 130, 246, 0.18);
  background: radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 55%), #020617;
}
.card-icon {
  width: 44px; height: 44px;
  background: var(--bg-element);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--text-main);
  font-size: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}
.card:hover .card-icon {
  transform: scale(1.08) rotate(-2deg);
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 15px var(--primary-glow);
}
.card h3 { font-size: 15px; margin-bottom: 7px; font-weight: 600; letter-spacing: -0.3px; }
.card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.tag-active {
  position:absolute; top:16px; right:16px; 
  color: var(--success); font-size:10px; font-weight: 700;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 8px; border-radius: 999px;
  letter-spacing: 0.5px;
}

.wow-pill {
  position:absolute;
  top:16px; left:16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(234,179,8,0.12);
  border: 1px solid rgba(234,179,8,0.4);
  color: #eab308;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Special card styles */
.card-primary {
  background: radial-gradient(circle at top left, rgba(59,130,246,0.22), transparent 62%), #020617;
  border-color: rgba(59,130,246,0.6);
}
.card-primary .card-icon {
  background: #1d4ed8;
  color:#e0f2fe;
  box-shadow: 0 0 18px rgba(59,130,246,0.65);
}
.card-primary p {
  color: #e5e7eb;
}

.card-vcard {
  background: radial-gradient(circle at bottom right, rgba(251,146,60,0.28), transparent 60%), #111827;
  border-color: rgba(251,146,60,0.5);
}
.card-vcard .card-icon {
  background: #fb923c;
  color:#111827;
  box-shadow: 0 0 20px rgba(251,146,60,0.7);
}
.card-vcard h3 {
  color: #ffedd5;
}
.card-vcard p {
  color: #fed7aa;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 8px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 12px;
  margin-top: auto;
}
.app-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.app-footer a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Foxtana */
.foxtana-panel {
  width: 340px;
  background: #020617;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 40;
  box-shadow: -10px 0 40px rgba(0,0,0,0.7);
}

.foxtana-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(120deg, #0b1120, #111827);
  backdrop-filter: blur(10px);
}
.ai-badge {
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800; font-size: 13px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}
.ai-dot {
  width: 8px; height: 8px; background: #d946ef; border-radius: 50%;
  box-shadow: 0 0 10px #d946ef;
  animation: pulse-border 2s infinite;
}
.function-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(22,163,74,0.12);
  border: 1px solid rgba(22,163,74,0.6);
  color: #bbf7d0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.foxtana-content { flex: 1; padding: 18px 20px; overflow-y: auto; }

.foxtana-greeting {
  margin-bottom: 14px;
}
.foxtana-greeting h2 {
  font-size: 1.25rem;
  font-weight: 700;
  display:flex;
  align-items:center;
  gap:8px;
}
.foxtana-greeting h2 span.fox { font-size: 1.7rem; }
.foxtana-greeting p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.foxtana-suggestions {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom: 18px;
}
.foxtana-suggestion-btn {
  border-radius: 12px;
  border: 1px solid var(--border-highlight);
  padding: 10px 12px;
  font-size: 0.88rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#020617;
  cursor:pointer;
  transition:0.18s;
}
.foxtana-suggestion-btn span {
  display:flex;
  align-items:center;
  gap:8px;
}
.foxtana-suggestion-btn small {
  font-size:0.72rem;
  color:var(--text-muted);
}
.foxtana-suggestion-btn:hover {
  border-color:#8b5cf6;
  box-shadow:0 0 16px rgba(139,92,246,0.45);
  transform: translateY(-1px);
}

.foxtana-mini-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
  margin-bottom: 14px;
}
.mini-card {
  background:#020617;
  border-radius:10px;
  padding:9px 10px;
  font-size:11px;
  border:1px solid var(--border-highlight);
  cursor:pointer;
  transition:0.2s;
}
.mini-card:hover{
  border-color:var(--primary);
  box-shadow:0 0 12px rgba(59,130,246,0.35);
}
.mini-card strong{
  display:block;
  margin-bottom:3px;
  font-size:11px;
}

.foxtana-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.foxtana-input-area {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border);
  background: #020617;
}
.cmd-input {
  width: 100%;
  background: #020617;
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 13px;
  outline: none; transition: 0.3s;
}
.cmd-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2);
}

/* Foxtana badge on mobile */
.foxtana-toggle {
  display:none;
}

/* Responsive */
@media (max-width: 1200px) {
  .foxtana-panel {
    display:none;
  }
  .foxtana-toggle {
    position: fixed;
    right: 16px;
    bottom: 80px;
    background: #0b1120;
    border-radius: 999px;
    padding: 8px 14px;
    display:flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(148,163,184,0.6);
    color:#e5e7eb;
    font-size: 0.82rem;
    cursor:pointer;
    z-index:80;
    box-shadow:0 12px 30px rgba(0,0,0,0.7);
  }
  .foxtana-toggle span.emoji {
    font-size:1.2rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; height: 70px;
    flex-direction: row; justify-content: space-evenly;
    padding: 0; border-right: none; border-top: 1px solid var(--border-highlight);
    background: rgba(24, 24, 27, 0.96); backdrop-filter: blur(15px);
  }
  .logo-area { display: none; }
  .app-header { padding: 0 20px; }
  .content-scroll { padding: 20px; padding-bottom: 90px; }
  .hero-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero-actions { align-items:flex-start; }
}
