/* CSS RESET & VARIABLES */
:root {
  --bg-dark: #030305;
  --bg-panel: rgba(20, 20, 25, 0.4);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  
  --brand-violet: #8b5cf6;
  --brand-purple: #c084fc;
  --brand-teal: #2dd4bf;
  --brand-pink: #f472b6;
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  cursor: none; /* For custom cursor */
}
#smooth-wrapper { overflow: hidden; width: 100%; max-width: 100vw; position: relative; }

/* Lenis Smooth Scroll Recommended CSS */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* CUSTOM CURSOR */
.custom-cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
.custom-cursor-follower {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-hover .custom-cursor { width: 60px; height: 60px; background: rgba(255,255,255,0.1); mix-blend-mode: normal; backdrop-filter: blur(4px); }
.cursor-hover .custom-cursor-follower { width: 0; height: 0; opacity: 0; }

/* UTILS */
.container { width: 90%; max-width: 1300px; margin: 0 auto; }
.section { padding: 8rem 0; position: relative; z-index: 2; }
.glass {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
}
.text-glow {
  background: linear-gradient(to right, var(--brand-purple), var(--brand-violet));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
}
.text-teal {
  background: linear-gradient(to right, #4ade80, var(--brand-teal));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(45, 212, 191, 0.4);
}

/* BACKGROUNDS */
.bg-noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
}
.bg-glow {
  position: fixed; top: -20%; left: 0%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(60px); z-index: 0; pointer-events: none;
  transition: transform 0.1s ease-out;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.8rem;
  background: #fff; color: #000;
  text-decoration: none; font-weight: 700;
  border-radius: 50px;
  font-family: var(--font-body);
  position: relative; overflow: hidden;
}
.btn-primary .btn-text { position: relative; z-index: 2; }
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--brand-violet);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover .btn-text { color: #fff; }
.btn-large { padding: 1.2rem 3rem; font-size: 1.2rem; }

/* TYPOGRAPHY */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.03em; }

