:root {
  --bg-dark: #07070a;
  --bg-card: rgba(13, 15, 25, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(121, 82, 255, 0.4);
  
  --primary-accent: #7952ff;
  --secondary-accent: #00f2fe;
  --tertiary-accent: #ff007f;
  --gold-accent: #ffb800;
  
  --text-main: #f5f5f7;
  --text-muted: #94a3b8;
  --text-dim: #50505a;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.text-center { text-align: center; }

/* ==========================================================================
   EXPANDED CONTAINER
   ========================================================================== */
.container {
  max-width: 1520px;
  width: 94vw;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 1000000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary-accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--secondary-accent);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 50%;
  position: absolute;
  inset: 0;
  transition: transform 0.2s ease, border-color 0.2s;
}

body.hovering-link .cursor-ring {
  transform: scale(1.6);
  border-color: var(--primary-accent);
  background: rgba(121, 82, 255, 0.12);
}

/* ==========================================================================
   BACKGROUND CANVAS (PARTICLES, NODES & STATIC RAYS BEHIND ALL IMAGES Z-INDEX: 1)
   ========================================================================== */
.bg-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   LOADER OVERLAY
   ========================================================================== */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loader-overlay.hidden {
  opacity: 0;
  transform: scale(1.05);
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-canvas-wrap {
  width: min(85vw, 580px);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.5s ease;
}

.loader-static-logo,
.loader-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 50px rgba(121, 82, 255, 0.4));
  transition: opacity 0.25s ease, filter 0.5s ease, transform 0.5s ease;
}

.loader-static-logo {
  opacity: 1;
}

.loader-canvas-wrap canvas {
  opacity: 0;
}

.loader-canvas-wrap.canvas-active .loader-static-logo {
  opacity: 0;
}

.loader-canvas-wrap.canvas-active canvas {
  opacity: 1;
}

.loader-canvas-wrap.glow-flash canvas,
.loader-canvas-wrap.glow-flash .loader-static-logo {
  filter: drop-shadow(0 0 80px rgba(0, 242, 254, 0.7)) drop-shadow(0 0 120px rgba(121, 82, 255, 0.6));
  transform: scale(1.06);
}

.loader-status {
  margin-top: 18px;
  color: var(--secondary-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 242, 254, 0.55);
}

/* ==========================================================================
   HEADER / NAVBAR WITH ENLARGED LOGO (56px)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  padding: 16px 0;
  background: rgba(7, 7, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 56px;
  max-height: 58px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.logo-link:hover .brand-logo-img {
  transform: scale(1.06);
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  cursor: pointer !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: #fff;
  box-shadow: 0 4px 18px rgba(121, 82, 255, 0.35);
}

.btn-primary:hover, .btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.78rem;
}

/* ==========================================================================
   SCROLL MOTION LAYOUT
   ========================================================================== */
.scroll-motion-wrapper {
  position: relative;
  height: 650vh;
  z-index: 10;
}

/* STICKY CONTAINER FOR 3D CANVAS RIGHT ALIGNED (ABOVE BG PARTICLES Z-INDEX: 10) */
.sticky-frame-container {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.sticky-layout-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.sticky-spacer-left {
  flex: 1;
}

.sticky-canvas-right {
  width: 48%;
  max-width: 780px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none !important;
  position: relative;
  z-index: 10;
  perspective: 1200px;
}

.hero-canvas-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 25;
  opacity: 0;
  transform: scale(0.82) rotateY(-16deg) translateY(40px);
  filter: blur(12px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease, filter 1.2s ease;
  will-change: transform, opacity, filter;
}

.hero-canvas-wrap.canvas-in-view {
  opacity: 1;
  transform: scale(1) rotateY(0deg) translateY(0);
  filter: blur(0px);
  animation: canvasFloatBreath 6.5s infinite ease-in-out alternate;
}

@keyframes canvasFloatBreath {
  0% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg) scale(1);
    filter: drop-shadow(0 0 35px rgba(0, 242, 254, 0.25));
  }
  50% {
    transform: translateY(-12px) rotateX(2.5deg) rotateY(3.5deg) scale(1.02);
    filter: drop-shadow(0 0 55px rgba(255, 0, 127, 0.35));
  }
  100% {
    transform: translateY(8px) rotateX(-2deg) rotateY(-3deg) scale(0.985);
    filter: drop-shadow(0 0 45px rgba(121, 82, 255, 0.3));
  }
}

