/* ===================================================
   HÉCTOR GIRALDO - FRONTEND DEVELOPER
   Design System & Main Styles
   =================================================== */

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

:root {
  /* Dark premium palette */
  --color-bg: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-card: #1a1a2e;
  --color-bg-card-hover: #22223a;
  --color-surface: #16162a;

  /* Accent colors - Electric blue / Cyan gradient */
  --color-primary: #6c63ff;
  --color-primary-light: #8b83ff;
  --color-secondary: #00d4ff;
  --color-accent: #ff6b9d;
  --color-gradient: linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
  --color-gradient-accent: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
  --color-gradient-subtle: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);

  /* Text */
  --color-text: #e8e8f0;
  --color-text-secondary: #8888a8;
  --color-text-muted: #55557a;
  --color-white: #ffffff;

  /* Borders */
  --border-subtle: 1px solid rgba(108, 99, 255, 0.15);
  --border-glow: 1px solid rgba(108, 99, 255, 0.4);

  /* Typography */
  --font-heading: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;

  /* Effects */
  --glow-primary: 0 0 30px rgba(108, 99, 255, 0.3);
  --glow-secondary: 0 0 30px rgba(0, 212, 255, 0.3);
  --glass-bg: rgba(26, 26, 46, 0.7);
  --glass-border: rgba(108, 99, 255, 0.2);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ===================================================
   SCROLLBAR
   =================================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* ===================================================
   ANIMATIONS - Keyframes
   =================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.5);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--color-secondary);
  }
}

@keyframes code-scroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Reveal animations for scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===================================================
   HEADER / NAVIGATION
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-subtle);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo h1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.logo span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-menu li {}

.nav-menu a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--color-white);
  background: rgba(108, 99, 255, 0.1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

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

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* CTA Button - Header */
.btn-cta-header {
  background: var(--color-gradient);
  color: var(--color-white) !important;
  padding: 10px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

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

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

.btn-cta-header:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
  background: var(--color-bg);
}

/* Animated grid background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: none;
}

/* Gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.4), transparent);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent);
  bottom: -50px;
  left: -100px;
  animation: float 10s ease-in-out infinite 2s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.2), transparent);
  top: 50%;
  left: 50%;
  animation: float 12s ease-in-out infinite 4s;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: fadeInLeft 1s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.3);
  padding: 8px 18px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-primary-light);
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  color: var(--color-white);
}

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

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

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: var(--border-subtle);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
  text-align: center;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Hero visual - Code Window */
.hero-visual {
  animation: fadeInRight 1s ease forwards 0.3s;
  opacity: 0;
  position: relative;
}

.code-window {
  background: var(--color-bg-secondary);
  border-radius: 16px;
  border: var(--border-subtle);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    var(--glow-primary);
  position: relative;
}

.code-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: var(--border-subtle);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red {
  background: #ff5f57;
}

.code-dot.yellow {
  background: #ffbd2e;
}

.code-dot.green {
  background: #28c840;
}

.code-window-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.code-window-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  max-height: 380px;
  overflow: hidden;
  position: relative;
}

.code-window-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--color-bg-secondary));
}

.code-line {
  display: flex;
  gap: 16px;
}

.code-line-number {
  color: var(--color-text-muted);
  min-width: 24px;
  text-align: right;
  user-select: none;
  opacity: 0.5;
}

.code-line-content {
  flex: 1;
}

/* Syntax highlighting */
.code-keyword {
  color: #c792ea;
}

.code-function {
  color: #82aaff;
}

.code-string {
  color: #c3e88d;
}

.code-comment {
  color: #546e7a;
  font-style: italic;
}

.code-tag {
  color: #ff5370;
}

.code-attr {
  color: #ffcb6b;
}

.code-number {
  color: #f78c6c;
}

.code-operator {
  color: #89ddff;
}

.code-type {
  color: #ffcb6b;
}

.code-decorator {
  color: #82aaff;
}

.code-bracket {
  color: #89ddff;
}

.code-variable {
  color: #eeffff;
}

/* Floating tech badges around code window */
.floating-badge {
  position: absolute;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}

.floating-badge.angular {
  background: rgba(221, 0, 49, 0.15);
  border: 1px solid rgba(221, 0, 49, 0.3);
  color: #ff4081;
  top: -15px;
  right: 30px;
  animation-delay: 0s;
}

.floating-badge.wordpress {
  background: rgba(33, 117, 155, 0.15);
  border: 1px solid rgba(33, 117, 155, 0.3);
  color: #21759b;
  bottom: 60px;
  left: -25px;
  animation-delay: 2s;
}

.floating-badge.typescript {
  background: rgba(49, 120, 198, 0.15);
  border: 1px solid rgba(49, 120, 198, 0.3);
  color: #3178c6;
  bottom: -10px;
  right: 50px;
  animation-delay: 4s;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gradient);
  color: var(--color-white);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-text);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  border: var(--border-subtle);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.3px;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(108, 99, 255, 0.05);
  color: var(--color-primary-light);
  transform: translateY(-3px);
}