/* PRELOADER */
.preloader {
  position: fixed; inset: 0; background: var(--bg-dark); z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.muyska-spinner {
  width: 50px; height: 50px;
  border: 2px solid rgba(255,255,255,0.05);
  border-top-color: var(--brand-violet);
  border-right-color: var(--brand-pink);
  border-radius: 50%;
  animation: spinLoader 0.8s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(139,92,246,0.3);
}
@keyframes spinLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* NAV */
.navbar { 
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 1rem 0; 
  background: rgba(3, 3, 5, 0.85); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(139,92,246,0.1);
}
.navbar::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-violet), var(--brand-teal), transparent);
  opacity: 0.5;
}
.navbar__inner { display: flex; justify-content: space-between; align-items: center; }
.navbar__logo { display: flex; align-items: center; max-height: 44px; }
.navbar__logo img { height: 44px; width: auto; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,255,255,0.2)); }
.navbar__links { display: flex; gap: 2.5rem; list-style: none; }
.navbar__links a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.95rem; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 10vh; }
.hero__label { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; text-transform: uppercase; margin-top: 5rem; margin-bottom: 2rem; letter-spacing: 0.1em; }
.hero__title { font-size: clamp(2.8rem, 5.5vw, 6.5rem); text-transform: uppercase; margin-bottom: 2rem; letter-spacing: -0.02em; line-height: 1.1; }
.line { overflow: hidden; padding-bottom: 10px; }
.line span { display: block; }
.hero__sub { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-muted); max-width: 600px; line-height: 1.6; }
.hero__scroll { position: absolute; bottom: 40px; left: 5%; display: flex; align-items: center; gap: 1rem; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hero__scroll-line { width: 1px; height: 60px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: #fff; animation: scrollDown 2s infinite ease-in-out; }
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }

/* SECTION COMMON */
.section__header { margin-bottom: 4rem; }
.section__label { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--brand-violet); margin-bottom: 1rem; }
.section__title { font-size: clamp(3rem, 5vw, 5rem); }

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 1.5rem;
}
.bento-item { display: flex; flex-direction: column; padding: 2.5rem; transition: transform 0.4s ease, border-color 0.4s ease; cursor: pointer; }
.bento-item:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); }
.bento-large { grid-column: span 2; }
.bento-wide { grid-column: span 4; }
.bento-half { grid-column: span 2; }
.bento-content { display: flex; flex-direction: column; height: 100%; justify-content: flex-end; }
.icon-wrap { font-size: 3rem; margin-bottom: auto; }
.color-teal { color: var(--brand-teal); }
.color-violet { color: var(--brand-violet); }
.color-pink { color: var(--brand-pink); }
.color-orange { color: #fb923c; }
.bento-item h3 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.bento-large h3 { font-size: 2.5rem; }
.bento-item p { color: var(--text-muted); line-height: 1.6; }
.bento-row { flex-direction: row; align-items: center; gap: 3rem; }
.bento-row .icon-wrap { margin-bottom: 0; font-size: 4rem; }

/* MARQUEE */
.marquee-section { padding: 4rem 0; background: var(--brand-violet); color: #000; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); transform: rotate(-2deg) scale(1.05); }
.marquee-track { display: flex; width: max-content; animation: marquee 20s linear infinite; }
.marquee-content { display: flex; align-items: center; }
.marquee-content span { font-family: var(--font-display); font-size: 4rem; font-weight: 700; white-space: nowrap; padding: 0 2rem; }
.marquee-content .dot { font-size: 2rem; }
@keyframes marquee { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

/* SYSTEMS OVERLAY (MOCKUPS) */
.systems-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.system-card { padding: 3rem; display: flex; flex-direction: column; gap: 2rem; }
.system-card__img { height: 250px; background: rgba(0,0,0,0.5); border-radius: 12px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.qr-anim { position: absolute; inset: 20%; background: repeating-linear-gradient(45deg, transparent, transparent 10px, var(--brand-teal) 10px, var(--brand-teal) 12px); opacity: 0.3; }
.system-card__info h3 { font-size: 2rem; margin-bottom: 1rem; }
.system-card__info p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.system-features { list-style: none; display: flex; gap: 1.5rem; color: #fff; }
.system-features i { color: var(--brand-teal); margin-right: 0.5rem; }

/* CONTACT & FOOTER */
.contact__container { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__title { font-size: clamp(4rem, 8vw, 8rem); margin-bottom: 3rem; }
.contact__email { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); color: #fff; text-decoration: none; position: relative; margin-bottom: 4rem; display: inline-block; }
.contact__email::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: var(--brand-violet); transform: scaleX(0); transform-origin: right; transition: transform 0.4s; }
.contact__email:hover::after { transform: scaleX(1); transform-origin: left; }
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 3rem 0; margin-top: 4rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); }
.footer__socials { display: flex; gap: 1.5rem; }
.footer__socials a { color: #fff; font-size: 1.2rem; }


/* WHY GRID */
.why-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
}
.why-grid .bento-item { padding: 2.2rem; gap: 1rem; align-items: flex-start; }
.why-grid h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.why-grid p { font-size: 0.95rem; }

/* PROCESS TIMELINE */
.process-timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.process-step {
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--brand-teal);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.process-step:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(45,212,191,0.1); border-color: #fff; }
.process-num {
  font-family: var(--font-display); font-size: 4rem; color: rgba(255,255,255,0.05);
  position: absolute; top: 0rem; right: 1rem; font-weight: 700; pointer-events: none;
}
.process-step h3 { font-size: 1.4rem; margin-top: 1.5rem; }
.process-step p { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.5rem; }

/* PLANS GRID */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.plan-card { padding: 3rem 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; position: relative; border-radius: 20px;}
.plan-featured { border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 0 40px rgba(139, 92, 246, 0.1); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand-violet); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.5rem 1.2rem; border-radius: 20px; letter-spacing: 0.1em; }
.plan-name { font-size: 2.5rem; }
.plan-desc { color: var(--text-muted); font-size: 1rem; min-height: 48px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; flex: 1; margin-bottom: 2rem; }
.plan-features li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; }
.plan-features i { color: var(--brand-teal); font-size: 1.4rem; }
.btn-outline {
  display: inline-flex; justify-content: center; align-items: center; padding: 1.1rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; color: #fff; text-decoration: none; font-weight: 700; font-family: var(--font-body);
  transition: background 0.3s, border-color 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: #fff; }

/* CONTACT SECTION ADVANCED */
.contact__content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 2rem; }
.contact__info { text-align: left; }
.contact__info .section__title { margin-bottom: 1.5rem; font-size: clamp(3rem, 5vw, 6rem); }
.contact__email { font-size: clamp(1.2rem, 2vw, 1.8rem); margin-top: 1.5rem; margin-bottom: 2.5rem; }
.contact__form { padding: 3.5rem; border-radius: 20px;}
.modern-form { display: flex; flex-direction: column; gap: 1.5rem; }
.input-group { display: flex; flex-direction: column; gap: 0.8rem; }
.input-group label { text-align: center; font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.modern-form input, .modern-form textarea, .modern-select {
  background: rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  padding: 1.2rem 1.2rem; color: #fff; font-family: var(--font-body); font-size: 1rem; outline: none; transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modern-form input:focus, .modern-form textarea:focus, .modern-select:focus {
  border-color: rgba(255,255,255,0.3); box-shadow: 0 0 15px rgba(255,255,255,0.05); background: rgba(0,0,0,1);
}
.modern-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.2rem center; background-size: 12px; }
.form-submit { margin-top: 1.5rem; width: 100%; border: none; font-size: 1.1rem; cursor: pointer; border-radius: 50px;}

.btn-white-submit { background: #ffffff; color: #000000; border: none; padding: 1.2rem; border-radius: 50px; font-weight: 700; font-family: var(--font-heading); font-size: 1.1rem; cursor: pointer; width: 100%; margin-top: 1rem; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s; }
.btn-white-submit:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(255,255,255,0.15); }

/* FLOATING WHATSAPP */
.floating-wsp {
  position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
  background: #25D366; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  z-index: 1000; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
  text-decoration: none;
}
.floating-wsp:hover { transform: scale(1.15) rotate(-5deg); background: #1ebe57; color: #fff; }
.floating-wsp .bi { line-height: 0; }
@media (max-width: 768px) { .floating-wsp { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.6rem; } }

/* OVERRIDE RESPONSIVE WITH NEW BLOCKS */
/* HARDWARE ACCELERATION & FLUIDITY */
.reveal-text, .reveal-bento, .reveal-system, .reveal-title, .magnetic {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* HERO DOS COLUMNAS */
.hero__layout {
   display: flex;
   gap: 4rem;
   align-items: center;
   width: 100%;
}
.hero__content { flex: 1.2; }
.hero__visual { flex: 1; text-align: center; }
.hero__tech-stack { margin-top: 2.5rem; opacity: 0.9; }
.tech-logos { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.tech-logos img { height: 26px; width: 26px; object-fit: contain; opacity: 0.7; transition: opacity 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; }
.tech-logos img:hover { opacity: 1; transform: translateY(-5px) scale(1.15); filter: drop-shadow(0 5px 15px rgba(255,255,255,0.2)); }
.hero__tech-stack .stack-label { font-size: 0.85rem; letter-spacing: 0.1em; text-transform:uppercase; color: var(--text-muted); }
.hero__img { 
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease; 
  width: 100%; 
  max-width: 550px; 
  filter: drop-shadow(0 20px 50px rgba(139,92,246,0.3));
}
.hero__img:hover { transform: scale(1.05) translateY(-5px); filter: drop-shadow(0 30px 60px rgba(139,92,246,0.5)); }

/* RESPONSIVE */
  @media (max-width: 1024px) {
    .hero__layout { flex-direction: column; text-align: center; }
    .hero__tech-stack { justify-content: center; }
    .hero__scroll { left: 50%; transform: translateX(-50%); }
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
    .bento-wide { grid-column: span 2; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .plans-grid { grid-template-columns: 1fr; }
    .contact__content { grid-template-columns: 1fr; text-align: center; }
    .contact__info { text-align: center; display: flex; flex-direction: column; align-items: center; }
  }
@media (max-width: 768px) {
  .container { width: 88%; } 
  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .navbar__logo { font-size: 1.25rem; }
  .navbar__logo span { font-size: 1.25rem; }
  .btn-primary { padding: 0.7rem 1.4rem; font-size: 0.85rem; }
  .navbar__inner { gap: 0.5rem; justify-content: space-between; }
  
  /* Restablecer tamaños fluidos de Bento */
  .icon-wrap { font-size: 2.5rem; margin-bottom: 1rem; }
  .bento-item h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
  .bento-item { padding: 2.2rem; }
  .system-card__info h3 { font-size: 1.6rem; }
  .system-card { padding: 2.2rem; }
  
  /* Eliminar alturas fijas que rompen el aspecto en pantallas altas/anchas */
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-large, .bento-wide, .bento-half { grid-column: 1; }
  
  .why-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .contact__form { padding: 2.5rem 1.5rem; }
  .systems-grid { grid-template-columns: 1fr; }
  .bento-row { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .navbar__links { display: none; }
  .custom-cursor, .custom-cursor-follower { display: none; }
  .footer__inner { flex-direction: column; gap: 1.5rem; text-align: center; }
}
