:root {
  /* DARK HIGH-TECH PALETTE (Estilo ARGEM / Vercel Dark / Cyber Clean) */
  --bg-main: #070b14;
  --bg-card: #0d1527;
  --bg-subtle: #0a101d;
  --bg-elevated: #111c33;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-focus: #00d2ff;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --text-inverse: #070b14;

  /* HIGH-TECH ACCENTS */
  --primary: #00d2ff;        /* Cyber Blue */
  --primary-hover: #38bdf8;
  --primary-glow: rgba(0, 210, 255, 0.35);
  --accent-cyan: #00f5d4;      /* Cyber Cyan */
  --accent-indigo: #818cf8;    /* Soft Indigo */
  --accent-teal: #2dd4bf;
  
  --gradient-tech: linear-gradient(135deg, #00d2ff 0%, #3b82f6 50%, #818cf8 100%);
  --gradient-badge: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
  --gradient-hero-bg: radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.12) 0%, rgba(7, 11, 20, 1) 75%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 20px 50px rgba(0, 210, 255, 0.18);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-main);
}

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

.text-cyan { color: var(--accent-cyan); }
.text-indigo { color: var(--accent-indigo); }

p.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-light {
  background-color: var(--bg-main);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: var(--transition);
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-tech);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--primary-glow);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  color: #070b14;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: block;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.15);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-tech);
  color: #070b14;
  font-weight: 700;
  box-shadow: 0 0 25px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.6);
  filter: brightness(1.1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

.btn-nav-cta .btn-text-short {
  display: none;
}
.btn-nav-cta .btn-text-full {
  display: inline;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* BADGES & EYEBROWS */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.eyebrow .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

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

/* HERO SECTION */
.hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding-top: 7.5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero-bg);
}

#hero-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-glow-bg {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(129, 140, 248, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item .stat-num {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* HERO INTERACTIVE HUD / CARD */
.hero-hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  backdrop-filter: blur(12px);
}

.hero-hud-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 2px;
  background: var(--gradient-tech);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hud-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

.hud-layers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hud-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hud-layer:hover {
  background: rgba(0, 210, 255, 0.06);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

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

.hud-layer-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(0, 210, 255, 0.12);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}

.hud-layer-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.hud-layer-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.25);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* DIAGNOSIS / PAIN POINTS */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.18);
}

.pain-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.pain-card p {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.55;
}

.punchline-banner {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.35rem;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* TABS SYSTEM */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.tabs-nav {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--gradient-tech);
  color: #070b14;
  font-weight: 700;
  box-shadow: 0 0 20px var(--primary-glow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.35s ease-out;
}

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

/* COURSE & PROGRAM CARDS */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.card-course {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-course::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-tech);
  opacity: 0.5;
  transition: var(--transition);
}

.card-course:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: var(--shadow-hover);
}

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

.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  background: rgba(0, 210, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 255, 0.25);
  font-weight: 600;
}

.card-tag.tag-indigo {
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent-indigo);
  border-color: rgba(129, 140, 248, 0.25);
}

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

.card-course .course-summary {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.course-meta-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.course-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.course-meta-list li strong {
  color: var(--text-main);
}

.course-meta-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-top: 2px;
}

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

.course-hours {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.course-hours span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
}

/* SYLLABUS TABLES */
.syllabus-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.syllabus-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.syllabus-table th, .syllabus-table td {
  padding: 1.1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.syllabus-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
  font-weight: 700;
}

.syllabus-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-takeaway {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-teal);
  background: rgba(45, 212, 191, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(45, 212, 191, 0.25);
}

/* DOBLE PERSPECTIVA */
.perspective-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.perspective-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.perspective-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.perspective-card.strategy {
  border-top: 4px solid var(--primary);
}

.perspective-card.operation {
  border-top: 4px solid var(--accent-indigo);
}

.perspective-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.perspective-card.strategy .perspective-icon {
  background: rgba(0, 210, 255, 0.12);
  color: var(--primary);
}

.perspective-card.operation .perspective-icon {
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent-indigo);
}

.perspective-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.perspective-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.perspective-questions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.perspective-questions li {
  font-size: 0.92rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary);
  color: var(--text-main);
  font-weight: 500;
}

.perspective-card.operation .perspective-questions li {
  border-left-color: var(--accent-indigo);
}

/* PUESTO DE MANDO: 6 CAPAS & 4 FASES */
.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.layer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.layer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: var(--shadow-md);
}

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

.layer-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.layer-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.layer-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.layer-user {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
}

/* 4 FASES TIMELINE */
.phases-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.phase-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.phase-item::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-weight: 700;
  z-index: 5;
}

