/* ==========================================================================
   ISAN INGENIERÍA SPA - CSS PRINCIPAL (TEMA CLARO CORPORATIVO Y 3D)
   ========================================================================== */

:root {
  --primary: #003366;        
  --primary-dark: #001a33;   
  --primary-light: #004d99;  
  --primary-soft: #e7f5ff;   
  --accent: #F58220;         
  --accent-dark: #4030d0;    
  --accent-soft: #f3f0ff;    
  --white: #ffffff;
  --bg-main: #fcfcfc;        
  --bg-alt: #ffffff;         
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #64748b;
  --gray-700: #475569;       
  --gray-800: #1e293b;
  --gray-900: #0f172a;       
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(28, 124, 243, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
  --t-fast: 0.15s ease;
  --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --container: 1400px;
  --container-padding: 2rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { font-family: var(--font-primary); font-size: 16px; line-height: 1.7; color: var(--gray-700); background-color: var(--bg-main); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--t-fast); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; outline: none; border: none; }
button { cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--container-padding); }
.section {
    padding: 6rem 0;
    margin-top: -40px; /* Pull up to cover any gap */ position: relative; overflow-x: hidden; scrollbar-width: none; z-index: 1; background-color: var(--bg-main); border-top-left-radius: 40px; border-top-right-radius: 40px; box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.08); }
.section::-webkit-scrollbar { display: none; }
.section--gray { background-color: var(--bg-alt); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }

.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-tag { display: inline-block; padding: 0.5rem 1.2rem; background: var(--primary-soft); color: var(--primary); font-size: 0.85rem; font-weight: 800; border-radius: var(--radius-full); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--primary); margin-bottom: 1rem; line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-600); line-height: 1.7; }

@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.4); } 70% { box-shadow: 0 0 0 12px rgba(245, 130, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 130, 32, 0); } }
.anim-pulse { animation: pulseGlow 2.5s infinite; }

.fade-in, .fade-in-left, .fade-in-right, .reveal, .gs-reveal { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.9rem 2rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; border-radius: var(--radius-sm); transition: var(--t-base); position: relative; z-index: 50; }
.btn--primary { background: var(--accent); color: var(--white); box-shadow: 0 4px 14px rgba(245, 130, 32, 0.35); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245, 130, 32, 0.5); }
.btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--ghost-white { background: rgba(255,255,255,0.1); color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn--ghost-white:hover { background: var(--white); color: var(--primary); }
.btn--lg { padding: 1.125rem 2.5rem; font-size: 1.1rem; }

.topbar { background: var(--primary-dark); color: var(--white); font-size: 0.85rem; padding: 0.6rem 0; transition: all 0.4s ease; overflow: hidden; }
.topbar.is-hidden { height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; border: none !important; margin: 0 !important; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar-content { flex: 1; height: 22px; position: relative; }
.topbar-slide { position: absolute; inset: 0; display: flex; align-items: center; gap: 0.5rem; opacity: 0; visibility: hidden; transition: opacity 0.5s ease; font-weight: 600; }
.topbar-slide i { color: var(--accent); }
.topbar-slide.is-active { opacity: 1; visibility: visible; }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.topbar-cta { background: var(--accent); color: var(--white); padding: 0.3rem 1rem; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.topbar-cta:hover { background: var(--accent-dark); }
.topbar-close { background: transparent; color: rgba(255,255,255,0.6); font-size: 1.1rem; padding: 0 0.5rem; }
.topbar-close:hover { color: var(--white); }

.header { position: sticky; top: 0; left: 0; width: 100%; background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); z-index: 1000; transition: var(--t-base); }
.header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); background: rgba(5, 15, 30, 0.98); border-bottom-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 85px; }
.logo img { height: 50px; filter: brightness(0) invert(1); }
.nav-list { display: flex; align-items: center; gap: 1.5rem; }
.nav-item { position: relative; padding-bottom: 2rem; margin-bottom: -2rem; }
.nav-link { display: flex; align-items: center; gap: 0.4rem; padding: 1rem 0.5rem; font-family: var(--font-display); font-weight: 700; color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.nav-link:hover { color: #00e5ff; text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.nav-link i { font-size: 0.75rem; transition: transform var(--t-fast); }
.nav-item:hover .nav-link i { transform: rotate(180deg); }

.dropdown { position: absolute; top: calc(100% - 0.5rem); left: 0; min-width: 520px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.25rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--t-fast); z-index: 100; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.dropdown::before { content: ''; position: absolute; top: -15px; left: 0; right: 0; height: 20px; background: transparent; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem; border-radius: var(--radius-sm); color: var(--gray-800); }
.dropdown-item:hover { background: var(--bg-alt); transform: translateX(4px); }
.dropdown-item-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--accent); border-radius: var(--radius-sm); font-size: 1.2rem; }
.dropdown-item:hover .dropdown-item-icon { background: var(--accent); color: var(--white); }
.dropdown-item-text strong { display: block; font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--primary); }
.dropdown-item-text small { font-size: 0.8rem; color: var(--gray-600); }

