/* ========================================
   GRODIT AGRO CORE - STYLES
   Plataforma SaaS Agropecuaria
   Tema: Dark Premium + Light Sections
   Mobile-First Responsive
   ======================================== */

/* --- VARIABLES --- */
:root {
  /* Green palette */
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-300: #6ee7b7;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;

  /* Cyan accent */
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  /* Dark theme */
  --bg-primary: #0a0f0d;
  --bg-secondary: #111916;
  --bg-tertiary: #1a2620;
  --bg-card: rgba(17, 25, 22, 0.7);
  --bg-glass: rgba(10, 15, 13, 0.8);

  /* Light theme */
  --light-bg: #f8faf9;
  --light-bg-alt: #f0f5f2;
  --light-card: #ffffff;
  --light-border: #e2e8f0;

  /* Text - Dark sections */
  --text-primary: #f0fdf4;
  --text-secondary: #bbf7d0;
  --text-muted: #6b7f74;
  --text-dim: #4a5e53;

  /* Text - Light sections */
  --text-dark: #0f1d16;
  --text-dark-secondary: #374a40;
  --text-dark-muted: #5a6e62;

  /* Borders & effects */
  --border-color: rgba(16, 185, 129, 0.12);
  --border-hover: rgba(16, 185, 129, 0.3);
  --glow-sm: 0 0 15px rgba(16, 185, 129, 0.1);
  --glow-md: 0 0 30px rgba(16, 185, 129, 0.15);
  --glow-lg: 0 0 50px rgba(16, 185, 129, 0.2);

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-height: 72px;
  --container-max: 1200px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- UTILITIES --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* Section labels - Dark sections */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--green-400);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.05);
}

/* Section labels - Light sections */
.section-label-dark {
  color: var(--green-700);
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
}

/* Titles - Dark sections */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Titles - Light sections */
.section-title-dark { color: var(--text-dark); }

/* Text - Dark sections */
.section-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.8;
}

/* Text - Light sections */
.section-text-dark {
  color: var(--text-dark-secondary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--green-400), var(--cyan-400), var(--green-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid pattern overlay */
.grid-pattern {
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}
.btn-primary {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  background: var(--green-400);
  box-shadow: 0 6px 30px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--green-400);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--green-400);
}
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   SECTION BACKGROUNDS
   ======================================== */
.section {
  padding: 80px 0;
  position: relative;
}
.section-dark { background: var(--bg-primary); }
.section-light { background: var(--light-bg); }
.section-cta {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-header .section-text { margin: 0 auto; }

/* ========================================
   HEADER
   ======================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}
.main-header.scrolled {
  background: rgba(10, 15, 13, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img { width: 38px; height: 38px; border-radius: var(--radius-sm); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-400);
}

/* Desktop nav */
.main-nav { display: none; }

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: rgba(16, 185, 129, 0.08); }
.nav-link .chevron { width: 14px; height: 14px; transition: transform var(--transition-fast); }

/* --- MEGA MENU --- */
.nav-item-mega { position: relative; }

.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 880px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
  padding: 28px;
}

.nav-item-mega:hover .mega-menu,
.nav-item-mega.active .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-item-mega:hover .nav-link .chevron { transform: rotate(180deg); }

.mega-menu-container { display: flex; flex-direction: column; gap: 24px; }

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.mega-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-400);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.mega-icon { width: 16px; height: 16px; flex-shrink: 0; }
.mega-links li { margin-bottom: 2px; }
.mega-links a {
  display: block;
  padding: 6px 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.mega-links a:hover { color: var(--text-primary); background: rgba(16, 185, 129, 0.1); padding-left: 14px; }

/* Mega banner */
.mega-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.04));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.mega-banner-text strong { display: block; font-size: 0.92rem; color: var(--text-primary); margin-bottom: 3px; }
.mega-banner-text p { font-size: 0.8rem; color: var(--text-muted); }
.mega-banner-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-400);
  border: 1px solid var(--green-500);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.mega-banner-btn:hover { background: var(--green-500); color: #fff; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}
.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); }

/* --- MOBILE MENU --- */
.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-menu.open {
  display: block;
  max-height: 600px;
  overflow-y: auto;
}

.mobile-nav-list { padding: 12px 24px 24px; }

.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-fast);
}
.mobile-nav-link:hover { color: var(--green-400); }

/* Mobile accordion */
.mobile-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  font-family: var(--font-main);
}
.mobile-accordion-btn .chevron { width: 18px; height: 18px; transition: transform var(--transition-normal); }
.mobile-accordion-btn.active .chevron { transform: rotate(180deg); }

