/* ========================================
   GRODIT AGRO TECH - PREMIUM STYLES v2
   Tema Mixto: Oscuro + Claro
   Alternancia de secciones para legibilidad
   ======================================== */

/* --- 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;
  --green-950: #022c22;

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

  /* Light theme */
  --bg-light: #f8faf9;
  --bg-light-alt: #ffffff;
  --bg-light-warm: #f1f7f4;
  --bg-card-light: #ffffff;
  --bg-card-light-alt: #f0f5f2;

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

  /* Light text */
  --text-dark: #0f1f17;
  --text-dark-secondary: #1a3a2a;
  --text-dark-body: #2d4a3d;
  --text-dark-muted: #5a7568;
  --text-dark-dim: #8a9f94;

  /* Borders & Glow */
  --border-dark: rgba(16, 185, 129, 0.12);
  --border-dark-hover: rgba(16, 185, 129, 0.3);
  --border-light: rgba(16, 185, 129, 0.10);
  --border-light-hover: rgba(16, 185, 129, 0.25);
  --glow-sm: 0 0 15px rgba(16, 185, 129, 0.08);
  --glow-md: 0 0 30px rgba(16, 185, 129, 0.12);
  --glow-lg: 0 0 50px rgba(16, 185, 129, 0.18);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 2px 8px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
  --shadow-elevated: 0 4px 12px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.08);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Typography */
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --header-height: 72px;
  --container-max: 1200px;
  --section-padding: 100px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s 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;
}

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

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

/* --- SECTION LABEL (Light variant) --- */
.section-light .section-label,
.light-label {
  color: var(--green-700);
  background: var(--green-50);
  border-color: rgba(16, 185, 129, 0.15);
}

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

/* --- SECTION TITLE (Light) --- */
.section-light .section-title {
  color: var(--text-dark);
}

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

/* --- SECTION TEXT (Light) --- */
.section-light .section-text {
  color: var(--text-dark-body);
}

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

/* --- 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-dark-hover);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--green-400);
}

/* Light sections: outline button */
.section-light .btn-outline {
  color: var(--green-700);
  border-color: var(--green-500);
}

.section-light .btn-outline:hover {
  background: var(--green-50);
  border-color: var(--green-600);
  color: var(--green-800);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* --- GRID PATTERN --- */
.grid-pattern-dark {
  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;
}

.grid-pattern-light {
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- ANIMACIONES SCROLL --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  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 TRANSITIONS
   ======================================== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
  opacity: 0.15;
}

.section-divider-dark {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
  opacity: 0.2;
}

/* ========================================
   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-dark);
  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);
}

/* When over light sections, adapt header */
.main-header.on-light {
  background: rgba(248, 250, 249, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(16, 185, 129, 0.08);
}

.main-header.on-light.scrolled {
  background: rgba(248, 250, 249, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.main-header.on-light .logo-name {
  color: var(--text-dark);
}

.main-header.on-light .nav-link {
  color: var(--text-dark-body);
}

.main-header.on-light .nav-link:hover {
  color: var(--green-700);
  background: rgba(16, 185, 129, 0.06);
}

.main-header.on-light .hamburger span {
  background: var(--text-dark);
}

.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: 12px;
  flex-shrink: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: color var(--transition-normal);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-400);
  transition: color var(--transition-normal);
}

.main-header.on-light .logo-sub {
  color: var(--green-600);
}

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

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.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: 920px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dark);
  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: 32px;
}

.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: 28px;
}

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

.mega-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-400);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dark);
}

.mega-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mega-links li {
  margin-bottom: 2px;
}

.mega-links a {
  display: block;
  padding: 7px 10px;
  font-size: 0.88rem;
  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: 16px;
}

/* Banner del mega menú */
.mega-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}

.mega-banner-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mega-banner-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mega-banner-btn {
  flex-shrink: 0;
  padding: 10px 24px;
  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 {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.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-dark);
  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: 16px 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-dark);
  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-dark);
  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: 500px;
}

.mobile-service-group {
  padding: 8px 0 16px 0;
  border-bottom: 1px solid var(--border-dark);
}

