/* ============================================
   FORJALABS - Design System & Styles
   Agencia de Comunicación Integral
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --forja-black: #0A0A0A;
  --forja-blue: #1E3A8A;
  --forja-blue-dark: #1E40AF;
  --forja-blue-light: #3B82F6;
  --forja-gray: #6B7280;
  --forja-gray-light: #F3F4F6;
  --forja-orange: #F97316;
  --forja-orange-dark: #EA580C;
  --forja-orange-light: #FB923C;
  --forja-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 80px;
  --container-max: 1440px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--forja-white);
  color: var(--forja-black);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

/* Lazy loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img.lazy-loaded,
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--forja-orange);
  text-transform: uppercase;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--forja-orange);
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--forja-gray);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn::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 var(--transition-slow);
}

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

.btn-primary {
  background: var(--forja-orange);
  color: var(--forja-white);
}

.btn-primary:hover {
  background: var(--forja-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--forja-white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  border-color: var(--forja-white);
  background: rgba(255,255,255,0.1);
}

.btn-outline {
  background: transparent;
  color: var(--forja-black);
  border: 1px solid #E5E7EB;
}

.btn-outline:hover {
  border-color: var(--forja-black);
  background: var(--forja-black);
  color: var(--forja-white);
}

/* ---------- Cinematic Scroll Animations ---------- */

/* Split Text Reveal */
[data-split] {
  display: inline-block;
  visibility: visible;
}

[data-split] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(-90deg);
  transform-origin: bottom;
  transition: opacity 0.6s cubic-bezier(0.5, 0, 0.5, 1),
              transform 0.6s cubic-bezier(0.5, 0, 0.5, 1);
  transition-delay: calc(var(--char-index) * 0.02s);
}

[data-split].split-revealed .char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0.5, 1),
              transform 0.8s cubic-bezier(0.5, 0, 0.5, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-stagger] > *.stagger-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Number Animation */
.stat-number {
  transition: transform 0.1s ease;
}

/* Section Transitions */
[data-section-transition] {
  will-change: clip-path;
}

/* Magnetic Elements */
[data-magnetic] {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Image Reveal Effects */
[data-image-reveal] {
  will-change: filter;
}

/* ---------- Animation Classes ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--forja-black);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              height 0.3s ease,
              backdrop-filter 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform;
}

/* Header en top de página */
.header.header-top {
  background: var(--forja-black);
  backdrop-filter: none;
  box-shadow: none;
}

/* Header oculto al hacer scroll down */
.header.header-hidden {
  transform: translateY(-100%);
}

/* Header compacto con glassmorphism al hacer scroll up */
.header.header-compact {
  height: 64px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.08),
              0 2px 8px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

/* Ajustar logo en header compacto */
.header.header-compact .forjalabs-logo-header {
  font-size: 30px;
  transition: font-size 0.3s ease;
}

/* Efecto glow más suave en header compacto */
.header.header-compact .forjalabs-logo-header {
  filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.4));
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo CSS - Gradiente naranja de abajo hacia arriba */
.forjalabs-logo-header {
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 36px;
  line-height: 1;
  transition: all var(--transition-medium);
  display: inline-flex;
  filter: drop-shadow(0 0 16px rgba(255, 107, 53, 0.5));
  font-feature-settings: 'ss01' on;
}

.logo-forja {
  font-weight: 900;
  background: linear-gradient(180deg, #ffc857 0%, #f7931e 50%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.logo-labs {
  font-weight: 300;
  background: linear-gradient(180deg, #ffc857 0%, #f7931e 50%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.logo-container:hover .forjalabs-logo-header {
  filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.7));
}

/* Fallback para navegadores antiguos */
@supports not (background-clip: text) {
  .logo-forja,
  .logo-labs {
    color: #f7931e;
    background: none;
    -webkit-text-fill-color: initial;
  }
}

.logo {
  position: relative;
  width: 40px;
  height: 40px;
}

.logo-blue {
  position: absolute;
  width: 28px;
  height: 40px;
  background: var(--forja-blue);
  top: 0;
  left: 0;
}

