/* ============ Grupo Mz Hanrod SAC — Futuristic Cyber & Metallic Car-Paint UI ============ */
:root {
  --bg: #020617;
  --bg-2: #050d24;
  --bg-card: rgba(8, 18, 42, 0.7);
  --surface: rgba(12, 26, 56, 0.55);
  --border: rgba(56, 189, 248, 0.16);
  --border-glow: rgba(0, 240, 255, 0.5);
  --text: #f1f6ff;
  --muted: #94a3b8;
  --cyan: #00f0ff;
  --cyan-light: #67e8f9;
  --cyan-dim: rgba(0, 240, 255, 0.1);
  --blue: #3b82f6;
  --deep: #1d4ed8;
  --sky: #38bdf8;
  --purple: #818cf8;
  --grad: linear-gradient(120deg, #00f0ff 0%, #38bdf8 40%, #3b82f6 100%);
  --grad-cyber: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #818cf8 100%);
  --radius: 18px;
  --radius-sm: 10px;
  --font-head: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-tech: 'Michroma', 'Orbitron', sans-serif;
  --font-sub: 'Rajdhani', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 240, 255, 0.12), transparent 70%);
  background-size: 32px 32px, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(0, 240, 255, 0.3); color: #fff; }

/* Custom Futuristic Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--deep));
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* ---------- utilidades ---------- */
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: clamp(52px, 5vw, 70px) 0; position: relative; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Section Kicker Minimalist */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.section-sub { 
  color: var(--muted); 
  max-width: 580px; 
  font-size: 1rem; 
  line-height: 1.7; 
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.25));
}

/* ---------- Resaltado Rectangular Neón (Estilo Highlighter Azul) ---------- */
.neon-highlight {
  position: relative;
  display: inline-block;
  color: #ffffff;
  padding: 0 6px;
  z-index: 1;
  white-space: nowrap;
}
.neon-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 42%;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.55) 0%, rgba(56, 189, 248, 0.65) 50%, rgba(37, 99, 235, 0.55) 100%);
  border-radius: 3px;
  box-shadow: 
    0 0 14px rgba(0, 240, 255, 0.45),
    inset 0 0 8px rgba(0, 240, 255, 0.25);
  z-index: -1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.neon-highlight:hover::before {
  opacity: 1;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
}

/* Pulsing Status Dot */
.pulse-dot, .hud-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 14px var(--cyan);
  animation: hudPulseAnim 2s infinite ease-in-out;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes hudPulseAnim {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--cyan), 0 0 14px var(--cyan); }
  50% { transform: scale(1.35); opacity: 0.75; box-shadow: 0 0 12px var(--cyan), 0 0 22px var(--cyan); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(2, 132, 199, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 18px rgba(2, 132, 199, 0.28);
  color: #ffffff;
}
.btn-ghost {
  background: rgba(8, 18, 42, 0.6);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.2);
}

/* ---------- animación reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.10s; }
.reveal[data-delay="2"] { transition-delay: 0.20s; }
.reveal[data-delay="3"] { transition-delay: 0.30s; }
.reveal[data-delay="4"] { transition-delay: 0.40s; }

/* ---------- cursor glow ---------- */
#cursor-glow {
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08), rgba(59, 130, 246, 0.03) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s;
}