.frame-counter-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(7, 7, 10, 0.88);
  border: 1px solid var(--secondary-accent);
  color: var(--secondary-accent);
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 100px;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
  z-index: 100 !important;
  pointer-events: none;
  letter-spacing: 1.5px;
}

.hero-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 65px rgba(121, 82, 255, 0.3));
  position: relative;
  z-index: 30;
}

/* Scroll Hint */
.scroll-hint {
  display: none !important;
}

.mouse-icon {
  width: 18px;
  height: 30px;
  border: 2px solid var(--text-muted);
  border-radius: 100px;
  position: relative;
}

.mouse-wheel {
  width: 3px;
  height: 6px;
  background: var(--secondary-accent);
  border-radius: 100px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 1.8s infinite ease-in-out;
}

@keyframes wheelScroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}

.hint-text {
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ==========================================================================
   SCROLL SECTIONS & ANIMATION ENTRANCE EFFECTS
   ========================================================================== */
.scroll-content-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500 !important;
  pointer-events: auto !important;
}

.motion-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 600 !important;
  pointer-events: auto !important;
}

.section-hero {
  padding-top: 40px;
}

.motion-section *,
.hero-content-left,
.hero-btns,
.btn,
.nav-link,
.pricing-motion-wrapper,
.pricing-card,
.btn-plan-select,
.contact-section-wrapper,
.contact-form-card,
.futuristic-form,
.form-group,
input,
select,
textarea,
button,
label {
  pointer-events: auto !important;
}

.hero-btns,
.btn,
.btn-plan-select,
input,
select,
textarea,
button {
  position: relative;
  z-index: 99999 !important;
}

/* SCROLL REVEAL ENTRANCE EFFECT */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* LEFT SIDE HERO & FILOSOFÍA CONTENT */
.hero-content-left, .info-text-clean {
  width: 48%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 25;
}

@media (max-width: 1100px) {
  .hero-content-left, .info-text-clean, .services-block-left, .pricing-motion-wrapper, .contact-section-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .sticky-canvas-right {
    display: none;
  }
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--secondary-accent);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--secondary-accent) 70%, var(--primary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #ffffff 10%, var(--secondary-accent) 50%, var(--tertiary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slogan-typewriter {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dynamic-highlight {
  color: var(--secondary-accent);
  font-weight: 700;
}

.cursor-blink {
  animation: blink 1s infinite;
  color: var(--primary-accent);
}

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--secondary-accent);
  text-transform: uppercase;
}

.glow-badge {
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

/* ==========================================================================
   SERVICIOS DE ALTO IMPACTO (2X2 CLEAN GLASS CARD BOXES)
   ========================================================================== */
.services-block-left {
  width: 48%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
  z-index: 25;
}

.premium-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
  width: 100%;
}

/* SECTION 3 STAGGERED ENTRANCE REVEAL */
.services-block-left.scroll-reveal .premium-service-card {
  opacity: 0;
  transform: translateY(35px) scale(0.92);
  filter: blur(10px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.services-block-left.scroll-reveal.in-view .premium-service-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

.services-block-left.scroll-reveal.in-view .premium-service-card:nth-child(1) { transition-delay: 0.1s; }
.services-block-left.scroll-reveal.in-view .premium-service-card:nth-child(2) { transition-delay: 0.22s; }
.services-block-left.scroll-reveal.in-view .premium-service-card:nth-child(3) { transition-delay: 0.34s; }
.services-block-left.scroll-reveal.in-view .premium-service-card:nth-child(4) { transition-delay: 0.46s; }

.premium-service-card {
  background: rgba(13, 15, 25, 0.88);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 25;
}

.premium-service-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-accent);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.2);
}

.service-glow-aura {
  display: none !important;
}

.service-icon-wrap {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  margin-bottom: 6px;
}

