/* ============================================================
   TM INFINITY - CSS Global Premium
   Design: Dark Mode | Red & Black | SaaS Modern
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   VARIÁVEIS CSS
   ============================================================ */
:root {
  --black:       #0A0A0A;
  --black-2:     #111111;
  --dark:        #1A1A1A;
  --dark-2:      #222222;
  --dark-3:      #2A2A2A;
  --red:         #FF0000;
  --red-dark:    #B30000;
  --red-glow:    rgba(255, 0, 0, 0.3);
  --red-glow-sm: rgba(255, 0, 0, 0.15);
  --white:       #FFFFFF;
  --gray:        #888888;
  --gray-light:  #CCCCCC;
  --border:      rgba(255, 255, 255, 0.08);
  --border-red:  rgba(255, 0, 0, 0.3);

  --font-main:   'Inter', sans-serif;
  --font-title:  'Space Grotesk', sans-serif;

  --radius:      8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --transition:  all 0.3s ease;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-red:  0 0 30px rgba(255,0,0,0.2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.5);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: #ff4444; }

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

ul, ol { list-style: none; }

/* ============================================================
   SCROLLBAR PERSONALIZADA
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { color: var(--gray-light); line-height: 1.8; }

.text-red { color: var(--red) !important; }
.text-white { color: var(--white) !important; }
.text-gray { color: var(--gray) !important; }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--red), #ff6666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .badge-label {
  display: inline-block;
  background: var(--red-glow-sm);
  border: 1px solid var(--border-red);
  color: var(--red);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--gray); }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 20px var(--red-glow);
}
.btn-primary:hover {
  background: #cc0000;
  box-shadow: 0 0 40px rgba(255,0,0,0.5);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 20px var(--red-glow-sm);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 28px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(255,0,0,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.card-header { margin-bottom: 20px; }
.card-title { font-size: 1.1rem; font-weight: 600; color: var(--white); }
.card-body { }
.card-footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: rgba(0,200,100,0.15); color: #00c864; border: 1px solid rgba(0,200,100,0.3); }
.badge-danger  { background: rgba(255,0,0,0.15); color: #ff4444; border: 1px solid rgba(255,0,0,0.3); }
.badge-warning { background: rgba(255,170,0,0.15); color: #ffaa00; border: 1px solid rgba(255,170,0,0.3); }
.badge-info    { background: rgba(0,150,255,0.15); color: #0096ff; border: 1px solid rgba(0,150,255,0.3); }
.badge-primary { background: rgba(255,0,0,0.15); color: var(--red); border: 1px solid var(--border-red); }
.badge-secondary { background: rgba(255,255,255,0.08); color: var(--gray); border: 1px solid var(--border); }

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-light);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow-sm);
}
.form-control::placeholder { color: var(--gray); }
.form-control option { background: var(--dark-2); }

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

.form-error { color: #ff4444; font-size: 0.8rem; margin-top: 4px; }
.form-success { color: #00c864; font-size: 0.8rem; margin-top: 4px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(0,200,100,0.1); border: 1px solid rgba(0,200,100,0.3); color: #00c864; }
.alert-danger   { background: rgba(255,0,0,0.1); border: 1px solid rgba(255,0,0,0.3); color: #ff4444; }
.alert-warning  { background: rgba(255,170,0,0.1); border: 1px solid rgba(255,170,0,0.3); color: #ffaa00; }
.alert-info     { background: rgba(0,150,255,0.1); border: 1px solid rgba(0,150,255,0.3); color: #0096ff; }

/* ============================================================
   TABELAS
   ============================================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  background: var(--dark-2);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--gray-light);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--black);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }

.loading-logo {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 32px;
}
.loading-logo span { color: var(--red); }

.loading-bar {
  width: 200px;
  height: 2px;
  background: var(--dark-3);
  border-radius: 1px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 1px;
  box-shadow: 0 0 10px var(--red);
  animation: loadingFill 1.5s ease forwards;
}
@keyframes loadingFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.navbar-logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.navbar-logo span { color: var(--red); }

.navbar-menu { display: flex; align-items: center; gap: 32px; }
.navbar-menu a {
  color: var(--gray-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: var(--transition);
}
.navbar-menu a:hover { color: var(--white); }
.navbar-menu a:hover::after { width: 100%; }

.navbar-actions { display: flex; align-items: center; gap: 12px; }

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255,0,0,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(179,0,0,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 10% 80%, rgba(255,0,0,0.05) 0%, transparent 50%);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,0,0,0.08);
  border: 1px solid rgba(255,0,0,0.25);
  color: var(--red);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--red);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
  line-height: 1.1;
}

.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}
.hero-stat-number span { color: var(--red); }
.hero-stat-label { font-size: 0.85rem; color: var(--gray); }

/* ============================================================
   PARTICLES (canvas)
   ============================================================ */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.service-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover { border-color: var(--border-red); transform: translateY(-6px); box-shadow: var(--shadow-red); }
.service-card.featured { border-color: var(--red); box-shadow: 0 0 24px rgba(255,0,0,0.2); position: relative; }
.service-card.featured::before { content: '★ DESTAQUE'; position: absolute; top: -12px; left: 20px; background: var(--red); color: #fff; padding: 3px 12px; border-radius: 50px; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(255,0,0,0.1);
  border: 1px solid var(--border-red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--red);
}

.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; font-weight: 600; }
.service-card p { font-size: 0.875rem; color: var(--gray); line-height: 1.65; }
.service-card .service-icon { transition: var(--transition); }
.service-card:hover .service-icon { background: rgba(255,0,0,0.18); transform: scale(1.08); }