.mobile-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-accordion-content.open { max-height: 600px; }

.mobile-service-group {
  padding: 8px 0 14px 0;
  border-bottom: 1px solid var(--border-color);
}
.mobile-service-group h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-400);
  margin-bottom: 6px;
  padding-left: 8px;
}
.mobile-service-group a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.mobile-service-group a:hover { color: var(--text-primary); background: rgba(16, 185, 129, 0.05); }

.mobile-cta { padding-top: 20px; }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 13, 0.7) 0%, rgba(10, 15, 13, 0.85) 50%, rgba(10, 15, 13, 0.98) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-400);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.05);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: float 3s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   EL PROBLEMA
   ======================================== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.problem-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1.02rem;
}
.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.problem-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.problem-tag:hover { background: rgba(239, 68, 68, 0.15); transform: translateY(-2px); }
.problem-tag svg { width: 14px; height: 14px; opacity: 0.6; flex-shrink: 0; }

.problem-conclusion {
  margin-top: 48px;
  padding: 24px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--green-500);
  text-align: center;
}
.problem-conclusion p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }

/* ========================================
   POR QUÉ SAAS
   ======================================== */
.saas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.saas-text .section-text-dark {
  max-width: none;
  margin-bottom: 16px;
}
.saas-benefits { display: flex; flex-direction: column; gap: 16px; }

.saas-benefit-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.saas-benefit-card:hover {
  border-color: var(--green-300);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}
.saas-benefit-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.saas-benefit-icon svg { width: 22px; height: 22px; stroke: var(--green-600); }
.saas-benefit-card strong { display: block; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 4px; }
.saas-benefit-card p { font-size: 0.88rem; color: var(--text-dark-muted); line-height: 1.6; }

/* ========================================
   QUÉ ES GRODIT AGRO CORE
   ======================================== */
.core-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.core-content .section-text { margin: 0 auto 20px; }

.core-quote {
  margin-top: 40px;
  padding: 32px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.core-quote-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  margin: 0 auto 16px;
}
.core-quote-icon svg { width: 24px; height: 24px; stroke: var(--green-400); }
.core-quote p { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; }
.core-quote strong { color: var(--green-400); }

/* ========================================
   MÓDULOS DEL CORE
   ======================================== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.module-card {
  padding: 28px 20px;
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.module-card:hover {
  border-color: var(--green-300);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
  transform: translateY(-4px);
}
.module-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.module-icon svg { width: 24px; height: 24px; stroke: var(--green-600); }
.module-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.module-card p {
  font-size: 0.88rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
}

/* ========================================
   INTEGRACIONES
   ======================================== */
.integration-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.integration-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-300);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  transition: all var(--transition-fast);
}
.integration-tag:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.integration-quote {
  text-align: center;
  padding: 24px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.integration-quote p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; }
.integration-quote strong { color: var(--green-400); }

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.dashboard-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--light-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}
.dashboard-preview img { width: 100%; display: block; }

.dashboard-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dashboard-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-700);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 100px;
}
.dashboard-feature-item svg { width: 14px; height: 14px; stroke: var(--green-600); flex-shrink: 0; }

.dashboard-tagline {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: rgba(16, 185, 129, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.12);
}
.dashboard-tagline p { font-size: 1.1rem; font-weight: 700; color: var(--green-700); }

/* ========================================
   IA OPERACIONAL
   ======================================== */
.ia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ia-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}
.ia-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--glow-sm); }
.ia-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.ia-icon svg { width: 20px; height: 20px; stroke: var(--green-400); }
.ia-card span { font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); }

.ia-quote {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.ia-quote p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; }
.ia-quote strong { color: var(--green-400); }

/* ========================================
   CASOS DE USO
   ======================================== */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.usecase-card {
  padding: 28px 20px;
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.usecase-card:hover {
  border-color: var(--green-300);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
  transform: translateY(-4px);
}
.usecase-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.usecase-icon svg { width: 22px; height: 22px; stroke: var(--green-600); }
.usecase-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.usecase-card p { font-size: 0.85rem; color: var(--text-dark-muted); line-height: 1.6; }

/* ========================================
   PARTNERS
   ======================================== */
.partners-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.partners-content .section-text { margin: 0 auto 32px; }

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.partner-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-300);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  transition: all var(--transition-fast);
}
.partner-tag:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--border-hover);
}

