/* ============================================
   CULTIVATEC - Professional Website Styles
   Democratizing STEM Education
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --secondary: #06B6D4;
  --accent: #F59E0B;
  --accent-warm: #F97316;
  --success: #10B981;
  --dark: #0F172A;
  --dark-blue: #1E293B;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

/* --- Base Reset & Typography --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.8;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo-img {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  animation: preload 1.2s ease-in-out infinite;
}

@keyframes preload {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
}

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-link {
  color: var(--dark);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  transition: all 0.4s ease;
}

.navbar.scrolled .nav-logo-img {
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s ease;
  cursor: pointer;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-light);
}

.navbar.scrolled .nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.nav-cta::after {
  display: none;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar.scrolled .hamburger span {
  background: var(--dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #1e3a6e 0%, #2456a0 30%, #3b7ddd 60%, #2563EB 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(59, 130, 246, 0.08) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, rgba(59, 130, 246, 0.06) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: orb-drift 15s ease-in-out infinite alternate-reverse;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

/* Hero Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  top: 10%;
  right: 20%;
  animation: orb-float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(147, 197, 253, 0.12);
  bottom: 20%;
  left: 10%;
  animation: orb-float 10s ease-in-out infinite 2s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  top: 50%;
  left: 40%;
  animation: orb-float 12s ease-in-out infinite 4s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 6s ease-in-out infinite;
}

.particle-1 {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.7);
  top: 15%; left: 10%;
  animation-delay: 0s;
}

.particle-2 {
  width: 6px; height: 6px;
  background: rgba(191,219,254,0.8);
  top: 25%; right: 30%;
  animation-delay: 1s;
}

.particle-3 {
  width: 3px; height: 3px;
  background: rgba(255,255,255,0.6);
  top: 70%; left: 25%;
  animation-delay: 2s;
}

.particle-4 {
  width: 5px; height: 5px;
  background: rgba(147,197,253,0.7);
  bottom: 30%; right: 15%;
  animation-delay: 3s;
}

.particle-5 {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.5);
  top: 45%; left: 5%;
  animation-delay: 4s;
}

.particle-6 {
  width: 3px; height: 3px;
  background: rgba(191,219,254,0.6);
  bottom: 15%; left: 50%;
  animation-delay: 5s;
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  15% { opacity: 0.8; transform: translateY(-10px) scale(1); }
  85% { opacity: 0.8; transform: translateY(-60px) scale(1); }
  100% { opacity: 0; transform: translateY(-80px) scale(0); }
}

/* Hero Grid Layout */
.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 16px rgba(16, 185, 129, 0.3); }
}