.header-cta { display: flex; align-items: center; gap: 1.5rem; }
.header-phone { display: flex; align-items: center; gap: 0.5rem; color: #ffffff; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.header-phone i { color: #00e5ff; font-size: 1.2rem; }

.header-cta .btn--primary {
  animation: pulseNeon 2s infinite;
}
@keyframes pulseNeon {
  0% { box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(245, 130, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 130, 32, 0); }
}
.menu-toggle { display: none; background: var(--primary); color: var(--white); width: 44px; height: 44px; border-radius: var(--radius-md); font-size: 1.25rem; }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 75%; height: 100vh; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-left: 1px solid rgba(255, 255, 255, 0.3); box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 1100; transition: right var(--t-base); overflow-y: auto; padding: 5rem 1.5rem 2rem; }
.mobile-menu.is-open { right: 0; }
.mobile-menu-close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; background: var(--gray-100); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.mobile-menu a { display: block; padding: 1rem 0; font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--gray-200); }
.overlay { position: fixed; inset: 0; background: rgba(0, 34, 68, 0.8); z-index: 1090; opacity: 0; visibility: hidden; transition: all var(--t-base); }
.overlay.is-active { opacity: 1; visibility: visible; }

/* ==========================================================================
   HERO BANNER DEL INICIO (No afecta a las páginas internas)
   ========================================================================== */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; background: var(--bg-alt); overflow: hidden; padding: 6rem 0 5rem; border-bottom: 1px solid var(--gray-200); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 56, 101, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 56, 101, 0.03) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; width: 100%; }
.hero-content { max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1.2rem; background: rgba(245, 130, 32, 0.15); border: 1px solid rgba(245, 130, 32, 0.3); color: var(--accent-dark); border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 700; margin-bottom: 1.5rem; text-transform: uppercase; }

/* FIX TYPED: Alto mínimo para que el Inicio no salte */
.hero-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.5rem; color: var(--primary); min-height: 140px; display: block; }
.hero-title .gradient-text { color: var(--accent); }
.hero-subtitle { font-size: 1.2rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 2.5rem; max-width: 700px; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); max-width: 500px; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.3rem; }
.hero-stat span { font-size: 0.85rem; color: var(--gray-600); font-weight: 600; text-transform: uppercase; }

.hero-visual { position: relative; height: 500px; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid var(--gray-200); background: var(--primary-dark); }
.heroSwiper { width: 100%; height: 100%; }
.hero-slide { position: relative; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 3rem 2rem 2rem; background: linear-gradient(to top, rgba(0,34,68,0.95), transparent); color: var(--white); z-index: 10; }
.hero-slide-content h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); margin-bottom: 0.5rem; font-weight:800; }
.hero-slide-content p { font-size: 1rem; color: #ffffff; font-weight: 600; }
.swiper-pagination-bullet { background: rgba(0, 56, 101, 0.5) !important; opacity: 1 !important; transition: all 0.3s; }
.swiper-pagination-bullet-active { background: var(--accent) !important; width: 24px !important; border-radius: 5px !important; }
.hero-visual .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.5) !important; }
.hero-visual .swiper-pagination-bullet-active { background: var(--accent) !important; }

/* ==========================================================================
   HERO DE PÁGINAS INTERNAS (DISEÑO PREMIUM OSCURO)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  padding: 10rem 0 6rem;
  text-align: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: none;
}

/* Modifier: Centered */
.page-hero.hero-center .hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.page-hero.hero-center .hero-subtitle { margin: 0 auto 2.5rem auto; }
.page-hero.hero-center .hero-cta { justify-content: center; }

/* Modifier: Split */
.page-hero.hero-split { background: var(--bg-main); }
.page-hero.hero-split .hero-title { color: var(--primary); }
.page-hero.hero-split .hero-subtitle { color: var(--gray-700); }
.page-hero.hero-split::before { display: none; } /* Remove dark pattern */

/* Modifier: Dark Glass */
.page-hero.hero-dark { background: #000a18; }
.page-hero.hero-dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(0,229,255,0.2), transparent 50%), radial-gradient(circle at bottom left, rgba(177,0,255,0.2), transparent 50%); z-index: 0; mask-image: none; -webkit-mask-image: none;}
/* Patrón High-Tech */
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.page-hero .hero-title {
  color: var(--white);
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.15;
  margin-bottom: 1.5rem;
  min-height: auto; /* IMPORTANTE: Remueve el alto mínimo forzado del index */
  position: relative; z-index: 2;
}
.page-hero .hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  position: relative; z-index: 2;
}
.page-hero .hero-cta { justify-content: center; position: relative; z-index: 2; }


/* ==========================================================================
   CARDS DE SERVICIOS - REDISEÑO PREMIUM GLASS & NEON
   ========================================================================== */
