/* ============================================================ */
/*                      RESET & VARIABLES                       */
/* ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #04040d;
  --surface: #0b0b1a;
  --card: #0f0f22;
  --card-hover: #13132a;
  --cyan: #00f0ff;
  --purple: #a855f7;
  --pink: #ff2d78;
  --green: #25D366;
  --gold: #f0b429;
  --white: #eef0ff;
  --muted: #6b7299;
  --muted-light: #94a3b8;
  --border: rgba(0,240,255,0.12);
  --border-subtle: rgba(255,255,255,0.06);
  --glow-cyan: 0 0 30px rgba(0,240,255,0.4), 0 0 60px rgba(0,240,255,0.15);
  --glow-purple: 0 0 30px rgba(168,85,247,0.4), 0 0 60px rgba(168,85,247,0.15);
  --glow-pink: 0 0 30px rgba(255,45,120,0.4);
  --glow-green: 0 0 30px rgba(37,211,102,0.4), 0 0 60px rgba(37,211,102,0.15);
}

/* ============================================================ */
/*                     BASE & SCROLLBAR                         */
/* ============================================================ */

html { scroll-behavior: smooth; }
body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

/* Textura de ruido de fondo */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.6;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

/* Gradiente helper */
.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================ */
/*                          NAVBAR                              */
/* ============================================================ */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw; height: 90px;
  background: rgba(4,4,13,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 140px; width: auto; mix-blend-mode: screen; filter: brightness(1.2) drop-shadow(0 0 8px rgba(0,240,255,0.4)); transition: filter 0.3s; }
.logo img:hover { filter: brightness(1.4) drop-shadow(0 0 16px rgba(0,240,255,0.7)); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-cta { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); padding: 0.55rem 1.4rem; font-family: 'Orbitron', monospace; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; cursor: pointer; text-decoration: none; transition: all 0.3s; clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); }
.nav-cta:hover { background: var(--cyan); color: var(--bg); box-shadow: var(--glow-cyan); }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--white); display: block; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 90px; left: 0; right: 0; z-index: 999;
  background: rgba(4,4,13,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; padding: 2rem 6vw; display: flex; flex-direction: column; gap: 0; }
.mobile-link { display: block; padding: 1rem 0; color: var(--muted-light); text-decoration: none; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border-subtle); transition: color 0.3s; }
.mobile-link:hover { color: var(--cyan); }
.mobile-cta { color: var(--cyan); font-family: 'Orbitron', monospace; font-size: 0.85rem; font-weight: 700; border-bottom: none; margin-top: 0.5rem; }

/* ============================================================ */
/*                HERO — IMPACTO MÁXIMO                         */
/* ============================================================ */

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px 6vw 60px;
  position: relative; overflow: hidden;
}

/* Grid animado */
.hero::after {
  content: '';
  position: absolute; inset: -50%;
  background-image: linear-gradient(rgba(0,240,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,240,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}
@keyframes gridMove { 0% { transform: translateY(0); } 100% { transform: translateY(60px); } }

/* Orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,240,255,0.12), transparent 70%); top: -100px; left: -150px; animation: float1 8s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(168,85,247,0.14), transparent 70%); bottom: -80px; right: -100px; animation: float2 10s ease-in-out infinite; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,45,120,0.1), transparent 70%); top: 40%; left: 55%; animation: float1 12s ease-in-out infinite reverse; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -40px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-25px, 35px); } }

/* Textos del hero */
.hero-eyebrow { font-family: 'Orbitron', monospace; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.4em; color: var(--cyan); text-transform: uppercase; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.8s 0.2s forwards; position: relative; z-index: 1; }

.hero-title { font-family: 'Orbitron', monospace; font-size: clamp(2rem, 5.5vw, 5.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.8s 0.4s forwards; position: relative; z-index: 1; }
.hero-title .line-1 { display: block; color: var(--muted-light); font-size: 0.7em; margin-bottom: 0.2em; }
.hero-title .line-2 { display: block; color: var(--white); }
.hero-title .line-3 { display: block; background: linear-gradient(90deg, var(--cyan), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { max-width: 580px; font-size: 1.1rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; font-weight: 300; opacity: 0; animation: fadeUp 0.8s 0.6s forwards; position: relative; z-index: 1; }

/* Trust badge */
.hero-trust-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid rgba(0,240,255,0.2); background: rgba(0,240,255,0.05);
  padding: 0.45rem 1.2rem; border-radius: 2px;
  font-size: 0.78rem; color: var(--cyan); letter-spacing: 0.1em;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
  position: relative; z-index: 1;
}
.trust-dot { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 8px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Botones */
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; opacity: 0; animation: fadeUp 0.8s 0.8s forwards; position: relative; z-index: 1; }

.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--purple)); color: var(--bg); border: none; padding: 0.95rem 2.4rem; font-family: 'Orbitron', monospace; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; cursor: pointer; text-decoration: none; display: inline-block; clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%); transition: all 0.3s; box-shadow: var(--glow-cyan); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,240,255,0.6), 0 0 100px rgba(0,240,255,0.2); }

.btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--white); padding: 0.95rem 2.4rem; font-family: 'Orbitron', monospace; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; cursor: pointer; text-decoration: none; display: inline-block; clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%); transition: all 0.3s; }
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); box-shadow: var(--glow-purple); transform: translateY(-2px); }

/* Stats del hero */
.hero-stats { display: flex; gap: 0; margin-top: 5rem; opacity: 0; animation: fadeUp 0.8s 1s forwards; position: relative; z-index: 1; border: 1px solid var(--border); background: rgba(15,15,34,0.5); backdrop-filter: blur(12px); }
.stat { text-align: center; padding: 1.5rem 2.5rem; }
.stat-divider { border-left: 1px solid var(--border); }
.stat-num { font-family: 'Orbitron', monospace; font-size: 1.8rem; font-weight: 900; color: var(--cyan); }
.stat-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================ */
/*                       TRUST BAR                              */
/* ============================================================ */

.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 6vw;
  display: flex; align-items: center; justify-content: center; gap: 3rem;
  flex-wrap: wrap;
}
.trust-bar-label { font-family: 'Orbitron', monospace; font-size: 0.62rem; letter-spacing: 0.35em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.trust-logos { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.trust-logo-item { display: flex; align-items: center; gap: 0.8rem; opacity: 0.7; transition: opacity 0.3s; }
.trust-logo-item:hover { opacity: 1; }
.trust-logo-item img { height: 36px; width: 36px; object-fit: cover; border-radius: 4px; filter: grayscale(30%); }
.trust-logo-item span { font-size: 0.85rem; font-weight: 600; color: var(--white); letter-spacing: 0.05em; }
.trust-logo-separator { color: var(--border); font-size: 1.5rem; }
.trust-placeholder-box { border: 1px dashed rgba(0,240,255,0.25); color: rgba(0,240,255,0.4); font-size: 0.72rem; font-family: 'Orbitron', monospace; letter-spacing: 0.15em; padding: 0.5rem 1rem; }

/* ============================================================ */
/*               SECCIÓN — ESTILOS GENERALES                    */
/* ============================================================ */

section { padding: 100px 6vw; }
.section-label { font-family: 'Orbitron', monospace; font-size: 0.68rem; letter-spacing: 0.45em; color: var(--cyan); text-transform: uppercase; margin-bottom: 1rem; display: block; }
.section-title { font-family: 'Orbitron', monospace; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.section-sub { font-size: 1rem; color: var(--muted); line-height: 1.8; max-width: 500px; }

/* ============================================================ */
/*               PROBLEMA — SECCIÓN PAIN POINTS                 */
/* ============================================================ */

.problema-section { background: var(--bg); padding: 100px 6vw; position: relative; overflow: hidden; }
.problema-section::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.3; }

.problema-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; max-width: 1200px; margin: 0 auto; }

.problema-items { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.problema-item { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.9rem 1.2rem; border: 1px solid rgba(255,45,120,0.12); background: rgba(255,45,120,0.03); transition: all 0.3s; }
.problema-item:hover { border-color: rgba(255,45,120,0.3); background: rgba(255,45,120,0.06); }
.problema-x { color: var(--pink); font-weight: 700; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.problema-item span { font-size: 0.9rem; color: var(--muted-light); line-height: 1.5; }

.problema-solution { margin-top: 2rem; display: flex; align-items: flex-start; gap: 1rem; }
.problema-solution-line { width: 3px; background: linear-gradient(180deg, var(--cyan), var(--purple)); flex-shrink: 0; border-radius: 2px; min-height: 50px; }
.problema-solution p { font-size: 0.95rem; color: var(--muted-light); line-height: 1.7; }
.problema-solution strong { color: var(--cyan); }

/* Card de diagnóstico */
.problema-card { background: var(--card); border: 1px solid var(--border); font-family: 'Orbitron', monospace; font-size: 0.78rem; overflow: hidden; }
.pcard-header { background: rgba(0,240,255,0.05); border-bottom: 1px solid var(--border); padding: 0.8rem 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.pcard-dot { width: 10px; height: 10px; border-radius: 50%; }
.pcard-dot.red { background: #ff5f57; }
.pcard-dot.yellow { background: #ffbd2e; }
.pcard-dot.green { background: #28c840; }
.pcard-title { font-size: 0.65rem; letter-spacing: 0.15em; color: var(--muted); margin-left: 0.5rem; }
.pcard-body { padding: 1.5rem 1.2rem; }
.pcard-line { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.72rem; }
.pcard-label { color: var(--muted); }
.pcard-bad { color: var(--pink); }
.pcard-good { color: #28c840; }
.pcard-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); margin: 1rem 0; opacity: 0.4; }
.pcard-cta { margin-top: 1.5rem; }
.pcard-btn { display: block; text-align: center; background: linear-gradient(135deg, var(--cyan), var(--purple)); color: var(--bg); padding: 0.8rem; text-decoration: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; transition: all 0.3s; }
.pcard-btn:hover { box-shadow: var(--glow-cyan); transform: translateY(-1px); }

/* ============================================================ */
/*                      SERVICIOS                               */
/* ============================================================ */

#servicios { background: var(--surface); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; gap: 2rem; flex-wrap: wrap; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5px; }

.service-card { background: var(--card); padding: 0; border: 1px solid var(--border); position: relative; overflow: hidden; transition: all 0.4s; cursor: default; display: flex; flex-direction: column; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); transform: scaleX(0); transition: transform 0.4s; z-index: 1; }
.service-card:hover { background: var(--card-hover); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.service-card:hover::before { transform: scaleX(1); }

.service-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border); position: relative; background: #07071a; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.service-card:hover .service-img-wrap img { transform: scale(1.05); }
.service-img-wrap::before, .service-img-wrap::after { content: ''; position: absolute; left: 0; right: 0; z-index: 2; background: #07071a; height: 50%; transition: height 0.7s cubic-bezier(0.77,0,0.18,1); pointer-events: none; }
.service-img-wrap::before { top: 0; }
.service-img-wrap::after  { bottom: 0; }
.service-card.visible .service-img-wrap::before, .service-card.visible .service-img-wrap::after { height: 0%; }
.service-card:nth-child(1).visible .service-img-wrap::before, .service-card:nth-child(1).visible .service-img-wrap::after { transition-delay: 0.2s; }
.service-card:nth-child(2).visible .service-img-wrap::before, .service-card:nth-child(2).visible .service-img-wrap::after { transition-delay: 0.35s; }
.service-card:nth-child(3).visible .service-img-wrap::before, .service-card:nth-child(3).visible .service-img-wrap::after { transition-delay: 0.5s; }

.service-num { font-family: 'Orbitron', monospace; font-size: 0.65rem; color: var(--cyan); letter-spacing: 0.2em; margin-bottom: 0.5rem; opacity: 0.7; padding: 2rem 2.5rem 0; }
.service-name { font-family: 'Orbitron', monospace; font-size: 1rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--white); padding: 0 2.5rem; }
.service-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.8; padding: 0 2.5rem; flex: 1; }

.service-features { list-style: none; padding: 1.5rem 2.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.service-features li { font-size: 0.8rem; color: var(--muted-light); padding-left: 1rem; position: relative; }
.service-features li::before { content: '→'; position: absolute; left: 0; color: var(--cyan); font-size: 0.75rem; }

.service-result { margin: 0; padding: 1rem 2.5rem 2rem; font-size: 0.82rem; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--border-subtle); }
.result-label { color: var(--cyan); font-weight: 600; }

/* ============================================================ */
/*                       PROCESO — 5 PASOS                      */
/* ============================================================ */

#proceso { background: var(--bg); position: relative; overflow: hidden; }
#proceso::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(0,240,255,0.1) 1px, transparent 1px); background-size: 28px 28px; opacity: 0.3; pointer-events: none; z-index: 0; }

.process-header { text-align: center; margin-bottom: 5rem; position: relative; z-index: 1; }
.process-header .section-sub { margin: 0 auto; }

.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; position: relative; z-index: 1; }
.process-step { padding: 2.5rem 1.8rem; background: var(--card); border: 1px solid var(--border); text-align: center; transition: all 0.3s; position: relative; }
.process-step:hover { background: var(--card-hover); border-color: rgba(0,240,255,0.3); box-shadow: 0 0 30px rgba(0,240,255,0.1); }
.process-step::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: rgba(0,240,255,0.3); font-size: 1.2rem; z-index: 2; }
.process-step:last-child::after { display: none; }

.step-num { font-family: 'Orbitron', monospace; font-size: 2.5rem; font-weight: 900; background: linear-gradient(135deg, var(--cyan), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 1rem; opacity: 0.5; }
.step-title { font-family: 'Orbitron', monospace; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--white); letter-spacing: 0.05em; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.step-tag { font-family: 'Exo 2', sans-serif; font-size: 0.6rem; padding: 0.2rem 0.6rem; border-radius: 2px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.step-tag.free { background: rgba(0,240,255,0.15); color: var(--cyan); border: 1px solid rgba(0,240,255,0.3); }
.step-tag:not(.free) { background: rgba(168,85,247,0.15); color: var(--purple); border: 1px solid rgba(168,85,247,0.3); }
.step-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

/* Garantía */
.process-guarantee { margin-top: 3rem; padding: 1.5rem 2rem; background: rgba(0,240,255,0.04); border: 1px solid rgba(0,240,255,0.15); display: flex; align-items: center; gap: 1.2rem; max-width: 700px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.guarantee-icon { font-size: 1.8rem; flex-shrink: 0; }
.guarantee-text { font-size: 0.88rem; color: var(--muted-light); line-height: 1.6; }
.guarantee-text strong { color: var(--white); }

/* ============================================================ */
/*              PORTAFOLIO — CASOS DE ÉXITO                     */
/* ============================================================ */

.portfolio-preview-section { background: var(--surface); padding: 100px 6vw; }
.portfolio-header { text-align: center; margin-bottom: 5rem; }

.case-study { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; max-width: 1200px; margin: 0 auto; }

.case-media { position: relative; }
.case-img-stack { position: relative; }
.case-img-main { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--border); display: block; }
.case-img-accent { position: absolute; bottom: -20px; right: -20px; width: 100px; height: 100px; object-fit: cover; border: 2px solid var(--bg); box-shadow: 0 0 30px rgba(0,240,255,0.2); }
.case-badge-live { position: absolute; top: 1rem; left: 1rem; display: flex; align-items: center; gap: 0.5rem; background: rgba(4,4,13,0.9); border: 1px solid rgba(40,200,64,0.4); padding: 0.35rem 0.8rem; font-size: 0.7rem; font-family: 'Orbitron', monospace; color: #28c840; letter-spacing: 0.1em; }
.live-dot { width: 6px; height: 6px; background: #28c840; border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }

.case-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.case-tag { font-size: 0.7rem; padding: 0.25rem 0.7rem; border: 1px solid rgba(0,240,255,0.25); color: var(--cyan); font-family: 'Orbitron', monospace; letter-spacing: 0.1em; }
.case-title { font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 900; margin-bottom: 2rem; }

.case-psr { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.psr-block { padding-left: 1rem; border-left: 2px solid rgba(0,240,255,0.2); }
.psr-label { font-family: 'Orbitron', monospace; font-size: 0.6rem; letter-spacing: 0.3em; color: var(--cyan); margin-bottom: 0.4rem; opacity: 0.8; }
.psr-text { font-size: 0.88rem; color: var(--muted-light); line-height: 1.7; }

.psr-results { display: flex; gap: 0; border: 1px solid var(--border); }
.psr-result-item { flex: 1; text-align: center; padding: 1.2rem 0.5rem; border-right: 1px solid var(--border); }
.psr-result-item:last-child { border-right: none; }
.psr-result-num { font-family: 'Orbitron', monospace; font-size: 1.5rem; font-weight: 900; color: var(--cyan); display: block; }
.psr-result-label { font-size: 0.7rem; color: var(--muted); margin-top: 0.3rem; display: block; }

.case-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--cyan); font-family: 'Orbitron', monospace; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; border-bottom: 1px solid rgba(0,240,255,0.3); padding-bottom: 0.2rem; transition: all 0.3s; }
.case-link:hover { border-color: var(--cyan); gap: 1rem; }

.portfolio-cta-row { text-align: center; margin-top: 4rem; display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.portfolio-cta-row p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================ */
/*                MÉTRICAS — NUMBERS BAND                       */
/* ============================================================ */

.metrics-band { background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(168,85,247,0.05)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4rem 6vw; }
.metrics-inner { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 900px; margin: 0 auto; flex-wrap: wrap; }
.metric-item { text-align: center; padding: 1.5rem 3rem; }
.metric-divider { width: 1px; background: var(--border); height: 60px; }
.metric-num { font-family: 'Orbitron', monospace; font-size: 2.5rem; font-weight: 900; color: var(--cyan); line-height: 1; }
.metric-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.5rem; }

/* ============================================================ */
/*                   POR QUÉ ELEGIRNOS                          */
/* ============================================================ */

#nosotros { background: var(--surface); display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.why-content { }

.why-visual { position: relative; aspect-ratio: 1; max-width: 460px; }
.why-card-big { position: absolute; inset: 0; border: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; overflow: hidden; }
.why-card-big::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(0,240,255,0.07) 1px, transparent 1px); background-size: 24px 24px; }
.why-card-big::after { content: ''; position: absolute; top: 12px; left: 12px; right: 12px; bottom: 12px; border: 1px solid rgba(0,240,255,0.06); pointer-events: none; }
.why-corner { position: absolute; width: 20px; height: 20px; }
.why-corner-tl { top: 8px; left: 8px; border-top: 1px solid rgba(0,240,255,0.35); border-left: 1px solid rgba(0,240,255,0.35); }
.why-corner-tr { top: 8px; right: 8px; border-top: 1px solid rgba(0,240,255,0.35); border-right: 1px solid rgba(0,240,255,0.35); }
.why-corner-bl { bottom: 8px; left: 8px; border-bottom: 1px solid rgba(0,240,255,0.35); border-left: 1px solid rgba(0,240,255,0.35); }
.why-corner-br { bottom: 8px; right: 8px; border-bottom: 1px solid rgba(0,240,255,0.35); border-right: 1px solid rgba(0,240,255,0.35); }

@keyframes ripple { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes flicker { 0%, 88% { opacity: 1; filter: drop-shadow(0 0 10px rgba(0,240,255,0.9)); } 89% { opacity: 0.3; } 90% { opacity: 1; } 92% { opacity: 0.5; } 93% { opacity: 1; } }

.why-icon-wrap { position: relative; z-index: 1; width: 110px; height: 110px; border-radius: 50%; border: 1px solid rgba(0,240,255,0.25); background: radial-gradient(circle, rgba(0,240,255,0.1) 0%, transparent 70%); display: flex; align-items: center; justify-content: center; overflow: visible; }
.why-icon-wrap::before { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; border: 1.5px solid rgba(0,240,255,0.35); animation: ripple 3.6s ease-out infinite; }
.why-icon-wrap::after { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; border: 1.5px solid rgba(0,240,255,0.25); animation: ripple 3.6s ease-out infinite; animation-delay: 1.2s; }
.why-ripple-3 { position: absolute; z-index: 1; width: 110px; height: 110px; border-radius: 50%; border: 1.5px solid rgba(0,240,255,0.18); animation: ripple 3.6s ease-out infinite; animation-delay: 2.4s; pointer-events: none; }
.why-icon-svg { width: 48px; height: 48px; position: relative; z-index: 1; animation: flicker 7s ease-in-out infinite; }
.why-tagline { position: relative; z-index: 1; font-family: 'Orbitron', monospace; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.3em; color: var(--cyan); text-transform: uppercase; opacity: 0.7; text-align: center; padding: 0 2rem; line-height: 1.8; }

.floating-badges { position: absolute; inset: 0; pointer-events: none; }
.badge { position: absolute; background: rgba(4,4,13,0.85); backdrop-filter: blur(8px); border: 1px solid var(--border); padding: 0.6rem 1rem; font-size: 0.7rem; font-family: 'Orbitron', monospace; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-1 { top: 8%; right: -8%; color: var(--cyan); border-color: rgba(0,240,255,0.25); animation: float1 6s ease-in-out infinite; }
.badge-1 .badge-dot { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.badge-2 { bottom: 22%; left: -10%; color: var(--purple); border-color: rgba(168,85,247,0.25); animation: float2 7s ease-in-out infinite; }
.badge-2 .badge-dot { background: var(--purple); box-shadow: 0 0 6px var(--purple); }
.badge-3 { bottom: 6%; right: 2%; color: var(--pink); border-color: rgba(255,45,120,0.25); animation: float1 8s ease-in-out infinite; }
.badge-3 .badge-dot { background: var(--pink); box-shadow: 0 0 6px var(--pink); }

.why-features { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.5rem; border: 1px solid var(--border); background: var(--card); transition: all 0.3s; }
.feature-item:hover { border-color: rgba(0,240,255,0.3); background: var(--card-hover); }
.feature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); margin-top: 6px; flex-shrink: 0; }
.feature-dot.purple { background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.feature-dot.pink { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.feature-text strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--white); }
.feature-text span { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ============================================================ */
/*                    TESTIMONIOS                               */
/* ============================================================ */

.testimonios-section { background: var(--bg); padding: 100px 6vw; }
.testimonios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-width: 1000px; margin: 0 auto; }

.testimonio-card { background: var(--card); border: 1px solid var(--border); padding: 3rem; position: relative; transition: all 0.3s; }
.testimonio-card:hover { border-color: rgba(0,240,255,0.25); background: var(--card-hover); }
.testimonio-quote { font-family: 'Orbitron', monospace; font-size: 4rem; color: var(--cyan); opacity: 0.2; line-height: 0.6; margin-bottom: 1.5rem; display: block; }
.testimonio-text { font-size: 0.95rem; color: var(--muted-light); line-height: 1.8; margin-bottom: 2rem; font-style: italic; }
.testimonio-author { display: flex; align-items: center; gap: 1rem; }
.testimonio-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--purple)); display: flex; align-items: center; justify-content: center; font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700; color: var(--bg); flex-shrink: 0; }
.testimonio-author strong { display: block; font-size: 0.9rem; color: var(--white); }
.testimonio-author span { font-size: 0.75rem; color: var(--muted); display: block; margin-top: 0.2rem; }
.testimonio-stars { position: absolute; top: 2rem; right: 2rem; color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; }

.testimonio-cta-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, rgba(0,240,255,0.03), rgba(168,85,247,0.03)); border-style: dashed; border-color: rgba(0,240,255,0.2); }
.testimonio-cta-icon { font-size: 2.5rem; color: var(--cyan); opacity: 0.5; margin-bottom: 1rem; }
.testimonio-cta-text { font-family: 'Orbitron', monospace; font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.8rem; }
.testimonio-cta-sub { font-size: 0.85rem; color: var(--muted); line-height: 1.7; max-width: 280px; }

