/* ==========================================================================
   DMS MOTORTECH — MERCAREA-INSPIRED HIGH-END AUTOMOTIVE DESIGN SYSTEM
   ========================================================================== */

/* --- 1. MERCAREA DESIGN TOKENS --- */
:root {
  /* Mercarea Signature Color Palette */
  --primary: #0fa8e0;         /* Mercarea Sky Cyan */
  --primary-hover: #0b8dbd;
  --primary-dark: #006699;    /* Mercarea Deep Blue */
  --primary-light: rgba(15, 168, 224, 0.08);
  --primary-glow: rgba(15, 168, 224, 0.25);
  
  --secondary: #006699;       /* Corporate Deep Blue */
  --secondary-hover: #004c73;
  
  --accent: #25d366;          /* WhatsApp Emerald */
  --accent-glow: rgba(37, 211, 102, 0.35);
  
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.08);
  --danger-border: #fecaca;
  
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.08);
  --success-border: #b9f1e1;
  
  /* Mercarea Luminous Backgrounds */
  --bg-white: #ffffff;
  --bg-light: #f4f6f8;       /* Mercarea Light Grey Band */
  --bg-subtle: #ebf0f4;
  --bg-card: #ffffff;
  --bg-dark: #141b26;        /* Mercarea Executive Dark Band */
  --bg-dark-card: #1c2636;
  
  /* Mercarea Typography Colors */
  --text-heading: #003366;   /* Mercarea Deep Navy Headings */
  --text-body: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;
  
  /* Mercarea Borders & Shadows */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-accent: #0fa8e0;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px -2px rgba(0, 51, 102, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(0, 51, 102, 0.12);
  --shadow-primary: 0 8px 24px -4px rgba(15, 168, 224, 0.35);
  
  /* Fonts & Radii */
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

/* --- 2. BASE & RESET STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 700;
}

h2 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 strong {
  font-weight: 900;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

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

/* --- 3. LAYOUT & CONTENT BANDS --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  position: relative;
}

.content-band-light {
  background-color: var(--bg-white);
}

.content-band-grey {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.content-band-dark {
  background: var(--bg-dark);
  color: var(--text-white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.text-center {
  text-align: center;
}

.section-header {
  max-width: 840px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  background: rgba(15, 168, 224, 0.08);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(15, 168, 224, 0.2);
}

.light-tag {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.light-heading {
  color: var(--text-white) !important;
}

.light-text {
  color: #94a3b8 !important;
}

.header-divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0.9rem auto 1.2rem auto;
  border-radius: 2px;
}

.accent-divider {
  background: #38bdf8 !important;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

/* --- 4. MERCAREA BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 168, 224, 0.45);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-white);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* --- 5. TOP ACCENT BAR & MERCAREA NAVBAR --- */
.top-accent-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  z-index: 1002;
}

#navbar {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-base);
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled {
  padding: 0.55rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.navbar-container,
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-container,
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-gear-animated,
.logo-gear {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 168, 224, 0.25));
}

.logo-main-img {
  height: 78px;
  max-height: 78px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 168, 224, 0.2));
  display: block;
  transition: var(--transition-fast);
}

#navbar.scrolled .logo-main-img {
  height: 68px;
  max-height: 68px;
}

.footer-logo-main-img {
  height: 80px;
  max-height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.95;
}

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

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: 0.5px;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-btn {
  background: var(--primary);
  color: var(--text-white) !important;
  padding: 0.48rem 0.95rem !important;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(15, 168, 224, 0.3);
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
}

.nav-btn::after {
  display: none !important;
}

.nav-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 168, 224, 0.45);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2.5px;
  background-color: var(--text-heading);
  border-radius: 2px;
}

/* Language Dropdown */
.nav-lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
}

.lang-dropdown-btn {
  background: rgba(15, 168, 224, 0.08);
  border: 1px solid rgba(15, 168, 224, 0.25);
  color: var(--text-heading);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.lang-dropdown-btn:hover {
  background: rgba(15, 168, 224, 0.16);
  border-color: var(--primary);
  color: var(--primary);
}

.lang-flag-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 50%;
}

.lang-chevron {
  width: 13px;
  height: 13px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.nav-lang-dropdown:hover .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-lang-dropdown:hover .lang-dropdown-menu,
.nav-lang-dropdown:focus-within .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 12px;
  color: #334155;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-dropdown-item:hover {
  background: rgba(15, 168, 224, 0.1);
  color: var(--primary);
}