.servicesSwiper { padding: 2rem 5% 4rem !important; width: 100%; }
.servicesSwiper .swiper-wrapper { transition-timing-function: linear !important; }
.service-card {
  background: rgba(10, 25, 47, 0.7); /* Mejor difuminado y contraste */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  z-index: 10;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.service-card:hover::before {
  background: linear-gradient(135deg, #00e5ff, #b100ff);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 40px rgba(177, 0, 255, 0.3);
}

/* Íconos Neon Premium */
.service-icon {
  width: 75px; height: 75px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #00e5ff;
  border-radius: var(--radius-md);
  font-size: 2.2rem;
  margin-bottom: 1.8rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon {
  background: rgba(0, 229, 255, 0.1);
  border-color: #00e5ff;
  color: #fff;
  text-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff;
  transform: scale(1.1);
}

.service-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: #ffffff; margin-bottom: 1rem; transition: color var(--t-fast);}
.service-card:hover .service-title { color: #00e5ff; text-shadow: 0 0 8px rgba(0,229,255,0.3); }
.service-desc { font-size: 1.05rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 2rem; flex-grow: 1; }
.service-link { font-weight: 800; color: #00e5ff; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; transition: var(--t-fast); margin-top: auto; text-transform: uppercase; letter-spacing: 0.5px;}
.service-card:hover .service-link { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.5); }
.service-card:hover .service-link i { transform: translateX(6px); }

/* Fix Pagination for Dark Mode Services */
.section--dark .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.3) !important; }
.section--dark .swiper-pagination-bullet-active { background: #00e5ff !important; box-shadow: 0 0 10px #00e5ff; }

/* ATROPOS REMOVED */

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.content-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-bottom: 5rem; }
.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }
.content-text-card { background: var(--white); padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--t-base); }
.content-text-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.content-text-card h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.25; color: var(--primary); margin-bottom: 1.25rem; }
.content-text-card p { font-size: 1.05rem; color: var(--gray-700); line-height: 1.8; margin-bottom: 1.5rem; }
.content-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.content-image img { width: 100%; height: 420px; object-fit: cover; transition: transform 0.8s ease; }
.content-image:hover img { transform: scale(1.05); }

.feature-list { display: grid; gap: 1.2rem; margin: 1.5rem 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 1rem; font-size: 1.05rem; color: var(--gray-800); font-weight: 600; line-height: 1.6; }
.feature-list i { color: var(--accent); background: var(--accent-soft); padding: 6px; border-radius: 50%; font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: center; }
.about-content h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; color: var(--primary); }
.about-content p { font-size: 1.1rem; color: var(--gray-700); margin-bottom: 1.5rem; line-height: 1.8; }
.features-list { display: grid; gap: 1.2rem; margin-top: 2rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1.2rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); transition: var(--t-base); box-shadow: var(--shadow-sm); }
.feature-item:hover { border-color: var(--accent); transform: translateX(5px); box-shadow: var(--shadow-md); }
.feature-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); border-radius: var(--radius-sm); flex-shrink: 0; font-size: 1.4rem; }
.feature-text h4 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; }
.feature-text p { font-size: 0.95rem; color: var(--gray-600); margin: 0; }
.about-visual { position: relative; }
.about-img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }

.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 3rem; align-items: center; justify-items: center; }
.client-logo { height: 60px; display: flex; align-items: center; justify-content: center; filter: grayscale(100%) opacity(0.6); transition: all var(--t-base); }
.client-logo img { filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease; } .client-logo img:hover { filter: grayscale(0%); opacity: 1;  max-height: 100%; max-width: 180px; object-fit: contain; }
.client-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); }

.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.timeline::before { content: ''; position: absolute; top: 0; left: 28px; height: 100%; width: 4px; background: var(--gray-200); border-radius: 4px; }
.timeline-item { position: relative; padding-left: 80px; margin-bottom: 3.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: 14px; top: 24px; width: 32px; height: 32px; background: var(--accent); border: 6px solid var(--bg-main); border-radius: 50%; z-index: 2; box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.2); transition: var(--t-base); }
.timeline-item:hover::before { transform: scale(1.2); background: var(--primary); box-shadow: 0 0 0 6px rgba(0, 56, 101, 0.2); }
.timeline-content { background: var(--white); padding: 2.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--t-base); }
.timeline-item:hover .timeline-content { box-shadow: var(--shadow-md); transform: translateX(8px); border-color: rgba(245, 130, 32, 0.4); }
.timeline-content h4 { color: var(--primary); font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.timeline-step-num { font-size: 0.85rem; color: var(--white); background: var(--accent); padding: 0.3rem 0.8rem; border-radius: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact-info { padding: 3.5rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); border-radius: var(--radius-xl); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-info::before { content: ''; position: absolute; bottom: -50%; right: -30%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(245, 130, 32, 0.15) 0%, transparent 70%); }
.contact-info h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info p { opacity: 0.9; margin-bottom: 2.5rem; font-size: 1.05rem; }
.contact-list { position: relative; display: grid; gap: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1.2rem; }
.contact-item-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.contact-item-text small { display: block; font-size: 0.85rem; opacity: 0.8; text-transform: uppercase; }
.contact-item-text strong, .contact-item-text a { font-weight: 700; font-size: 1.1rem; color: var(--white); text-decoration: none; }

.contact-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 3.5rem; box-shadow: var(--shadow-sm); border-top: 5px solid var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.form-control { width: 100%; padding: 0.9rem 1.2rem; background: var(--bg-alt); border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 1rem; transition: all var(--t-fast); font-family: inherit; color: var(--gray-800); }
.form-control:focus { background: var(--white); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.15); }