/* ---------- navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.08);
}
.nav.scrolled .nav-inner { padding: 10px 0; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  transition: padding 0.35s;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo-img {
  height: 28px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.logo:hover .logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45));
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--font-sub);
  font-size: 0.96rem;
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-drawer-cta { display: none !important; }
.nav-cta-img-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}
.nav-cta-img {
  height: 32px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.nav-cta-img-link:hover .nav-cta-img {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.45));
}
.menu-toggle { display: none; }

/* ---------- HERO SECTION (DESKTOP & RESPONSIVE) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
}
.hero-ambient-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.15), rgba(59, 130, 246, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  transform: scale(1.05);
  will-change: transform;
  z-index: 0;
}

/* Video Stage */
.hero-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transform: scale(1.03);
  will-change: transform;
}
.hero-video-vignette {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 65% at 50% 45%, transparent 20%, rgba(2, 6, 23, 0.85) 90%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.8) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}
/* Hero Fan (Desktop) */
.hero-fan-wrapper {
  position: absolute;
  left: 0; right: 0;
  bottom: -36px;
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.hero-fan {
  position: relative;
  width: 0;
  height: 0;
  pointer-events: auto;
}
.fan-card {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 280px;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: var(--bg-2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 240, 255, 0.08);
  transform-origin: 50% 100%;
  transform: translateX(-50%) translateX(var(--x, 0)) rotate(var(--r));
  opacity: 0;
  animation: fanFade 0.9s ease var(--d, 0.9s) forwards;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
@keyframes fanFade { to { opacity: 1; } }
.fan-card:nth-child(1) { --x: -350px; --r: -9deg;   --d: 1.35s; z-index: 1; }
.fan-card:nth-child(2) { --x: -210px; --r: -5.5deg; --d: 1.25s; z-index: 2; }
.fan-card:nth-child(3) { --x: -70px;  --r: -2deg;   --d: 1.15s; z-index: 3; }
.fan-card:nth-child(4) { --x: 70px;   --r: 2deg;    --d: 1.05s; z-index: 3; }
.fan-card:nth-child(5) { --x: 210px;  --r: 5.5deg;  --d: 1.25s; z-index: 2; }
.fan-card:nth-child(6) { --x: 350px;  --r: 9deg;    --d: 1.35s; z-index: 1; }

.fan-card-clone { display: none !important; }

.fan-card:hover {
  transform: translateX(-50%) translateX(var(--x, 0)) rotate(0deg) translateY(-44px) scale(1.06);
  z-index: 10;
  border-color: rgba(0, 240, 255, 0.7);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.3);
}
.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.85));
}
.fan-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* ========================================================
   SERVICIOS: MINIMALISTA LUXURY (AZUL PORTAFOLIO #050d24)
   ======================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
}

.service-card {
  position: relative;
  padding: 38px 32px 34px;
  border-radius: 20px;
  background: 
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #071330 0%, #050d24 60%, #020716 100%);
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    0 16px 36px -8px rgba(2, 6, 23, 0.45),
    0 0 20px rgba(0, 240, 255, 0.04);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Efecto spotlight interactivo */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 240, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: inherit;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.25),
    0 24px 50px -10px rgba(2, 6, 23, 0.65),
    0 0 30px rgba(0, 240, 255, 0.18);
}
.service-card:hover::before { opacity: 1; }

.service-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.service-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 26px;
  flex: 1;
}

.service-desc strong {
  font-weight: 700;
  color: #f1f5f9;
}

/* Minimalist Link CTA */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan);
  margin-top: auto;
  letter-spacing: 0.02em;
  transition: gap 0.25s ease, color 0.25s ease;
}

.service-link svg {
  transition: transform 0.25s ease;
}

.service-card:hover .service-link {
  color: #67e8f9;
  gap: 12px;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ---------- PORTAFOLIO (TARJETAS BLANCAS 3D RELIEVE) ---------- */
#portafolio {
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 240, 255, 0.08), transparent),
    var(--bg-2);
}
.projects {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.project {
  grid-column: span 2;
  border-radius: 22px;
  overflow: hidden;
  /* Cuerpo blanco limpio con degradado sutil de iluminación superior */
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 60%, #f1f5f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  /* Efecto 3D táctil con grosor físico inferior y sombra multicapa */
  box-shadow: 
    inset 0 1.5px 1px #ffffff,
    inset 0 -1px 2px rgba(15, 23, 42, 0.04),
    0 1px 0 #e2e8f0,
    0 2px 0 #cbd5e1,
    0 3px 0 #cbd5e1,
    0 4px 0 #94a3b8,
    0 12px 28px -4px rgba(15, 23, 42, 0.16),
    0 20px 45px -10px rgba(14, 165, 233, 0.12);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease, border-color 0.38s ease;
  display: flex;
  flex-direction: column;
}
.project:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(14, 165, 233, 0.45);
  /* Elevación 3D aumentada en hover con destello cian suave */
  box-shadow: 
    inset 0 2px 2px #ffffff,
    0 1px 0 #cbd5e1,
    0 3px 0 #cbd5e1,
    0 5px 0 #94a3b8,
    0 7px 0 #64748b,
    0 24px 60px -8px rgba(15, 23, 42, 0.28),
    0 16px 36px -12px rgba(14, 165, 233, 0.3);
}
.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid #e2e8f0;
}
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.project:hover .project-media img { transform: scale(1.06); }
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.4));
}
.project-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 7px;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8fafc;
  background: rgba(5, 13, 36, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.project:hover .project-tag {
  border-color: rgba(0, 240, 255, 0.55);
  background: rgba(5, 13, 36, 0.92);
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.38),
    0 6px 20px rgba(0, 240, 255, 0.18);
}
.project-body { 
  padding: 24px 24px 26px; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  background: transparent;
}
.project-body h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.project-body p { 
  color: #475569; 
  font-size: 0.9rem; 
  line-height: 1.62; 
  flex: 1; 
}
.project-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: #0284c7;
  width: fit-content;
  transition: color 0.25s, gap 0.25s;
}
.project-link svg { transition: transform 0.25s; }
.project-link:hover {
  color: #0369a1;
  gap: 12px;
}
.project-link:hover svg { transform: translateX(4px); }