.lang-dropdown-item.active {
  background: var(--primary);
  color: #ffffff;
}

/* --- 6. HERO SECTION (LUMINOUS WHITE & FRESH ACCENT SHOWCASE) --- */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f4f6f8 100%);
  color: var(--text-body);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 140px 0 4rem 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 30%, rgba(15, 168, 224, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: rgba(15, 168, 224, 0.08);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(15, 168, 224, 0.22);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 strong {
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.hero-trust-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
}

.hero-trust-line span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust-line i {
  color: var(--primary);
}

.hero-trust-line .separator {
  color: rgba(0, 51, 102, 0.25);
}

.hero .btn-outline {
  background: #ffffff;
  color: var(--text-heading);
  border: 2px solid var(--border-color);
}

.hero .btn-outline:hover {
  background: rgba(15, 168, 224, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* --- STATIC HERO SHOWCASE IMAGE (FLOATING, ZERO SHADOW, ZERO MOVEMENT) --- */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image,
#heroImageContainer {
  position: relative;
  width: 100%;
  max-width: 530px;
  border-radius: var(--radius-lg);
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

.dashboard-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: none !important;
  filter: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  transform: none !important;
  transition: none !important;
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 51, 102, 0.12);
  z-index: 10;
  transform: none !important;
  transition: none !important;
}

.badge-top {
  top: 15px;
  right: -15px;
}

.badge-bottom {
  bottom: 25px;
  left: -15px;
}

.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 168, 224, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-heading);
}

.badge-val {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- 7. MERCAREA PROBLEM VS SOLUTION --- */
.problema-section {
  background-color: var(--bg-white);
}

.problema-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary); /* Mercarea Accent Top Line */
  box-shadow: var(--shadow-md);
  position: relative;
}

.pain-card {
  background: rgba(254, 242, 242, 0.5);
  border-color: var(--danger-border);
  border-top: 3px solid var(--danger);
}

.solution-card {
  background: rgba(240, 253, 250, 0.6);
  border-color: var(--success-border);
  border-top: 3px solid var(--success);
}

.card-header-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.color-danger { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.color-success { background: rgba(16, 185, 129, 0.12); color: var(--success); }

.problema-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.problema-list,
.solucion-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.problema-list li,
.solucion-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-heading);
  font-weight: 600;
}