.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); border-radius: var(--radius-xl); padding: 5rem 3rem; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); border-bottom: 6px solid var(--accent); }
.cta-banner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(245, 130, 32, 0.2) 0%, transparent 70%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; z-index:2; }
.cta-content { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-content h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1.2rem; line-height: 1.2; color: var(--white); }
.cta-content p { color: rgba(255,255,255,0.9); margin-bottom: 2.5rem; font-size: 1.15rem; }
.cta-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: 1.2rem; overflow: hidden; transition: all var(--t-base); box-shadow: var(--shadow-sm); }
.faq-item.is-open { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-question { width: 100%; padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; color: var(--primary); background: none; border: none; cursor: pointer; text-align: left; }
.faq-question i { color: var(--accent); transition: transform var(--t-base); background: var(--accent-soft); padding: 8px; border-radius: 50%; }
.faq-item.is-open .faq-question i { transform: rotate(180deg); background: var(--primary); color: var(--white); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--t-base); }
.faq-answer-inner { padding: 0 2rem 1.8rem; color: var(--gray-700); line-height: 1.8; font-size: 1.05rem; }

.breadcrumb { background: var(--bg-alt); padding: 1.2rem 0; font-size: 0.95rem; border-bottom: 1px solid var(--gray-200); }
.breadcrumb a { color: var(--primary); font-weight: 700; text-decoration: none; }
.breadcrumb i { margin: 0 0.8rem; opacity: 0.6; font-size: 0.8rem; }
.breadcrumb span { color: var(--text-muted); font-weight: 500; }