/* ============================================================
   PLANOS
   ============================================================ */
.plan-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: var(--transition);
  position: relative;
}
.plan-card.featured {
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}
.plan-card.featured::before {
  content: 'MAIS POPULAR';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.plan-price {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin: 16px 0;
}
.plan-price small { font-size: 1rem; color: var(--gray); font-weight: 400; }
.plan-features { margin: 24px 0; }
.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testimonial-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border-red); box-shadow: var(--shadow-red); }

.testimonial-stars { color: var(--red); margin-bottom: 16px; font-size: 1rem; }
.testimonial-text { font-style: italic; color: var(--gray-light); margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--gray); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active { border-color: var(--border-red); }

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--dark);
  transition: var(--transition);
  line-height: 1.5;
}
.faq-question:hover { background: var(--dark-2); }
.faq-question .icon {
  width: 24px; height: 24px;
  min-width: 24px;
  background: rgba(255,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-item.active .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--dark);
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--gray); font-size: 0.9rem; line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}
.footer-brand .logo span { color: var(--red); }
.footer-brand p { font-size: 0.9rem; color: var(--gray); margin-bottom: 24px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--red); color: var(--red); box-shadow: 0 0 10px var(--red-glow-sm); }

.footer-col h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; color: var(--white); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--gray); font-size: 0.85rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--red); padding-left: 4px; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--gray); }
.footer-bottom a { color: var(--gray); font-size: 0.85rem; }
.footer-bottom a:hover { color: var(--red); }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--red); }
  50%       { opacity: 0.5; box-shadow: 0 0 12px var(--red); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px var(--red-glow); }
  50%       { box-shadow: 0 0 40px rgba(255,0,0,0.5); }
}

.animate-fade-up { animation: fadeInUp 0.6s ease both; }
.animate-fade-in { animation: fadeIn 0.6s ease both; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 40px; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-actions { flex-direction: row; gap: 10px; flex-wrap: nowrap; }
  .hero-actions .btn-lg { padding: 13px 16px; font-size: 0.85rem; flex: 1; min-width: 0; justify-content: center; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .navbar-menu { display: none; }
  .navbar-toggle { display: flex; }
  .navbar-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8,8,8,0.99);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }
  .navbar-menu.open a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-light);
  }
  .navbar-menu.open a:hover { color: var(--red); }
  .navbar-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    width: 200px;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .plan-card { padding: 28px 20px; }
}