.logo-orange {
  position: absolute;
  width: 28px;
  height: 30px;
  background: var(--forja-orange);
  top: 10px;
  left: 12px;
}

.logo-letter {
  position: absolute;
  top: 2px;
  left: 5px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--forja-white);
  z-index: 1;
}

.brand-text {
  display: flex;
  gap: 0;
}

.brand-text span {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-forja { color: var(--forja-white); }
.brand-labs { color: var(--forja-orange); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.67);
  position: relative;
}

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

.header-nav a:hover,
.header-nav a.active {
  color: var(--forja-white);
}

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

.header-nav a.nav-link-highlight {
  color: var(--forja-orange);
}

.header-nav a.nav-link-highlight:hover {
  color: var(--forja-orange-light);
}

.header-cta .btn {
  padding: 14px 28px;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--forja-white);
  transition: all var(--transition-medium);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--forja-black);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 32px;
    transition: right var(--transition-slow);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
  }

  .header-nav.mobile-active {
    right: 0;
  }

  .header-nav a {
    font-size: 20px;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .header-nav a::after {
    bottom: 0;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile menu overlay */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }

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

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  background: var(--forja-black);
  display: flex;
  align-items: center;
  padding: 100px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  flex: 0 0 650px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(30, 58, 138, 0.13);
  width: fit-content;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
}

.hero-badge-icon {
  width: 8px;
  height: 8px;
  background: var(--forja-orange);
  border-radius: 4px;
}

.hero-badge-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--forja-blue-light);
}

.hero-headline h1 {
  font-size: clamp(48px, 6vw, 72px);
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero-headline .text-white { color: var(--forja-white); }
.hero-headline .text-orange { color: var(--forja-orange); }

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,0.67);
  max-width: 550px;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--forja-white);
}

.stat-number .highlight {
  color: var(--forja-orange);
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* Hero Visual */
/* Hero Visual - Bento Grid */
.hero-visual {
  flex: 1;
  position: relative;
  min-height: 550px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 16px;
  width: 100%;
}

.bento-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.bento-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

.bento-card.featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(30, 58, 138, 0.08) 100%);
  border-color: rgba(249, 115, 22, 0.15);
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-icon svg,
.bento-icon i {
  width: 26px;
  height: 26px;
}

.bento-icon.icon-code {
  background: rgba(59, 130, 246, 0.15);
  color: var(--forja-blue-light);
}
.bento-icon.icon-marketing {
  background: rgba(249, 115, 22, 0.15);
  color: var(--forja-orange);
}
.bento-icon.icon-social {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
}
.bento-icon.icon-design {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
}
.bento-icon.icon-strategy {
  background: rgba(249, 115, 22, 0.12);
  color: var(--forja-orange);
}

.bento-content { display: flex; flex-direction: column; gap: 6px; }
.bento-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--forja-white);
}
.bento-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.bento-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.bento-card {
  opacity: 0;
  transform: translateY(20px);
  animation: bentoPop 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.bento-card:nth-child(1) { animation-delay: 0.3s; }
.bento-card:nth-child(2) { animation-delay: 0.45s; }
.bento-card:nth-child(3) { animation-delay: 0.6s; }
.bento-card:nth-child(4) { animation-delay: 0.75s; }
.bento-card:nth-child(5) { animation-delay: 0.9s; }

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

/* ---------- Clients Section ---------- */
.clients {
  padding: 60px 80px;
  background: var(--forja-black);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.clients-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.clients-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.client-logo {
  opacity: 0.7;
  transition: all var(--transition-fast);
  filter: grayscale(100%) brightness(0) invert(1);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1) invert(0);
  transform: scale(1.05);
}

.client-logo img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Logo como texto */
.client-logo-text {
  filter: none;
  opacity: 0.5;
}

.client-logo-text:hover {
  opacity: 1;
  filter: none;
}

.client-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}

/* ---------- Services Section ---------- */
.services {
  padding: var(--section-padding);
  background: var(--forja-white);
}

