/* ==========================================================================
   Humberto Murillo Vargas - Modern Portfolio Design System
   Full Stack Developer | Automation & n8n Specialist | Cloud & Security
   ========================================================================== */

:root {
  /* Color Palette - Dark Cyber & Glassmorphism */
  --bg-primary: #070a12;
  --bg-secondary: #0d1322;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(22, 33, 62, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(6, 182, 212, 0.4);

  /* Brand Accents */
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-violet: #8b5cf6;
  --accent-violet-glow: rgba(139, 92, 246, 0.35);
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 35px rgba(6, 182, 212, 0.25);
  --shadow-glow-emerald: 0 0 35px rgba(16, 185, 129, 0.25);
  --shadow-glow-violet: 0 0 35px rgba(139, 92, 246, 0.25);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 35%, rgba(139, 92, 246, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    linear-gradient(to bottom, var(--bg-primary), #070913 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Common Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utility */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyber {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header Structure */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

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

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 10, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(7, 10, 18, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(6, 182, 212, 0.15);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  color: #070a12;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  color: #070a12;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

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

.btn-cyber:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

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

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 1.5rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 4.8vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.12;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.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 {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Tech Visual Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 420px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(139, 92, 246, 0.35), rgba(16, 185, 129, 0.5));
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.3), 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: float-slow 6s ease-in-out infinite alternate;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #060913;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.avatar-wrapper:hover .avatar-img {
  transform: scale(1.04);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  padding: 0.7rem 1.1rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  white-space: nowrap;
}

.floating-badge i {
  font-size: 1.25rem;
}

.floating-badge .badge-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.floating-badge .badge-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-top-right {
  top: 10px;
  right: -25px;
  border-color: rgba(6, 182, 212, 0.35);
  animation: float-badge 4s ease-in-out infinite alternate;
}

.badge-bottom-left {
  bottom: 25px;
  left: -35px;
  border-color: rgba(16, 185, 129, 0.35);
  animation: float-badge 4.5s ease-in-out infinite alternate-reverse;
}

.badge-bottom-right {
  bottom: -20px;
  right: 20px;
  border-color: rgba(139, 92, 246, 0.35);
  animation: float-badge 5s ease-in-out infinite alternate;
}

/* ==========================================================================
   Feature / Special Sections
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}

/* ==========================================================================
   Section 1: Automatización con n8n & Inteligencia Artificial
   ========================================================================== */
.n8n-section {
  position: relative;
}

.n8n-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.n8n-tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.n8n-tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(6, 182, 212, 0.4);
}

.n8n-tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.15));
  border-color: var(--accent-cyan);
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.n8n-canvas-wrapper {
  background: #090e1a;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

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

.canvas-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.canvas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  padding: 1.5rem 0;
}

/* n8n Node Styling */
.n8n-node {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  transition: var(--transition-normal);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.n8n-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--node-color, var(--accent-cyan));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.n8n-node.active-executing {
  border-color: var(--node-color, var(--accent-cyan));
  box-shadow: 0 0 25px var(--node-glow, rgba(6, 182, 212, 0.45));
  transform: translateY(-4px) scale(1.02);
}

.node-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.node-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.2rem;
}

.node-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.node-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.node-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.node-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Connecting Line SVG Canvas */
.nodes-connector-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.connector-path {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 6 6;
}

.connector-path.pulsing {
  stroke: var(--accent-cyan);
  stroke-dasharray: 8 4;
  animation: flow-dash 1.2s linear infinite;
  filter: drop-shadow(0 0 6px var(--accent-cyan));
}

