@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #060810;
  --surface-color: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.07);
  --primary-accent: #00f0ff;
  --secondary-accent: #8a2be2;
  --text-main: #f0f4f8;
  --text-muted: #a0aec0;
  --glass-blur: blur(12px);
  --z-index-nav: 1000;
}

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

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #060810;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
.preloader-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.4));
}
.preloader-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.preloader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f0ff, #8a2be2);
  border-radius: 3px;
  animation: loadProgress 2s ease-in-out forwards;
}
@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

html {
  scroll-behavior: smooth;
}

img, svg {
  max-width: 100%;
  height: auto;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(138, 43, 226, 0.04) 0%, transparent 50%);
}

/* Lenis Specific Styles */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }


/* Typography */
h1, h2, h3, h4 { color: #fff; font-weight: 800; line-height: 1.2; }
p { color: var(--text-muted); font-size: 1.1rem; }
a { text-decoration: none; color: var(--primary-accent); transition: 0.3s; }
a:hover { color: #fff; text-shadow: 0 0 10px var(--primary-accent); }

/* Navigation Glassmorphism */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: var(--z-index-nav);
  transition: all 0.4s ease;
}
header.scrolled {
  background: rgba(6, 8, 16, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--surface-border);
  padding: 15px 5%;
}
.logo img { height: 40px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { font-weight: 600; color: var(--text-main); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: #fff; padding: 10px 25px; border-radius: 30px; font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3); transition: 0.4s;
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6); transform: translateY(-2px); color: #fff; }

/* Sections Layout */
section { padding: 100px 5%; position: relative; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 3rem; margin-bottom: 15px; background: -webkit-linear-gradient(45deg, #fff, var(--primary-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.section-title p { max-width: 600px; margin: 0 auto; }

/* Hero Parallax */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative;
  contain: layout style;
}
.hero-content {
  z-index: 2; max-width: 800px;
}
.hero-content h1 { font-size: 4rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.25rem; margin-bottom: 30px; }
.hero-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; contain: strict;}
.shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; will-change: transform, opacity; animation: pulse 4s ease-in-out infinite; }
.shape-1 { width: 300px; height: 300px; background: var(--secondary-accent); top: 10%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 400px; height: 400px; background: var(--primary-accent); bottom: 10%; right: 5%; animation-delay: 2s; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* Glass Cards (About & Services) */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.glass-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative; overflow: hidden;
  contain: layout style;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.glass-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none; transform: scale(0.5);
}
.glass-card:hover::before { opacity: 1; transform: scale(1); }

/* Corchete Background */
.corchete-bg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 600px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.corchete-bg-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,240,255,0.3));
}

.impact-section {
  padding-top: 60px !important;
  position: relative;
  overflow: hidden;
}

.impact-section .hero-content {
  position: relative;
  z-index: 2;
}

.icon-wrapper {
  width: 60px; height: 60px; border-radius: 15px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3);
}
.icon-wrapper svg { stroke: var(--primary-accent); width: 30px; height: 30px; }

/* Marquee / Clients */
.clients-marquee {
  overflow: hidden; width: 100%; padding: 40px 0; background: rgba(255,255,255,0.01); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border);
  position: relative; display: flex;
  contain: strict;
}
.marquee-content {
  display: flex; gap: 50px; align-items: center;
  animation: scroll 20s linear infinite;
  will-change: transform;
}
.marquee-content img { height: 40px; filter: grayscale(100%) brightness(0) invert(1); opacity: 0.7; transition: filter 0.3s, transform 0.3s, opacity 0.3s; }
.marquee-content img:hover { filter: grayscale(0%) brightness(1) invert(0); opacity: 1; transform: scale(1.15); }
.marquee-content .samsung-logo { filter: grayscale(100%) opacity(0.4); }
.marquee-content .samsung-logo:hover { filter: grayscale(100%) opacity(0.7); }
@keyframes scroll { 
  from { transform: translateX(0); } 
  to { transform: translateX(-50%); } 
}

