/* CSS System: Clean Corporate + Vibrant Accents */

:root {
  /* Corporative Clean Colors */
  --bg-main: #f8fafc;        /* Light grayish blue background */
  --bg-panel: #ffffff;       /* Pure white for panels */
  --bg-sidebar: #0f172a;     /* Very dark blue for sidebar */
  
  --text-main: #1e293b;      /* Dark slate for main text */
  --text-muted: #64748b;     /* Muted text */
  --text-light: #f1f5f9;     /* Light text for dark backgrounds */
  
  --border-light: #e2e8f0;   /* Light border */
  
  /* Accents */
  --accent-cyan: #06b6d4;
  --accent-cyan-light: rgba(6, 182, 212, 0.1);
  --accent-magenta: #e81cff;
  --accent-magenta-light: rgba(232, 28, 255, 0.1);
  --accent-violet: #8b5cf6;
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  --gradient-hot: linear-gradient(135deg, var(--accent-magenta), var(--accent-violet));
  
  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.15);
  --shadow-glow-magenta: 0 0 20px rgba(232, 28, 255, 0.15);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
.text-cyan { color: var(--accent-cyan); }
.text-magenta { color: var(--accent-magenta); }
.text-violet { color: var(--accent-violet); }
.text-accent { color: var(--accent-cyan); font-weight: 600; }
.mt-1rem { margin-top: 1rem; }
.mt-2rem { margin-top: 2rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.hidden-report { display: none !important; position: absolute; left: -9999px; }
@media print {
  .hidden-report { display: block !important; position: static !important; }
}

/* Empty State Styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    border: 1px dashed var(--border-light);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-title {
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.empty-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* MODAL SYSTEM BASE */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Dark overlay */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  z-index: 10;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-icon i {
  background: var(--gradient-hot);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 1.5rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-item:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.05);
}

.nav-item.active {
  color: #fff;
  background-color: rgba(255,255,255,0.05);
  border-right: 3px solid var(--accent-cyan);
}

.nav-item.active i {
  color: var(--accent-cyan);
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-violet);
}

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

.user-name { font-size: 0.85rem; font-weight: 600; }
.user-role { font-size: 0.75rem; color: #94a3b8; }

/* ============================================== */
/* REDESIGNED VALIDATION REPORT                   */
/* ============================================== */

.report-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem 0;
  animation: fadeIn 0.8s ease;
}

/* SECTION 1: VERDICT */
.verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: var(--bg-panel);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.verdict-header::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent-cyan-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.score-circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.score-circle-big {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 8px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.score-circle-big:hover {
  transform: scale(1.05);
}

.score-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.score-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.label-strong { background: var(--accent-cyan-light); color: var(--accent-cyan); }
.label-friction { background: #fff7ed; color: #f59e0b; }
.label-review { background: var(--accent-magenta-light); color: var(--accent-magenta); }

.diagnosis-container {
  flex: 1;
}

.diagnosis-text {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-main);
  font-weight: 500;
  margin: 0;
  position: relative;
  padding-left: 20px;
  border-left: 4px solid var(--accent-violet);
}

.quick-metrics-row {
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-violet);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SECTION 2: PERSONAS ACTIONS */
.report-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-section-title i { color: var(--accent-cyan); }

.persona-expand-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.persona-expand-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.persona-expand-card:hover {
  border-color: var(--accent-violet);
}

.persona-expand-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

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

.header-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-sidebar);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.header-info { display: flex; flex-direction: column; }
.header-name { font-weight: 700; font-size: 1rem; color: var(--text-main); }
.header-meta { font-size: 0.75rem; color: var(--text-muted); }

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

.stance-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.stance-receptive { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stance-skeptical { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.stance-doubts { background: rgba(139, 92, 246, 0.1); color: var(--accent-violet); }
.stance-indifferent { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }

.expand-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.persona-expand-card.open .expand-icon {
  transform: rotate(180deg);
}

.persona-expand-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: none;
  animation: slideDownFade 0.3s ease forwards;
}

.persona-expand-card.open .persona-expand-body {
  display: block;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.persona-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.reaction-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  padding: 1.5rem;
  background: var(--bg-main);
  border-radius: 12px;
}

.reaction-quote::before {
  content: '“';
  position: absolute;
  top: 0; left: 10px;
  font-size: 4rem;
  color: var(--accent-cyan-light);
  font-family: serif;
}

.detail-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.objections-list, .questions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.objections-list li, .questions-list li {
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  color: var(--text-main);
}

.objections-list li::before { content: '•'; color: var(--accent-magenta); font-weight: bold; }
.questions-list li::before { content: '?'; color: var(--accent-cyan); font-weight: bold; }

/* SECTION 3: OBJECTIONS MAP */
.objections-table-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.obj-table {
  width: 100%;
  border-collapse: collapse;
}

.obj-table th {
  background: var(--bg-main);
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.obj-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.frequency-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.frequency-bar {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.frequency-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 4px;
}

.obj-row-critical { background: rgba(232, 28, 255, 0.02); }
.obj-row-critical .frequency-fill { background: var(--gradient-hot); }

.critical-tag {
  font-size: 0.65rem;
  background: var(--accent-magenta);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

.pattern-interpretation {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-sidebar);
  color: white;
  border-radius: 12px;
  line-height: 1.7;
  font-size: 1rem;
  border-left: 5px solid var(--accent-magenta);
}

.pattern-interpretation strong { color: var(--accent-cyan); }

.settings-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition);
}
.settings-btn:hover { color: #fff; transform: rotate(45deg); }

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-main);
}