.services-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.service-card {
  padding: 32px;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--forja-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card.featured {
  background: var(--forja-orange);
  border-color: var(--forja-orange);
}

.service-card.featured::before {
  display: none;
}

.service-card.featured:hover {
  background: var(--forja-orange-dark);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--forja-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forja-white);
  font-size: 24px;
}

.service-card.featured .service-icon {
  background: rgba(255,255,255,0.2);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--forja-black);
}

.service-card.featured .service-title {
  color: var(--forja-white);
}

.service-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--forja-gray);
}

.service-card.featured .service-desc {
  color: rgba(255,255,255,0.8);
}

/* ---------- AI Content Section ---------- */
.ai-content {
  padding: var(--section-padding);
  background: var(--forja-black);
}

.ai-content-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-content-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ai-content-text .section-label {
  color: var(--forja-orange);
}

.ai-content-text .section-label::before,
.ai-content-text .section-label::after {
  background: var(--forja-orange);
}

.ai-content-text .section-title {
  color: var(--forja-white);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.ai-highlight {
  color: var(--forja-orange);
}

.ai-content-desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.ai-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

.ai-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--forja-orange);
}

.ai-feature-icon svg {
  width: 16px;
  height: 16px;
}

/* Video side */
.ai-content-video {
  position: relative;
}

.ai-video-wrapper {
  position: relative;
}

.ai-video-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  background: var(--forja-orange);
  color: var(--forja-white);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-video-badge svg {
  width: 14px;
  height: 14px;
}

.ai-video-wrapper video {
  width: 100%;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
}

/* ---------- Process Section ---------- */
.process {
  padding: var(--section-padding);
  background: var(--forja-black);
}

.process-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
}

.process-header .section-label::before,
.process-header .section-label::after {
  display: none;
}

.process-header .section-title {
  color: var(--forja-white);
}

.process-header .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.process-step {
  padding: 32px;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.process-step:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.process-step.featured {
  background: var(--forja-orange);
  border-color: var(--forja-orange);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: var(--forja-blue-light);
  opacity: 0.3;
  line-height: 1;
}

.process-step.featured .step-number {
  color: var(--forja-white);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--forja-white);
}

.step-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.process-step.featured .step-desc {
  color: rgba(255,255,255,0.8);
}

/* ---------- Portfolio Section ---------- */
.portfolio {
  padding: var(--section-padding);
  background: var(--forja-white);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.portfolio-header-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-header .section-label::before,
.portfolio-header .section-label::after {
  display: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.portfolio-image {
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.portfolio-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.portfolio-item:hover .portfolio-image::before {
  opacity: 1;
}

.portfolio-image::after {
  content: 'Ver caso';
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--forja-white);
  font-family: var(--font-heading);
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-medium);
}

.portfolio-item:hover .portfolio-image::after {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-content {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--forja-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--forja-black);
  transition: color var(--transition-fast);
}

.portfolio-item:hover .portfolio-title {
  color: var(--forja-orange);
}

.portfolio-desc {
  font-size: 14px;
  color: var(--forja-gray);
  line-height: 1.5;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  padding: 100px 120px;
  background: var(--forja-black);
}

.testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-header .section-label::before,
.testimonials-header .section-label::after {
  display: none;
}

.testimonials-header .section-title {
  color: var(--forja-white);
  font-size: 42px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.testimonial-card {
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all var(--transition-medium);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--forja-orange);
  font-size: 18px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--forja-gray-light);
}

.testimonial-author {
  display: none; /* Oculto temporalmente - activar cuando tengamos testimonios reales */
  /* display: flex; */
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forja-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forja-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.author-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--forja-orange);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--forja-white);
}

.author-role {
  font-size: 14px;
  color: var(--forja-gray);
}

/* ---------- FAQ Section ---------- */
.faq {
  padding: var(--section-padding);
  background: var(--forja-white);
}