.footer { background: #00152b !important; color: #cbd5e1 !important; padding: 6rem 0 0; border-top: 5px solid var(--accent); position: relative; z-index: 10; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; padding-bottom: 4rem; }
.footer-brand img { height: 55px; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; color: rgba(255, 255, 255, 0.7) !important; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 42px; height: 42px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff !important; transition: all var(--t-fast); font-size: 1.1rem; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 20px rgba(245, 130, 32, 0.4); }
.footer-title { color: #ffffff !important; font-size: 1.2rem; font-weight: 700; font-family: var(--font-display); margin-bottom: 1.5rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; display: inline-block; }
.footer-links { display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7) !important; transition: all var(--t-fast); display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent) !important; transform: translateX(5px); }
.footer-links a i { font-size: 0.7rem; color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 1rem; font-size: 0.95rem; margin-bottom: 1.2rem; color: rgba(255, 255, 255, 0.7) !important; line-height: 1.6; }
.footer-contact-item strong { color: #ffffff !important; }
.footer-contact-item i { color: var(--accent); margin-top: 4px; font-size: 1.2rem; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 2rem 0; text-align: center; font-size: 0.9rem; color: rgba(255, 255, 255, 0.5) !important; }

.whatsapp-float { position: fixed; bottom: 25px; right: 25px; z-index: 999; display: flex; align-items: center; gap: 1rem; touch-action: none; }
.whatsapp-btn { width: 65px; height: 65px; background: #25d366; color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; text-decoration: none; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); transition: transform var(--t-fast); user-select: none; cursor: pointer; }
.whatsapp-btn:hover { transform: scale(1.05); background: #1ebe5d; }
.whatsapp-tooltip { background: var(--white); color: var(--primary); padding: 0.6rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 0.9rem; font-weight: 700; white-space: nowrap; transform: translateX(10px); opacity: 0; transition: var(--t-base); pointer-events: none; border: 1px solid var(--gray-200); }
.whatsapp-float:hover .whatsapp-tooltip { transform: translateX(0); opacity: 1; }

.chatbot { position: fixed; bottom: 105px; right: 25px; z-index: 998; touch-action: none;}
.chatbot-toggle { width: 60px; height: 60px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; border: none; cursor: pointer; box-shadow: var(--shadow-md); transition: transform var(--t-fast); user-select: none; }
.chatbot-toggle:hover { transform: scale(1.05); background: var(--primary-dark); }
.chatbot-badge { position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: var(--accent); border: 2px solid var(--white); border-radius: 50%; animation: pulse-dot 2s infinite; }

.chatbot-window { position: absolute; bottom: 75px; right: 0; width: 350px; max-width: calc(100vw - 40px); background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-xl); overflow: hidden; transform: scale(0.8) translateY(20px); opacity: 0; pointer-events: none; transform-origin: bottom right; transition: all var(--t-base); border: 1px solid var(--gray-200); }
.chatbot-window.is-open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.chatbot-header { background: var(--primary); color: var(--white); padding: 1rem; display: flex; align-items: center; gap: 1rem; }
.chatbot-avatar { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent); }
.chatbot-info strong { display: block; font-size: 1rem; font-family: var(--font-display); color: var(--white); }
.chatbot-info small { font-size: 0.8rem; opacity: 0.9; }
.chatbot-close { margin-left: auto; background: rgba(255,255,255,0.1); width: 30px; height: 30px; border-radius: 50%; color: var(--white); border: none; cursor: pointer; }

.chatbot-messages { height: 320px; overflow-y: auto; padding: 1.2rem; background: var(--bg-alt); display: flex; flex-direction: column; gap: 1rem; }
.chat-message { max-width: 90%; padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; line-height: 1.5; }
.chat-message--bot { background: var(--white); color: var(--gray-800); align-self: flex-start; border-bottom-left-radius: 0; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); border-left: 4px solid var(--accent); }
.chat-message--user { background: var(--primary-light); color: var(--white); align-self: flex-end; border-bottom-right-radius: 0; }
.chat-btn-link { display: inline-block; padding: 8px 12px; margin-top: 8px; font-size: 0.85rem; border-radius: 6px; color: white !important; text-decoration: none; font-weight: 700; text-align: center; transition: opacity 0.3s; width: 100%; }
.chat-btn-link:hover { opacity: 0.9; }
.chat-btn-link.wa { background: #25D366; margin-bottom: 5px; }
.chat-btn-link.fo { background: var(--primary); }

.chatbot-quick { padding: 0 1.2rem 1.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; background: var(--bg-alt); }
.chatbot-quick button { padding: 0.4rem 0.8rem; background: var(--white); color: var(--primary); border-radius: var(--radius-full); font-size: 0.8rem; border: 1px solid var(--gray-200); cursor: pointer; transition: var(--t-fast); font-weight: 600; }
.chatbot-quick button:hover { background: var(--primary-soft); color: var(--primary-dark); }
.chatbot-input { display: flex; border-top: 1px solid var(--gray-200); padding: 0.8rem; gap: 0.5rem; background: var(--white); }
.chatbot-input input { flex: 1; padding: 0.7rem 1rem; background: var(--bg-alt); border-radius: var(--radius-full); font-size: 0.9rem; border: 1px solid var(--gray-200); }
.chatbot-input button { width: 40px; height: 40px; background: var(--primary); color: var(--white); border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

@media (max-width: 1024px) {
  .hero-inner { display: flex !important; flex-direction: column !important; text-align: center; }
  .hero-content { margin: 0 auto; max-width: 100%; padding-top: 2rem; }
  .hero-visual { width: 100% !important; max-width: 600px; margin: 0 auto; height: 350px !important; }
  .hero-cta { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .features-list { text-align: left; }
  .content-block, .content-block.reverse { grid-template-columns: 1fr; gap: 2rem; display: grid; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone span { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .nav-list { display: none; }
  .menu-toggle { display: flex; }
  .topbar-cta { display: none; }
  .hero { min-height: auto; padding: 2rem 0 3rem; }
  .hero-visual { height: 280px !important; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-badge--top { left: 0; }
  .about-badge--bottom {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}
  .form-row { grid-template-columns: 1fr; }
  .whatsapp-tooltip { display: none; }
  .header-cta { gap: 0.5rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
  .content-block { margin-bottom: 3rem; }
  .hero-title { min-height: 120px; }
  .hero-title, .page-hero h1 { font-size: 2.2rem; min-height: 120px; }
  .section-title { font-size: 1.8rem; }
  .timeline::before { left: 15px; }
  .timeline-item { padding-left: 50px; margin-bottom: 2.5rem; }
  .timeline-item::before { left: 5px; width: 20px; height: 20px; border-width: 4px; }
  .timeline-content { padding: 1.5rem; }
  .content-text-card { padding: 2rem 1.5rem; }
  .content-image img { height: 300px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .stat-number { font-size: 2.25rem; }
  .topbar-content { font-size: 0.75rem; }
  .header-inner { padding: 0.5rem 0; height: 75px; }
  .contact-info, .contact-form, .content-text-card { padding: 1.5rem; }
}
[data-theme="dark"] {
  --white: #ffffff;
  --bg-main: #ffffff;
}

/* ==========================================================================
   SUBPAGE COMPONENTS (RADICAL REDESIGN)
   ========================================================================== */

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.bento-box { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 2rem; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.bento-box:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 229, 255, 0.1); border-color: rgba(0, 229, 255, 0.3); }
.bento-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
.bento-title { font-size: 1.3rem; color: #fff; margin-bottom: 0.5rem; }
.bento-desc { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

/* Tech Table */
.tech-table-wrapper { overflow-x: auto; margin-top: 2rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.tech-table { width: 100%; border-collapse: collapse; background: #fff; text-align: left; }
.tech-table th { background: var(--primary-soft); color: var(--primary); padding: 1.2rem 1.5rem; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }
.tech-table td { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); }
.tech-table tr:last-child td { border-bottom: none; }
.tech-table tr:hover td { background: #f8fafc; }

/* Interactive Accordion */
.accordion { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.accordion-item { border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; background: #fff; }
.accordion-header { padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; color: var(--primary); background: #f8fafc; transition: background 0.3s; }
.accordion-header:hover { background: var(--primary-soft); }
.accordion-content { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; color: var(--gray-700); }
.accordion-item.active .accordion-content { padding: 1.5rem; max-height: 500px; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }

/* Timeline */
.timeline { position: relative; margin: 2rem 0; padding-left: 2rem; border-left: 2px solid var(--primary-soft); display: flex; flex-direction: column; gap: 2rem; }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -2.4rem; top: 0; width: 1.2rem; height: 1.2rem; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.timeline-title { font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; font-size: 1.2rem; }
.timeline-desc { color: var(--gray-700); font-size: 0.95rem; }


/* === NAVBAR 9 === */




/* === NEW LIGHT THEME LAYOUT === */

/* Topbar */
.topbar {
    background-color: var(--accent);
    color: var(--white);
    padding: 8px 0;
    text-align: center;
    position: relative;
    z-index: 1000;
}
.topbar-pill {
    background: var(--white);
    color: var(--gray-900);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.topbar-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    background: none;
}

/* Floating Navbar */
.navbar-pill {
    transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 10px 20px 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    z-index: 9999;
}
.navbar-pill-logo img {
    height: 30px;
}
.navbar-pill-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar-pill-links a {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.navbar-pill-links a:hover {
    color: var(--primary);
}
.navbar-pill-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.navbar-pill-btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s;
}
.navbar-pill-btn:hover {
    transform: translateY(-2px);
    color: white;
}
.navbar-pill-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    position: relative;
}
.navbar-pill-cart::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 10px; height: 10px;
    background: #00d2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d2ff;
}

/* Hero Section Split Layout */
.hero-split {
    background: var(--bg-main);
    min-height: 75vh;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}
.hero-split-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: calc(75vh - 120px); height: auto;
}
.hero-split-content {
    /* max-width removed to fit long words */
}
.hero-badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #00d2ff;
    color: #00a0cc;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 30px;
    background: rgba(0, 210, 255, 0.05);
}
.hero-split-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -2px;
}
.text-gradient-purple {
    background: linear-gradient(90deg, #1c7cf3, #8a4bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-split-desc {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
}
.hero-split-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}
.btn-pill {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-pill-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(28, 124, 243, 0.2);
}
.btn-pill-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(28, 124, 243, 0.3);
}
.btn-pill-outline {
    background: var(--white);
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
}
.btn-pill-outline:hover {
    border-color: var(--gray-300);
    background: var(--gray-100);
}
.hero-split-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hero-stat h4 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}
.hero-stat p {
    color: var(--gray-600);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.hero-scroll-indicator i {
    font-size: 24px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Image Side */
.hero-split-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-split-image img {
    max-width: 120%;
    transform: scale(1.1) translateX(10%);
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.1));
}

@media (max-width: 1024px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        height: auto;
        padding-top: 60px;
    }
    .hero-split-image {
        display: none; /* or adjust for mobile */
    }
    .navbar-pill {
        width: 95%;
        padding: 10px 20px;
    }
    .navbar-pill-links {
        display: none; /* Hide on mobile for now, requires hamburger menu logic */
    }
}

/* Mega Menu Dropdown for Light Pill Navbar */
.has-dropdown { position: relative; }
.navbar-9-submenu {
    position: absolute;
    top: 100%; padding-top: 15px; margin-top: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: max-content;
    pointer-events: none;
}
.has-dropdown:hover .navbar-9-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.submenu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    list-style: none;
    margin: 0; padding: 0;
}
.submenu-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.submenu-grid a:hover {
    color: var(--primary);
}
.submenu-grid i {
    color: var(--primary-light);
    width: 20px;
    text-align: center;
}

/* Shine Effect for Hero Titles */
.text-shine {
    background: linear-gradient(
        120deg, 
        var(--gray-900) 0%, 
        var(--gray-900) 40%, 
        #ffffff 50%, 
        var(--gray-900) 60%, 
        var(--gray-900) 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
    display: block;
}
.text-shine span.text-gradient-purple {
    /* Prevent shine from overriding the purple span if needed, but since it's nested it might. */
    -webkit-text-fill-color: transparent;
}
@keyframes shine {
    to { background-position: 200% center; }
}

/* === RESPONSIVE FIXES === */
html, body { overflow-x: hidden; width: 100%; margin: 0; padding: 0; }

.hero-split-title {
  /* Prevent long words like 'Videovigilancia' from breaking layout on small phones */
  
}

@media (max-width: 768px) {
  .hero-split-title {
    font-size: clamp(2.2rem, 8vw, 3rem); /* Smaller on mobile */
  }
  .hero-split-stats {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile instead of 4 */
  }
  .hero-split-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-split-buttons .btn-pill {
    width: 100%;
    text-align: center;
  }
  .navbar-9-submenu {
    width: 100vw;
    left: 0;
    transform: none;
    border-radius: 0;
  }
  .submenu-grid {
    grid-template-columns: 1fr;
  }
  /* Hide text links on mobile, show only logo and contact */
  .navbar-pill-links {
    display: none !important;
  }
}

.hero-light {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    background: #fcfcfc;
}
.hero-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}
.hero-content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 40px 80px 40px;
}
.hero-split-content {
    max-width: 650px;
}
/* Ensure mobile background is mostly solid white/grey so text is readable */
@media (max-width: 768px) {
    .hero-slide-bg {
        background-position: center;
        
    }
    .hero-content-wrapper {
        padding: 120px 20px 60px 20px;
    }
}

#main-topbar { box-sizing: border-box; overflow: hidden; max-width: 100vw;  transition: background-color 0.5s ease; }

/* ==========================================================================
   FOOTER MODERN (PILL DESIGN)
   ========================================================================== */
.footer-modern {
  background: linear-gradient(180deg, var(--bg-main) 0%, #f1f5f9 100%);
  padding: 60px 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.footer-modern-pill {
  background: var(--white);
  width: 100%;
  max-width: 1200px;
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03), inset 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
.footer-modern-top {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Vertically center */
  margin-bottom: 40px;
  gap: 40px;
}
.footer-modern-left {
  max-width: 450px;
}
.footer-modern-logo {
  height: 40px;
  margin-bottom: 20px;
}
.footer-modern-desc {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.footer-modern-links {
  display: flex;
  gap: 24px;
}
.footer-modern-links a {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-modern-links a:hover {
  color: var(--primary);
}
.footer-modern-right {
  display: flex;
  justify-content: flex-end;
}
.footer-modern-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 30px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #f8fafc;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.footer-modern-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.badge-icon {
  font-size: 32px;
  color: var(--gray-800);
}
.badge-text {
  display: flex;
  flex-direction: column;
}
.badge-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  font-weight: 700;
  margin-bottom: 2px;
}
.badge-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
}
.footer-modern-divider {
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 0 0 30px 0;
}
.footer-modern-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright {
  color: var(--gray-500);
  font-size: 13px;
  margin: 0;
}
.footer-socials {
  display: flex;
  gap: 15px;
}
.footer-socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s;
}
.footer-socials a:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .footer-modern-pill {
    padding: 30px 20px;
  }
  .footer-modern-top {
    flex-direction: column;
    gap: 30px;
  }
  .footer-modern-links {
    flex-wrap: wrap;
    gap: 15px;
  }
  .footer-modern-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Topbar Contact Info */
#main-topbar { box-sizing: border-box; overflow: hidden; max-width: 100vw; 
    display: flex;
    align-items: center;
    justify-content: center; /* Default center for mobile */
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 20px;
}
.topbar-contact {
    display: none; /* Hide on mobile to save space */
    align-items: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}
.topbar-contact i { margin-right: 5px; opacity: 0.8; }
.topbar-pill { margin: 0 auto; } /* Keep pill centered */

@media (min-width: 1024px) {
    #main-topbar { box-sizing: border-box; overflow: hidden; max-width: 100vw;  justify-content: space-between; }
    .topbar-contact { display: flex; }
    .topbar-pill { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* Footer Contact Info */
.footer-modern-contact {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-modern-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 500;
}
.footer-modern-contact-item i {
    color: var(--primary);
    width: 15px;
    text-align: center;
}


/* Invisible bridge for dropdown hover */
.navbar-9-submenu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}


/* Sticky Navbar Pill */
.navbar-pill--sticky {
    position: fixed;
    top: 15px !important;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    z-index: 10000;
}

/* ==========================================================================
   MOBILE UI/UX OPTIMIZATIONS (APPLE STYLE)
   ========================================================================== */

/* 1. Hero Background Gradient via Pseudo-element (Fixes Mobile Background Issue) */
.hero-slide-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: flex-start;
}
.hero-slide-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(252,252,252,1) 0%, rgba(252,252,252,0.9) 45%, rgba(252,252,252,0) 100%);
    z-index: 0;
}
.hero-content-wrapper {
    position: relative;
    z-index: 1;
}

/* 2. Mobile Specific Overrides */
@media (max-width: 768px) {
    /* Hero Gradient adjustments for mobile readability */
    .hero-slide-bg::before {
        background: linear-gradient(180deg, rgba(252,252,252,0.1) 0%, rgba(252,252,252,0.85) 45%, rgba(252,252,252,1) 100%);
    }
    .hero-slide-bg {
        align-items: flex-end; /* Push text down */
    }
    .hero-content-wrapper {
        padding-top: 60% !important; /* Expose image at the top */
        padding-bottom: 40px !important;
    }

    /* Apple-style horizontal Snap Scrolling for Grids */
    .bento-grid, .clients-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding: 20px;
        padding-bottom: 30px; /* Space for scrollbar */
        gap: 15px;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none; 
    }
    .bento-grid::-webkit-scrollbar, .clients-grid::-webkit-scrollbar {
        display: none;
    }
    .bento-box {
        min-width: 85vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
    .client-logo {
        min-width: 50vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
}

/* 3. Mobile Apple Menu Overlay */
.mobile-apple-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-apple-menu.is-active {
    transform: translateY(0);
}
.mobile-apple-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.mobile-apple-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-800);
}
.mobile-apple-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.mobile-apple-nav > a {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}
.mobile-apple-submenu {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    margin-top: 15px;
    border-left: 2px solid var(--gray-200);
}
.mobile-apple-submenu.is-active {
    display: flex;
}
.mobile-apple-submenu a {
    font-size: 16px;
    color: var(--gray-600);
    text-decoration: none;
}
.navbar-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-800);
    cursor: pointer;
}
@media (max-width: 1024px) {
    .navbar-hamburger { display: block; }
    .navbar-pill-links, .navbar-pill-actions { display: none !important; }
}