/* Topbar */
.topbar {
  height: 70px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: var(--shadow-sm);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  width: 400px;
  background-color: var(--bg-main);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.search-bar:focus-within {
  border-color: var(--accent-cyan);
  background-color: #fff;
  box-shadow: 0 0 0 2px var(--accent-cyan-light);
}
.search-bar input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  color: var(--text-main);
  font-family: inherit;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.btn-icon:hover { color: var(--accent-violet); }
.badge {
  position: absolute;
  top: -5px; right: -8px;
  background-color: var(--accent-magenta);
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  height: 16px; min-width: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.btn-primary, .btn-secondary, .btn-run-ai, .btn-outline {
  font-family: inherit;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { border-color: var(--accent-violet); color: var(--accent-violet); transform: translateY(-1px); }

.btn-run-ai {
  background-color: #f1f5f9;
  color: var(--accent-violet);
  border: 1px solid var(--border-light);
}
.btn-run-ai:hover { background-color: var(--accent-violet); color: white; }

.btn-outline {
  background: transparent; border: 1px solid var(--border-light); color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-small { padding: 4px 10px; font-size: 0.85rem; }

/* Tooltips */
.tooltip { position: relative; }
.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px; left: 50%; transform: translateX(-50%);
  background-color: var(--bg-sidebar); color: white;
  padding: 4px 8px; border-radius: 4px; font-size: 0.75rem;
  white-space: nowrap; z-index: 100;
}

/* Views Management */
.views-container {
  flex: 1;
  overflow-y: auto;
  position: relative;
  /* El padding se mueve a .view-section para permitir elementos full-width como la progress bar */
}

.view-section {
  display: none;
  animation: fadeIn 0.5s ease;
  padding: 2rem; /* Restauramos el padding aquí */
}

.view-section#view-ideation {
  padding-top: 0; /* Eliminamos el top padding en ideación para la barra de progreso */
}
.view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
}
.section-header h1 { font-size: 1.8rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; letter-spacing: -0.02em; }
.subtitle { color: var(--text-muted); font-size: 1rem; }

/* Panels */
.panel {
  background-color: var(--bg-panel);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
}

/* 0. Dashboard */
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-card {
  background-color: var(--bg-panel); border-radius: var(--radius); padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-md); transition: var(--transition); border: 1px solid var(--border-light);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.stat-icon.cyan { background-color: var(--accent-cyan-light); color: var(--accent-cyan); }
.stat-icon.magenta { background-color: var(--accent-magenta-light); color: var(--accent-magenta); }
.stat-icon.violet { background-color: rgba(139, 92, 246, 0.1); color: var(--accent-violet); }
.stat-info h3 { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--text-main); }

.recent-activity-panel { background-color: var(--bg-panel); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border-light); }
.activity-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.activity-item { display: flex; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.activity-item:last-child { border-bottom: none; padding-bottom: 0; }
.activity-indicator { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.pulse-magenta { background-color: var(--accent-magenta); box-shadow: 0 0 0 0 rgba(232, 28, 255, 0.7); animation: pulse-mag 2s infinite; }
.pulse-cyan { background-color: var(--accent-cyan); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); animation: pulse-cy 2s infinite; }
.pulse-violet { background-color: var(--accent-violet); }
@keyframes pulse-mag { 70% { box-shadow: 0 0 0 10px rgba(232,28,255,0); } 100% { box-shadow: 0 0 0 0 rgba(232,28,255,0); } }
@keyframes pulse-cy { 70% { box-shadow: 0 0 0 10px rgba(6,182,212,0); } 100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); } }
.activity-content p { font-size: 0.95rem; }
.activity-time { font-size: 0.8rem; color: var(--text-muted); }

