* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Poppins", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background 0.5s ease, color 0.5s ease;
}

body.menu-open {
  overflow: hidden;
}

[data-theme="dark"] {
  --bg-primary: #0f1219;
  --bg-secondary: #161b26;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-nav: rgba(15, 18, 25, 0.8);
  --bg-footer: #0f1219;
  --bg-overlay: rgba(255, 255, 255, 0.03);
  --text-primary: #f0f2f5;
  --text-secondary: #8b95a5;
  --text-muted: #6b7585;
  --text-footer-bottom: #3a4250;
  --border-card: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --accent-1: #00bfff;
  --accent-2: #94C94A;
  --shadow-card: rgba(0, 0, 0, 0.4);
  --shadow-glow: rgba(0, 191, 255, 0.15);
  --burger-bg: rgba(15, 18, 25, 0.95);
  --social-bg: rgba(255, 255, 255, 0.1);
  --social-color: #fff;
  --gradient-overlay-1: rgba(0, 191, 255, 0.08);
  --gradient-overlay-2: rgba(148, 201, 74, 0.08);
  --icon-color: #94C94A;
  --icon-hover: #00bfff;
  --hero-overlay: rgba(0, 0, 0, 0.5);
  --card-backdrop: blur(20px);
  --clients-bg: linear-gradient(180deg, #0f1219 0%, #131824 50%, #0f1219 100%);
  --logo-filter: grayscale(100%) brightness(1.5);
  --floating-shadow: rgba(0, 0, 0, 0.4);
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  --bg-primary: #fafbfd;
  --bg-secondary: #f0f3f8;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --bg-nav: rgba(250, 251, 253, 0.85);
  --bg-footer: #1a1f2e;
  --bg-overlay: rgba(0, 0, 0, 0.02);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-footer-bottom: #6b7280;
  --border-card: rgba(0, 0, 0, 0.06);
  --border-subtle: rgba(0, 0, 0, 0.03);
  --accent-1: #0091d5;
  --accent-2: #5d9c1e;
  --shadow-card: rgba(0, 0, 0, 0.08);
  --shadow-glow: rgba(0, 145, 213, 0.12);
  --burger-bg: rgba(250, 251, 253, 0.97);
  --social-bg: rgba(0, 0, 0, 0.06);
  --social-color: #111827;
  --gradient-overlay-1: rgba(0, 145, 213, 0.05);
  --gradient-overlay-2: rgba(93, 156, 30, 0.05);
  --icon-color: #0091d5;
  --icon-hover: #5d9c1e;
  --hero-overlay: rgba(0, 0, 0, 0.35);
  --card-backdrop: blur(20px);
  --clients-bg: linear-gradient(180deg, #f0f3f8 0%, #e8ecf4 50%, #f0f3f8 100%);
  --logo-filter: grayscale(100%) brightness(0.6) contrast(1.2);
  --floating-shadow: rgba(0, 0, 0, 0.1);
  --input-bg: rgba(0, 0, 0, 0.03);
  --input-border: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .bento-card,
[data-theme="light"] .program-card,
[data-theme="light"] .stat-block {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

[data-theme="light"] .bento-card:hover,
[data-theme="light"] .program-card:hover,
[data-theme="light"] .stat-block:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

[data-theme="light"] nav:not(.scrolled) ul li a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="light"] nav:not(.scrolled) .burger span {
  background: #fff;
}

[data-theme="light"] nav:not(.scrolled) .theme-toggle {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

[data-theme="light"] nav:not(.scrolled) .lang-switcher {
  border-color: rgba(255,255,255,0.3);
}

[data-theme="light"] nav:not(.scrolled) .lang-btn:not(.active) {
  color: rgba(255,255,255,0.7);
}

[data-theme="light"] .bento-icon,
[data-theme="light"] .program-card-icon {
  background: linear-gradient(135deg, rgba(0, 145, 213, 0.08), rgba(93, 156, 30, 0.08));
  border-color: rgba(0, 0, 0, 0.04);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
}

.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

nav .logo img {
  width: 180px;
  height: auto;
  transition: transform 0.3s ease;
}

nav .logo img:hover {
  transform: scale(1.05);
}

nav .logo .logo-dark { display: block; }
nav .logo .logo-light { display: none; }

[data-theme="light"] nav.scrolled .logo-dark { display: none; }
[data-theme="light"] nav.scrolled .logo-light { display: block; }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  transition: all 0.3s ease;
}

nav ul li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  position: relative;
  z-index: 1300;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.4s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-1);
  background: var(--gradient-overlay-1);
}

[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: inline-block; }

.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.lang-switcher:hover {
  border-color: var(--accent-1);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

.lang-btn.active {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #111;
}

.lang-btn:not(.active):hover {
  color: var(--text-primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

main { position: relative; }
section { position: relative; overflow: hidden; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-1);
  margin-bottom: 1rem;
  padding: 6px 20px;
  border: 1px solid var(--accent-1);
  border-radius: 30px;
  opacity: 0.8;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.aurora-mesh {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  will-change: transform;
}

[data-theme="light"] .aurora-mesh {
  opacity: 0.08;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.gradient-text {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateGradient {
  to { --angle: 360deg; }
}

.counter-value {
  font-variant-numeric: tabular-nums;
}

.site-footer {
  position: relative;
  background: var(--bg-footer);
  color: #fff;
  padding: 4rem 2rem 2rem;
  font-family: 'Poppins', sans-serif;
  transition: background 0.5s ease;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-section p,
.footer-section li,
.footer-section a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a:hover {
  color: var(--accent-1);
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #111;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.floating-contact {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1500;
}

.floating-contact a {
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.floating-contact a.whatsapp { background: #25D366; }
.floating-contact a.viber { background: #7360F2; }

.floating-contact a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tilt-card {
  transform-style: preserve-3d;
}

.glow-card::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  z-index: 0;
}

.glow-card:hover::after {
  opacity: 0.07;
}

[data-theme="light"] .glow-card:hover::after {
  opacity: 0.04;
}

@media (max-width: 1200px) {
  nav .logo img { width: 140px; }
  nav ul { gap: 1.2rem; }
  nav ul li a { font-size: 0.95rem; }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-inner { padding: 1rem 1.2rem; }
  nav .logo img { width: 120px; }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 350px;
    background: var(--burger-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    z-index: 1200;
  }

  nav ul.active {
    right: 0;
    box-shadow: -100vw 0 0 100vw rgba(0, 0, 0, 0.5);
  }

  nav ul li a { font-size: 1.4rem; }

  .nav-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    z-index: 1300;
    gap: 0.8rem;
    border-top: 1px solid var(--border-card);
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.active ~ .nav-controls {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .section-title { font-size: 2.2rem; }
  .section-header { margin-bottom: 2.5rem; }
}

@media (max-width: 600px) {
  .floating-contact a { width: 46px; height: 46px; font-size: 1.3rem; }
}

@media (max-width: 480px) {
  nav .logo img { width: 100px; }
  .nav-inner { padding: 0.8rem 1rem; }
}

@media (max-width: 1024px) {
  .footer-container { flex-direction: column; align-items: center; }
  .footer-section { text-align: center; }
  .social-icons { justify-content: center; }
}