.mobile-service-group h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-400);
  margin-bottom: 8px;
  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;
  border-bottom: none !important;
}

/* ========================================
   HERO (Dark)
   ======================================== */
.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.70) 0%,
    rgba(10, 15, 13, 0.82) 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-dark);
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.06);
  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.5rem, 7vw, 5rem);
  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: 36px;
  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.75rem;
  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); }
}

/* ========================================
   SECTIONS - COMMON
   ======================================== */
section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-full {
  padding: var(--section-padding) 0;
}

/* Dark section variants */
.section-dark-base {
  background: var(--bg-primary);
}

.section-dark-alt {
  background: var(--bg-secondary);
}

.section-dark-surface {
  background: var(--bg-tertiary);
}

/* Light section */
.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-light-alt {
  background: var(--bg-light-warm);
  color: var(--text-dark);
}

.section-light-white {
  background: var(--bg-light-alt);
  color: var(--text-dark);
}

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

.section-header .section-text {
  margin: 0 auto;
}

/* ========================================
   PROBLEMA / CONTEXTO (Light)
   ======================================== */
.context-section {
  background: var(--bg-light-alt);
}

.context-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.context-section .context-text p {
  color: var(--text-dark-body);
  margin-bottom: 16px;
  line-height: 1.8;
}

.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .context-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.problem-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.problem-tag:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.problem-tag svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.resolution-box {
  margin-top: 32px;
  padding: 24px;
  background: var(--green-50);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--green-500);
}

.resolution-box p {
  color: var(--text-dark-body) !important;
  line-height: 1.8;
}

/* ========================================
   VISIÓN (Light)
   ======================================== */
.vision-section {
  background: var(--bg-light);
  overflow: hidden;
}

.vision-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.vision-content {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.vision-content .section-title {
  color: var(--text-dark);
}

.vision-content .section-text {
  color: var(--text-dark-body);
  margin: 0 auto 24px;
}

/* ========================================
   QUÉ HACEMOS / SOLUCIONES (Dark)
   ======================================== */
.solutions-section {
  background: var(--bg-primary);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.solution-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.solution-card:hover {
  border-color: var(--border-dark-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}

.solution-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.solution-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-400);
}

.solution-card span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.solutions-note {
  text-align: center;
  margin-top: 40px;
  font-size: 1rem;
  color: var(--green-400);
  font-weight: 600;
}

/* ========================================
   PROBLEMA DEL MERCADO (Light)
   ======================================== */
.market-section {
  background: var(--bg-light-warm);
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .market-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.market-section .section-title {
  color: var(--text-dark);
}

.market-text p {
  color: var(--text-dark-body);
  margin-bottom: 16px;
  line-height: 1.8;
}

.market-problems {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-problem-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  border-left: 3px solid #ef4444;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.market-problem-item:hover {
  border-color: #fca5a5;
  background: #fff5f5;
  box-shadow: var(--shadow-card-hover);
  transform: translateX(4px);
}

.market-problem-item svg {
  width: 18px;
  height: 18px;
  stroke: #ef4444;
  flex-shrink: 0;
}

.market-problem-item span {
  font-size: 0.92rem;
  color: var(--text-dark-secondary);
}

/* ========================================
   IA APLICADA (Light)
   ======================================== */
.ia-section {
  background: var(--bg-light-alt);
}

.ia-section .section-title {
  color: var(--text-dark);
}

.ia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.ia-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card-light);
  border: 1px solid rgba(16, 185, 129, 0.10);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.ia-card:hover {
  border-color: var(--border-light-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.ia-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ia-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green-600);
}

.ia-card span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark-secondary);
}

.ia-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ========================================
   DASHBOARDS (Dark)
   ======================================== */
.dashboards-section {
  background: var(--bg-secondary);
  grid-pattern: true;
}

.dashboards-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .dashboards-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.dashboard-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: var(--glow-md);
}

.dashboard-preview img {
  width: 100%;
  display: block;
}

.dashboard-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
  pointer-events: none;
}