/* 1. Ideation */
.prompt-box {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: linear-gradient(135deg, rgba(6,182,212,0.04), rgba(139,92,246,0.04));
  padding: 1rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.prompt-box textarea { width: 100%; height: 80px; border: none; font-family: inherit; font-size: 1rem; resize: none; outline: none; background: transparent; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ai-list { list-style: none; margin-top: 1rem; }
.ai-list li { padding: 1rem; background: var(--bg-main); border-radius: 8px; margin-bottom: 0.5rem; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: flex-start; }
.tag { font-size: 0.7rem; padding: 3px 10px; border-radius: 12px; font-weight: 600; white-space: nowrap; margin-left: 10px; letter-spacing: 0.02em; }
.tag-high { background: var(--accent-magenta-light); color: var(--accent-magenta); }
.tag-med { background: var(--accent-cyan-light); color: var(--accent-cyan); }
.tag-cyan { background: var(--accent-cyan); color: white; }
.tag-magenta { background: var(--accent-magenta); color: white; }

.scenario-card { margin-top: 1rem; padding: 1rem; border: 1px solid var(--border-light); border-radius: 8px; background: #fff; }
.ai-text { font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0 1rem 0; }
.progress-bar-container { width: 100%; }
.progress-bar-label { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 4px; font-weight: 600; color: var(--text-muted); }
.progress-bar { height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient-hot); border-radius: 3px; }


/* 2. Startups Table */
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 1rem; border-bottom: 2px solid var(--border-light); color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; font-weight: 600; }
.data-table td { padding: 1rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tbody tr:hover { background-color: var(--bg-main); }
.startup-name { display: flex; align-items: center; gap: 12px; }
.startup-logo { width: 40px; height: 40px; border-radius: 8px; background: var(--bg-main); display: flex; align-items: center; justify-content: center; color: var(--accent-cyan); font-size: 1.2rem; border: 1px solid var(--border-light); }
.location { display: block; font-size: 0.75rem; color: var(--text-muted); }
.scoring-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-main); padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border-light); font-weight: bold; }
.scoring-pill.high .score { color: #10b981; } /* Emerald */
.scoring-pill.med .score { color: #f59e0b; } /* Amber */
.scoring-pill.low .score { color: #ef4444; } /* Red */
.tooltip-icon { color: var(--text-muted); cursor: help; }

/* 4. Validation */
.validation-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.synthetic-creator .form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.synthetic-creator label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.input-clean { padding: 10px 14px; border: 1px solid var(--border-light); border-radius: 8px; font-family: inherit; transition: var(--transition); background: var(--bg-main); outline: none; font-size: 0.9rem; }
.input-clean:focus { border-color: var(--accent-cyan); background: #fff; box-shadow: 0 0 0 3px var(--accent-cyan-light); }
.slider { width: 100%; accent-color: var(--accent-magenta); }

/* DUAL RANGE SLIDER SYSTEM */
.dual-range-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

.dual-slider {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    z-index: 10;
    margin: 0;
    height: 10px;
}

/* Base style for the THUMB (Tirador) */
.dual-slider::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s, border-color 0.2s;
}

.dual-slider::-moz-range-thumb {
    pointer-events: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dual-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    border-color: var(--accent-magenta);
}

/* CRITICAL: Neutralize the TRACk to let clicks pass through */
.dual-slider::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    background: transparent;
    border: none;
}

.dual-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.dual-range-track {
    position: absolute;
    height: 6px;
    width: 100%;
    background: #e2e8f0;
    border-radius: 3px;
    z-index: 1;
}

.validation-chat { display: flex; flex-direction: column; height: 500px; }
.chat-window { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; background: var(--bg-main); border-radius: 8px; border: 1px solid var(--border-light); margin-bottom: 1rem; }
.chat-message { display: flex; gap: 1rem; }
.avatar-synthetic { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 0.8rem; }
.bot-avatar { background: var(--gradient-hot); }
.bot-avatar-2 { background: var(--gradient-main); }
.message-content { background: #fff; padding: 1rem; border-radius: 0 12px 12px 12px; border: 1px solid var(--border-light); font-size: 0.95rem; max-width: 80%; box-shadow: var(--shadow-sm); }
.message-content strong { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.chat-input-area { display: flex; gap: 10px; }
.chat-input-area .input-clean { flex: 1; }

/* Utilities */
.select-clean { padding: 8px 16px; border: 1px solid var(--border-light); border-radius: 8px; background: white; font-family: inherit; cursor: pointer; color: var(--text-main); font-weight: 500;}

/* Modal Settings */
.modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; opacity: 1; transition: opacity 0.3s ease; }
.modal.hidden { opacity: 0; pointer-events: none; display: flex !important; }
.modal-content { background: var(--bg-panel); width: 90%; max-width: 650px; padding: 2.5rem; border-radius: 20px; box-shadow: var(--shadow-lg); transform: translateY(0); transition: transform 0.3s ease; border: 1px solid var(--border-light); }
.modal.hidden .modal-content { transform: translateY(20px); }
.modal-header { display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 1.2rem; display: flex; gap: 10px; align-items: center; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.3rem; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; font-style: normal; opacity: 0.7; }

/* ============================================== */
/* CASCADING IDEATION WORKFLOW                    */
/* ============================================== */
.ideation-waterfall {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Step Progress Tracker (top breadcrumb) */
.step-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.8rem 2rem;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin: 0 -2rem 2rem -2rem; /* Margen superior 0 y márgenes laterales negativos para ocupar todo el ancho */
  position: sticky;
  top: 0;
  z-index: 50;
  border-radius: 0;
}

.step-progress-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: all 0.4s ease;
}

.step-progress-item.active {
  opacity: 1;
}

.step-progress-item.completed {
  opacity: 0.7;
}

.step-progress-item.completed .step-dot {
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.4s ease;
}

.step-progress-item.active .step-dot {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

.step-progress-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-progress-item.active span {
  color: var(--text-main);
}

.step-progress-connector {
  width: 50px;
  height: 2px;
  background: var(--border-light);
  margin: 0 10px;
  transition: background 0.4s ease;
}

.step-progress-item.completed + .step-progress-connector {
  background: #10b981;
}

/* Visual Step Connectors (arrows between containers) */
.step-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  opacity: 0.5;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Matrix Toolbar */
.matrix-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.matrix-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.matrix-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.matrix-counter.complete {
  color: #10b981;
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.06);
}

.step-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  animation: slideDown 0.5s ease forwards;
  opacity: 0;
  box-shadow: var(--shadow-md);
  position: relative;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.step-badge {
  background: var(--gradient-main);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Step Description Blocks */
.step-description {
  font-size: 0.88rem !important;
  line-height: 1.7;
  background: linear-gradient(135deg, rgba(6,182,212,0.03), rgba(139,92,246,0.03)) !important;
  padding: 1rem 1.2rem !important;
  border-radius: 8px !important;
  border-left: 3px solid var(--accent-cyan) !important;
  color: var(--text-muted) !important;
  border: 1px solid rgba(6,182,212,0.1);
  border-left: 3px solid var(--accent-cyan) !important;
}

/* Strategic Brief Form (Step 1) */
.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.brief-block {
  background: linear-gradient(180deg, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.03) 100%);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.brief-block:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: var(--shadow-glow-cyan);
}

.brief-title {
  font-size: 1rem;
  color: var(--accent-violet);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.8rem;
  font-weight: 700;
}

.brief-title i {
  color: var(--accent-cyan);
}

.toggle-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px;}
.toggle-group input[type="radio"] { display: none; }
.toggle-group label { padding: 8px 15px; background: white; border: 1px solid var(--border-light); border-radius: 20px; cursor: pointer; transition: all 0.2s; font-size: 0.85rem; font-weight: 500;}
.toggle-group input[type="radio"]:checked + label { background: var(--accent-cyan-light); border-color: var(--accent-cyan); color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
@media (max-width: 900px) {
    .brief-grid { grid-template-columns: 1fr; }
}

/* Advanced Brief Options */
.advanced-options { background: var(--bg-main); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 1rem 1.5rem; transition: all 0.3s ease;}
.advanced-options[open] { background: rgba(0,0,0,0.02); }
.advanced-options summary { font-size: 0.95rem; font-weight: 600; color: var(--accent-magenta); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;}
.advanced-options summary::-webkit-details-marker { display: none; }
.advanced-options summary:hover { color: var(--text-main); }
.advanced-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

/* ============================================== */
/* HMW CARDS (Step 2)                             */
/* ============================================== */
.hmw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.hmw-card {
  background: var(--bg-main);
  border: 2px solid transparent;
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  text-align: left;
  position: relative;
}

.hmw-card:hover {
  border-color: var(--accent-violet);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139,92,246,0.12);
  color: var(--text-main);
}

.hmw-card.selected {
  border-color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(139,92,246,0.04));
  color: var(--text-main);
  box-shadow: var(--shadow-glow-cyan);
}