.service-icon-wrap.icon-cyan { color: #00f2fe !important; background: transparent !important; }
.service-icon-wrap.icon-purple { color: #7952ff !important; background: transparent !important; }
.service-icon-wrap.icon-magenta { color: #ff007f !important; background: transparent !important; }
.service-icon-wrap.icon-gold { color: #ffb800 !important; background: transparent !important; }

.service-cat {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cat-cyan { color: #00f2fe; }
.cat-purple { color: #7952ff; }
.cat-magenta { color: #ff007f; }
.cat-gold { color: #ffb800; }

.premium-service-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.premium-service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   MAIN COPY CINEMATIC MOTION REVEAL
   ========================================================================== */
#filosofia .info-text-clean,
#servicios .services-block-left {
  --copy-glow: rgba(0, 242, 254, 0.34);
  transform-style: preserve-3d;
  perspective: 900px;
}

#filosofia .info-text-clean::before,
#servicios .services-block-left::before {
  content: none !important;
  display: none !important;
}

#filosofia .info-text-clean.in-view::before,
#servicios .services-block-left.in-view::before {
  animation: none !important;
}

#filosofia .info-text-clean .section-tag,
#filosofia .info-text-clean .section-title,
#filosofia .info-text-clean .section-desc,
#servicios .services-block-left .section-tag,
#servicios .services-block-left .section-title,
#servicios .services-block-left .section-desc {
  opacity: 0;
  transform: translate3d(-28px, 24px, 0) rotateX(14deg);
  filter: blur(16px);
  transform-origin: left center;
  will-change: opacity, transform, filter, text-shadow;
}

#filosofia .info-text-clean.in-view .section-tag,
#servicios .services-block-left.in-view .section-tag {
  animation: copySignalIn 0.78s cubic-bezier(0.16, 1, 0.3, 1) 0.03s both;
}

#filosofia .info-text-clean.in-view .section-title,
#servicios .services-block-left.in-view .section-title {
  animation: copyTitleIgnite 0.96s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

#filosofia .info-text-clean.in-view .section-desc,
#servicios .services-block-left.in-view .section-desc {
  animation: copySignalIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

#servicios .services-block-left.scroll-reveal .premium-service-card {
  transform: translate3d(0, 42px, 0) rotateX(18deg) scale(0.9);
  box-shadow: 0 0 0 rgba(0, 242, 254, 0);
}

#servicios .services-block-left.in-view .premium-service-card {
  animation: serviceCardMaterialize 0.98s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#servicios .services-block-left.in-view .premium-service-card:nth-child(1) { animation-delay: 0.42s; }
#servicios .services-block-left.in-view .premium-service-card:nth-child(2) { animation-delay: 0.54s; }
#servicios .services-block-left.in-view .premium-service-card:nth-child(3) { animation-delay: 0.66s; }
#servicios .services-block-left.in-view .premium-service-card:nth-child(4) { animation-delay: 0.78s; }

#servicios .premium-service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 8%, rgba(0, 242, 254, 0.24), rgba(255, 0, 127, 0.18), transparent 72%);
  opacity: 0;
  transform: translateX(-115%);
}

#servicios .services-block-left.in-view .premium-service-card::before {
  animation: cardLightScan 1.05s ease-out both;
}

#servicios .services-block-left.in-view .premium-service-card:nth-child(1)::before { animation-delay: 0.58s; }
#servicios .services-block-left.in-view .premium-service-card:nth-child(2)::before { animation-delay: 0.70s; }
#servicios .services-block-left.in-view .premium-service-card:nth-child(3)::before { animation-delay: 0.82s; }
#servicios .services-block-left.in-view .premium-service-card:nth-child(4)::before { animation-delay: 0.94s; }

@keyframes copyEnergySweep {
  0% {
    opacity: 0;
    transform: translate3d(-58px, 16px, 0) skewX(-18deg);
    filter: blur(18px);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) skewX(0);
    filter: blur(2px);
  }
}

@keyframes copySignalIn {
  0% {
    opacity: 0;
    transform: translate3d(-32px, 26px, 0) rotateX(16deg);
    filter: blur(16px);
    text-shadow: none;
  }
  58% {
    opacity: 1;
    text-shadow: 0 0 28px var(--copy-glow);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg);
    filter: blur(0);
  }
}