/* Mobile CTA size reduction */
@media (max-width: 768px) {
    .cta-banner {
        padding: 2.5rem 1.5rem !important;
        border-radius: var(--radius-md) !important;
    }
    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .cta-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    .cta-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


@keyframes pulseBtn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(28, 124, 243, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(28, 124, 243, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(28, 124, 243, 0); }
}
.btn-pulse {
    animation: pulseBtn 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        padding: 8px 10px;
        text-align: center;
    }
    .topbar-contact { display: none; }
    .topbar-pill {
        font-size: 11px !important;
        line-height: 1.3;
    }
    .topbar-close {
        top: 50%;
        transform: translateY(-50%);
        right: 5px;
        font-size: 12px;
    }
}

/* MOBILE TOPBAR FIX */
@media (max-width: 768px) {
    #main-topbar { box-sizing: border-box; overflow: hidden; max-width: 100vw; 
        padding: 10px 45px 10px 15px !important;
        min-height: 48px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .topbar-contact {
        display: none !important;
    }
    .topbar-pill {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        border-radius: 8px !important;
        padding: 8px 12px !important;
        width: 100%;
        text-align: center;
        display: block !important;
        white-space: normal;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .topbar-close {
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.15) !important;
        border-radius: 50% !important;
        color: white !important;
        position: absolute !important;
    }
}