/* ========================================================
   SECCIÓN LIGHT / INTERCALADA (BLANCO MODERNO & TECH)
   ======================================================== */
.section-light {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56, 189, 248, 0.12), transparent 75%);
  background-size: 32px 32px, 100% 100%;
  color: #0f172a;
}
.section-light .section-title { color: #0f172a; }
.section-light .section-sub { color: #475569; }

.section-light .kicker {
  color: #0284c7;
}
.section-light .kicker::before {
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

.section-light .neon-highlight {
  color: #0f172a;
}
.section-light .neon-highlight::before {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.5) 0%, rgba(14, 165, 233, 0.65) 50%, rgba(37, 99, 235, 0.5) 100%);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.35);
}

/* ---------- PRECIOS (SECCIÓN LIGHT / INTERCALADA) ---------- */
.pricing-mobile-tabs {
  display: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  align-items: stretch;
}

/* Tarjetas en sección Light */
.section-light .plan {
  position: relative;
  padding: 34px 26px 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.section-light .plan:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.14);
}

.section-light .plan-header {
  text-align: center;
  margin-bottom: 12px;
}
.section-light .plan-title {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.section-light .plan-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  min-height: 38px;
}

/* Price Block en Light - Centrado y alineado */
.section-light .plan-price-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 8px auto 20px;
  line-height: 1;
  text-align: center;
}
.section-light .plan-currency {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0284c7;
  margin-right: 2px;
  line-height: 1;
}
.section-light .plan-amount {
  font-family: var(--font-head);
  font-size: 2.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.02em;
}
.section-light .plan-period {
  font-family: var(--font-sub);
  font-size: 0.86rem;
  color: #64748b;
  font-weight: 600;
  margin-left: 6px;
  line-height: 1;
  white-space: nowrap;
}

.section-light .plan-divider {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin: 0 0 20px;
}

.section-light .plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 26px;
  flex: 1;
}
.section-light .plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.4;
}
.section-light .check-icon {
  flex-shrink: 0;
  color: #0284c7;
}

/* Buttons en Light */
.section-light .plan-cta {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 0.9rem;
  border-radius: 12px;
  margin-top: auto;
}
.section-light .btn-ghost.plan-cta {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 600;
}
.section-light .btn-ghost.plan-cta:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}

/* Plan Featured en Light (MÁS PEDIDO) */
.section-light .plan-featured {
  background: #ffffff;
  border: 2px solid #0284c7;
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.18), 0 0 30px rgba(56, 189, 248, 0.12);
  transform: scale(1.03);
}
.section-light .plan-featured:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 25px 60px rgba(2, 132, 199, 0.25);
}
.section-light .plan-featured .plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.45);
  white-space: nowrap;
}
.section-light .btn-primary.plan-cta {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
}

.section-light .pricing-note {
  text-align: center;
  color: #64748b;
  font-size: 0.88rem;
  margin-top: 28px;
}

