/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #000814;
  --bg-secondary: #0a0f2c;
  --bg-card: #0f1f4a;
  --bg-card-hover: #1a2f5a;
  --border: #2a3f6f;
  --text-primary: #f0f4ff;
  --text-secondary: #b0c4ff;
  --text-muted: #7a8acc;
  --accent-1: #00d4ff;
  --accent-2: #7c3aed;
  --accent-3: #ec4899;
  --accent-4: #fbbf24;
  --gradient: linear-gradient(135deg, #00d4ff, #7c3aed, #ec4899);
  --gradient-text: linear-gradient(135deg, #00d4ff, #fbbf24, #ec4899);
  --gradient-dark: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
  --shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
  --shadow-card: 0 4px 20px rgba(124, 58, 237, 0.15), 0 8px 32px rgba(0, 212, 255, 0.1);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 40% 0%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Animaciones principales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(124, 58, 237, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(124, 58, 237, 0.3);
  }
}

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

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 8, 20, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: all var(--transition);
  box-shadow: 0 4px 30px rgba(0, 212, 255, 0.05);
}

.navbar.scrolled {
  background: rgba(0, 8, 20, 0.95);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInLeft 0.8s ease;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--gradient);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.nav-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.3px;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
}

.particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.06), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(124, 58, 237, 0.06), transparent 50%);
  pointer-events: none;
  transition: transform 0.1s linear;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 100%);
}

.hero-content {
  text-align: center;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
  min-height: 1.8rem;
}

.hero-greeting .cursor {
  animation: blink 0.8s infinite;
  color: var(--accent-1);
  font-weight: 300;
}

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

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

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

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

.hero-subtitle {
  font-size: 1rem;
  color: var(--accent-3);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  animation: fadeInUp 0.8s ease 1.5s backwards;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--accent-1);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  background: rgba(0, 212, 255, 0.06);
}

.btn-full {
  width: 100%;
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 56px;
  font-size: 1.05rem;
  opacity: 0.5;
}

/* ========== SERVICES ========== */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  cursor: default;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-1);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.service-tags li {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-1);
  border-radius: 20px;
  font-weight: 500;
}

/* ========== SKILLS ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}

.skill-category:hover {
  border-color: var(--accent-1);
}

.skill-category h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent-3);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-items span {
  font-size: 0.82rem;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.skill-items span:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.08);
}

/* ========== STATS ========== */
.stats {
  background: var(--bg-secondary);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 20px;
  position: relative;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline-block;
}

.stat-plus {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* ========== PROCESS ========== */
.process {
  background: var(--bg-primary);
}

.process-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  text-align: center;
  position: relative;
  padding: 0 16px 28px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step-line {
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step:last-child .step-line {
  display: none;
}

.process-step h3 {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== PORTFOLIO ========== */
.portfolio {
  background: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.portfolio-card:hover {
  border-color: var(--accent-1);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.portfolio-img {
  height: 140px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(236, 72, 153, 0.1));
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px;
  position: relative;
}

.portfolio-img::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 24px;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-img::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 34px;
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 0 rgba(0, 212, 255, 0.2), 0 16px 0 rgba(0, 212, 255, 0.1);
}

.portfolio-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-1);
  border-radius: 20px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.portfolio-info {
  padding: 20px 22px 22px;
}

.portfolio-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.portfolio-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.portfolio-tech span {
  font-size: 0.72rem;
  padding: 3px 9px;
  background: rgba(236, 72, 153, 0.08);
  color: var(--accent-3);
  border-radius: 6px;
  font-weight: 500;
}

/* ========== TESTIMONIALS CAROUSEL ========== */
.testimonials {
  background: var(--bg-primary);
}

.testimonial-carousel {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  transition: all 0.4s ease;
  position: relative;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.testimonial-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
}

.testimonial-quote {
  font-size: 5rem;
  line-height: 0.6;
  color: rgba(0, 212, 255, 0.08);
  font-family: Georgia, serif;
  margin-bottom: -10px;
  user-select: none;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
  display: block;
}

/* Carousel nav */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.carousel-prev,
.carousel-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent-1);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ========== CTA ========== */
.cta {
  background: var(--bg-secondary);
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.cta-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* ========== WHATSAPP ========== */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 84px;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(-8px);
}

.whatsapp-tooltip {
  position: absolute;
  right: 62px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

/* ========== CONTACT ========== */
.contact {
  background: var(--bg-secondary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--radius);
}

.contact-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========== FOOTER ========== */
.footer {
  padding: 60px 0 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 80px;
    min-height: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

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

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

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .process-step {
    max-width: 100%;
    padding: 0 16px 4px;
  }

  .step-line {
    display: none;
  }

  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-links a {
    display: inline-block;
    margin: 0 8px 8px;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 72px;
  }

  .cta-box {
    padding: 36px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .service-card,
  .skill-category,
  .contact-form,
  .contact-item {
    padding: 20px;
  }
}

/* ========== ANIMACIONES AL SCROLL ========== */
.reveal-text {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text.delay-1 { transition-delay: 0.15s; }
.reveal-text.delay-2 { transition-delay: 0.3s; }
.reveal-text.delay-3 { transition-delay: 0.45s; }

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 1001;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.5);
}

/* ========== GLOW PULSE ========== */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
}
