/* ========================================
   ALFA SOFTWARE - Estilos Principales
   ======================================== */

/* === Variables CSS === */
:root {
  --color-primary: #1E5AFF;
  --color-primary-dark: #103b63;
  --color-secondary: #f28c2b;
  --color-accent-green: #00C896;
  --color-accent-purple: #6B5FD8;
  --color-accent-red: #FF5252;
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-dark: #111827;
  --color-muted: #6b7280;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 24px 60px rgba(30, 90, 255, 0.15);
  --max-width: 1200px;
}

/* === Reset y Base === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === Layout === */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

section {
  padding: 5rem 0;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.015) 2px,
    rgba(0, 0, 0, 0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

section > * {
  position: relative;
  z-index: 2;
}

/* === Tipografía === */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s;
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(30, 90, 255, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text span:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.logo-text span:last-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  font-weight: 600;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  position: relative;
  color: var(--color-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* === Botones === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 
    0 10px 30px rgba(30, 90, 255, 0.4),
    0 0 0 0 rgba(30, 90, 255, 0.7);
  animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
  0%, 100% {
    box-shadow: 
      0 10px 30px rgba(30, 90, 255, 0.4),
      0 0 0 0 rgba(30, 90, 255, 0.7);
  }
  50% {
    box-shadow: 
      0 10px 40px rgba(30, 90, 255, 0.6),
      0 0 0 8px rgba(30, 90, 255, 0);
  }
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(30, 90, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  position: relative;
  z-index: 1;
}

.btn-outline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.btn-outline:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.btn-outline:hover::after {
  opacity: 1;
}

.menu-toggle {
  display: block;
  cursor: pointer;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  position: relative;
  transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: all 0.3s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  margin-top: 80px;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(30, 90, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(242, 140, 43, 0.1), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 200, 150, 0.08), transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.9) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .hero-content {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 0 40px rgba(30, 90, 255, 0.5);
  animation: fadeInUp 1s ease-out;
}

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

.hero-highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 600px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-stat {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(30, 90, 255, 0.3);
}

.hero-stat-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(30, 90, 255, 0.5);
}

.hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-visual {
  position: relative;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(30, 90, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hero-card h3 {
  color: white;
  position: relative;
  z-index: 1;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(30, 90, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(30, 90, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 90, 255, 0.3), transparent);
  transition: left 0.5s;
}

.tech-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(30, 90, 255, 0.5);
  transform: translateY(-3px);
}

.tech-item:hover::before {
  left: 100%;
}

.tech-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(30, 90, 255, 0.4);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.tech-item:nth-child(1) .tech-icon { animation-delay: 0s; }
.tech-item:nth-child(2) .tech-icon { animation-delay: 0.2s; }
.tech-item:nth-child(3) .tech-icon { animation-delay: 0.4s; }
.tech-item:nth-child(4) .tech-icon { animation-delay: 0.6s; }
.tech-item:nth-child(5) .tech-icon { animation-delay: 0.8s; }
.tech-item:nth-child(6) .tech-icon { animation-delay: 1s; }

.tech-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ========================================
   SERVICES SECTION
   ======================================== */

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

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

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.15rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--color-primary), 
    var(--color-accent-green), 
    var(--color-secondary)
  );
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.4s ease;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, 
    var(--color-primary), 
    var(--color-accent-green), 
    var(--color-secondary)
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(30, 90, 255, 0.2),
    0 0 0 1px rgba(30, 90, 255, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(30, 90, 255, 0.1), rgba(0, 200, 150, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.4s;
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-green));
  opacity: 0;
  z-index: -1;
  filter: blur(10px);
  transition: opacity 0.4s;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon::before {
  opacity: 0.6;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.service-description {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.service-features li::before {
  content: '✓';
  color: var(--color-accent-green);
  font-weight: 700;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio-section {
  background: white;
  position: relative;
  overflow: hidden;
}

.portfolio-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, rgba(30, 90, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(30, 90, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.portfolio-section > * {
  position: relative;
  z-index: 1;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(30, 90, 255, 0.4);
  transform: translateY(-2px);
}

.filter-btn.active {
  animation: pulse-filter 2s infinite;
}

@keyframes pulse-filter {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(30, 90, 255, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(30, 90, 255, 0.6);
  }
}

.portfolio-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 90, 255, 0.1), rgba(0, 200, 150, 0.1));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  pointer-events: none;
}

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

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(30, 90, 255, 0.25),
    0 0 0 1px rgba(30, 90, 255, 0.3);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-image {
  height: 250px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
  transition: background 0.4s;
}

.project-card:hover .project-image::before {
  background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.project-image span {
  position: relative;
  z-index: 1;
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.project-badge.new {
  background: linear-gradient(135deg, var(--color-accent-green), #00D6A3);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 200, 150, 0.5);
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { 
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.5);
  }
  50% { 
    box-shadow: 0 4px 25px rgba(0, 200, 150, 0.8);
  }
}

.project-badge.featured {
  background: linear-gradient(135deg, var(--color-secondary), #ff7b00);
  color: white;
  box-shadow: 0 4px 15px rgba(242, 140, 43, 0.5);
  animation: badgeGlow 2s ease-in-out infinite;
}

.project-content {
  padding: 2rem;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.project-description {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  padding: 0.35rem 0.85rem;
  background: rgba(30, 90, 255, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s;
}

.project-card:hover .project-cta {
  gap: 0.75rem;
}

/* ========================================
   PROCESS SECTION
   ======================================== */

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

.process-grid {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
}

.process-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 35px;
  top: 80px;
  bottom: -30px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), transparent);
}

.process-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(30, 90, 255, 0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.process-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.process-description {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  color: white;
  text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.btn-white {
  background: white;
  color: var(--color-primary);
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: var(--color-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   ANIMACIONES GLOBALES
   ======================================== */

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-subtitle {
    font-size: 1.1rem;
  }

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

/* ========================================
   LOADER STYLES
   ======================================== */

@keyframes spin {
  to { transform: rotate(360deg); }
}