.btn-icon {
  font-size: 1.1rem;
}

/* ===================================================
   SECTION TITLES
   =================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--color-gradient);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-title::after {
  display: none;
}

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

/* ===================================================
   SERVICIOS / SERVICES
   =================================================== */
.servicios {
  padding: var(--section-padding);
  background: var(--color-bg);
  position: relative;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.servicio-card {
  background: var(--glass-bg);
  border: var(--border-subtle);
  padding: 40px 32px;
  border-radius: 20px;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gradient);
  opacity: 0;
  transition: opacity 0.4s;
}

.servicio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--glow-primary);
  background: var(--color-bg-card-hover);
}

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

.servicio-icon {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--color-gradient-subtle);
  margin-bottom: 24px;
}

.servicio-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.servicio-card p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.servicio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.servicio-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(108, 99, 255, 0.08);
  color: var(--color-primary-light);
  border: 1px solid rgba(108, 99, 255, 0.15);
}

/* Price removed — replaced with tags */
.precio {
  display: none;
}

/* ===================================================
   TECH STACK SECTION
   =================================================== */
.tech-stack {
  padding: var(--section-padding);
  background: var(--color-bg-secondary);
  position: relative;
}

.tech-stack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(108, 99, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
}

.tech-stack .container {
  position: relative;
  z-index: 1;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.tech-category {
  background: var(--glass-bg);
  border: var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.tech-category:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-4px);
}

.tech-category-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-category-title .cat-icon {
  font-size: 1.2rem;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--color-text);
  transition: var(--transition);
  font-weight: 500;
}

.tech-item:hover {
  background: rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-2px);
}

.tech-item .tech-icon {
  font-size: 1.1rem;
  display: flex;
}

/* ===================================================
   PORTFOLIO / PROJECTS
   =================================================== */
.portfolio {
  padding: var(--section-padding);
  background: var(--color-bg);
}

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

.portfolio-card {
  background: var(--glass-bg);
  border: var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  group: true;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--color-bg-secondary);
  border-bottom: var(--border-subtle);
}

.portfolio-image img {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: block;
  transition: transform 3s ease-in-out;
  /* Smooth long scroll */
}

.portfolio-card:hover .portfolio-image img {
  transform: translateY(calc(-100% + 240px));
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.2), rgba(10, 10, 15, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-btn {
  background: var(--color-gradient);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  transform: translateY(10px);
  transition: transform 0.4s;
}

.portfolio-card:hover .portfolio-overlay-btn {
  transform: translateY(0);
}

.portfolio-body {
  padding: 28px;
}

.portfolio-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.portfolio-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.portfolio-body p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.portfolio-tech span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(108, 99, 255, 0.08);
  color: var(--color-primary-light);
  border: 1px solid rgba(108, 99, 255, 0.15);
}

/* Project preview mock */
.project-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-preview-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.project-preview-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.project-preview-gradient.grad-1 {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.3), rgba(0, 212, 255, 0.2));
}

.project-preview-gradient.grad-2 {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(196, 77, 255, 0.2));
}

.project-preview-gradient.grad-3 {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.3), rgba(0, 212, 255, 0.2));
}

/* ===================================================
   POR QUÉ ELEGIRME / WHY ME
   =================================================== */
.por-que {
  padding: var(--section-padding);
  background: var(--color-bg-secondary);
  position: relative;
}

.razones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  text-align: left;
}

.razon {
  background: var(--glass-bg);
  border: var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.razon:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.razon span:first-child {
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-gradient-subtle);
  margin-bottom: 20px;
}

.razon h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.razon p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ===================================================
   PROCESO / PROCESS
   =================================================== */
.proceso {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.proceso-step {
  background: var(--glass-bg);
  border: var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: var(--transition);
  counter-increment: step;
}

.proceso-step:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.3);
}

.proceso-step::before {
  content: "0" counter(step);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  position: absolute;
  top: 20px;
  right: 24px;
  line-height: 1;
}

.proceso-step-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.proceso-step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.proceso-step p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* ===================================================
   CTA / CONTACT SECTION
   =================================================== */
.reserva-section,
.cta-section {
  padding: var(--section-padding);
  background: var(--color-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-wrapper {
  background: var(--glass-bg);
  border: var(--border-subtle);
  border-radius: 24px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.cta-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gradient);
}

.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.cta-glow-1 {
  background: var(--color-primary);
  top: -200px;
  left: -100px;
}

.cta-glow-2 {
  background: var(--color-secondary);
  bottom: -200px;
  right: -100px;
}

.cta-wrapper h2,
.reserva-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.cta-wrapper p,
.reserva-section p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.reserva-section .btn-primary {
  background: var(--color-gradient);
  color: var(--color-white);
}

.reserva-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  padding: 80px 0 30px;
  border-top: var(--border-subtle);
}

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

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: var(--color-white);
}

.footer-brand-desc {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-col p,
.footer-col ul {
  color: var(--color-text-secondary);
  line-height: 2;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li a {
  color: var(--color-text-secondary);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--color-primary-light);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.3);
  color: var(--color-primary-light);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
  text-align: center;
}