.problema-list i {
  color: var(--danger);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.solucion-list i {
  color: var(--success);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.problema-closing-banner {
  margin-top: 3rem;
  background: rgba(15, 168, 224, 0.06);
  border: 1px solid rgba(15, 168, 224, 0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
}

.closing-banner-content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.banner-icon {
  width: 30px;
  height: 30px;
  color: var(--primary);
  flex-shrink: 0;
}

.closing-banner-content p {
  font-size: 1.05rem;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.5;
}

/* --- 8. MERCAREA VALUE PROPOSITION / BENEFITS --- */
.beneficios-section {
  background-color: var(--bg-light);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.beneficio-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary); /* Mercarea Card Top Line */
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.color-primary { background: rgba(15, 168, 224, 0.1); color: var(--primary); }
.color-secondary { background: rgba(0, 102, 153, 0.1); color: var(--secondary); }
.color-accent { background: rgba(37, 211, 102, 0.12); color: #16a34a; }
.color-info { background: rgba(56, 189, 248, 0.12); color: #0284c7; }
.color-warning { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.color-purple { background: rgba(147, 51, 234, 0.12); color: #9333ea; }

.beneficio-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  color: var(--text-heading);
}

.beneficio-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.beneficio-impacto {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(0, 102, 153, 0.06);
  border: 1px solid rgba(0, 102, 153, 0.15);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.beneficio-impacto i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- 9. MERCAREA SYSTEM ARCHITECTURE --- */
.caracteristicas-section {
  background: var(--bg-dark);
  color: var(--text-white);
}

.caracteristicas-grid {
  gap: 2rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--primary); /* Mercarea Cyan Top Line */
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(15, 168, 224, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-text h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.feature-text p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* High-Contrast Light Font Styling for Dark Section Cards (Matching Arquitectura Section) */
.content-band-dark .beneficio-card,
.inversion-modular-section .beneficio-card,
.inversion-modular-section .card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 3px solid var(--primary) !important;
}

.content-band-dark .beneficio-card h3,
.content-band-dark .feature-item h3,
.inversion-modular-section h3 {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}

.content-band-dark .beneficio-card p,
.content-band-dark .feature-item p,
.inversion-modular-section p {
  color: #cbd5e1 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.content-band-dark .beneficio-impacto,
.inversion-modular-section .beneficio-impacto {
  color: #38bdf8 !important;
  background: rgba(15, 168, 224, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.content-band-dark .beneficio-impacto i,
.inversion-modular-section .beneficio-impacto i {
  color: #38bdf8 !important;
}

/* --- 10. 10 SPECIALIZED MODULES (5 & 5 BUTTON GRID) --- */
.modulos-section {
  background-color: var(--bg-white);
}

.modulos-nav-container {
  margin-bottom: 3rem;
}

.modulos-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.mod-nav-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod-nav-btn:hover {
  background: rgba(15, 168, 224, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.mod-nav-btn.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 168, 224, 0.35);
}

.modulos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.module-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary); /* Mercarea Accent Top Line */
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}

.module-card-active {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(15, 168, 224, 0.25), 0 12px 30px rgba(15, 168, 224, 0.15) !important;
}

.module-header {
  margin-bottom: 1.2rem;
}

.module-badge {
  display: inline-block;
  background: rgba(15, 168, 224, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.module-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(15, 168, 224, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.module-header h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-heading);
}

.module-focus {
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1rem;
}

.module-value-msg {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #065f46;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.module-value-msg i {
  color: var(--success);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.module-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.res-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.res-tag i {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.module-functions-preview {
  margin-top: 1rem;
}

.module-functions-preview h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.module-functions-preview ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.module-functions-preview li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-body);
}

.module-functions-preview li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
  margin-top: 1px;
}

/* --- 11. ECOSYSTEM & STATS --- */
.ecosistema-section {
  background: var(--bg-dark);
}

.ecosistema-diagram {
  margin-top: 2rem;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.eco-node {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.node-center {
  grid-column: 2;
  grid-row: 2;
  background: rgba(15, 168, 224, 0.18);
  border-color: var(--primary);
}

.eco-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 168, 224, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.eco-node span {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.eco-node small {
  font-size: 0.8rem;
  color: #94a3b8;
}

.beneficios-medibles-section {
  background-color: var(--bg-light);
  padding: 3rem 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 0.4rem;
  display: block;
}

/* --- 12. IMPLEMENTATION TIMELINE --- */
.implementacion-section {
  background-color: var(--bg-white);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 880px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.timeline-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 168, 224, 0.3);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- 13. FAQ ACCORDION --- */
.faq-section {
  background-color: var(--bg-light);
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- 14. CONTACT FORM --- */
.contacto-section {
  background: var(--bg-dark);
  color: var(--text-white);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: flex-start;
}

.contacto-info .light-heading {
  font-size: 2.1rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contacto-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
}

.detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 168, 224, 0.2);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contacto-detail-item h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-link {
  color: var(--text-white);
  font-weight: 700;
  font-size: 1rem;
}

.contact-link:hover {
  color: #38bdf8;
}

.contacto-form-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--primary);
  padding: 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  color: var(--text-body);
}

.contacto-form-container h3 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.contacto-form-container p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 168, 224, 0.18);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  font-size: 0.9rem;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-submit {
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(15, 168, 224, 0.35);
  margin-top: 0.5rem;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(15, 168, 224, 0.5);
}

/* --- 15. MERCAREA FOOTER --- */
footer {
  background: #0d121a;
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-gear {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-section h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

.footer-icon-inline {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Image-based Social Media Icons */
.footer-social {
  margin-top: 1.25rem;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.social-link-img {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.social-icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
}

.social-icon-img.img-fb,
.social-icon-img.img-li {
  width: 32px;
  height: 32px;
}

.social-icon-img.img-ig {
  width: 34px;
  height: 34px;
}

.social-link-img:hover {
  transform: translateY(-3px) scale(1.1);
}

/* --- 16. FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.65);
}

.whatsapp-img-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.whatsapp-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.45); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 74px;
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* --- 17. LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 12, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 2.5rem;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary);
}

/* --- 18. RESPONSIVE QUERIES --- */
@media (max-width: 1180px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #141b26;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.2rem;
    transition: var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }
  
  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    color: #ffffff !important;
    font-size: 1rem !important;
  }

  .modulos-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group,
  .hero-trust-line {
    justify-content: center;
  }

  .problema-grid,
  .modulos-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }

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

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

  .diagram-grid {
    grid-template-columns: 1fr;
  }

  .node-center {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .grid-3,
  .grid-2,
  .form-row,
  .stats-container {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    position: static;
    margin-top: 1rem;
    justify-content: center;
  }
}