@keyframes copyTitleIgnite {
  0% {
    opacity: 0;
    transform: translate3d(-36px, 34px, 0) rotateX(18deg) scale(0.96);
    filter: blur(18px);
    letter-spacing: 0;
    text-shadow: none;
  }
  45% {
    opacity: 1;
    transform: translate3d(4px, -2px, 0) rotateX(0deg) scale(1.015);
    filter: blur(2px);
    text-shadow: 0 0 34px rgba(0, 242, 254, 0.34), 0 0 46px rgba(121, 82, 255, 0.18);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0);
    text-shadow: 0 0 0 rgba(0, 242, 254, 0);
  }
}

@keyframes serviceCardMaterialize {
  0% {
    opacity: 0;
    transform: translate3d(0, 46px, 0) rotateX(20deg) scale(0.9);
    filter: blur(16px) saturate(1.25);
    border-color: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 0 rgba(0, 242, 254, 0);
  }
  58% {
    opacity: 1;
    transform: translate3d(0, -7px, 0) rotateX(-2deg) scale(1.018);
    filter: blur(1px) saturate(1.35);
    border-color: rgba(0, 242, 254, 0.52);
    box-shadow: 0 24px 65px rgba(0, 242, 254, 0.18), 0 0 34px rgba(121, 82, 255, 0.14);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0) saturate(1);
  }
}

@keyframes cardLightScan {
  0% {
    opacity: 0;
    transform: translateX(-115%);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(115%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #filosofia .info-text-clean::before,
  #servicios .services-block-left::before,
  #filosofia .info-text-clean .section-tag,
  #filosofia .info-text-clean .section-title,
  #filosofia .info-text-clean .section-desc,
  #servicios .services-block-left .section-tag,
  #servicios .services-block-left .section-title,
  #servicios .services-block-left .section-desc,
  #servicios .services-block-left .premium-service-card,
  #servicios .premium-service-card::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ==========================================================================
   PRICING SECTION FIXED VIEWPORT OVERLAY (GUARANTEED CLICKABLE BUTTONS)
   ========================================================================== */
.section-pricing {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-motion-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 8000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  padding: 0 40px;
  will-change: opacity, transform;
}

.pricing-motion-wrapper * {
  pointer-events: auto !important;
}

.pricing-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 1520px;
  margin-bottom: 16px;
  position: relative;
  z-index: 9000 !important;
  pointer-events: auto !important;
}

.promo-highlight {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tertiary-accent);
  margin-top: 4px;
}

/* PRICING CONTROLS & NAV ARROWS */
.pricing-controls-group {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2000 !important;
  pointer-events: auto !important;
}

.pricing-nav-arrows {
  display: flex;
  gap: 8px;
}

.pricing-arrow-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--secondary-accent);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  pointer-events: auto !important;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2001 !important;
}

.pricing-arrow-btn:hover {
  background: var(--secondary-accent);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

/* CAROUSEL WRAPPER WITH FLOATING SIDE ARROWS */
.pricing-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1520px;
  display: flex;
  align-items: center;
  z-index: 1000 !important;
  pointer-events: auto !important;
}

/* FLOATING SIDE ARROW BUTTONS (DESKTOP: HIDDEN) */
.pricing-side-arrow {
  display: none !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--secondary-accent);
  color: var(--secondary-accent);
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 2500 !important;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-side-arrow:hover {
  background: var(--secondary-accent);
  color: #000;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.85);
  transform: translateY(-50%) scale(1.12);
}

.pricing-side-arrow.side-left {
  left: -22px;
}

.pricing-side-arrow.side-right {
  right: -22px;
}

/* MOBILE SWIPE HINT BADGE */
.mobile-swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--secondary-accent);
  margin-top: 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 8px 18px;
  border-radius: 100px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.mobile-swipe-hint .pulse-arrow {
  animation: pulseArrow 1.5s infinite alternate;
}

@keyframes pulseArrow {
  0% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* BILLING SWITCHER (FULLY CLICKABLE) */
.billing-switch-wrapper {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 100px;
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 9000 !important;
  pointer-events: auto !important;
}

.switch-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 9999 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-btn.active {
  background: linear-gradient(135deg, var(--primary-accent), var(--tertiary-accent));
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 0, 127, 0.4);
}