.dashboard-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-300);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-dark);
  border-radius: 100px;
}

.dashboard-tag svg {
  width: 12px;
  height: 12px;
}

.dashboards-tagline {
  text-align: center;
  margin-top: 48px;
  font-size: 1.15rem;
  color: var(--green-400);
  font-weight: 700;
}

/* ========================================
   INTEGRACIÓN (Light)
   ======================================== */
.integracion-section {
  background: var(--bg-light);
}

.integracion-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.04), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.integracion-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.integracion-content .section-title {
  color: var(--text-dark);
}

.integracion-content .section-text {
  color: var(--text-dark-body);
  margin: 0 auto 24px;
}

.integracion-hub {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hub-center {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-500);
  border: 2px solid var(--green-400);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

.hub-center svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.45); }
}

.hub-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-card-light);
  border: 1px solid rgba(16, 185, 129, 0.10);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  min-width: 100px;
  box-shadow: var(--shadow-card);
}

.hub-node:hover {
  border-color: var(--border-light-hover);
  transform: scale(1.05);
  box-shadow: var(--shadow-card-hover);
}

.hub-node svg {
  width: 24px;
  height: 24px;
  stroke: var(--green-600);
}

.hub-node span {
  font-size: 0.78rem;
  color: var(--text-dark-muted);
  font-weight: 500;
}

/* ========================================
   AUTOMATIZACIÓN (Light)
   ======================================== */
.automatizacion-section {
  background: var(--bg-light-warm);
}

.automatizacion-section .section-title {
  color: var(--text-dark);
}

.auto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .auto-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.auto-column h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.auto-column.manual h3 {
  color: #dc2626;
}

.auto-column.auto h3 {
  color: var(--green-700);
}

.auto-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.manual .auto-item {
  background: #fff5f5;
  border: 1px solid #fecaca;
}

.manual .auto-item:hover {
  background: #fee2e2;
  box-shadow: var(--shadow-card);
}

.manual .auto-item svg {
  width: 18px;
  height: 18px;
  stroke: #ef4444;
}

.manual .auto-item span {
  color: var(--text-dark-secondary);
}

.auto .auto-item {
  background: var(--green-50);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.auto .auto-item:hover {
  background: var(--green-100);
  box-shadow: var(--shadow-card);
}

.auto .auto-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--green-600);
}

.auto .auto-item span {
  color: var(--text-dark-secondary);
}

/* ========================================
   SEGURIDAD (Dark)
   ======================================== */
.seguridad-section {
  background: var(--bg-primary);
}

.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.alert-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-card-dark);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.alert-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.alert-card svg {
  width: 18px;
  height: 18px;
  stroke: #fbbf24;
  flex-shrink: 0;
}

.alert-card span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ========================================
   MODELO DE NEGOCIO (Light)
   ======================================== */
.negocio-section {
  background: var(--bg-light);
}

.negocio-section .section-title {
  color: var(--text-dark);
}

.negocio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .negocio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .negocio-grid {
    grid-template-columns: 1fr;
  }
}

.negocio-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card-light);
  border: 1px solid rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.negocio-card:hover {
  border-color: var(--border-light-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.negocio-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--green-600);
  margin: 0 auto 14px;
}

.negocio-card span {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark-secondary);
}

/* ========================================
   FUTURO (Dark)
   ======================================== */
.futuro-section {
  background: var(--bg-secondary);
  overflow: hidden;
}

.futuro-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.futuro-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.futuro-content .section-text {
  margin: 0 auto 32px;
}

.futuro-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER (Dark)
   ======================================== */
.main-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-dark);
  position: relative;
  padding: 64px 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 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-400);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  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.88rem;
  color: var(--text-muted);
}

/* Frases footer */
.footer-phrases {
  padding: 32px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.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 */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  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-light);
}

::-webkit-scrollbar-thumb {
  background: var(--green-200);
  border-radius: 3px;
}

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

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 70px;
  }

  .mega-menu {
    width: 95vw;
    max-height: 80vh;
    overflow-y: auto;
  }

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

@media (max-width: 480px) {
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
}