.hmw-headline {
  display: inline-block;
  background: var(--gradient-main);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.hmw-card p {
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

/* ============================================== */
/* IDEA CARDS (Step 3 Matrix)                     */
/* ============================================== */
.ideas-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 1400px) {
  .ideas-deck { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .ideas-deck { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ideas-deck { grid-template-columns: 1fr; }
}

.idea-card {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.idea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.12);
}

.idea-card.selected-neon {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.35), 0 0 60px rgba(6, 182, 212, 0.1);
  transform: translateY(-4px);
}

.idea-card.selected-neon .idea-card-header {
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(139,92,246,0.1));
}

.idea-card-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.25);
}

.idea-number {
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--accent-magenta);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.btn-select-idea {
  background: transparent;
  border: 1px solid rgba(6,182,212,0.5);
  color: var(--accent-cyan);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.2s;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-select-idea:hover {
  background: rgba(6,182,212,0.1);
  border-color: var(--accent-cyan);
}

.idea-card.selected-neon .btn-select-idea {
  background: var(--accent-cyan);
  color: white;
  border-color: var(--accent-cyan);
  box-shadow: 0 2px 8px rgba(6,182,212,0.4);
}

/* Idea Matrix Placeholders */
.placeholder-card {
  border: 2px dashed rgba(100,116,139, 0.3);
  background: rgba(0,0,0,0.04);
  padding: 1.5rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  min-height: 220px;
}

.placeholder-card:hover {
  border-color: var(--accent-violet);
  background: rgba(139,92,246,0.03);
}

.placeholder-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.placeholder-actions button {
  padding: 8px 12px;
  font-size: 0.8rem;
  width: 100%;
  justify-content: center;
}

.placeholder-card .slot-number {
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.04;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.idea-card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.idea-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  line-height: 1.35;
}

.idea-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.idea-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.idea-card .text-muted { color: #94a3b8; }

.idea-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1rem;
  background: rgba(0,0,0,0.2);
}

.btn-horizon {
  width: 100%;
  border: 1px dashed var(--accent-magenta);
  color: var(--accent-magenta);
  background: transparent;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.btn-horizon:hover { background: var(--accent-magenta-light); }

/* ============================================== */
/* SYNAPSIS TRIGGER PANEL                         */
/* ============================================== */
.synapsis-panel {
  background: linear-gradient(135deg, rgba(15,23,42,0.04), rgba(139,92,246,0.04));
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.synapsis-panel-info {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.synapsis-panel-info i {
  color: var(--accent-cyan);
  margin-right: 6px;
}

.synapsis-buttons-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.synapsis-btn-group {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.synapsis-btn-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ============================================== */
/* SYNAPSIS CONCEPT CARDS (Step 4)                */
/* ============================================== */
.synapsis-card {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-light);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  background-clip: padding-box;
  z-index: 1;
  animation: cardReveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.synapsis-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  z-index: -1;
  border-radius: 16px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.synapsis-card:hover::before {
  opacity: 0.65;
}

.synapsis-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1rem;
}

.synapsis-icon {
  font-size: 1.8rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.synapsis-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.synapsis-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.synapsis-origins {
  background: rgba(0,0,0,0.25);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-cyan);
  font-size: 0.85rem;
}

.synapsis-origins p {
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 600;
}

.origin-tag {
  display: inline-block;
  background: rgba(6,182,212,0.12);
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 8px;
  margin-bottom: 8px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px solid rgba(6,182,212,0.2);
}

/* Custom scrollbar for views container */
.views-container::-webkit-scrollbar { width: 6px; }
.views-container::-webkit-scrollbar-track { background: transparent; }
.views-container::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
.views-container::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Executive Report Styles */
.report-body {
  padding: 1rem 0;
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1.05rem;
}

.report-body strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent-violet);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.report-body strong:first-child {
  margin-top: 0;
}

.report-section {
  max-width: 800px;
  margin: 0 auto;
}

/* Validation Specific Styles */
.question-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.question-chip:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent-cyan);
  color: var(--text-light);
}

.question-chip.selected {
  background: var(--accent-cyan-light);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(6,182,212,0.2);
}

.persona-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.persona-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.persona-card:hover::before {
  opacity: 1;
}

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

.avatar-synthetic-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.avatar-synthetic-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hot);
  border-radius: 14px;
  rotate: -5deg;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.persona-card:hover .avatar-synthetic-bg {
  rotate: 0deg;
  scale: 1.1;
  opacity: 1;
}