@media (max-width: 768px) {
    .mobile-hide { display: none !important; }
    #main-topbar { box-sizing: border-box !important; max-width: 100vw !important; overflow: hidden !important; width: 100% !important; }
    body { overflow-x: hidden !important; width: 100vw !important; }
}
/* FLIP CARDS TEAM */
.team-flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding-bottom: 50px;
}
.flip-card {
    background-color: transparent;
    height: 250px;
    perspective: 1000px;
    border-radius: var(--radius-lg);
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: var(--radius-lg);
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
}
.flip-card-front .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}
.flip-card-front h4 { margin: 0 0 5px 0; color: var(--primary-dark); font-size: 1.2rem; }
.flip-card-front p { margin: 0; color: var(--gray-500); font-size: 0.95rem; }

.flip-card-back {
    background: var(--primary-dark);
    color: white;
    transform: rotateY(180deg);
    border: none;
}
.flip-card-back a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 5px 0;
    transition: color 0.2s;
}
.flip-card-back a:hover { color: var(--primary); }
.flip-card-back i { margin-right: 10px; color: var(--primary); }

/* ========================================================
   GLOBAL COMPONENT OVERRIDES (BENTO & SECTIONS)
   ======================================================== */

.section--dark {
  background-color: var(--primary-dark) !important;
  color: var(--white);
}