/* Console Output Box */
.n8n-console {
  margin-top: 2rem;
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.console-log-content {
  color: #38bdf8;
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Workflow Features Grid */
.n8n-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-box {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.feature-box:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Section 2: Manejo de Servidores & Cloud (DevOps / Sysadmin)
   ========================================================================== */
.server-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: stretch;
}

/* Server Dashboard Metrics */
.server-metrics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.metrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.server-id {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.server-dot-ok {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.metric-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-label-val {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

.fill-emerald {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.fill-cyan {
  background: linear-gradient(90deg, #06b6d4, #38bdf8);
}

.fill-violet {
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
}

.docker-containers-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.container-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.container-status-up {
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Linux Terminal Window */
.terminal-window {
  background: #090c15;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.terminal-topbar {
  background: #111728;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 0.45rem;
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.t-red { background: #ef4444; }
.t-yellow { background: #f59e0b; }
.t-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.term-tab-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  border-right: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.term-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.term-tab-btn.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border-bottom: 2px solid var(--accent-cyan);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
  min-height: 280px;
  overflow-y: auto;
  color: #e2e8f0;
}

.terminal-prompt {
  color: #10b981;
}

.terminal-cmd {
  color: #38bdf8;
  font-weight: 600;
}

.terminal-output {
  margin: 0.65rem 0 1.25rem 0;
  color: #94a3b8;
  white-space: pre-wrap;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #38bdf8;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

/* ==========================================================================
   Section 3: Ciberseguridad & Protección Perimetral
   ========================================================================== */
.security-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.security-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
  transform: translateY(-4px);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.security-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.security-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.security-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.security-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.security-checklist li span.icon-check {
  color: #10b981;
}

/* Security Interactive Scanner Widget */
.security-scanner-widget {
  background: linear-gradient(135deg, rgba(13, 19, 34, 0.85), rgba(7, 10, 18, 0.95));
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.scanner-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.scanner-left h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.scanner-left p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.scanner-status-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.scan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scan-item:last-child {
  border-bottom: none;
}

.scan-status-pill {
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

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

.status-scanning {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
  animation: pulse-ring 1s infinite alternate;
}

/* ==========================================================================
   Section 4: Stack Tecnológico & Proyectos Full Stack
   ========================================================================== */
.tech-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition-fast);
}

.tech-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-3px);
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tech-card-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.tech-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-pill {
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: var(--transition-fast);
}

.tech-pill:hover {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.35);
}

/* Projects Showcase Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-block;
  font-weight: 600;
}

.project-title {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.project-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-features li::before {
  content: '▹';
  color: var(--accent-cyan);
}

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

/* ==========================================================================
   Section 5: Experiencia & Aportes Clave
   ========================================================================== */
.experience-timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(6, 182, 212, 0.25);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-2rem - 9px);
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.timeline-header {
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  color: var(--accent-emerald);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-content {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.timeline-bullets {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.93rem;
  color: #cbd5e1;
}

.timeline-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ==========================================================================
   Section 6: Contact & Conversion CTA
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.method-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.method-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.method-val:hover {
  color: var(--accent-cyan);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  background: rgba(0, 0, 0, 0.55);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  background: #05070d;
}

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

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

/* Floating WhatsApp Quick Action Button */
.floating-wa-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition-normal);
}

.floating-wa-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.65);
}

/* Notification Toast */
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .server-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .canvas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scanner-flex {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #090e1a;
    padding: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1.25rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 1.5rem);
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 2rem auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .avatar-wrapper {
    width: 280px;
    height: 280px;
  }

  .badge-top-right,
  .badge-bottom-left,
  .badge-bottom-right {
    display: none;
  }

  .canvas-grid {
    grid-template-columns: 1fr;
  }

  .n8n-features-grid,
  .security-matrix-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Technology Infinite Marquee / Carousel (Doble Pista Bidireccional)
   ========================================================================== */
.tech-marquee-section {
  padding: 3.5rem 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, rgba(9, 13, 22, 0.95) 100%);
}

.marquee-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.25rem auto;
  padding: 0 1.5rem;
}

.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  user-select: none;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track-container {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  animation: marquee-slide 34s linear infinite;
  will-change: transform;
}

.marquee-track.reverse {
  animation: marquee-slide-reverse 38s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-slide-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.tech-marquee-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.45rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: var(--transition-fast);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.tech-marquee-card:hover {
  background: rgba(22, 33, 62, 0.95);
  border-color: var(--accent-cyan);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.tech-logo-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.tech-logo-icon svg,
.tech-marquee-card svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.tech-card-info {
  display: flex;
  flex-direction: column;
}

.tech-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.tech-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-top: 0.15rem;
}

/* ==========================================================================
   Section: Tráfico Digital & Paid Media (Meta, Google, TikTok Ads)
   ========================================================================== */
.traffic-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
}

.traffic-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.75rem;
}

.traffic-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.traffic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.traffic-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.15);
}

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

.traffic-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.traffic-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.traffic-icon-box.meta-color {
  background: rgba(0, 129, 251, 0.12);
  border-color: rgba(0, 129, 251, 0.3);
}

.traffic-icon-box.google-color {
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.3);
}

.traffic-icon-box.tiktok-color {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.3);
}

.traffic-platform-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.traffic-platform-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.traffic-card-desc {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.traffic-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.traffic-result-footer {
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.result-label {
  color: var(--text-muted);
}

.result-val {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Synergy / Full-Funnel Advantage Card */
.traffic-synergy-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 14, 26, 0.98) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.traffic-synergy-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.synergy-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}

.synergy-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.synergy-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.synergy-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Funnel Pipeline Flow Diagram */
.funnel-pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.flow-step {
  flex: 1;
  min-width: 150px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  transition: var(--transition-fast);
}

.flow-step:hover {
  background: rgba(22, 33, 62, 0.85);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.flow-step-highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.flow-num {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #070a12;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step-highlight .flow-num {
  background: #10b981;
}

.flow-icon {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  margin-top: 0.2rem;
}

.flow-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.flow-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.flow-arrow {
  color: var(--accent-cyan);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Metrics Strip */
.traffic-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.t-metric {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.t-metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.t-metric:nth-child(2) .t-metric-val {
  color: #34d399;
}

.t-metric:nth-child(3) .t-metric-val {
  color: #a78bfa;
}

.t-metric:nth-child(4) .t-metric-val {
  color: #38bdf8;
}

.t-metric-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Section: Casos de Éxito con Métricas & ROI (Antes vs. Después)
   ========================================================================== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.impact-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.impact-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.2);
}

.impact-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.impact-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
  background: rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.comparison-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.tag-before {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  flex-shrink: 0;
}

.tag-after {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

/* ==========================================================================
   Section: Metodología & Por Qué Trabajar Conmigo (Cards de Alto Impacto)
   ========================================================================== */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}

.methodology-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.methodology-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  opacity: 0.7;
}

.methodology-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.25);
  background: var(--bg-card-hover);
}

.methodology-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.methodology-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.methodology-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
  opacity: 0.85;
}

.methodology-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
}

.methodology-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ==========================================================================
   Responsive Overrides for New Sections
   ========================================================================== */
@media (max-width: 1024px) {
  .traffic-channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .traffic-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .traffic-channels-grid {
    grid-template-columns: 1fr;
  }
  .traffic-metrics-strip {
    grid-template-columns: 1fr;
  }
  .funnel-pipeline-flow {
    flex-direction: column;
    gap: 1.25rem;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .impact-grid,
  .methodology-grid {
    grid-template-columns: 1fr;
  }
}