.avatar-synthetic-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-sidebar);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,0.1);
  z-index: 1;
}

.persona-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.persona-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.2;
}

.persona-meta {
  font-size: 0.75rem;
  color: var(--accent-magenta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.persona-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.persona-trait-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.persona-trait-item i {
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  background: var(--accent-cyan-light);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.trait-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trait-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.persona-trait {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

.score-badge {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 54px;
  text-align: center;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-cyan);
  background: rgba(6,182,212,0.1);
}

.score-high { border-color: #10b981; color: #10b981; background: rgba(16,185,129,0.1); }
.score-mid { border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,0.1); }
.score-low { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.1); }

/* Persona Selector Redesign */
.persona-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.persona-option-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.persona-option-card .option-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.persona-option-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.persona-option-card:hover {
  background: rgba(6,182,212,0.05);
  border-color: var(--accent-cyan);
}

.persona-option-card.active {
  background: rgba(6,182,212,0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6,182,212,0.15);
}

.persona-option-card.active .option-icon {
  background: var(--accent-cyan);
  color: white;
}

.persona-option-card.active span {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Interest Chips */
.interest-chip {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.interest-chip:hover {
  border-color: var(--accent-violet);
  color: var(--text-light);
}

.interest-chip.selected {
  background: var(--accent-violet-light);
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  font-weight: 600;
}

/* Range Labels */
.range-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
}

.range-labels span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Validation Input Tabs */
.input-mode-tabs {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.mode-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mode-tab:hover {
  color: var(--text-light);
  background: rgba(255,255,255,0.03);
}

.mode-tab.active {
  background: var(--bg-sidebar);
  color: var(--accent-cyan);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ==========================================================================
   TRENDS RADAR MODULE
   ========================================================================== */

.trends-workspace {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-bottom: 200px; /* Space for the floating sticky bar */
}

/* Split Layout for Step 2 */
.trends-split-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.trends-cards-column {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.trends-radar-column {
  flex: 2;
  position: sticky;
  top: 90px;
}

.radar-sticky-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* Chart Radar Legend */
.radar-legend {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 6px 10px;
  background: var(--bg-main);
  border-radius: 6px;
  border-left: 3px solid var(--accent-cyan);
}
.legend-item.legend-weak { border-left-color: var(--text-muted); }
.legend-item.legend-strong { border-left-color: var(--accent-cyan); }
.legend-item.legend-consolidated { border-left-color: var(--accent-magenta); }


/* Trend Card */
.trend-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trend-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(6, 182, 212, 0.4);
}

.trend-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  box-shadow: 0 0 0 1px var(--accent-cyan);
}

.trend-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Checkbox overlay */
.trend-card-checkbox {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-cyan);
  z-index: 2;
}

.trend-card-header {
  padding-right: 2rem; /* make space for checkbox */
}

.trend-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.trend-intensity {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}
/* Pills and Chips (Interactive Selectors) */
.pills-container, .chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill, .chip {
  padding: 10px 18px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.pill:hover, .chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.03);
  transform: translateY(-1px);
  color: var(--text-main);
}

.pill.active, .chip.active {
  background: var(--accent-cyan) !important;
  border-color: var(--accent-cyan) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.pill.active i, .chip.active i {
  color: white !important;
}

/* Specific to Trends module results if needed */
.intensity-weak { background: rgba(156,163,175,0.1); color: var(--text-muted); border: 1px solid rgba(156,163,175,0.2); }
.intensity-strong { background: var(--accent-cyan-light); color: var(--accent-cyan); border: 1px solid rgba(6,182,212,0.2); }
.intensity-consolidated { background: rgba(232,28,255,0.1); color: var(--accent-magenta); border: 1px solid rgba(232,28,255,0.2); }

.trend-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.trend-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trend-category {
  font-size: 0.7rem;
  color: var(--accent-violet);
  font-weight: 600;
}

.trend-sources {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.source-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.05);
}

.source-link:hover {
  background: rgba(6, 182, 212, 0.15);
  text-decoration: underline;
}

.trend-evidence-box {
  background: rgba(6, 182, 212, 0.04);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0;
  line-height: 1.4;
}

.trend-evidence-box i {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  margin-top: 2px;
}

.source-item {
  transition: transform 0.2s ease;
}

.source-item:hover {
  transform: translateX(3px);
}

/* Opportunities Grid */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.oppo.trend-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 80px;
}

.trend-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.trend-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.02);
  box-shadow: 0 0 0 2px var(--accent-cyan-light);
}