/* PRICING CARDS FLYING GRID */
.pricing-flying-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 1520px;
  perspective: 1400px;
  position: relative;
  z-index: 1000 !important;
  pointer-events: auto !important;
}

@media (max-width: 1100px) {
  .pricing-motion-wrapper {
    z-index: 1500 !important;
  }

  .sticky-layout-grid, .sticky-frame-container {
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .pricing-flying-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 14px 10px 24px 10px !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    touch-action: pan-x !important;
    cursor: grab;
    user-select: none;
  }

  .pricing-flying-grid.active-drag {
    cursor: grabbing !important;
  }

  .pricing-card {
    flex: 0 0 82vw !important;
    max-width: 310px !important;
    min-width: 270px !important;
    scroll-snap-align: center !important;
    pointer-events: auto !important;
    user-select: none;
  }
}

.pricing-card {
  background: rgba(13, 15, 25, 0.88);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 355px;
  position: relative;
  pointer-events: auto !important;
  z-index: 8500 !important;
  will-change: transform, opacity, filter;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card * {
  pointer-events: auto !important;
}

.pricing-card:hover {
  border-color: var(--secondary-accent) !important;
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.25) !important;
  z-index: 9500 !important;
}

.pricing-card.popular {
  border-color: var(--border-highlight);
  background: linear-gradient(180deg, rgba(121, 82, 255, 0.18) 0%, rgba(13, 15, 25, 0.92) 100%);
  box-shadow: 0 10px 40px rgba(121, 82, 255, 0.25);
}

.pricing-card.support-plan-mode .price-box,
.pricing-card.support-mode .promo-pill {
  display: none;
}

.pricing-card.support-optional-mode {
  border-color: rgba(0, 242, 254, 0.32);
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.1) 0%, rgba(13, 15, 25, 0.92) 100%);
  box-shadow: 0 12px 34px rgba(0, 242, 254, 0.14);
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--tertiary-accent), var(--primary-accent));
  color: #fff;
  padding: 3px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}