/* Hero Brand Name */
.hero-brand {
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-brand-name {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.hero-brand-name span {
  background: linear-gradient(135deg, #BFDBFE 0%, #93C5FD 50%, #E0E7FF 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

.hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero h1 .highlight {
  font-weight: 700;
  color: var(--white);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-description {
  font-size: 1.1875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 540px;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 2rem;
  background: rgba(255, 255, 255, 1);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-hero-primary:hover::before {
  transform: translateX(100%);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 2rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* Buttons used elsewhere */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(37, 99, 235, 0.08);
}

.btn-primary-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary-solid:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.125rem;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  align-self: center;
}

/* Hero Visual - Logo Showcase */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

/* Orbit System */
.hero-orbit-system {
  position: relative;
  width: 480px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-showcase {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.hero-logo-img {
  width: 140px;
  height: auto;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
  animation: logo-breathe 4s ease-in-out infinite;
}

@keyframes logo-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.5)); }
}

.hero-logo-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; }
}

/* Orbit Tracks (visible rings) */
.orbit-track {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.orbit-track-1 {
  width: 240px;
  height: 240px;
  border-color: rgba(255, 255, 255, 0.12);
  border-style: dashed;
}

.orbit-track-2 {
  width: 340px;
  height: 340px;
  border-color: rgba(255, 255, 255, 0.08);
}

.orbit-track-3 {
  width: 450px;
  height: 450px;
  border-color: rgba(255, 255, 255, 0.05);
  border-style: dotted;
}

/* Orbit containers */
.orbit {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Orbit 1 - Inner */
.orbit.orbit-1 {
  width: 240px;
  height: 240px;
  animation: orbit-rotate-1 14s linear infinite;
}

.orbit.orbit-1.orbit-opposite {
  animation: orbit-rotate-1 14s linear infinite;
  animation-delay: -7s;
}

/* Orbit 2 - Middle */
.orbit.orbit-2 {
  width: 340px;
  height: 340px;
  animation: orbit-rotate-2 22s linear infinite;
}

.orbit.orbit-2.orbit-120 {
  animation: orbit-rotate-2 22s linear infinite;
  animation-delay: -7.33s;
}

.orbit.orbit-2.orbit-240 {
  animation: orbit-rotate-2 22s linear infinite;
  animation-delay: -14.66s;
}

/* Orbit 3 - Outer */
.orbit.orbit-3 {
  width: 450px;
  height: 450px;
  animation: orbit-rotate-3 32s linear infinite;
}

.orbit.orbit-3.orbit-90 {
  animation: orbit-rotate-3 32s linear infinite;
  animation-delay: -8s;
}

.orbit.orbit-3.orbit-180 {
  animation: orbit-rotate-3 32s linear infinite;
  animation-delay: -16s;
}

.orbit.orbit-3.orbit-270 {
  animation: orbit-rotate-3 32s linear infinite;
  animation-delay: -24s;
}

@keyframes orbit-rotate-1 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit-rotate-2 {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes orbit-rotate-3 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Orbit Tags */
.hero-orbit-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.95);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  /* Counter-rotate so text stays upright */
  transform: translateY(-50%);
}
}

.orbit.orbit-1 .hero-orbit-tag {
  animation: counter-rotate-1 14s linear infinite;
}

.orbit.orbit-1.orbit-opposite .hero-orbit-tag {
  animation: counter-rotate-1 14s linear infinite;
  animation-delay: -7s;
}

.orbit.orbit-2 .hero-orbit-tag {
  animation: counter-rotate-2 22s linear infinite;
}

.orbit.orbit-2.orbit-120 .hero-orbit-tag {
  animation: counter-rotate-2 22s linear infinite;
  animation-delay: -7.33s;
}

.orbit.orbit-2.orbit-240 .hero-orbit-tag {
  animation: counter-rotate-2 22s linear infinite;
  animation-delay: -14.66s;
}

.orbit.orbit-3 .hero-orbit-tag {
  animation: counter-rotate-3 32s linear infinite;
}

.orbit.orbit-3.orbit-90 .hero-orbit-tag {
  animation: counter-rotate-3 32s linear infinite;
  animation-delay: -8s;
}

.orbit.orbit-3.orbit-180 .hero-orbit-tag {
  animation: counter-rotate-3 32s linear infinite;
  animation-delay: -16s;
}

.orbit.orbit-3.orbit-270 .hero-orbit-tag {
  animation: counter-rotate-3 32s linear infinite;
  animation-delay: -24s;
}

@keyframes counter-rotate-1 {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes counter-rotate-2 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes counter-rotate-3 {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.hero-orbit-tag i {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.95);
}

/* Hero Wave Divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 5;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* Legacy float for other elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* --- About Section --- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 3px solid var(--primary);
  border-radius: var(--radius-2xl);
  z-index: -1;
  opacity: 0.2;
}

.about-floating-stat {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.about-floating-stat .stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.about-floating-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.about-floating-stat .stat-text {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--gray-600);
  font-size: 1.0625rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  transition: background 0.3s ease;
}

.about-feature:hover {
  background: var(--gray-50);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.about-feature span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
}

/* --- Mission & Vision Section --- */
.mission-vision {
  background: var(--gray-50);
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.mv-card:nth-child(1)::before { background: var(--primary); }
.mv-card:nth-child(2)::before { background: var(--secondary); }
.mv-card:nth-child(3)::before { background: var(--accent); }

.mv-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.mv-card:nth-child(1) .mv-icon {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.mv-card:nth-child(2) .mv-icon {
  background: rgba(6, 182, 212, 0.1);
  color: var(--secondary);
}

.mv-card:nth-child(3) .mv-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

.mv-card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.mv-card p {
  color: var(--gray-600);
  line-height: 1.8;
}

/* --- Programs Section --- */
.programs {
  background: var(--white);
}

.programs-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.programs-header .section-subtitle {
  margin: 0 auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.program-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.4s ease;
  position: relative;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.program-card-image {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-card:hover .program-card-image img {
  transform: scale(1.05);
}

.program-card-image .program-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.program-badge-presencial {
  background: rgba(16, 185, 129, 0.9);
  color: var(--white);
}

.program-badge-digital {
  background: rgba(37, 99, 235, 0.9);
  color: var(--white);
}

.program-card-body {
  padding: 2rem;
}

.program-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.program-card-body p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.program-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.program-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.program-features li i {
  color: var(--success);
  font-size: 1.125rem;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9375rem;
  transition: gap 0.3s ease;
}

.program-link:hover {
  gap: 0.875rem;
}

/* --- Impact / Stats Section --- */
.impact {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a4e 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.impact-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 2;
}

.impact-header .section-title {
  color: var(--white);
}

.impact-header .section-subtitle {
  color: rgba(255,255,255,0.6);
  margin: 0 auto;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}

.impact-stat {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-2xl);
  transition: all 0.3s ease;
}

.impact-stat:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.impact-stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-light);
}

.impact-stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.impact-stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* --- Testimonials --- */
.testimonials {
  background: var(--gray-50);
}

.testimonials-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.testimonials-header .section-subtitle {
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--accent);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.testimonial-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9375rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* --- App Section (PWA) --- */
.app-section {
  background: var(--white);
  overflow: hidden;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.app-content .section-title {
  margin-bottom: 1.5rem;
}

.app-content p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.app-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.app-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  transition: background 0.3s ease;
}

.app-features-list li:hover {
  background: rgba(37, 99, 235, 0.05);
}

.app-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.app-feature-text strong {
  display: block;
  color: var(--dark);
  margin-bottom: 0.125rem;
  font-size: 0.9375rem;
}

.app-feature-text span {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.app-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.app-mockup {
  width: 280px;
  height: 560px;
  background: var(--dark);
  border-radius: 2.5rem;
  border: 4px solid var(--gray-700);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  position: relative;
}

.app-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: var(--dark);
  border-radius: 0 0 1rem 1rem;
  z-index: 5;
}

.app-mockup-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--white);
  text-align: center;
}

.app-mockup-screen .mockup-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.app-mockup-screen .mockup-tagline {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.app-mockup-screen .mockup-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 200px;
}

.app-mockup-screen .mockup-icon-item {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto;
}

.app-mockup-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Install Tutorial --- */
.install-tutorial {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--gray-200);
}