.faq-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.faq-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 64px;
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FAQ Item */
.faq-item {
  background: var(--forja-white);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.faq-item:hover {
  border-color: var(--forja-orange);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.faq-item.active {
  border-color: var(--forja-orange);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
}

/* FAQ Question Button */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background: rgba(249, 115, 22, 0.03);
}

.faq-question-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--forja-black);
  line-height: 1.4;
  flex: 1;
}

.faq-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forja-gray-light);
  border-radius: 50%;
  color: var(--forja-black);
  flex-shrink: 0;
  transition: all var(--transition-medium);
}

.faq-item.active .faq-icon {
  background: var(--forja-orange);
  color: var(--forja-white);
  transform: rotate(45deg);
}

.faq-icon i {
  width: 18px;
  height: 18px;
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 24px 24px;
}

.faq-answer-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--forja-gray);
  margin: 0;
}

.faq-answer-content strong {
  color: var(--forja-black);
  font-weight: 600;
}

.faq-link {
  color: var(--forja-orange);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.faq-link:hover {
  color: var(--forja-orange-dark);
}

/* FAQ CTA */
.faq-cta {
  background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
  padding: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.faq-cta-content h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--forja-black);
  margin: 0 0 8px 0;
}

.faq-cta-content p {
  font-size: 16px;
  color: var(--forja-gray);
  margin: 0;
}

.faq-cta-buttons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }

  .faq-cta-buttons {
    width: 100%;
    flex-direction: column;
  }

  .faq-cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .faq-question {
    padding: 20px;
  }

  .faq-question-text {
    font-size: 16px;
  }

  .faq-answer-content {
    padding: 0 20px 20px 20px;
  }

  .faq-cta {
    padding: 24px;
  }

  .faq-cta-content h3 {
    font-size: 20px;
  }
}

/* ---------- Contact Form Section ---------- */
.contact-form-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--forja-blue) 0%, var(--forja-blue-dark) 100%);
  position: relative;
  overflow: hidden;
}

.contact-form-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-content .section-title {
  color: var(--forja-white);
}

.contact-content .section-subtitle {
  color: rgba(255,255,255,0.8);
}

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

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
}

.info-item i {
  color: var(--forja-orange);
  width: 24px;
  height: 24px;
}

/* Form Wrapper */
.contact-form-wrapper {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--forja-black);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--forja-black);
  background: var(--forja-white);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--forja-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #EF4444;
}

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

.form-error {
  display: none;
  color: #EF4444;
  font-size: 13px;
  margin-top: -4px;
}

.checkbox-group {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 12px;
  font-size: 14px;
  color: #6B7280;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--forja-orange);
  text-decoration: underline;
}

.btn-submit {
  margin-top: 8px;
  width: 100%;
  position: relative;
  min-height: 54px;
}

.btn-submit.loading {
  pointer-events: none;
}

.btn-loading {
  display: none;
  align-items: center;
  gap: 10px;
}

.btn-loading i {
  animation: spin 1s linear infinite;
}

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

/* Form Message */
.form-message {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  margin-top: 16px;
}

.form-message.success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}

.form-message.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-wrapper {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 24px;
  }
}