/* ============================================================ */
/*                    FAQ                                       */
/* ============================================================ */

.faq-section { background: var(--surface); padding: 100px 6vw; }
.faq-header { text-align: center; margin-bottom: 4rem; }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }

.faq-item { background: var(--card); border: 1px solid var(--border); overflow: hidden; transition: border-color 0.3s; }
.faq-item:hover { border-color: rgba(0,240,255,0.2); }

.faq-question { width: 100%; background: none; border: none; padding: 1.4rem 1.8rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; text-align: left; font-family: 'Exo 2', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--white); transition: color 0.3s; }
.faq-question:hover { color: var(--cyan); }
.faq-question[aria-expanded="true"] { color: var(--cyan); }
.faq-question[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); color: var(--cyan); }

.faq-arrow { font-size: 1.2rem; color: var(--muted); transition: transform 0.3s, color 0.3s; flex-shrink: 0; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 300px; }
.faq-answer p { padding: 0 1.8rem 1.4rem; font-size: 0.88rem; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--border-subtle); padding-top: 1rem; }

/* ============================================================ */
/*                  CONTACTO — CTA FINAL                        */
/* ============================================================ */

#contacto { background: var(--bg); text-align: center; padding: 120px 6vw; position: relative; overflow: hidden; }
#contacto::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(0,240,255,0.06) 0%, rgba(168,85,247,0.04) 40%, transparent 70%); pointer-events: none; }