/* Fallback Dark Plan */
.plan {
  position: relative;
  padding: 34px 26px 28px;
  border-radius: 20px;
  background: linear-gradient(175deg, rgba(12, 24, 52, 0.75) 0%, rgba(5, 12, 30, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.16);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
}
.plan-header { margin-bottom: 12px; }
.plan-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.plan-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.45; min-height: 38px; }
.plan-price-block { display: flex; align-items: baseline; gap: 3px; margin: 4px 0 18px; }
.plan-currency { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; color: var(--cyan); align-self: flex-start; margin-top: 4px; margin-right: 2px; }
.plan-amount { font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; color: #ffffff; line-height: 0.95; letter-spacing: -0.03em; }
.plan-period { font-size: 0.88rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
.plan-divider { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 0 0 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; flex: 1; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: #cbd5e1; line-height: 1.4; }
.check-icon { flex-shrink: 0; color: rgba(56, 189, 248, 0.65); }
.plan-cta { width: 100%; justify-content: center; padding: 13px 20px; font-size: 0.9rem; border-radius: 12px; margin-top: auto; }

/* ---------- METODOLOGÍA (SECCIÓN OSCURA) ---------- */
#proceso { background: var(--bg); }
.steps {
  --step-size: 54px;
  --step-gap: 20px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--step-gap);
  margin-top: 45px;
}
/* Conectar los bordes de los círculos sin cruzar los textos. */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--step-size) / 2 - 1px);
  left: var(--step-size);
  width: calc(100% + var(--step-gap) - var(--step-size));
  height: 2px;
  pointer-events: none;
}
.step::before { background: rgba(56, 189, 248, 0.15); }
.step::after {
  background: var(--grad);
  box-shadow: 0 0 10px var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.steps.on .step::after { transform: scaleX(1); }
.step { position: relative; min-width: 0; padding-right: 16px; }
.step-num {
  position: relative;
  z-index: 1;
  width: var(--step-size);
  height: var(--step-size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--bg-2);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyan);
  margin-bottom: 16px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.step:hover .step-num {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
  transform: scale(1.05);
}
.step h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ---------- CONTACTO (SECCIÓN LIGHT / BLANCA) ---------- */
.section-light .contact-wrap {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: hidden;
  padding: clamp(48px, 6vw, 68px) 32px;
  text-align: center;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.12), transparent 75%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 60%, #f1f5f9 100%);
  box-shadow: 
    0 20px 50px -10px rgba(15, 23, 42, 0.08),
    0 0 30px rgba(14, 165, 233, 0.08);
}
.section-light .contact-wrap h2 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.22;
  color: #0f172a;
  margin-bottom: 16px;
}
.section-light .contact-wrap p { 
  color: #475569; 
  max-width: 540px; 
  margin: 0 auto 32px; 
  font-size: 1rem;
  line-height: 1.65;
}
.section-light .contact-wrap .contact-actions { 
  display: flex; 
  gap: 14px; 
  justify-content: center; 
  flex-wrap: wrap; 
}
.section-light .contact-wrap .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
}
.section-light .contact-wrap .btn-primary:hover {
  box-shadow: 0 12px 35px rgba(2, 132, 199, 0.5);
  transform: translateY(-3px);
}
.section-light .contact-wrap .btn-ghost {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 600;
}
.section-light .contact-wrap .btn-ghost:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15);
  transform: translateY(-3px);
}
.section-light .contact-wrap .contact-note {
  margin: 24px auto 0;
  max-width: none;
  font-size: 0.86rem;
  color: #64748b;
}