.pricing-card-header h4 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.promo-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 999px;
  color: var(--secondary-accent);
  background: rgba(0, 242, 254, 0.07);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.price-box {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.price-box s {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.pricing-term {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.pricing-features li {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.support-explainer {
  color: var(--text-main) !important;
  font-size: 0.7rem !important;
  opacity: 0.82;
}

.support-tier {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.support-tier span {
  color: var(--text-main);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.support-tier strong {
  color: var(--secondary-accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.support-tier small {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.66rem;
  line-height: 1.28;
}

.btn-price-action {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 9999 !important;
}

.pricing-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
}

.pricing-actions .btn-price-action {
  min-width: 0;
}

.btn-plan-info {
  width: auto;
  min-width: 82px;
  padding-left: 12px;
  padding-right: 12px;
  color: var(--secondary-accent);
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.08);
}

.support-pricing-active .btn-plan-info {
  display: none;
}

.pricing-card.support-mode .pricing-actions {
  grid-template-columns: 1fr;
}

.pricing-card.support-optional-mode .btn-price-action {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.46);
  color: var(--secondary-accent);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.12);
}

.pricing-card.support-optional-mode .btn-price-action:hover {
  background: var(--secondary-accent);
  color: #02040a;
}

.btn-price-action:hover {
  background: var(--secondary-accent);
  color: #000;
  border-color: var(--secondary-accent);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
}

.btn-popular {
  background: linear-gradient(135deg, var(--primary-accent), var(--tertiary-accent));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(121, 82, 255, 0.4);
}

.btn-popular:hover {
  box-shadow: 0 6px 30px rgba(255, 0, 127, 0.6);
  color: #fff;
}

.pricing-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  opacity: 0.75;
  text-align: center;
  line-height: 1.5;
  margin-top: 12px;
  max-width: 1520px;
  width: 100%;
}

.pricing-support-clarifier {
  display: none;
  width: min(880px, 92vw);
  margin: 12px auto 0;
  padding: 10px 16px;
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.08);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 0 28px rgba(0, 242, 254, 0.12);
}

.support-pricing-active .pricing-support-clarifier {
  display: block;
}

.support-pricing-active .pricing-note {
  display: none;
}

.ecommerce-support-note {
  width: min(760px, 92vw);
  margin: 10px auto 0;
  padding: 9px 14px;
  border: 1px solid rgba(255, 184, 0, 0.32);
  border-radius: 12px;
  background: rgba(255, 184, 0, 0.08);
  color: #ffe5a3;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

/* ==========================================================================
   SECTION 5: CONTACTO
   ========================================================================== */
.section-contacto {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500 !important;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 80px 0 60px 0;
  will-change: opacity, transform;
}

.contact-section-wrapper {
  width: 100%;
  position: relative;
  z-index: 1000 !important;
  pointer-events: auto !important;
}

.contact-section-wrapper * {
  pointer-events: auto !important;
}

.contact-grid {
  display: grid !important;
  grid-template-columns: 0.95fr 1.05fr !important;
  gap: 40px !important;
  align-items: center !important;
  position: relative;
  z-index: 1000 !important;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

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

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(13, 15, 25, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 16px;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-cyan { background: rgba(0, 242, 254, 0.12); color: var(--secondary-accent); }
.icon-purple { background: rgba(121, 82, 255, 0.12); color: var(--primary-accent); }
.icon-gold { background: rgba(255, 184, 0, 0.12); color: var(--gold-accent); }

.channel-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.channel-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s;
}

.channel-val:hover {
  color: var(--secondary-accent);
}

.contact-form-card {
  background: rgba(13, 15, 25, 0.88);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1500 !important;
  pointer-events: auto !important;
}

.futuristic-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1600 !important;
  pointer-events: auto !important;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1700 !important;
  pointer-events: auto !important;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--secondary-accent);
  cursor: pointer !important;
  pointer-events: auto !important;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  pointer-events: auto !important;
  cursor: text !important;
  position: relative;
  z-index: 1800 !important;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--secondary-accent);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.form-group select option {
  background: #0d0f19;
  color: #fff;
}

/* CAPTCHA ANTI-BOT WIDGET STYLES */
.cyber-captcha-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 20px;
  transition: border-color 0.3s, background 0.3s;
}

.cyber-captcha-card:hover {
  border-color: var(--secondary-accent);
  background: rgba(0, 242, 254, 0.05);
}

.captcha-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer !important;
  user-select: none;
}

.captcha-checkbox-label input {
  display: none;
}