.cta-label { font-family: 'Orbitron', monospace; font-size: 0.68rem; letter-spacing: 0.45em; color: var(--pink); text-transform: uppercase; margin-bottom: 1.5rem; display: block; }
.cta-title { font-family: 'Orbitron', monospace; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.2rem; }
.cta-title .highlight { background: linear-gradient(90deg, var(--cyan), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cta-sub { font-size: 1rem; color: var(--muted); max-width: 520px; margin: 0 auto 3rem; line-height: 1.8; }

/* Formulario */
.contact-form-wrap { max-width: 600px; margin: 0 auto 3rem; position: relative; z-index: 1; }
.contact-form { background: var(--card); border: 1px solid var(--border); padding: 2.5rem; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.form-group label { font-family: 'Orbitron', monospace; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; }
.form-group input, .form-group select { background: var(--bg); border: 1px solid var(--border); color: var(--white); padding: 0.8rem 1rem; font-family: 'Exo 2', sans-serif; font-size: 0.9rem; transition: border-color 0.3s; outline: none; width: 100%; }
.form-group input::placeholder { color: var(--muted); }
.form-group input:focus, .form-group select:focus { border-color: rgba(0,240,255,0.5); box-shadow: 0 0 0 1px rgba(0,240,255,0.15); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--card); color: var(--white); }
.form-submit { width: 100%; margin-top: 0.5rem; clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%); border: none; cursor: pointer; }
.form-disclaimer { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 1rem; }

/* Divisor */
.contact-divider { display: flex; align-items: center; gap: 1.5rem; max-width: 400px; margin: 0 auto 2.5rem; position: relative; z-index: 1; }
.contact-divider::before, .contact-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.contact-divider span { font-size: 0.75rem; color: var(--muted); white-space: nowrap; letter-spacing: 0.1em; text-transform: uppercase; }

/* Botones de redes sociales */
.contact-buttons { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; position: relative; z-index: 1; }
.contact-btn { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 2rem; text-decoration: none; font-family: 'Orbitron', monospace; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%); transition: all 0.3s; min-width: 200px; }
.contact-btn:hover { transform: translateY(-4px); }
.contact-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.contact-btn-label { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.contact-btn-label span { font-size: 0.6rem; font-weight: 400; opacity: 0.65; letter-spacing: 0.08em; font-family: 'Exo 2', sans-serif; text-transform: uppercase; margin-bottom: 0.15rem; }
.contact-btn-label strong { font-size: 0.85rem; font-weight: 700; }

.btn-whatsapp { background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.4); color: #25D366; }
.btn-whatsapp:hover { background: rgba(37,211,102,0.18); border-color: #25D366; box-shadow: var(--glow-green); color: #25D366; }
.btn-instagram { background: rgba(255,45,120,0.1); border: 1px solid rgba(255,45,120,0.4); color: var(--pink); }
.btn-instagram:hover { background: rgba(255,45,120,0.18); border-color: var(--pink); box-shadow: var(--glow-pink); color: var(--pink); }
.btn-linkedin { background: rgba(0,119,181,0.1); border: 1px solid rgba(0,119,181,0.4); color: #38bdf8; }
.btn-linkedin:hover { background: rgba(0,119,181,0.18); border-color: #38bdf8; box-shadow: 0 0 30px rgba(0,119,181,0.5); color: #38bdf8; }

/* Power-on animations */
@keyframes powerOn-green { 0% { transform: translateY(0); box-shadow: none; } 35% { transform: translateY(-10px); box-shadow: 0 0 40px rgba(37,211,102,0.9), 0 0 80px rgba(37,211,102,0.5); border-color: #25D366; background: rgba(37,211,102,0.35); } 100% { transform: translateY(0); box-shadow: none; background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.4); } }
@keyframes powerOn-pink { 0% { transform: translateY(0); box-shadow: none; } 35% { transform: translateY(-10px); box-shadow: 0 0 40px rgba(255,45,120,0.9), 0 0 80px rgba(255,45,120,0.5); } 100% { transform: translateY(0); box-shadow: none; background: rgba(255,45,120,0.1); } }
@keyframes powerOn-blue { 0% { transform: translateY(0); box-shadow: none; } 35% { transform: translateY(-10px); box-shadow: 0 0 40px rgba(0,119,181,0.9), 0 0 80px rgba(0,119,181,0.5); } 100% { transform: translateY(0); box-shadow: none; background: rgba(0,119,181,0.1); } }
.btn-whatsapp.powered  { animation: powerOn-green 0.9s ease forwards; }
.btn-instagram.powered { animation: powerOn-pink  0.9s ease forwards; }
.btn-linkedin.powered  { animation: powerOn-blue  0.9s ease forwards; }

/* ============================================================ */
/*                    FOOTER                                    */
/* ============================================================ */

.neon-line { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent); opacity: 0.4; margin: 0; }

footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 6vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo { height: 80px; width: auto; mix-blend-mode: screen; filter: brightness(1.1); }
.footer-tagline { font-size: 0.78rem; color: var(--muted); }
.footer-copy { font-size: 0.78rem; color: var(--muted); text-align: right; }
.footer-links { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--cyan); }

/* WhatsApp flotante */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 200; width: 58px; height: 58px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.5); text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; animation: bounceIn 1s 2s both; }
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 30px rgba(37,211,102,0.75); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(0.3); } 60% { transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }

/* ============================================================ */
/*                   REVEAL ANIMATION                           */
/* ============================================================ */

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================ */
/*                        RESPONSIVE                            */
/* ============================================================ */

@media (max-width: 1100px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3)::after { display: none; }
  .process-step:nth-child(4)::after, .process-step:nth-child(5)::after { display: block; }
}

@media (max-width: 900px) {
  nav { padding: 0 5vw; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  section { padding: 70px 5vw; }
  .hero { padding: 100px 5vw 50px; }

  #nosotros { grid-template-columns: 1fr; }
  .why-visual { display: none; }

  .problema-inner { grid-template-columns: 1fr; gap: 3rem; }
  .problema-visual { order: -1; }
  .problema-card { max-width: 400px; margin: 0 auto; }

  .case-study { grid-template-columns: 1fr; gap: 3rem; }
  .case-img-accent { width: 70px; height: 70px; bottom: -15px; right: -10px; }

  .hero-stats { flex-wrap: wrap; }
  .stat { flex: 1; min-width: 130px; }

  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }

  .testimonios-grid { grid-template-columns: 1fr; }

  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
  .footer-brand { align-items: center; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(1.6rem, 8vw, 2.8rem); }
  .stat { padding: 1.2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-buttons { flex-direction: column; align-items: center; }
  .contact-btn { width: 100%; max-width: 320px; justify-content: center; }
  .metrics-inner { flex-wrap: wrap; }
  .metric-divider { display: none; }
  .metric-item { flex: 1; min-width: 140px; }
  .process-steps { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; gap: 1.5rem; text-align: center; }
}