.install-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.install-header h3 {
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.install-header h3 i {
  color: var(--primary);
  font-size: 1.5rem;
}

.install-header p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.install-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.install-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.install-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  color: var(--white);
  font-size: 1.25rem;
}

.install-card-header i {
  font-size: 1.5rem;
}

.install-card-header h4 {
  font-size: 1.125rem;
}

.install-android {
  background: linear-gradient(135deg, #34A853, #0F9D58);
}

.install-ios {
  background: linear-gradient(135deg, #555555, #333333);
}

.install-steps {
  list-style: none;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.125rem;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-content strong {
  font-size: 0.9375rem;
  color: var(--dark);
}

.step-content span {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.step-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.step-content a:hover {
  color: var(--primary-dark);
}

.install-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-xl);
}

.install-note > i {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.install-note p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Values Section --- */
.values {
  background: var(--gray-50);
}

.values-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.values-header .section-subtitle {
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.4s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Contact / CTA Section --- */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-method strong {
  display: block;
  color: var(--dark);
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.contact-method span {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--white);
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

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

.form-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-banner .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2.5rem;
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-banner .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.5);
}

.footer h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --- Business Model / Sostenibilidad --- */
.business-model {
  background: var(--gray-50);
}

.bm-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.bm-header .section-subtitle {
  margin: 0.75rem auto 0;
}

.bm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.bm-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.bm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.bm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bm-card:hover::before {
  opacity: 1;
}

.bm-card-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.bm-badge-alt {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

.bm-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), #3B82F6);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.bm-icon-alt {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.bm-card h3 {
  font-size: 1.375rem;
  color: var(--dark);
  margin-bottom: 0.375rem;
}

.bm-card-subtitle {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.bm-card-desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bm-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.bm-feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.bm-feature i {
  font-size: 1.125rem;
  color: var(--primary);
  flex-shrink: 0;
}

.bm-card:nth-child(2) .bm-feature i {
  color: var(--accent);
}

.bm-pricing {
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.bm-price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
}

.bm-price small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
}

.bm-quote {
  position: relative;
  padding: 1.25rem;
  background: rgba(37, 99, 235, 0.03);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.bm-card:nth-child(2) .bm-quote {
  background: rgba(245, 158, 11, 0.04);
  border-left-color: var(--accent);
}

.bm-quote > i {
  font-size: 1.25rem;
  color: var(--primary);
  opacity: 0.4;
  margin-bottom: 0.5rem;
  display: block;
}

.bm-card:nth-child(2) .bm-quote > i {
  color: var(--accent);
}

.bm-quote p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
}

/* Guarantee Banner */
.bm-guarantee {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), #3B82F6);
  border-radius: var(--radius-2xl);
  color: var(--white);
}

.bm-guarantee-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bm-guarantee h4 {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.bm-guarantee p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.bm-guarantee p strong {
  color: var(--white);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-grid,
  .app-grid,
  .contact-grid,
  .bm-grid,
  .install-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .mv-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links .nav-link {
    color: var(--dark);
    font-size: 1.25rem;
  }

  .hamburger {
    display: flex;
  }

  .hero-brand-name {
    font-size: 3rem;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .bm-guarantee {
    flex-direction: column;
    text-align: center;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .impact-stats {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .about-floating-stat {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
  }

  .about-image-accent {
    display: none;
  }
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Selection --- */
::selection {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-dark);
}