/* ---------- CTA Section ---------- */
.cta {
  padding: 100px 120px;
  background: linear-gradient(135deg, var(--forja-blue) 0%, var(--forja-blue-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

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

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 48px;
  color: var(--forja-white);
  letter-spacing: -1px;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.cta .btn-primary {
  border-radius: 8px;
}

.cta .btn-secondary {
  border-radius: 8px;
  border-width: 2px;
}

/* ---------- WhatsApp Float Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: var(--forja-white);
  padding: 16px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-medium);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  animation: slideInRight 0.6s ease-out;
}

.whatsapp-float:hover {
  background: #20BA5A;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
}

.whatsapp-text {
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition-medium);
}

.whatsapp-float:hover .whatsapp-text {
  max-width: 200px;
  opacity: 1;
  margin-right: 4px;
}

.whatsapp-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: #25D366;
  opacity: 0.6;
  animation: pulse-whatsapp 2s infinite;
  pointer-events: none;
}

@keyframes pulse-whatsapp {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

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

/* Mobile */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 14px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-float:hover .whatsapp-text {
    display: none;
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 120px 40px;
  background: var(--forja-black);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--forja-gray);
}

.footer-social {
  display: flex;
  gap: 16px;
}

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

.social-link:hover {
  background: var(--forja-orange);
  transform: translateY(-4px);
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--forja-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  font-size: 14px;
  color: var(--forja-gray);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--forja-white);
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-legal a:hover {
  color: var(--forja-white);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1200px) {
  .ai-content-inner {
    gap: 48px;
  }
}

@media (max-width: 992px) {
  .ai-content-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ai-content-video {
    order: -1;
  }

  .ai-video-badge {
    top: -12px;
    right: -8px;
  }
}

@media (max-width: 768px) {
  .ai-video-badge {
    top: -10px;
    right: 0;
  }
}

@media (max-width: 1200px) {
  .services-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .header {
    padding: 0 40px;
  }

  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 40px 80px;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-content {
    flex: none;
    width: 100%;
  }

  .hero-visual {
    width: 100%;
    min-height: unset;
  }

  .bento-card.featured {
    flex-direction: column;
  }

  .testimonials,
  .cta,
  .footer {
    padding-left: 40px;
    padding-right: 40px;
  }

  .footer-main {
    flex-direction: column;
    gap: 48px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .forjalabs-logo-header {
    font-size: 30px;
  }

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 32px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  :root {
    --section-padding: 60px 20px;
  }

  .header {
    padding: 0 20px;
  }

  .forjalabs-logo-header {
    font-size: 26px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-headline h1 {
    font-size: 36px;
  }

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

  .bento-card.featured {
    grid-column: span 1;
  }

  .section-title {
    font-size: 28px;
  }

  .cta-title {
    font-size: 32px;
  }
}


/* ============================================
   HEADER STATES - Sticky behavior
   ============================================ */

/* Header en top de página */
.header.header-top {
  background: var(--forja-black);
  backdrop-filter: none;
  box-shadow: none;
}

/* Header oculto (scroll down) */
.header.header-hidden {
  transform: translateY(-100%);
}

/* Header compacto con glassmorphism al hacer scroll up */
.header.header-compact {
  height: 64px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.08),
              0 2px 8px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.header.header-compact .forjalabs-logo-header {
  font-size: 30px;
  transition: font-size 0.3s ease;
}

/* Efecto glow más suave en header compacto */
.header.header-compact .forjalabs-logo-header {
  filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.4));
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SMART PROGRESS HEADER
   ============================================ */

.smart-header {
  position: fixed;
  top: -60px;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 60px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(249, 115, 22, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.smart-header-visible {
  top: 0;
}

/* Progress Bar */
.smart-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, 
    var(--forja-orange) 0%, 
    var(--forja-orange-light) 100%);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
  transition: width 0.1s ease-out;
  z-index: 1;
}

/* Header Content */
.smart-header-content {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Logo */
.smart-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.smart-logo:hover {
  transform: scale(1.05);
}

.smart-logo-forja {
  font-weight: 900;
  background: linear-gradient(180deg, #ffc857 0%, #f7931e 50%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.smart-logo-labs {
  font-weight: 300;
  background: linear-gradient(180deg, #ffc857 0%, #f7931e 50%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 16px;
  margin-left: 2px;
}

/* Navigation */
.smart-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.smart-link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.smart-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--forja-orange);
  transition: width 0.3s ease;
}

.smart-link:hover {
  color: rgba(255, 255, 255, 1);
}

.smart-link:hover::after {
  width: 100%;
}

.smart-link.active {
  color: var(--forja-orange);
}

.smart-link.active::after {
  width: 100%;
}

/* CTA Button */
.smart-link-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, 
    var(--forja-orange) 0%, 
    var(--forja-orange-dark) 100%);
  border-radius: 6px;
  color: white !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
}

.smart-link-cta::after {
  display: none;
}

.smart-link-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* Mobile Responsive */
@media (max-width: 968px) {
  .smart-header-content {
    padding: 0 20px;
  }

  .smart-nav {
    gap: 20px;
  }

  .smart-link {
    font-size: 12px;
  }

  .smart-link-cta {
    padding: 8px 16px;
  }
}

@media (max-width: 768px) {
  .smart-header {
    height: 56px;
  }

  .smart-logo {
    font-size: 16px;
  }

  .smart-logo-labs {
    font-size: 14px;
  }

  .smart-nav {
    display: none;
  }
}

/* ============================================
   WOW ANIMATIONS - Premium Effects CSS
   ============================================ */

/* 1. FLOATING ANIMATION */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* 2. IMAGE ZOOM IN */
.image-zoom-in {
  transform: scale(1) !important;
}

/* 3. TEXT REVEAL ANIMATION - DESACTIVADO (causaba problemas de visibilidad) */
/* La animación de clip-path ocultaba títulos, por ahora desactivada */

/* 4. 3D TILT CARDS */
.portfolio-item,
.service-card,
.testimonial-card {
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.portfolio-item::after,
.service-card::after,
.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(249, 115, 22, 0) 0%, 
    rgba(249, 115, 22, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.portfolio-item:hover::after,
.service-card:hover::after,
.testimonial-card:hover::after {
  opacity: 1;
}

/* 5. MAGNETIC BUTTONS */
.btn,
.smart-link-cta {
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* 6. RIPPLE EFFECT */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 7. GRADIENT SHIFT ANIMATION */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-badge,
.section-label {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* 8. SMOOTH HOVER GLOW */
.portfolio-item,
.service-card,
.btn-primary {
  position: relative;
  overflow: hidden;
}

.portfolio-item::before,
.service-card::before,
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.portfolio-item:hover::before,
.service-card:hover::before,
.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* 9. PARALLAX CONTAINERS */
[data-parallax] {
  will-change: transform;
}

/* 10. STAGGER FADE IN (mejora de la existente) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 11. SCALE PULSE ON HOVER */
.stat-number,
.service-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-number:hover,
.service-icon:hover {
  transform: scale(1.1);
}

/* 12. SHINE EFFECT ON IMAGES */
.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  transform: skewX(-25deg);
  transition: left 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.portfolio-item:hover .portfolio-image::before {
  left: 150%;
}

/* 13. GLITCH EFFECT (sutil en hover) */
@keyframes glitch {
  0%, 100% {
    text-shadow: 
      2px 2px 0 rgba(249, 115, 22, 0.3),
      -2px -2px 0 rgba(30, 58, 138, 0.3);
  }
  25% {
    text-shadow: 
      -2px 2px 0 rgba(249, 115, 22, 0.3),
      2px -2px 0 rgba(30, 58, 138, 0.3);
  }
  50% {
    text-shadow: 
      2px -2px 0 rgba(249, 115, 22, 0.3),
      -2px 2px 0 rgba(30, 58, 138, 0.3);
  }
  75% {
    text-shadow: 
      -2px -2px 0 rgba(249, 115, 22, 0.3),
      2px 2px 0 rgba(30, 58, 138, 0.3);
  }
}

.portfolio-title:hover,
.service-title:hover {
  animation: glitch 0.3s ease;
}

/* 14. MORPHING BACKGROUND */
@keyframes morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: -5px;
  background: linear-gradient(45deg, var(--forja-orange), var(--forja-blue));
  opacity: 0.2;
  filter: blur(20px);
  animation: morph 8s ease-in-out infinite;
  z-index: -1;
}

/* 15. SMOOTH ENTRANCE */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-item,
.service-card,
.testimonial-card {
  animation: slideUp 0.8s ease-out backwards;
}

.portfolio-item {
  animation-delay: calc(var(--item-index, 0) * 0.1s);
}

/* Performance optimizations */
.portfolio-item,
.service-card,
.testimonial-card,
.btn,
[data-parallax] {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Smart Header Mobile Menu Toggle */
.smart-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.smart-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--forja-white);
  transition: all 0.3s ease;
  transform-origin: center;
}

@media (max-width: 768px) {
  .smart-menu-toggle {
    display: flex;
  }
}