.footer-bottom-info {
  margin-bottom: 24px;
}

.footer-bottom-info p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

.footer-legal a:hover {
  color: var(--color-primary-light);
}

.footer-up {
  margin-top: 20px;
}

.footer-up a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

.footer-up a:hover {
  background: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

@media (max-width: 576px) {
  .footer-legal {
    flex-direction: column;
    gap: 15px;
  }
}

/* ===================================================
   PAGE CONTENT
   =================================================== */
.page-content {
  padding: 140px 0 80px;
  background: var(--color-bg);
  min-height: 60vh;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-content p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    max-width: 550px;
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

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

  .site-header .container {
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    border-left: var(--border-subtle);
    z-index: 1000;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .btn-cta-header {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    width: 100%;
    margin-top: 50px;
    text-align: center;
  }

  .stat-item {
    width: 100%;
    max-width: 250px;
  }

  .stat-num {
    font-size: 2.2rem;
    display: block;
  }

  .hero-visual {
    display: none;
  }

  .servicios-grid,
  .razones-grid,
  .proceso-steps,
  .tech-categories {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .cta-wrapper {
    padding: 50px 24px;
  }

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

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.8rem;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================================
   BACKDROP OVERLAY FOR MOBILE NAV
   =================================================== */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ===================================================
   PARTICLES CANVAS
   =================================================== */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ===================================================
   CONTACT FORM 7 STYLING
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  text-align: left;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  margin-bottom: 24px !important;
  text-align: left !important;
}

.contact-text p {
  font-size: 1.15rem !important;
  margin-bottom: 40px !important;
  text-align: left !important;
  margin-left: 0 !important;
}

.contact-form-container {
  max-width: 100% !important;
  margin: 0 !important;
}

.extra-contact {
  margin-top: 50px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 30px !important;
  text-align: left !important;
}

.extra-contact .social-links {
  justify-content: flex-start !important;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-text h2,
  .contact-text p {
    text-align: center !important;
  }

  .extra-contact {
    text-align: center !important;
  }

  .extra-contact .social-links {
    justify-content: center !important;
  }
}

/* CF7 Form Styles */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
  width: 100%;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(108, 99, 255, 0.2) !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  color: var(--color-white) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  transition: var(--transition) !important;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  background: rgba(108, 99, 255, 0.05) !important;
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.2) !important;
}

.wpcf7-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-gradient) !important;
  color: var(--color-white) !important;
  padding: 16px 32px !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  width: 100% !important;
}

.wpcf7-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4) !important;
}

.wpcf7-spinner {
  display: none !important;
}

.wpcf7-response-output {
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 24px !important;
  margin: 30px 0 0 !important;
  font-size: 0.95rem !important;
  text-align: center !important;
  font-weight: 500 !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--color-text) !important;
  backdrop-filter: blur(10px);
}

/* Éxito */
.wpcf7-mail-sent-ok {
  border-color: #00ff8844 !important;
  background: rgba(0, 255, 136, 0.05) !important;
  color: #00ff88 !important;
}

/* Error/Validación */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-aborted {
  border-color: #ff336644 !important;
  background: rgba(255, 51, 102, 0.05) !important;
  color: #ff3366 !important;
}

.wpcf7-not-valid-tip {
  color: #ff3366 !important;
  font-size: 0.8rem !important;
  margin-top: 5px !important;
  display: block;
}

.privacy-acceptance {
  margin: 5px 0 20px !important;
  text-align: center !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.privacy-acceptance .wpcf7-list-item {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.privacy-acceptance input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(108, 99, 255, 0.5);
  border-radius: 4px;
  cursor: pointer;
  margin: 0 10px 0 0 !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.privacy-acceptance input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.privacy-acceptance .wpcf7-list-item-label {
  font-size: 0.82rem !important;
  color: var(--color-text-secondary) !important;
  cursor: pointer;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.privacy-acceptance a {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.wpcf7-form p {
  margin-bottom: 10px !important;
}

.cf7-placeholder {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  border: var(--border-subtle);
}

/* ===================================================
   LEGAL PAGE TEMPLATE
   =================================================== */
.legal-page {
  padding-top: 80px;
}

.legal-hero {
  padding: 120px 0 80px;
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 20px 0;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-orb {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 1;
}

.legal-content {
  padding: 100px 0;
}

.container-narrow {
  max-width: 800px !important;
  margin: 0 auto;
}

.legal-text-wrapper {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.legal-text-wrapper h2,
.legal-text-wrapper h3 {
  color: var(--color-white);
  margin: 40px 0 20px;
  font-family: var(--font-heading);
}

.legal-text-wrapper p {
  margin-bottom: 24px;
}

.legal-text-wrapper ul {
  margin: 20px 0 30px 20px;
}

.legal-text-wrapper li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 80px 0 60px;
  }
}
/* ===================================================
   WHATSAPP FLOATING BUTTON
   =================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
  background: #22bf5b;
}

.whatsapp-tooltip {
  position: absolute;
  right: 80px;
  background: rgba(15, 15, 20, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 70px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 25px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}