.partners-quote {
  padding: 24px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.partners-quote p { font-size: 1.05rem; color: var(--green-400); font-weight: 600; line-height: 1.7; }

/* Ecosistema section (light) */
.ecosistema-text { max-width: 760px; margin: 0 auto 36px; }
.ecosistema-text .section-text-dark { max-width: none; margin-bottom: 16px; }

.ecosistema-quote {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
}
.ecosistema-quote p { font-size: 1.05rem; color: var(--green-700); line-height: 1.7; }
.ecosistema-quote strong { color: var(--green-600); }

/* ========================================
   MODELO SAAS
   ======================================== */
.saas-model-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.model-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.model-card:hover {
  border-color: var(--green-300);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.1);
  transform: translateY(-3px);
}
.model-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-sm);
  margin: 0 auto 12px;
}
.model-icon svg { width: 22px; height: 22px; stroke: var(--green-600); }
.model-card span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark-secondary); }

/* ========================================
   CTA FINAL
   ======================================== */
.cta-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-content .section-text { margin: 0 auto 24px; }

.cta-final-text {
  margin: 32px 0;
  padding: 28px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.cta-final-text p { font-size: 1.2rem; color: var(--text-secondary); line-height: 1.7; }
.cta-final-text strong { color: var(--green-400); }

.cta-buttons { display: flex; justify-content: center; }

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  position: relative;
  padding: 56px 0 0;
}
.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
}
.footer-container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}
.footer-logo { margin-bottom: 14px; }
.footer-tagline { font-size: 0.95rem; font-weight: 600; color: var(--green-400); margin-bottom: 8px; }
.footer-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: all var(--transition-fast); }
.footer-links a:hover { color: var(--green-400); padding-left: 4px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--green-400); flex-shrink: 0; }
.footer-contact span { font-size: 0.85rem; color: var(--text-muted); }

/* Frases */
.footer-phrases { padding: 28px 0; overflow: hidden; border-bottom: 1px solid var(--border-color); }
.phrases-track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: scroll-phrases 30s linear infinite;
  width: max-content;
}
@keyframes scroll-phrases {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.phrase-item { font-size: 0.85rem; color: var(--text-dim); white-space: nowrap; font-style: italic; }
.phrase-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green-500); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text-dim); transition: color var(--transition-fast); }
.footer-bottom-links a:hover { color: var(--green-400); }

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-800); }

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================================== */
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .hamburger { display: none; }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  /* Mega menu adjustments for smaller desktop */
  .mega-menu { width: 720px; padding: 24px; }
  .mega-menu-grid { grid-template-columns: repeat(3, 1fr); }

  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .ia-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .saas-model-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }

  /* Hero mobile */
  .hero-content { padding: 40px 24px 80px; }
  .hero-description { max-width: none; }

  /* Grids go single column */
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .saas-grid { grid-template-columns: 1fr; gap: 32px; }
  .dashboard-layout { grid-template-columns: 1fr; gap: 28px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }

  /* Hero */
  .hero-content { padding: 32px 16px 80px; }
  .hero-badge { font-size: 0.72rem; padding: 6px 14px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .hero-scroll { display: none; }

  /* Section header */
  .section-header { margin-bottom: 36px; }

  /* Problem tags */
  .problem-tags { gap: 8px; }
  .problem-tag { font-size: 0.78rem; padding: 8px 12px; }

  /* Modules */
  .modules-grid { grid-template-columns: 1fr; gap: 12px; }
  .module-card { padding: 20px 16px; }

  /* Integration tags */
  .integration-list { gap: 8px; }
  .integration-tag { font-size: 0.8rem; padding: 8px 14px; }

  /* IA grid */
  .ia-grid { grid-template-columns: 1fr; gap: 10px; }
  .ia-card { padding: 14px; }
  .ia-card span { font-size: 0.84rem; }

  /* Use cases */
  .usecases-grid { grid-template-columns: 1fr; gap: 12px; }
  .usecase-card { padding: 20px 16px; }

  /* SaaS model */
  .saas-model-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .model-card { padding: 18px 12px; }
  .model-card span { font-size: 0.8rem; }

  /* Dashboard features */
  .dashboard-features { gap: 6px; }
  .dashboard-feature-item { font-size: 0.76rem; padding: 6px 10px; }

  /* Partners */
  .partners-grid { gap: 8px; }
  .partner-tag { font-size: 0.8rem; padding: 8px 14px; }

  /* SaaS benefits */
  .saas-benefit-card { padding: 16px; }
  .saas-benefit-icon { width: 38px; height: 38px; }
  .saas-benefit-icon svg { width: 18px; height: 18px; }

  /* CTA */
  .cta-buttons .btn { width: 100%; text-align: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
