/* ============================================
   MiCuartel.cl — 2026 Modern Landing
   Glassmorphism · Framer Motion · Green Theme
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --green-50: #edfff4;
  --green-100: #d5ffe6;
  --green-200: #aeffce;
  --green-300: #70ffa8;
  --green-400: #2bfd7b;
  --green-500: #00e85e;
  --green-600: #00a14e;
  --green-700: #008f3d;
  --green-800: #066f34;
  --green-900: #075b2d;
  --green-950: #003316;

  --dark-900: #0a0f1a;
  --dark-800: #111827;
  --dark-700: #1f2937;
  --dark-600: #374151;

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
  background: var(--dark-900);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-900); }
::-webkit-scrollbar-thumb { background: var(--green-700); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-600); }

/* ---------- Selection ---------- */
::selection { background: var(--green-600); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

a { color: inherit; text-decoration: none; transition: color 0.3s; }
p { color: #94a3b8; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Glass Card ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

.glass-light {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 161, 78, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 161, 78, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
  border-color: var(--green-500);
  color: var(--green-400);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled {
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
}
.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo img { height: 36px; width: auto; }
.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.navbar .nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: color 0.3s;
}
.navbar .nav-links a:hover { color: var(--green-400); }
.navbar .nav-actions { display: flex; align-items: center; gap: 12px; }

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.nav-dropdown:hover > a svg {
  transform: rotate(180deg);
}
.nav-dropdown .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown .nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-dropdown .nav-dropdown-menu a:hover {
  background: rgba(0, 161, 78, 0.1);
  color: var(--green-400);
}
.nav-dropdown .nav-dropdown-menu .dropdown-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* Mobile module sub-links */
.mobile-menu .mobile-sub-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 20px;
}
.mobile-menu .mobile-sub-links a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #94a3b8;
}
.mobile-menu .mobile-sub-links a:hover {
  color: var(--green-400);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 15, 26, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 600;
  color: #e2e8f0;
}
.mobile-menu a:hover { color: var(--green-400); }
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg .gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.hero-bg .orb-1 {
  width: 600px;
  height: 600px;
  background: var(--green-600);
  top: -200px;
  right: -100px;
}
.hero-bg .orb-2 {
  width: 400px;
  height: 400px;
  background: var(--green-500);
  bottom: -100px;
  left: -100px;
  opacity: 0.2;
}
.hero-bg .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--green-400), var(--green-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #94a3b8;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #64748b;
}
.hero-note svg { color: var(--green-500); flex-shrink: 0; }
.hero-image {
  position: relative;
  z-index: 2;
}
.hero-image img {
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  background: rgba(0, 161, 78, 0.1);
  border: 1px solid rgba(0, 161, 78, 0.25);
  color: var(--green-400);
}

/* ---------- Section ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section-sm { padding: 80px 0; }
.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section-title .overline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-400);
  margin-bottom: 16px;
}
.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-title p {
  font-size: 1.125rem;
  color: #94a3b8;
}

/* ---------- Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 161, 78, 0.3);
  box-shadow: 0 12px 40px rgba(0, 161, 78, 0.1);
}
.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 161, 78, 0.15), rgba(0, 161, 78, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-400);
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* ---------- Module Cards (Capitanía, Secretaría, Tesorería) ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.module-card {
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 161, 78, 0.3);
}
.module-card .module-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem;
}
.module-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.module-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step-card {
  padding: 36px 28px;
  counter-increment: step;
  position: relative;
}
.step-card::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 28px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 10px; margin-top: 8px; }
.step-card p { font-size: 0.95rem; color: #94a3b8; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.billing-label {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s;
  cursor: pointer;
}
.billing-label.active { color: #fff; }
.billing-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green-400);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 6px;
}
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--dark-600);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}
.toggle-switch .toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--green-500);
  border-radius: 50%;
  transition: transform 0.3s;
}
.toggle-switch.monthly .toggle-knob {
  transform: translateX(0);
}
.toggle-switch:not(.monthly) .toggle-knob {
  transform: translateX(24px);
}
.pricing-card {
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--green-600);
  box-shadow: 0 0 0 1px var(--green-600), 0 12px 40px rgba(0, 161, 78, 0.15);
}
.pricing-card.featured::before {
  content: 'Recomendado';
  position: absolute;
  top: 16px;
  right: -30px;
  background: var(--green-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 36px;
  transform: rotate(45deg);
}
.pricing-card .plan-name {
  font-size: 1.1rem;
  color: var(--green-400);
  font-weight: 600;
  margin-bottom: 8px;
}
.pricing-card .plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.pricing-card .plan-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 28px;
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  color: #cbd5e1;
  padding: 8px 0;
}
.pricing-card ul li svg { color: var(--green-500); flex-shrink: 0; }
.pricing-card ul li.disabled { color: #475569; }
.pricing-card ul li.disabled svg { color: #475569; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--green-400);
}
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.cta-section .cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 161, 78, 0.1), transparent);
  border-radius: 24px;
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.9rem; color: #64748b; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: #64748b; }
.footer-col ul li a:hover { color: var(--green-400); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: #475569;
}

/* ---------- Inner page hero ---------- */
.inner-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.inner-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.inner-hero p { font-size: 1.1rem; color: #94a3b8; }

/* ---------- Legal content ---------- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 80px;
}
.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: #fff;
}
.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #e2e8f0;
}
.legal-content p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
  color: #94a3b8;
}
.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}
.legal-content ul li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
  color: #94a3b8;
}
.legal-content strong { color: #e2e8f0; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.contact-info p { margin-bottom: 24px; }
.contact-item {
  display: flex;
  align-items: start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-item .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 161, 78, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-400);
}
.contact-item h4 { font-size: 1rem; margin-bottom: 2px; }
.contact-item p { font-size: 0.925rem; color: #64748b; margin: 0; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-500);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 404 Page ---------- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-404 .big-number {
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  user-select: none;
}
.page-404 h1 { font-size: 2.5rem; margin-bottom: 12px; }
.page-404 p { font-size: 1.1rem; color: #94a3b8; margin-bottom: 32px; }

/* ---------- Divider glow ---------- */
.glow-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-600), transparent);
  opacity: 0.3;
}

/* ---------- Animate on scroll (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Floating animation ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 161, 78, 0.2); }
  50% { box-shadow: 0 0 40px rgba(0, 161, 78, 0.4); }
}

/* ---------- Stats row ---------- */
.stats-row {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green-400);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.stat-item .stat-label { font-size: 0.9rem; color: #64748b; margin-top: 4px; }

/* ---------- Comparison table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
}
.comparison-table thead th {
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.comparison-table thead th:first-child { text-align: left; }
.comparison-table tbody td {
  padding: 14px 20px;
  font-size: 0.925rem;
  color: #cbd5e1;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
}
.comparison-table tbody tr { transition: background 0.3s; }
.comparison-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .navbar .nav-links { display: none; }
  .navbar .nav-actions .btn-secondary { display: none; }
  .mobile-toggle { display: flex; }

  .hero { text-align: center; padding-top: 120px; }
  .hero .subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-grid { grid-template-columns: 1fr !important; }

  .section { padding: 80px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

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

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 16px auto 0; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .stats-row { gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 2.2rem; }
  .section-title h2 { font-size: 1.8rem; }
  .btn-primary, .btn-secondary, .btn-whatsapp { padding: 12px 24px; font-size: 0.95rem; }
}