/* Fallback Dark Contact */
.contact-wrap {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  overflow: hidden;
  padding: 60px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(0, 240, 255, 0.16), transparent),
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(59, 130, 246, 0.12), transparent),
    var(--bg-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.08);
}
.contact-wrap h2 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.28;
  margin-bottom: 16px;
}
.contact-wrap p { color: var(--muted); max-width: 520px; margin: 0 auto 30px; font-size: 0.98rem; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-wrap .contact-note {
  margin: 22px auto 0;
  max-width: none;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 40px;
  background: rgba(2, 6, 23, 0.9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 280px;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a, .footer-contact a {
  color: var(--muted);
  font-size: 0.88rem;
  width: fit-content;
  transition: color 0.25s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  color: var(--muted);
  font-size: 0.8rem;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET FIXES)
   ======================================================== */

@media (max-width: 940px) {
  .services-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .step::before, .step::after { display: none; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .project, .project:nth-child(1), .project:nth-child(2) { grid-column: span 3; }
}

@media (max-width: 768px) {
  .section { padding: 46px 0; }
  
  /* ---------- HERO ADAPTATION (MOBILE & TABLET - SNUG FIT) ---------- */
  .hero {
    min-height: auto;
    padding: 64px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    position: relative;
    overflow: hidden;
  }
  .hero-bg { opacity: 0.2; filter: blur(10px); }
  
  /* Video proporcional sin zoom ni recortes gigantes */
  .hero-video-frame {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    z-index: 2;
    margin: 0;
  }
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    opacity: 1;
    transform: none;
  }
  .hero-video-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.35) 0%, transparent 15%, transparent 75%, rgba(2, 6, 23, 0.6) 100%);
    pointer-events: none;
  }
  
  /* Carousel de tarjetas acoplado inmediatamente debajo del video */
  .hero-fan-wrapper {
    position: relative;
    width: 100%;
    bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    pointer-events: auto;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
    padding: 0 0 8px;
    margin-top: -10px;
  }
  .hero-fan {
    position: relative;
    width: max-content;
    height: auto;
    display: flex;
    gap: 14px;
    padding: 6px 0;
    left: auto;
    bottom: auto;
    animation: mobileHeroScroll 20s linear infinite;
  }
  .hero-fan:hover, .hero-fan:active {
    animation-play-state: paused;
  }
  @keyframes mobileHeroScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .fan-card-clone { display: block !important; }
  .fan-card {
    position: relative;
    width: 155px;
    aspect-ratio: 16 / 11;
    flex-shrink: 0;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: var(--bg-2);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }
  .fan-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--cyan);
  }
  .fan-label { font-size: 0.72rem; bottom: 8px; left: 10px; }

  /* Responsive Services & Steps */
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-wrap .neon-highlight { white-space: normal; }

  /* ---------- PRECIOS EN MÓVIL (COMPACTO EN 1 SOLA SECCIÓN) ---------- */
  .section-light .pricing-mobile-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 18px auto 8px;
    padding: 4px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    max-width: 360px;
  }
  .section-light .pricing-tab {
    flex: 1;
    padding: 7px 10px;
    font-size: 0.76rem;
    font-family: var(--font-head);
    font-weight: 600;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: all 0.25s ease;
  }
  .section-light .pricing-tab.active {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.35);
  }

  .pricing-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 14px 10px 18px;
    -webkit-overflow-scrolling: touch;
    margin-top: 6px;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }
  .pricing-grid::-webkit-scrollbar { display: none; }

  .section-light .plan {
    width: 272px;
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: 26px 20px 22px;
    border-radius: 18px;
    transform: none !important;
  }
  .section-light .plan-desc { min-height: auto; margin-bottom: 12px; font-size: 0.8rem; }
  .section-light .plan-currency { font-size: 1.25rem; font-weight: 800; }
  .section-light .plan-amount { font-size: 2.85rem; font-weight: 800; }
  .section-light .plan-period { font-size: 0.82rem; font-weight: 600; }
  .section-light .plan-divider { margin: 0 0 14px; }
  .section-light .plan-features { gap: 10px; margin-bottom: 20px; }
  .section-light .plan-features li { font-size: 0.82rem; }
  .section-light .plan-featured {
    border-color: #0284c7;
    box-shadow: 0 0 25px rgba(2, 132, 199, 0.25);
  }
  
  .step:not(:last-child)::before, .step:not(:last-child)::after {
    display: block;
    top: var(--step-size);
    left: calc(var(--step-size) / 2 - 1px);
    width: 2px;
    height: calc(100% + var(--step-gap) - var(--step-size));
  }
  .step::after { transform: scaleY(0); transform-origin: top; }
  .steps.on .step::after { transform: scaleY(1); }
  .step {
    display: grid;
    grid-template-columns: var(--step-size) minmax(0, 1fr);
    column-gap: 16px;
    align-content: start;
    padding-right: 0;
  }
  .step-num {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }
  .step h3, .step p { grid-column: 2; }
  .project, .project:nth-child(1), .project:nth-child(2) { grid-column: span 6; }

  /* Mobile Navigation Header & Menu */
  .nav {
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  }
  .nav-inner {
    padding: 12px 0;
  }
  .logo-img {
    height: 20px;
    max-width: 120px;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-cta-img {
    height: 24px;
    max-width: 120px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    z-index: 101;
    padding: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
  }
  .menu-toggle:hover {
    color: var(--cyan);
    transform: scale(1.08);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    font-size: 1.15rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-drawer-cta {
    display: inline-flex !important;
    margin-top: 10px;
    padding: 0;
  }
  .nav-drawer-cta .nav-cta-img {
    height: 36px;
    max-width: 180px;
  }
  .nav-links a {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .nav-links.open a { opacity: 1; transform: none; }
  .nav-links.open a:nth-child(1) { transition-delay: 0.08s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.14s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.20s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.26s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.32s; }
  .nav-links.open a:nth-child(6) { transition-delay: 0.38s; }
  .nav-links.open { transform: none; }
}

@media (max-width: 420px) {
  .contact-actions .btn {
    max-width: 100%;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 0.8rem;
  }
  .contact-actions .btn svg { flex-shrink: 0; }
  .logo-img {
    height: 17px;
    max-width: 100px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-cta-img {
    height: 20px;
    max-width: 100px;
  }
  .menu-toggle {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