/* Footer & Contact */
footer { padding: 60px 5%; background: #030408; border-top: 1px solid var(--surface-border); display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h4 { margin-bottom: 20px; color: var(--text-main); }
.footer-col a { display: block; margin-bottom: 10px; color: var(--text-muted); }

/* Animation Observables */
.reveal { 
  opacity: 0; 
  transform: translateY(40px); 
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.reveal.active { 
  opacity: 1; 
  transform: translateY(0); 
}

/* =============================================
   RESPONSIVE DESIGN - Mobile First
   ============================================= */
@media (max-width: 768px) {
  /* Disable all animations on mobile (except marquee) */
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Keep marquee working on mobile */
  .marquee-content, .clients-marquee, .marquee-content * {
    animation-duration: 20s !important;
    animation-iteration-count: infinite !important;
    transition-duration: 0s !important;
  }
  
  /* Hero */
  section#hero.hero {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 120px 5% 50px 5% !important;
    background: #060810 !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  section#hero.hero .hero-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
  }
  section#hero.hero h1 { 
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 2rem !important; 
    text-align: center !important; 
    line-height: 1.2 !important; 
    color: #fff !important;
    margin-bottom: 20px !important;
  }
  section#hero.hero p { 
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1rem !important; 
    line-height: 1.5 !important; 
    margin-bottom: 25px !important; 
    color: #ccc !important;
    text-align: center !important;
  }
  section#hero.hero .btn-primary { 
    margin: 0 auto !important; 
    display: inline-block !important; 
    text-align: center !important;
    background: linear-gradient(135deg, #00f0ff, #8a2be2) !important;
    color: #fff !important;
    padding: 12px 30px !important;
  }
  section#hero.hero .hero-shapes,
  section#hero.hero .hero-shapes * {
    display: none !important;
    visibility: hidden !important;
  }
  section#hero.hero .carousel { display: none !important; }
  
  /* Grid */
  .grid-2 { grid-template-columns: 1fr !important; }
  
  /* Navigation */
  header {
    padding: 15px 5% !important;
    justify-content: center !important;
  }
  .nav-links { display: none !important; }
  .mobile-nav-toggle { display: none !important; }
  .logo { margin: 0 auto !important; }
  .logo img { height: 50px !important; width: auto !important; }
  header .btn-primary { display: none !important; }
  
  /* About Section */
  .about { padding: 50px 5% !important; display: block !important; visibility: visible !important; }
  .about .grid-2 { display: flex !important; flex-direction: column !important; gap: 30px !important; }
  .about .grid-2 > div { text-align: center !important; display: block !important; visibility: visible !important; margin-bottom: 30px !important; }
  .about h2 { font-size: 1.8rem !important; text-align: center !important; }
  .about ul { align-items: center !important; text-align: center !important; display: flex !important; flex-direction: column !important; gap: 10px !important; padding: 0 !important; }
  .about ul li { justify-content: center !important; }
  .glass-card { display: block !important; visibility: visible !important; opacity: 1 !important; margin-bottom: 30px !important; }

  /* Impact Section */
  .impact-section.hero {
    padding: 60px 5% !important; 
    min-height: 50vh !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    overflow: hidden !important;
    background: #060810 !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .impact-section .hero-content { 
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
  }
  .impact-section h2 { 
    font-size: 2rem !important;
    text-align: center !important;
    color: #fff !important;
    margin: 0 auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .impact-section .corchete-bg { display: none !important; }
  .impact-section .hero-shapes { display: none !important; }
  
  /* Cinematic Services */
  .cinematic-services { 
    flex-direction: column !important;
    padding: 0 !important;
    align-items: center !important;
  }
  .pin-graphics { 
    width: 80vw !important; 
    height: 50vw !important; 
    min-height: 250px !important;
    top: 10vh !important; 
    z-index: 1; 
    opacity: 1 !important; 
    position: relative !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .scroll-texts { 
    width: 100% !important; 
    padding: 20px !important;
  }
  .service-block { 
    height: auto !important; 
    min-height: auto !important;
    padding: 40px 20px !important;
    text-align: center !important;
  }
  .service-block h3 { 
    font-size: 1.5rem !important; 
    margin-bottom: 15px !important;
  }
  .service-block p { 
    font-size: 0.95rem !important;
  }
  .device-core { 
    width: 180px !important; 
    height: 180px !important; 
    -webkit-transform: none !important;
    transform: none !important;
    margin-top: 0 !important;
  }
  
  /* All layers visibility */
  .layer {
    opacity: 0.8 !important;
    transform: none !important;
    display: none !important;
  }
  
  /* Hide service layers on mobile */
  .pin-graphics .layer {
    display: none !important;
  }
  
  /* Disable scroll animations on services */
  .cinematic-services {
    overflow: visible !important;
  }
  .service-block {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Odoo Section */
  .odoo-partners-section { 
    padding: 50px 15px !important; 
    text-align: center !important;
    min-height: auto !important;
  }
  .odoo-scrollytelling-container {
    padding: 20px 0 !important;
    display: flex !important;
    justify-content: center !important;
    height: auto !important;
  }
  .odoo-board { 
    width: 90vw !important;
    max-width: 90vw !important;
    margin: 0 auto !important;
    position: relative !important;
  }
  
  /* Module Info */
  .module-info-scrolly {
    width: 180px !important;
    font-size: 0.8rem !important;
    padding: 10px !important;
  }
  .module-icon {
    width: 35px !important;
    height: 35px !important;
  }
  
  /* Footer */
  .footer-contact, .footer-links { text-align: center !important; }
  .social-links { justify-content: center !important; }
  
  /* Section titles */
  .section-title { text-align: center !important; }
  .section-title h2 { text-align: center !important; }
  .section-title p { text-align: center !important; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .cinematic-services { padding: 0 3% !important; }
  .pin-graphics { width: 40% !important; }
  .scroll-texts { width: 60% !important; }
  .service-block h3 { font-size: 2.2rem !important; }
  .odoo-board { width: 85vw !important; }
}

/* =============================================
   CROSS-BROWSER COMPATIBILITY
   ============================================= */

/* Webkit (Chrome, Safari, Edge) */
.layer {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition: opacity 0.3s ease, transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.device-core {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  -webkit-transition: -webkit-transform 0.1s ease;
  transition: transform 0.1s ease;
}

.odoo-board {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.backdrop-filter {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Firefox specific */
@-moz-document url-prefix() {
  .layer {
    -moz-backface-visibility: hidden;
  }
  .device-core {
    -moz-transform-style: preserve-3d;
  }
}

/* Safari specific fixes */
@media not all and (min-resolution:.001dpcm) {
  @supports (-webkit-appearance:none) {
    .layer { -webkit-transform: translateZ(0); }
    .device-core { -webkit-transform: translateZ(0); }
  }
}

/* IE/Edge legacy */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .layer { -ms-transform: none; }
  .device-core { -ms-transform: none; }
  .odoo-board { transform: none !important; }
}

/* -------------------------------------
   CINEMATIC SCROLL (GSAP Scrollytelling) 
--------------------------------------- */
.cinematic-services { display: flex; align-items: flex-start; padding: 0 5%; position: relative; }
.pin-graphics { position: sticky; top: 0; width: 45%; height: 100vh; display: flex; align-items: center; justify-content: center; perspective: 1000px;}
.scroll-texts { width: 55%; padding-left: 5%; overflow: visible; display: flex; flex-direction: column; }
.service-block { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.service-block h3 { font-size: 3rem; margin-bottom: 20px; text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.service-block p { font-size: 1.3rem; }

/* 3D Device Component (The decomposition subject) */
.device-core { position: relative; width: 280px; height: 280px; transform-style: preserve-3d; transform: rotateX(50deg) rotateZ(-30deg); transition: transform 0.1s; margin-top: 20vh; will-change: transform; }
.layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(10, 15, 30, 0.6); border: 2px solid var(--surface-border); border-radius: 20px; backdrop-filter: blur(10px); box-shadow: inset 0 0 20px rgba(0,240,255,0.05); will-change: transform, opacity; }

/* Layers */
.layer-web { border-color: rgba(0,240,255,0.4); will-change: transform, opacity; }
.layer-webapp { border-color: rgba(138,43,226,0.6); width: 180px; height: 120px; left: 85px; top: 115px; border-radius: 15px; will-change: transform, opacity; }
.layer-mobile { border-color: rgba(138,43,226,0.6); width: 140px; height: 280px; left: 105px; top: 35px; border-radius: 30px; will-change: transform, opacity; }
.layer-desktop { border-color: rgba(255,255,255,0.2); will-change: transform, opacity; }
.layer-software { border-color: rgba(0,255,100,0.4); width: 200px; height: 160px; left: 75px; top: 95px; border-radius: 10px; will-change: transform, opacity; }
.layer-odoo { border-color: rgba(255, 200, 0, 0.6); width: 160px; height: 160px; left: 95px; top: 95px; border-radius: 20px; background: rgba(255,255,255,0.1); will-change: transform, opacity; }
.layer-cloud { border-radius: 50%; border: none; background: transparent; filter: drop-shadow(0 0 30px var(--primary-accent)); will-change: transform, opacity, filter; }
.layer-cables { border: none; background: transparent; will-change: transform, opacity; }

/* Vectors inside Layers */
.layer svg { width: 40%; height: 40%; }
.mock-browser { width: 90%; height: 80%; border: 2px solid var(--primary-accent); border-radius: 10px; padding: 15px;}
.mock-browser .dots { width: 12px; height: 12px; background: var(--primary-accent); border-radius: 50%; box-shadow: 20px 0 0 var(--primary-accent), 40px 0 0 var(--primary-accent); margin-bottom: 20px;}
.mock-browser .line { width: 100%; height: 6px; background: rgba(0,240,255,0.3); border-radius: 3px; }

.mock-window { width: 95%; height: 90%; border: 4px solid var(--text-muted); border-radius: 15px; }
.mock-phone { width: 100%; height: 100%; border: 8px solid var(--secondary-accent); border-radius: 20px; position: relative;}
.mock-phone .screen { background: rgba(255,255,255,0.05); width: 100%; height: 100%; }

.mock-app { width: 100%; height: 100%; display: flex; border-radius: 10px; overflow: hidden; background: rgba(138,43,226,0.2); }
.mock-app .app-sidebar { width: 25%; height: 100%; background: rgba(138,43,226,0.4); }
.mock-app .app-content { width: 75%; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mock-app .app-header { width: 100%; height: 20px; background: rgba(138,43,226,0.5); border-radius: 4px; }
.mock-app .app-card { width: 100%; height: 30px; background: rgba(138,43,226,0.3); border-radius: 4px; }

.mock-desktop-app { width: 100%; height: 100%; background: #1a1a2e; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.mock-desktop-app .desktop-titlebar { height: 20px; background: #2d2d44; display: flex; align-items: center; padding: 0 8px; }
.mock-desktop-app .desktop-dots { display: flex; gap: 4px; }
.mock-desktop-app .desktop-dots span { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.mock-desktop-app .desktop-dots span:nth-child(2) { background: #ffbd2e; }
.mock-desktop-app .desktop-dots span:nth-child(3) { background: #28ca42; }
.mock-desktop-app .desktop-menu { margin-left: auto; font-size: 8px; color: #888; }
.mock-desktop-app .desktop-body { flex: 1; display: flex; }
.mock-desktop-app .desktop-sidebar { width: 20%; height: 100%; background: #252540; }
.mock-desktop-app .desktop-content { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.mock-desktop-app .desktop-header { height: 15px; background: rgba(0,255,100,0.3); border-radius: 4px; }
.mock-desktop-app .desktop-cards { display: flex; gap: 4px; flex-wrap: wrap; }
.mock-desktop-app .desktop-card { width: 30%; height: 25px; background: rgba(0,255,100,0.2); border-radius: 4px; }

.odoo-logo-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.odoo-logo-icon { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 0 15px rgba(255,200,0,0.5)); }

.cables-svg { width: 100% !important; height: 100% !important; }
.cable-line { fill: none; stroke: var(--primary-accent); stroke-width: 4; stroke-dasharray: 600; stroke-dashoffset: 600; will-change: stroke-dashoffset; }

/* Hardware acceleration for animations */
.hw-accelerate {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .service-block:hover h3,
  .service-block:hover p {
    text-shadow: none;
  }
  
  .module-info-scrolly:hover .module-icon {
    transform: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  }
}

/* Loading performance */
@media (max-width: 768px) {
  .parallax-bg {
    display: none !important;
  }
  
  .rellax {
    display: none;
  }
  
  video {
    display: none !important;
  }
}

/* -------------------------------------
   CONTACT FORM
--------------------------------------- */
.form-input, .form-textarea { 
  width: 100%; padding: 15px; margin-bottom: 20px; border-radius: 10px; 
  border: 1px solid var(--surface-border); background: rgba(0,0,0,0.5); 
  color: #fff; font-family: inherit; font-size: 1.1rem; 
  transition: 0.3s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary-accent); box-shadow: 0 0 10px rgba(0,240,255,0.2) }

/* -------------------------------------
   ODOO PARALLAX UNIVERSE
--------------------------------------- */
.odoo-partners-section {
  min-height: auto;
}

.odoo-scrollytelling-container {
  width: 100%;
  height: 75vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  perspective: 2500px;
  overflow: visible;
  padding: 0;
  margin: 0;
  contain: layout style;
}

.odoo-board {
  position: relative;
  width: min(80vw, 70vh);
  max-width: 700px;
  aspect-ratio: 1.25 / 1; 
  transform-style: preserve-3d;
  box-shadow: -20px 40px 80px rgba(0,0,0,0.6);
  border-radius: 20px;
  background: transparent;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  margin: 20px auto 100px auto;
}

.odoo-board-img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: block;
}

.odoo-slot {
  position: absolute;
  width: 16.666%;
  height: 20%;
  transform-style: preserve-3d;
  z-index: 10;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.odoo-slot .odoo-tile {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 20%;
  background-color: #ffffff;
  box-shadow: -10px 20px 40px rgba(0,0,0,0.6);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-quality;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.module-info-scrolly {
  position: absolute;
  top: 50%;
  right: 130%;
  transform: translateY(-50%);
  width: max(280px, 30vw);
  max-width: 350px;
  background: rgba(10, 15, 30, 0.95);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--primary-accent);
  box-shadow: -10px 10px 40px rgba(0,240,255,0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  will-change: opacity;
  contain: layout style;
}

.module-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.module-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-quality;
  image-rendering: high-quality;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s, transform 0.3s;
}

.module-info-scrolly:hover .module-icon {
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.7));
  transform: scale(1.06);
}

.module-info-scrolly h4 {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  margin-bottom: 0;
  background: -webkit-linear-gradient(135deg, #fff, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.module-info-scrolly p {
  color: var(--text-main);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.5;
}

/* Icon shown inside the floating extracted tile */
.tile-module-icon {
  width: 55%;
  height: 55%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.6));
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Individual Tiles — each uses its own module icon */
.tile-citas        { background-image: url('../img/odoo modulos/Citas.png'); }
.tile-calendario   { background-image: url('../img/odoo modulos/Calendario.png'); }
.tile-contabilidad { background-image: url('../img/odoo modulos/Contabilidad.png'); }
.tile-inventario   { background-image: url('../img/odoo modulos/Inventario.png'); }
.tile-pos          { background-image: url('../img/odoo modulos/Punto de Venta.png'); }
.tile-nomina       { background-image: url('../img/odoo modulos/Nomina.png'); }
.tile-whatsapp     { background-image: url('../img/odoo modulos/Whatsapp.png'); }

@media (max-width: 768px) {
  .odoo-board { max-width: 100%; width: 100%; }
  .module-info-scrolly { width: 280px; }
}

/* -----------------------------------------------
   e-CF CREATOR BANNER
----------------------------------------------- */
.ecf-creator-banner {
  width: 100%;
  max-width: 900px;
  margin: 40px auto 10px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(0,240,255,0.05) 0%, rgba(138,43,226,0.08) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.08), 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

/* Shimmer line at the top */
.ecf-creator-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #8a2be2, transparent);
}

.ecf-badge-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(138,43,226,0.2));
  border: 1px solid rgba(0,240,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f0ff;
  box-shadow: 0 0 20px rgba(0,240,255,0.2);
}

.ecf-badge-icon svg {
  width: 38px;
  height: 38px;
}

.ecf-creator-text {
  flex: 1;
}

.ecf-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-accent);
  margin-bottom: 10px;
}

.ecf-creator-text h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.ecf-highlight {
  background: linear-gradient(135deg, #00f0ff, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.ecf-creator-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.ecf-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,240,255,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ecf-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,240,255,0.5);
  color: #000;
  text-shadow: none;
}

.ecf-cta span {
  font-size: 1.1rem;
  transition: transform 0.3s;
}
.ecf-cta:hover span { transform: translateX(4px); }

@media (max-width: 768px) {
  .ecf-creator-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
    gap: 20px;
  }
  .ecf-cta { width: 100%; justify-content: center; }
}

/*--------------------------------------------------------------
# Custom Scrollbar - DevsDesign Theme
--------------------------------------------------------------*/
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f0ff, #8a2be2);
  border-radius: 10px;
  border: 2px solid #1a1a2e;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00d4e0, #7b22d1);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #00f0ff #1a1a2e;
}