.section--dark .section-title {
  color: var(--white) !important;
}

.section--dark .section-subtitle {
  color: rgba(255,255,255,0.7) !important;
}

/* Default Bento (Light Mode) */
.bento-box, .accordion-item {
  background: var(--white) !important;
  border: 1px solid var(--gray-200) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
  border-radius: 24px;
}
.bento-title, .accordion-header, .accordion-item h3, .accordion-item h4 {
  color: var(--primary-dark) !important;
}
.bento-desc, .accordion-content, .accordion-item p, .accordion-item li {
  color: var(--gray-700) !important;
}

/* Bento in Dark Mode */
.section--dark .bento-box, .section--dark .accordion-item {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}
.section--dark .bento-title, .section--dark .accordion-header, .section--dark .accordion-item h3, .section--dark .accordion-item h4 {
  color: var(--white) !important;
}
.section--dark .bento-desc, .section--dark .accordion-content, .section--dark .accordion-item p, .section--dark .accordion-item li {
  color: rgba(255, 255, 255, 0.8) !important;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 130, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 130, 32, 0); }
}

@media (min-width: 992px) { .mobile-toggle { display: none !important; } }
@media (max-width: 991px) { .mobile-toggle { display: flex !important; } .navbar-pill-links, .navbar-pill-actions { display: none !important; } }
.mobile-toggle { background: transparent; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }
.text-gradient-orange { background: linear-gradient(90deg, #F58220, #FF512F); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 4s linear infinite; display: block; }
.text-gradient-green { background: linear-gradient(90deg, #11998E, #38EF7D); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 4s linear infinite; display: block; }
.text-gradient-cyan { background: linear-gradient(90deg, #00d2ff, #3a7bd5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 4s linear infinite; display: block; }


/* MOBILE FIXES */
@media (max-width: 768px) {
  .hero__content { padding-top: 140px !important; }
  .bento-grid, .bento-box, .cta-box, .section { box-sizing: border-box; max-width: 100vw; }
  body { overflow-x: hidden; }
  .bento-box { padding: 1.5rem !important; margin: 0 !important; width: 100%; }
  .cta-box h2 { font-size: 2rem !important; word-wrap: break-word; }
  .cta-box { padding: 2rem 1.5rem !important; border-radius: 12px; margin: 0 auto; width: 92% !important; }
}

@media (max-width: 768px) {
  .cta-box { margin: 0 auto !important; max-width: 90vw !important; overflow: hidden !important; word-break: break-word !important; }
}