.phase-item:last-child::after {
  display: none;
}

.phase-item span.phase-weeks {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.phase-item h5 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.phase-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* POR QUÉ ES DISTINTO (6 COMPROMISOS) */
.commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.commitment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.commitment-num {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

.commitment-card h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.commitment-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ABOUT SECTION (PABLO DE FRANCESCO) */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-avatar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
}

.avatar-placeholder {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: var(--gradient-tech);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #070b14;
  box-shadow: 0 0 25px var(--primary-glow);
}

.about-timeline {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-row .year {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 700;
}

.timeline-row .desc strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-main);
}

.timeline-row .desc span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* CTA BOX */
.cta-box {
  background: var(--bg-card);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 4.5rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 210, 255, 0.1);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-tech);
}

.cta-box h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2.5rem auto;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-subtle);
  background: #04070d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* PORTFOLIO & DESARROLLOS */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.25rem;
  margin-top: 2.5rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 210, 255, 0.35);
}

.portfolio-preview {
  width: 100%;
  height: 220px;
  background: #04070d;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.portfolio-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-preview img {
  transform: scale(1.03);
}

.portfolio-preview-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #3b82f6 50%, #6366f1 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
}

.portfolio-preview-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.portfolio-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.portfolio-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(0, 210, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.portfolio-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.portfolio-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.portfolio-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portfolio-features li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.portfolio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.portfolio-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.portfolio-link:hover {
  color: var(--primary-hover);
  transform: translateX(3px);
}

/* RESPONSIVE & TABLE WRAPPERS */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.2);
  border-radius: 4px;
}

@media (max-width: 992px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 3rem;
  }
  
  .layers-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .commitments-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .phases-bar { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .phase-item::after { 
    display: none; 
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }

  /* Compact Navbar on Mobile */
  .navbar {
    padding: 0.8rem 0;
  }

  .nav-links {
    gap: 0.35rem;
    padding: 0.25rem 0.4rem;
  }

  .nav-links a {
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
  }

  .btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Hero adjustments */
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-stats { 
    grid-template-columns: 1fr; 
    gap: 1.25rem;
    padding-top: 1.5rem;
  }

  .hero-hud-card {
    padding: 1.25rem;
  }

  .hud-layer {
    padding: 0.65rem 0.75rem;
  }

  .hud-layer-name {
    font-size: 0.85rem;
  }

  /* Tabs on Mobile */
  .tabs-container {
    margin-bottom: 2rem;
  }

  .tabs-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-md);
    padding: 0.35rem;
    gap: 0.35rem;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .tab-btn.active {
    border-radius: var(--radius-sm);
  }

  /* Cards & Grids */
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-course {
    padding: 1.5rem;
  }

  .syllabus-box {
    padding: 1.25rem;
  }

  .syllabus-table th, .syllabus-table td {
    padding: 0.85rem 0.9rem;
    font-size: 0.85rem;
    min-width: 140px;
  }

  .layers-grid { 
    grid-template-columns: 1fr; 
    gap: 1rem;
  }

  .layer-card {
    padding: 1.35rem;
  }

  .commitments-grid { 
    grid-template-columns: 1fr; 
    gap: 1rem;
  }

  .phases-bar { 
    grid-template-columns: 1fr; 
    gap: 0.85rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-preview {
    height: 190px;
  }

  .portfolio-body {
    padding: 1.5rem;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .cta-box h2 {
    font-size: 1.85rem;
  }

  .footer {
    padding: 3rem 0 1.5rem 0;
  }

  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .brand span {
    font-size: 1.1rem;
  }
}


/* PREGUNTAS FRECUENTES */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-main);
}

.faq-item p {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* DECIDIR CON INFORMACION */
.predict-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.predict-step-highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow);
}

.predict-explainer {
  max-width: 820px;
  margin: 3.5rem auto 0;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
}

.predict-explainer h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.predict-explainer p,
.predict-note p {
  color: var(--text-muted);
  line-height: 1.65;
}

.predict-subheader {
  margin: 3.5rem auto 1.5rem;
}

.predict-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.predict-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.predict-note {
  padding: 1.75rem;
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-md);
}

.predict-note h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.predict-cta {
  text-align: center;
  margin-top: 2.5rem;
}

@media (max-width: 992px) {
  .predict-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .predict-steps,
  .predict-grid,
  .predict-notes {
    grid-template-columns: 1fr;
  }
}

/* DESTAQUE DE TEXTO EN CONTRASTE */
.text-highlight {
  background: var(--primary);
  color: var(--text-inverse);
  font-weight: 600;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* LOGO DE MARCA */
.brand-logo {
  display: block;
  height: 32px;
  width: auto;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 26px;
  }
}