/* Trend Card Visibility - Always Fixed (No collapse) */
.trend-summary,
.trend-evidence-box,
.trend-footer {
  display: block;
}


.trend-card-score-mini {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
}

.trend-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6rem;
}



.trend-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}



.trend-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.trend-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
}

.trend-sources-toggle {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.trend-sources-toggle:hover {
  text-decoration: underline;
}

.trend-sources-list {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: var(--bg-main);
  border-radius: 8px;
  font-size: 0.75rem;
}

.trend-sources-list.show {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.source-link {
  color: var(--text-main);
  text-decoration: none;
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.source-link:hover {
  background: var(--accent-cyan-light);
  color: var(--accent-cyan);
}

.trend-evidence-box {
  background: rgba(6, 182, 212, 0.04);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-main);
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

/* Trends Sticky Footer - Rediseño Profesional */
.sticky-footer {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 340px); /* Slightly narrower */
  max-width: 1020px;
  height: 80px; /* More breathable */
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  display: none;
  align-items: center;
  z-index: 1050;
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 0 2.5rem; /* Standardized symmetric padding */
  animation: slideUpFloating 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


.sticky-footer.visible {
  display: flex;
}

.sticky-footer-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.selection-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.selection-pill i {
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.selection-pill .count {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.selection-pill.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

.sticky-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  max-width: 280px;
  line-height: 1.3;
}

/* Premium Generation Button */
.btn-generate-premium {
  height: 52px;
  padding: 0 2rem;
  background: var(--gradient-main);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.4);
}

.btn-generate-premium:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(6, 182, 212, 0.6);
  filter: brightness(1.1);
}

.btn-generate-premium:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-generate-premium i {
  font-size: 1rem;
}

.btn-generate-premium .fa-chevron-right {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.btn-generate-premium:hover:not(:disabled) .fa-chevron-right {
  transform: translateX(3px);
}



.instruction-text-dynamic {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--accent-cyan);
  padding-left: 15px;
}

.ranking-row-highlight {
  background: var(--accent-cyan-light) !important;
  border-color: var(--accent-cyan) !important;
  transform: scale(1.02);
  box-shadow: var(--shadow-sm);
}

.opportunity-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.opportunity-card:hover {
  border-color: var(--accent-magenta);
  box-shadow: 0 4px 20px rgba(232,28,255,0.1);
  transform: translateY(-3px);
}

.opp-concept {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.opp-origins {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1rem;
}

.opp-origins-badge {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.opp-hmw {
  background: linear-gradient(to right, rgba(6,182,212,0.05), transparent);
  border-left: 3px solid var(--accent-cyan);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.opp-actions {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style-type: none;
}

.opp-actions li {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.opp-actions li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-violet);
  font-weight: bold;
}

.opp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
}

.opp-timing {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-main);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Dashboard Cards Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.startup-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.startup-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-cyan);
}

.startup-header {
  margin-bottom: 1rem;
}

.startup-name {
  color: var(--text-main) !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
}

.startup-sector {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.startup-body {
  flex-grow: 1;
  font-size: 0.85rem;
  color: var(--text-main);
}

.startup-body strong {
  color: var(--text-main);
}

.startup-body span {
  color: var(--text-main) !important;
}

/* --- UNIFIED STEP HEADERS SYSTEM --- */
.step-title {
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--bg-sidebar) !important; /* Dark slate blue */
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.8rem !important;
  border: none !important;
  padding: 0 !important;
}

.step-title i {
  font-size: 1.2rem;
  color: var(--accent-cyan) !important;
  filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.2));
}