.custom-chk {
  width: 22px;
  height: 22px;
  border: 2px solid var(--secondary-accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.captcha-checkbox-label input:checked + .custom-chk {
  background: var(--secondary-accent);
  box-shadow: 0 0 12px var(--secondary-accent);
}

.captcha-checkbox-label input:checked + .custom-chk::after {
  content: '✓';
  color: #000;
  font-weight: 900;
  font-size: 0.85rem;
}

.chk-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.captcha-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.form-status-msg {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  display: none;
}

.form-status-msg.success {
  display: block;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--secondary-accent);
  color: var(--secondary-accent);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

.form-status-msg.error {
  display: block;
  background: rgba(255, 0, 127, 0.12);
  border: 1px solid var(--tertiary-accent);
  color: var(--tertiary-accent);
}

.btn-submit-glow {
  width: 100%;
  padding: 14px;
  font-size: 0.92rem;
  margin-top: 10px;
}

/* ==========================================================================
   MULTI-PAGE STYLES (QUIÉNES SOMOS & SERVICIOS) - 2 COLUMN GRID LAYOUTS
   ========================================================================== */
.multipage-wrapper {
  padding-top: 60px;
  position: relative;
  z-index: 10;
}

.page-content-section {
  position: relative;
  z-index: 10;
  background: transparent !important;
}

.multipage-grid-split {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: 60px !important;
  align-items: flex-start !important;
  position: relative;
  z-index: 10;
}

.multipage-grid-split.align-center {
  align-items: center !important;
}

/* 2-COLUMN GRID FOR SERVICIOS (LEFT: TEXT NARRATIVE, RIGHT: 3D DEATH STAR) */
.multipage-grid-3d {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 50px !important;
  align-items: center !important;
  position: relative;
  z-index: 10;
}

.services-full-narrative {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services-3d-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.death-star-3d-container {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: none !important;
  box-shadow: none !important;
}

model-viewer#death-star-viewer {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: transparent !important;
}

/* EJES CREATIVOS ACCORDION STYLES */
.ejes-text-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ejes-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.accordion-item {
  background: rgba(13, 15, 25, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active {
  border-color: var(--primary-accent);
  background: rgba(13, 15, 25, 0.92);
  box-shadow: 0 10px 30px rgba(121, 82, 255, 0.2);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer !important;
  user-select: none;
}

.accordion-header * {
  cursor: pointer !important;
}

.acc-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary-accent);
  transition: color 0.3s;
}

.accordion-item.active .acc-title {
  color: var(--secondary-accent);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

.acc-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s;
}

.accordion-item.active .acc-icon {
  color: var(--secondary-accent);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 28px;
}

.accordion-item.active .accordion-content {
  max-height: 180px;
  padding: 0 28px 24px 28px;
}

.accordion-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .multipage-grid-split, .multipage-grid-3d {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

.narrative-paragraph {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.highlight-lead {
  font-size: 1.18rem;
  color: var(--text-main);
}

.narrative-visual-box {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 15;
}

/* MOCKUP 3D INTERACTIVE CARD WITH MOUSE PARALLAX */
.mockup-interactive-card {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 242, 254, 0.15);
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
  perspective: 1000px;
  z-index: 20;
}

.mockup-interactive-card:hover {
  border-color: var(--secondary-accent);
  box-shadow: 0 30px 80px rgba(0, 242, 254, 0.4), 0 0 50px rgba(121, 82, 255, 0.3);
}

.mockup-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  position: relative;
  z-index: 25;
}

/* METODOLOGÍA DE TRABAJO SCROLL INTERACTIVE VERTICAL CARDS (SOFT GRADIENT TRANSITIONS - NO HARD CUTS) */
.bg-dark-glass {
  background: linear-gradient(180deg, transparent 0%, rgba(13, 15, 25, 0.55) 20%, rgba(13, 15, 25, 0.55) 80%, transparent 100%) !important;
  border-top: none !important;
  border-bottom: none !important;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
}

.section-brain-dark {
  background: linear-gradient(180deg, transparent 0%, rgba(7, 7, 10, 0.85) 25%, #07070a 100%) !important;
  border-top: none !important;
  position: relative;
  z-index: 10;
}

.glowing-section-divider {
  width: 65%;
  max-width: 850px;
  height: 1px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, rgba(0, 242, 254, 0.4) 0%, rgba(121, 82, 255, 0.15) 50%, transparent 80%);
  border: none;
  position: relative;
  z-index: 15;
}

.experience-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 960px;
  position: relative;
  z-index: 15;
}

.exp-item-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 25px;
  background: rgba(13, 15, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 34px;
  border-radius: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
  will-change: transform, border-color, box-shadow;
  position: relative;
  z-index: 20;
}

.exp-item-card.scroll-interactive-card {
  opacity: 0.5;
  transform: scale(0.97) translateX(-20px);
}

.exp-item-card.scroll-interactive-card.active-scroll-card {
  opacity: 1 !important;
  transform: scale(1.03) translateX(15px) !important;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.12) 0%, rgba(13, 15, 25, 0.92) 100%) !important;
  border-color: var(--tertiary-accent) !important;
  box-shadow: 0 16px 45px rgba(255, 0, 127, 0.35), 0 0 25px rgba(0, 242, 254, 0.25) !important;
}

.exp-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--tertiary-accent);
  transition: color 0.3s, text-shadow 0.3s;
}

.exp-item-card.active-scroll-card .exp-num {
  color: var(--secondary-accent) !important;
  text-shadow: 0 0 16px var(--secondary-accent) !important;
}

.exp-content h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.exp-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* COMPAÑEROS DE LA I.A CYBERPUNK BRAIN */
.ai-visual-wrapper {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: visible;
  z-index: 20;
}

.ai-brain-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  position: relative;
  z-index: 25;
}