.step-badge {
  background: var(--bg-sidebar) !important;
  color: #fff !important;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
}

/* Specific badge colors for key milestones if needed */
.step-badge.badge-hot {
  background: var(--gradient-hot) !important;
}

/* ============================================== */
/* ONBOARDING TIMELINE                            */
/* ============================================== */

.onboarding-intro {
  margin-bottom: 1.8rem;
  padding: 1rem 1.4rem;
  background: linear-gradient(135deg, rgba(6,182,212,0.04), rgba(139,92,246,0.04));
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.onboarding-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2.5rem;
  position: relative;
}

/* Horizontal gradient line connecting all step nodes */
.onboarding-timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet), var(--accent-magenta));
  z-index: 0;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.6rem;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.9rem;
  z-index: 1;
  position: relative;
}

.timeline-num-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  border: 3px solid white;
}

.timeline-step[data-step="1"] .timeline-num-circle { background: linear-gradient(135deg, var(--accent-cyan), #22d3ee); box-shadow: 0 4px 14px rgba(6,182,212,0.35); }
.timeline-step[data-step="2"] .timeline-num-circle { background: linear-gradient(135deg, #22d3ee, var(--accent-violet)); box-shadow: 0 4px 14px rgba(139,92,246,0.3); }
.timeline-step[data-step="3"] .timeline-num-circle { background: linear-gradient(135deg, var(--accent-violet), #a78bfa); box-shadow: 0 4px 14px rgba(167,139,250,0.35); }
.timeline-step[data-step="4"] .timeline-num-circle { background: linear-gradient(135deg, #a78bfa, var(--accent-magenta)); box-shadow: 0 4px 14px rgba(232,28,255,0.3); }

.timeline-step-icon {
  width: 24px;
  height: 24px;
}

.timeline-card .timeline-step-icon { 
  width: 2.2rem;
  height: 2.2rem;
  background: var(--bg-main);
  color: var(--accent-cyan) !important;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem !important;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(139,92,246,0.1));
}

.timeline-step[data-step="3"] .timeline-step-icon,
.timeline-step[data-step="4"] .timeline-step-icon {
  color: var(--accent-magenta) !important;
  background: linear-gradient(135deg, rgba(232,28,255,0.1), rgba(244,63,94,0.1));
}

/* The card hanging below the node */
.timeline-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.1rem 1.1rem 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
}

.timeline-step[data-step="1"] .timeline-card::before { background: linear-gradient(90deg, var(--accent-cyan), #22d3ee); }
.timeline-step[data-step="2"] .timeline-card::before { background: linear-gradient(90deg, #22d3ee, var(--accent-violet)); }
.timeline-step[data-step="3"] .timeline-card::before { background: linear-gradient(90deg, var(--accent-violet), #a78bfa); }
.timeline-step[data-step="4"] .timeline-card::before { background: linear-gradient(90deg, #a78bfa, var(--accent-magenta)); }

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(6,182,212,0.25);
}

.tl-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
}

.tl-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tl-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tl-row.tl-action .tl-label {
  color: var(--accent-cyan);
}

.tl-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.tl-output {
  padding: 5px 9px;
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(139,92,246,0.06));
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.tl-output i { color: var(--accent-cyan); font-size: 0.68rem; }
.tl-output strong { color: var(--text-main); }


.onboarding-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease;
}

.onboarding-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.onboarding-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.onboarding-card[data-step="1"]::before { background: linear-gradient(90deg, var(--accent-cyan), #22d3ee); }
.onboarding-card[data-step="2"]::before { background: linear-gradient(90deg, #22d3ee, var(--accent-violet)); }
.onboarding-card[data-step="3"]::before { background: linear-gradient(90deg, var(--accent-violet), #a78bfa); }
.onboarding-card[data-step="4"]::before { background: linear-gradient(90deg, #a78bfa, var(--accent-magenta)); }

.onboarding-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-cyan);
}

.onboarding-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.onboarding-step-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
}

.onboarding-icon {
  font-size: 1.3rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.onboarding-card[data-step="3"] .onboarding-icon,
.onboarding-card[data-step="4"] .onboarding-icon {
  background: var(--gradient-hot);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.onboarding-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
}

.onboarding-what,
.onboarding-action {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.onboarding-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1px;
}

.onboarding-action .onboarding-label {
  color: var(--accent-cyan);
}

.onboarding-output {
  margin-top: auto;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(139,92,246,0.06));
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.onboarding-output i {
  color: var(--accent-cyan);
  font-size: 0.7rem;
}

.onboarding-output strong {
  color: var(--text-main);
}

.onboarding-connector-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  color: var(--border-light);
  font-size: 0.9rem;
  flex-shrink: 0;
  align-self: center;
}

/* ============================================== */
/* PRINTABLE REPORT STYLES (A4)                   */
/* ============================================== */

@media print {
  @page {
    size: A4;
    margin: 15mm;
  }
  
  /* Ensure proper font sizing for print */
  html, body {
    background: white !important;
    color: black !important;
    font-size: 11pt !important;
  }

  /* Force color printing to show backgrounds and badges correctly */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Safely collapse ALL UI elements except the report path */
  body > *:not(.app-container) { display: none !important; }
  .app-container > *:not(.main-content) { display: none !important; }
  .main-content > *:not(.views-container) { display: none !important; }
  
  /* Hide all application views explicitly so only the report remains */
  .views-container > .view-section { display: none !important; }
  
  .printable-report:not(:empty) {
    position: relative !important;
    width: 100% !important;
    background-color: white !important;
    color: #1e293b !important;
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  /* Prevent background elements from leaking or taking space */
  html, body {
    height: auto !important;
    overflow: visible !important;
  }
  
  .app-container, .main-content, .views-container {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .report-page-header {
    border-bottom: 2px solid #06b6d4;
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .report-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
  }
  
  .report-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 10px;
  }

  .report-date {
    font-size: 0.8rem;
    color: #64748b;
  }
  
  .report-section {
    break-inside: avoid-page;
    page-break-inside: avoid;
    margin-bottom: 35px;
    width: 100%;
  }
  
  .report-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    border-left: 5px solid #8b5cf6;
    padding-left: 12px;
    margin-bottom: 15px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .report-brief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .report-brief-item {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }
  
  .report-brief-label {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 4px;
  }

  .report-brief-val {
    font-size: 0.85rem;
    color: #1e293b;
    line-height: 1.4;
  }
  
  .report-matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  
  .report-matrix-cell {
    border: 1px solid #cbd5e1;
    padding: 10px;
    font-size: 0.7rem;
    border-radius: 4px;
    background: #ffffff;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .report-matrix-cell.selected {
    background-color: #f0fdfa !important;
    border: 2px solid #06b6d4 !important;
    font-weight: 700;
  }
  
  .report-concept-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    break-inside: avoid-page;
    page-break-inside: avoid;
    display: block;
  }
  
  .report-concept-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
  }
  
  .report-concept-name { font-size: 1.3rem; font-weight: 800; color: #06b6d4; }
  .report-concept-description { font-size: 0.85rem; line-height: 1.5; color: #334155; }
  
  .report-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
  }
}

/* --- ESTILOS DE REPORTE EJECUTIVO (A4 MODAL) --- */
.printable-report {
    background: white;
    color: #1e293b;
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 297mm;
    font-family: 'Inter', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

.report-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.report-logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.report-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #64748b;
}

.report-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.report-section {
    margin-bottom: 40px;
}

.report-section-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #06b6d4;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #06b6d4;
    padding-left: 12px;
}

.report-brief-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.report-brief-item {
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.report-brief-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.report-brief-val {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

/* --- STICKY FOOTER CTA (PASO 2 TENDENCIAS) --- */
.sticky-footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: 90%;
    max-width: 1200px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.2rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: none; /* Controlled by JS .visible class */
}

.sticky-footer.visible {
    transform: translateX(-50%) translateY(0);
    display: block;
}

.sticky-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.sticky-counter-box {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
}

.counter-pill {
    background: var(--bg-panel);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    border: 1px solid var(--border-light);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.pulse-glow {
    animation: pulse-glow-cyan 2s infinite;
}

@keyframes pulse-glow-cyan {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

@media (max-width: 1024px) {
    .sticky-footer {
        width: 95%;
        padding: 1rem 1.5rem;
        bottom: 1rem;
    }
    .sticky-footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .sticky-counter-box {
        justify-content: center;
    }
}

/* =========================================
   Startups Module - Premium Card Styles
========================================= */
.startup-card-premium {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.startup-card-premium:hover {
  border-color: var(--accent-magenta);
  box-shadow: 0 4px 20px rgba(232, 28, 255, 0.1);
  transform: translateY(-3px);
}

.startup-card-premium.is-favorite {
  border-color: var(--accent-violet);
}

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

.sc-model-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-model-badge i { color: var(--accent-magenta); }

.sc-fit-score {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(6,182,212,0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.sc-title {
  margin: 0.5rem 0;
  font-size: 1.15rem;
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.3;
}

.sc-meta-rows {
  display: flex;
  gap: 8px;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.sc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 3.5rem;
}

.sc-insight-box {
  font-size: 0.75rem;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.sc-insight-diff {
  background: rgba(139,92,246,0.05);
  border-left: 2px solid var(--accent-violet);
  color: var(--text-main);
}
.sc-insight-diff strong { color: var(--accent-violet); display: block; margin-bottom: 4px; }

.sc-insight-ai {
  background: var(--accent-cyan-light);
  border-left: 2px solid var(--accent-cyan);
  color: var(--text-main);
}
.sc-insight-ai strong { color: var(--text-main); display: block; margin-bottom: 4px; }

.sc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-decoration: none;
  background: rgba(6,182,212,0.05);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 1rem;
  transition: background 0.2s;
}

.sc-link:hover {
  background: rgba(6,182,212,0.15);
}

.sc-link span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.sc-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