/* FLOATING SCROLL TO TOP BUTTON (RIGHT SIDE) */
.scroll-top-btn {
  position: fixed;
  bottom: 116px;
  right: 28px;
  width: 50px;
  height: 50px;
  background: rgba(13, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  color: var(--secondary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  border-color: var(--secondary-accent);
  background: rgba(0, 242, 254, 0.15);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.4);
}

/* FLOATING WHATSAPP BUTTON (RIGHT SIDE) */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 20;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.instagram-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.instagram-footer-link svg {
  stroke: var(--secondary-accent);
  transition: all 0.3s ease;
}

.instagram-footer-link:hover {
  color: var(--primary-accent);
  transform: translateY(-2px);
}

.instagram-footer-link:hover svg {
  stroke: var(--primary-accent);
  filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.8));
}

/* ==========================================================================
   ULTRA-RESPONSIVE MEDIA QUERIES (MOBILE, TABLET, DESKTOP)
   ========================================================================== */

/* HAMBURGER TOGGLE BUTTON */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer !important;
  z-index: 2000;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 4px;
  transition: all 0.3s ease;
}

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

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

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

/* RESPONSIVE BREAKPOINT: LAPTOPS & TABLETS (<= 1100px) */
@media (max-width: 1100px) {
  .pricing-flying-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* RESPONSIVE BREAKPOINT: TABLETS & MOBILE (<= 992px) */
@media (max-width: 992px) {
  .container {
    width: 92vw;
    padding: 0 20px;
  }

  .brand-logo-img {
    height: 46px;
    max-height: 48px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(7, 7, 10, 0.96);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  }

  .nav-links.mobile-open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1rem;
  }

  .sticky-layout-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100vw !important;
    height: 100vh !important;
    position: absolute !important;
    top: 0;
    left: 0;
    pointer-events: none !important;
  }

  .sticky-spacer-left {
    display: none !important;
  }

  .sticky-canvas-right {
    display: flex !important;
    width: 100vw !important;
    height: 100vh !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }

  .hero-canvas-wrap {
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #main-frame-canvas {
    width: 95vw !important;
    max-width: 620px !important;
    height: auto !important;
    max-height: 70vh !important;
    object-fit: contain !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 65px rgba(121, 82, 255, 0.45)) !important;
  }

  .hero-content-left, .info-text-clean, .services-block-left {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    z-index: 10;
  }

  .section-pricing {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-motion-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 75px 16px 75px 16px !important;
    justify-content: flex-start !important;
  }

  .pricing-side-arrow {
    display: flex !important;
  }

  .pricing-side-arrow.side-left {
    left: 4px !important;
  }

  .pricing-side-arrow.side-right {
    right: 4px !important;
  }

  .pricing-header-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .section-contacto {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-top: 75px !important;
    padding-bottom: 60px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 1500 !important;
  }

  .contact-section-wrapper {
    padding: 10px 0 40px 0 !important;
    margin-bottom: 30px !important;
    position: relative !important;
    z-index: 1500 !important;
  }

  .contact-grid {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .contact-form-card {
    padding: 22px 18px !important;
    border-radius: 20px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  }

  .contact-info-panel {
    text-align: center !important;
    margin-top: 10px !important;
  }

  .contact-channels {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 16px !important;
  }

  .contact-channel-item {
    text-align: left !important;
  }

  .futuristic-form {
    gap: 14px !important;
  }

  .form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
  }

  .scroll-hint {
    display: none !important;
  }
}

/* RESPONSIVE BREAKPOINT: SMALL MOBILE (<= 640px) */
@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2.0rem, 7.5vw, 3.2rem) !important;
  }

  .section-title {
    font-size: clamp(1.8rem, 6.5vw, 2.8rem) !important;
  }

  .pricing-flying-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 10px 6px 20px 6px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .pricing-card {
    flex: 0 0 84vw !important;
    max-width: 310px !important;
    scroll-snap-align: center !important;
  }

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

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .contact-form-card {
    padding: 18px 16px !important;
  }

  .cyber-captcha-card {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
    padding: 10px 12px !important;
  }

  .exp-item-card {
    grid-template-columns: 45px 1fr !important;
    gap: 14px !important;
    padding: 18px 20px !important;
  }

  .exp-num {
    font-size: 1.3rem !important;
  }

  .death-star-3d-container {
    max-width: 100%;
  }

  model-viewer#death-star-viewer {
    height: 400px !important;
    min-height: 360px !important;
  }
}
