/* Updated: 2026-02-05 - CSS Optimization */
/* NOTA: Google Fonts movido a <link> en HTML para mejor performance */

/* Skip Link for Keyboard Navigation */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: -999;
  padding: 1em 1.5em;
  background: var(--accent-green);
  color: var(--text-principal);
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  top: 1em;
}

.skip-link:focus {
  left: 1em;
  z-index: var(--z-skip-link);
  outline: 3px solid var(--text-realce);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* Default scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #2c3e50;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #00e3e0;
  border-radius: 10px;
  border: 2px solid #2c3e50;
}

::-webkit-scrollbar-thumb:hover {
  background: #00c8c5;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #00e3e0 #2c3e50;
  box-sizing: border-box;
}

html.dark-theme,
body.dark-theme {
  background: #001548 !important;
  color: #FFFFFF !important;
}

body.dark-theme {
  background: #001548 !important;
  color: #FFFFFF !important;
  --bg-general: #001548;
  --bg-white: #001548;
  --bg-slate: #002176;
  --bg-card: #002176;
  --text-principal: #FFFFFF;
  --text-realce: #015CBF;
  --accent-green: #8cd627;
  --text-parrafo: #d1d5db;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --navbar-bg: #002176;
  --dark-bg1: #001548;
  --dark-bg2: #002176;
  --dark-bg3: #0033b3;
}

:root {
  --bg-general: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-slate: #EDF5F9;
  --bg-card: rgba(20, 60, 104, 0.85);
  --text-principal: #081B40;
  --text-realce: #015CBF;
  --accent-green: #7ac019;
  --accent-green-text: #7ac019;
  /* Darker high-contrast green for light backgrounds (WCAG AA) */
  --accent-green-glow: #8BD330;
  --text-parrafo: #EDF5F9;
  --shadow: 0 4px 24px rgba(20, 60, 104, 0.08);
  --border-radius: 20px;
  --navbar-bg: rgba(20, 60, 104, 0.9);
  --dark-bg1: #001548;
  --dark-bg2: #002176;
  --dark-bg3: #0033b3;

  /* Z-Index Layering System */
  --z-base: 0;
  --z-content: 1;
  --z-header: 100;
  --z-skip-link: 200;
  --z-modal-backdrop: 1000;
  --z-modal-content: 1001;
  --z-cookie-banner: 1002;
  --z-exit-popup: 1003;

  /* Unified Premium Card Design System */
.accent-green-glow {
  color: #7ac019 !important;
  text-shadow: 0 0 20px rgba(122, 192, 25, 0.4);
}
  --card-radius: 24px;
  --card-shadow: 0 10px 30px rgba(8, 27, 64, 0.05);
  --card-shadow-hover: 0 30px 60px rgba(8, 27, 64, 0.12);
  --card-border: 1px solid rgba(8, 27, 64, 0.05);
  --card-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Float animation for premium mockups */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotateY(-5deg);
  }

  50% {
    transform: translateY(-20px) rotateY(-3deg);
  }

  100% {
    transform: translateY(0px) rotateY(-5deg);
  }
}

body.dark-theme {
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 30px 70px rgba(0, 0, 0, 0.5);
  --card-border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dark Theme */
body.dark-theme {
  background: #001548 !important;
  color: #FFFFFF !important;
  --bg-general: #001548;
  --bg-white: #001548;
  --bg-slate: #002176;
  --bg-card: #002176;
  --text-principal: #FFFFFF;
  --text-realce: #015CBF;
  --accent-green: #8cd627;
  --accent-green-text: #aae65e;
  /* Brighter green for dark backgrounds */
  --text-parrafo: #d1d5db;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --navbar-bg: #002176;
  --dark-bg1: #001548;
  --dark-bg2: #002176;
  --dark-bg3: #0033b3;
}

body.dark-theme .header {
  background: rgba(0, 33, 118, 0.80) !important;
}

body.dark-theme .nav a {
  color: #FFFFFF !important;
}

body.dark-theme .nav {
  color: #FFFFFF !important;
}

/* Comprehensive dark theme overrides for specific pages */
body.dark-theme section {
  color: var(--text-principal) !important;
}

/* Force white backgrounds to dark - #FFFFFF / #fff → #001548 (bg1) */
body.dark-theme [style*="background: #fff"],
body.dark-theme [style*="background: #FFFFFF"],
body.dark-theme [style*="background: white"] {
  background: var(--dark-bg1) !important;
  color: #FFFFFF !important;
}

/* Force slate colors to dark blue - #EDF5F9 / #EDF5F8 → #002176 (bg2) */
body.dark-theme [style*="background: #EDF5F9"],
body.dark-theme [style*="background: #edf5f9"],
body.dark-theme [style*="background: #EDF5F8"],
body.dark-theme [style*="background: #edf5f8"],
body.dark-theme [style*="#EDF5F9"],
body.dark-theme [style*="#edf5f9"],
body.dark-theme [style*="#EDF5F8"],
body.dark-theme [style*="#edf5f8"] {
  background: var(--dark-bg2) !important;
  color: #FFFFFF !important;
}

/* Force light gray to medium blue - #f1f2f4 → #0033b3 (bg3) */
body.dark-theme [style*="background: #f1f2f4"],
body.dark-theme [style*="background: #F1F2F4"],
body.dark-theme [style*="#f1f2f4"],
body.dark-theme [style*="#F1F2F4"] {
  background: var(--dark-bg3) !important;
  color: #FFFFFF !important;
}

/* Generic section backgrounds to dark theme */
/* Section classes preserved for dark theme mappings */

/* MAPPED: Mostly LIGHT BLUE backgrounds (#EDF5F8/EDF5F9) → dark-bg2 (#002176) */
body.dark-theme .quienes-section,
body.dark-theme .quienes-somos-nosotros,
body.dark-theme .servicios-section,
body.dark-theme .services-section,
body.dark-theme .trayectoria-section,
body.dark-theme .erp-ecosystem,
body.dark-theme .smart-ag-section,
body.dark-theme .scm-diagrama-section,
body.dark-theme .agritrace-section,
body.dark-theme .evidencia-section,
body.dark-theme .exportadoras-section,
body.dark-theme .agro-clientes,
body.dark-theme .blog-filter-section,
body.dark-theme .blog-posts-section,
body.dark-theme .trazabilidad-content,
body.dark-theme .trazabilidad-gallery,
body.dark-theme .contact-info-section {
  background: var(--dark-bg2) !important;
  color: #FFFFFF !important;
}

/* MAPPED: Mostly WHITE backgrounds (#FFFFFF) → dark-bg1 (#001548) */
body.dark-theme .solutions-section,
body.dark-theme .portfolio-inner,
body.dark-theme .testimonios-section,
body.dark-theme .agro-desafios,
body.dark-theme .cta-nosotros,
body.dark-theme .contact-social-section {
  background: var(--dark-bg1) !important;
  color: #FFFFFF !important;
}

/* MAPPED: GRAY backgrounds (#F1F2F4) → dark-bg3 (#0033b3) */
body.dark-theme .certificaciones-nosotros,
body.dark-theme .certificaciones-section,
body.dark-theme .alianzas-section,
body.dark-theme .agro-proyectos {
  background: var(--dark-bg3) !important;
  color: #FFFFFF !important;
}

/* MAPPED: Special sections - Light valor text backgrounds → dark-bg2 */
body.dark-theme .lider-nosotros {
  background: var(--dark-bg2) !important;
  color: #FFFFFF !important;
  position: relative !important;
  z-index: 2 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Ensure text legibility in dark mode for headings and paragraphs only */
body.dark-theme section:not([style*="background: linear-gradient"]):not([style*="background-image"])>h1,
body.dark-theme section:not([style*="background: linear-gradient"]):not([style*="background-image"])>h2,
body.dark-theme section:not([style*="background: linear-gradient"]):not([style*="background-image"])>h3,
body.dark-theme section:not([style*="background: linear-gradient"]):not([style*="background-image"])>p {
  color: #FFFFFF !important;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-general);
  color: var(--text-principal);
  line-height: 1.5;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.main-content {
  position: relative;
  z-index: var(--z-content);
  margin: 0;
  padding: 0;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.0;
  /* Menos interlineado en títulos */
}

h1 {
  margin: 0 0 16px 0;
  font-weight: 800;
}

.header {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 12px 32px;
  box-shadow: 0 8px 32px rgba(20, 60, 104, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin: 0 auto 0 auto;
  width: fit-content;
  transition: transform 550ms ease-in-out, opacity 550ms ease-in-out, background 350ms ease-out, box-shadow 350ms ease-out;
  will-change: transform, opacity;
}

/* Animated states for sticky/fixed transitions */
.header.is-sticky {
  position: fixed;
  top: 60px;
  opacity: 1;
}

.header.is-fixed {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  opacity: 0.95;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-realce);
  cursor: pointer;
  margin-right: 8px;
}

.logo-link {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 24px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top center;
}

.nav a {
  text-decoration: none;
  color: var(--text-principal);
  font-weight: 400;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 6px;
}

/* Hover/active underline animation (exclude logo/theme/lang by targeting nav links only) */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #25d366;
  /* accent green */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease, background 200ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Active page underline stays visible (blue) on non-index pages via .active class */
.nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
  background: #0018a0;
}

body.dark-theme .nav a.active::after {
  background: #00c8ff !important;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--text-realce);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* Theme Toggle Switch */
.theme-toggle:focus-visible,
.lang-btn:focus-visible,
.menu-toggle:focus-visible,
.logo-link:focus-visible,
.nav a:focus-visible {
  outline: 3px solid #7ac019;
  outline-offset: 4px;
}

.theme-toggle {
  position: relative;
  width: 70px;
  height: 34px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(20, 60, 104, 0.1);
  transition: background 0.3s ease;
}

body.dark-theme .theme-toggle {
  background: #031850 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.theme-toggle-circle {
  width: 28px;
  height: 28px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.dark-theme .theme-toggle-circle {
  transform: translateX(36px) !important;
  background: #0c00b8 !important;
}

.theme-toggle-circle::before {
  content: '☀️';
}

body.dark-theme .theme-toggle-circle::before {
  content: '🌙';
}

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(20, 60, 104, 0.1);
}

body.dark-theme .lang-selector {
  background: rgba(0, 21, 72, 0.85) !important;
  border: 1px solid rgba(140, 214, 39, 0.3) !important;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-principal);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.lang-btn.active {
  background: var(--text-realce);
  color: #fff;
  box-shadow: 0 2px 8px rgba(1, 92, 191, 0.3);
}

.lang-btn:hover:not(.active) {
  background: rgba(1, 92, 191, 0.1);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Global Logo Sizing Consistency Fix */
.header .logo-link {
  flex: 0 0 auto !important;
  display: flex;
  align-items: center;
}

.header .logo-link img {
  height: 32px !important;
  width: auto !important;
  max-height: 32px !important;
  object-fit: contain;
}

.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--dark-bg3) 0%, var(--dark-bg1) 100%);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  margin-top: 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  padding: 16px 0;
  gap: 32px;
  color: var(--text-principal);
  transition: background 0.3s ease, color 0.3s ease;
}

.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  margin: 0;
  padding: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}

.hero>video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(20, 60, 104, 0.7);
  border-radius: var(--border-radius);
  padding: 48px 32px;
  max-width: 80vw;
  color: var(--text-parrafo);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 32px;
  text-align: left;
}

.cta-btn {
  background: var(--text-realce);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-btn:hover {
  background: var(--bg-card);
  color: var(--text-realce);
}

.main-content {
  width: 100%;
  margin: 0 0 0;
  /* remove gap before footer */
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Global layout: 100% width backgrounds, 80% content with proper padding */
.main-content>section {
  width: 100%;
}

/* Card-specific content at 80% width */
.card-grid {
  max-width: 80%;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg-white);
  color: var(--text-principal);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--card-transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-green);
}

.card .icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--text-realce);
  background: rgba(1, 92, 191, 0.05);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

/* Icons in light background sections */
.light-bg .card .icon {
  color: var(--text-realce);
}

/* Icons in footer (dark background) - green */
.footer .card .icon {
  color: var(--accent-green-text);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-realce);
  text-align: left;
  line-height: 1.1;
}

.section-text {
  font-size: 1.1rem;
  font-weight: 100;
  color: var(--text-parrafo);
  margin-bottom: 16px;
  text-align: left;
  line-height: 1.2;
}

/* Quiénes Somos (centered layout per reference 2.jpg) */
.quienes-section {
  width: 100%;
  padding: 72px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quienes-container {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.quienes-badge {
  display: inline-block;
  background: rgba(61, 97, 0, 0.1);
  border: 1px solid rgba(61, 97, 0, 0.2);
  color: var(--accent-green-text);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.quienes-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-principal);
  margin: 0 0 16px 0;
  line-height: 1.2;
  text-align: center;
}

.quienes-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-principal);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.quienes-text .emphasis {
  font-weight: 800;
}

/* Trayectoria (reference 3.jpg) */
.trayectoria-section {
  width: 100%;
  padding: 40px 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
}

.trayectoria-panel {
  width: 100%;
  max-width: 1100px;
  background: rgba(8, 27, 64, 0.06);
  border-radius: 28px;
  padding: 52px 44px;
  box-shadow: 0 8px 24px rgba(20, 60, 104, 0.06);
}

.tray-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-principal);
  text-align: center;
  margin: 0 0 50px 0;
}

.tray-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}

.tray-results-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2f5c;
  text-align: center;
  margin: 60px 0 30px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.dark-theme .tray-results-title {
  color: var(--accent-green) !important;
}

.results-grid {
  grid-template-columns: repeat(1, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.result-card {
  background: white;
  border-bottom: 4px solid var(--accent-green);
}

body.dark-theme .result-card {
  background: var(--dark-bg1) !important;
}

.tray-card {
  background: #F7FAFC;
  border: 1px solid rgba(8, 27, 64, 0.08);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  box-shadow: 0 4px 14px rgba(20, 60, 104, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tray-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green), 0 12px 28px rgba(140, 214, 39, 0.28);
}

.tray-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(15, 72, 96, 0.08);
  color: var(--text-realce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.tray-number {
  font-size: 2rem;
  font-weight: 800;
  color: #0b1f3f;
  margin-bottom: 8px;
  text-align: center;
}

.tray-label {
  font-size: 1rem;
  color: #415A77;
  text-align: center;
}

/* Dark theme overrides for tray elements */
body.dark-theme .tray-number,
body.dark-theme .trayectoria-panel .tray-number {
  color: #ffffff !important;
  font-weight: 800;
}

body.dark-theme .tray-label,
body.dark-theme .trayectoria-panel .tray-label {
  color: #ffffff !important;
}

@media (min-width: 521px) {
  .tray-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid .tray-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (min-width: 901px) {
  .tray-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .results-grid .tray-card:last-child {
    grid-column: span 1;
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .hero.hero-cacao {
    padding-top: 120px !important;
    justify-content: flex-start !important;
  }

  .tray-card {
    min-height: 140px;
    padding: 16px 12px;
  }

  .tray-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .tray-number {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }

  .tray-label {
    font-size: 0.85rem;
  }
}

/* =============================
  Solutions (stacked cards)
  ============================= */
.solutions-section {
  width: 100%;
  padding: 48px 0 88px;
}

.solutions-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-principal);
  text-align: center;
  margin: 0 0 24px 0;
}

.solutions-stack {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 520px;
  display: block;
}

.solution-card {
  position: absolute;
  top: 40px;
  width: 320px;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  transition: var(--card-transition);
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.solution-card .solution-media {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.solution-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1);
  transition: filter 0.5s ease;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.solution-card:hover .solution-image {
  filter: saturate(1);
}

.media-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #7FA6BF;
  opacity: 0.35;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.45), 0 12px 28px rgba(8, 27, 64, 0.12);
}

.solution-body {
  background: #FFFFFF;
  padding: 48px 68px 32px;
  text-align: center;
}

.solution-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b1f3f;
  margin: 0 0 6px 0;
  text-align: center;
}

.solution-text {
  font-size: 0.98rem;
  color: #415A77;
  margin: 0 0 10px 0;
  line-height: 1.5;
  text-align: center;
}

.solution-link {
  display: inline-block;
  font-weight: 700;
  color: #000;
  background: var(--accent-green);
  padding: 10px 16px;
  border-radius: 12px;
}

.solution-mobile-btn {
  display: inline-block !important;
  background: var(--accent-green);
  color: #000;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  margin-top: 16px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
}

.solution-mobile-btn:hover {
  background: #7ab825;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(140, 214, 39, 0.3);
}

.solution-card:hover {
  transform: translateY(-4px);
}

/* Card-specific hover strokes */
.solution-card.banano:hover,
.solution-card.banano:focus {
  border-color: #dec562;
  box-shadow: 0 0 0 3px #f1c40f, 0 16px 40px rgba(241, 196, 15, 0.26);
}

.solution-card.cacao:hover,
.solution-card.cacao:focus {
  border-color: #a07348;
  box-shadow: 0 0 0 3px #8b5a2b, 0 16px 40px rgba(139, 90, 43, 0.26);
}

.solution-card.agro:hover,
.solution-card.agro:focus {
  border-color: var(--text-realce);
  box-shadow: 0 0 0 3px var(--text-realce), 0 16px 40px rgba(1, 92, 191, 0.26);
}

/* Order for stacked cards on mobile */
@media (max-width: 900px) {
  .solutions-stack {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .solution-card {
    position: static;
    width: 400px;
    max-width: 90%;
    margin: 16px auto;
  }

  .solution-card.featured {
    order: 1;
    width: 350px;
    max-width: 90%;
    left: auto !important;
    transform: none;
  }

  .solution-card.right {
    order: 2;
    width: 350px;
    max-width: 90%;
    left: auto !important;
    transform: none;
  }

  .solution-card.left {
    order: 3;
    width: 350px;
    max-width: 90%;
    left: auto !important;
    transform: none;
  }
}

@media (min-width: 901px) {
  .solutions-stack {
    height: 520px;
    /* reserve vertical space so back cards stay visible */
    display: block;
  }

  .solution-card {
    position: absolute;
    top: 40px;
    width: 320px;
    margin: 0;
  }

  .solution-card.featured {
    left: 50%;
    width: 320px;
    transform: translateX(-50%) translateY(0);
    z-index: 3;
  }

  .solution-card.left {
    left: calc(50% - 465px);
    transform: translateY(40px);
    z-index: 2;
  }

  .solution-card.right {
    left: calc(50% + 145px);
    transform: translateY(40px);
    z-index: 1;
  }

  .solution-image {
    filter: saturate(0);
  }

  .solution-card-overlay {
    display: block;
  }
}

/* =============================
  Portfolio Section (5.jpg)
  ============================= */
.portfolio-section {
  width: 100%;
  padding: 88px 0 96px;
  background: linear-gradient(135deg, rgba(11, 31, 63, 1) 0%, rgba(11, 31, 63, 0.95) 40%, rgba(63, 174, 77, 0.65) 100%);
}

.portfolio-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

.portfolio-badge {
  display: block;
  background: rgba(255, 255, 255, 0.12);
  color: #eaf2ff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 auto 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.portfolio-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin: 0 0 28px;
}

.portfolio-title .accent {
  color: var(--accent-green);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  transition: var(--card-transition);
  height: 100%;
}

.portfolio-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-green);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
}

@media (min-width: 901px) {
  .portfolio-card-overlay {
    display: block;
  }
}

.portfolio-image {
  filter: saturate(0);
}

.portfolio-card:hover .portfolio-image {
  filter: saturate(1);
}

.portfolio-media {
  height: 200px;
  background: linear-gradient(160deg, rgba(140, 214, 39, 0.25), rgba(1, 92, 191, 0.08));
  overflow: hidden;
  position: relative;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 0.5s ease;
  display: block;
}

/* Zoom removed as per user request */

.portfolio-body {
  background: #FFFFFF;
  padding: 24px 20px 32px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.portfolio-item-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b1f3f;
  margin: 0 0 12px 0;
}

.portfolio-item-text {
  font-size: 0.95rem;
  color: #415A77;
  margin: 0 0 20px 0;
  line-height: 1.5;
  flex: 1;
}

.portfolio-mobile-btn {
  display: inline-block !important;
  background: transparent;
  color: #015cbf !important;
  font-weight: 800;
  padding: 0;
  border-radius: 0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  z-index: 10;
  text-decoration: underline;
  text-decoration-color: var(--accent-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-transform: uppercase;
}

body.dark-theme .portfolio-mobile-btn {
  color: #FFFFFF !important;
}

.portfolio-mobile-btn:hover {
  color: var(--accent-green) !important;
  text-underline-offset: 8px;
}

.portfolio-card:hover {
  box-shadow: 0 24px 64px rgba(8, 27, 64, 0.18);
  border-color: var(--accent-green);
}

/* =============================
   Clientes Section (7.jpg)
   ============================= */
.clientes-section {
  width: 100%;
  background: var(--bg-general);
  padding: 56px 16px 64px;
}

.clientes-inner {
  max-width: 1400px;
  padding: 0 40px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.clientes-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(1, 93, 191, 0.226);
  border: 1px solid rgba(1, 92, 191, 0.28);
  color: var(--text-realce);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.clientes-badge::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-realce);
  box-shadow: 0 0 0 4px rgba(1, 92, 191, 0.15);
}

.clientes-title {
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  font-weight: 800;
  color: var(--text-principal);
  margin: 0 0 12px;
  line-height: 1.05;
}

.clientes-title span {
  color: var(--text-realce);
}

.clientes-text {
  font-size: 1.05rem;
  color: #4b617a;
  margin: 0 0 40px;
  max-width: 980px;
  line-height: 1.7;
  text-align: center;
}

/* Slider container */
.clientes-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.clientes-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: clientes-marquee 26s linear infinite;
}

.clientes-track:hover {
  animation-play-state: paused;
}

.cliente-logo {
  flex: 0 0 auto;
  width: 140px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.25s ease;
  overflow: visible;
}

.cliente-logo img {
  max-width: 160px;
  max-height: 70px;
  object-fit: contain;
}

.cliente-logo:hover {
  transform: translateY(-4px);
}

@keyframes clientes-marquee {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0%);
  }
}

@media (min-width: 601px) {
  .clientes-track {
    gap: 24px;
    animation-duration: 32s;
  }

  .cliente-logo {
    width: 160px;
    height: 88px;
  }
}

@media (min-width: 901px) {
  .clientes-section {
    padding: 72px 0 80px;
  }

  .clientes-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
  }

  .clientes-track {
    gap: 32px;
    animation-duration: 40s;
  }

  .cliente-logo {
    width: 180px;
    height: 96px;
  }
}

@media (min-width: 1101px) {
  .clientes-slider {
    padding: 24px 40px;
  }
}

/* =============================
   CTA Section (8.jpg)
   ============================= */
.cta-section {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  margin-top: -30px;
  background: linear-gradient(135deg, rgba(11, 31, 63, 0.295) 0%, rgba(1, 93, 191, 0.342) 100%),
    url('assets/cta-final.jpg') center/cover no-repeat;
  background-attachment: scroll;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 31, 63, 0.8);
  z-index: 1;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 31, 63, 0.062);
  z-index: 2;
}

.cta-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-title {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.cta-title span {
  color: var(--accent-green);
}

.cta-text {
  font-size: 0.95rem;
  color: #d1d5db;
  margin: 0;
  line-height: 1.7;
  max-width: 700px;
  padding: 0 80px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-green);
  color: #000;
  padding: 14px 32px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(140, 214, 39, 0.3);
  cursor: pointer;
  margin-top: 12px;
}

.cta-button:hover {
  background: #7abc1f;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(140, 214, 39, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

@media (min-width: 601px) {
  .cta-section {
    min-height: 420px;
    padding: 60px 20px;
    margin-top: 0;
  }

  .cta-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .cta-text {
    font-size: 1rem;
    padding: 0;
  }

  .cta-button {
    padding: 16px 40px;
    font-size: 1.1rem;
  }
}

@media (min-width: 901px) {
  .cta-section {
    min-height: 500px;
    padding: 80px 0;
  }

  .cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  .cta-text {
    font-size: 1.15rem;
  }
}

/* =============================
   Blog Page Styles
   ============================= */
.blog-filter-section {
  width: 100%;
  padding: 32px 0;
  background: var(--bg-white);
  border-bottom: 1px solid rgba(8, 27, 64, 0.08);
}

.blog-filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-filter-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-tag {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(1, 92, 191, 0.2);
  background: var(--bg-white);
  color: var(--text-principal);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-tag:hover {
  background: rgba(1, 92, 191, 0.08);
  border-color: var(--text-realce);
}

.blog-tag.active {
  background: var(--text-realce);
  color: #fff;
  border-color: var(--text-realce);
}

.blog-posts-section {
  width: 100%;
  padding: 48px 0;
  background: var(--bg-general);
}

.blog-posts-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding: 0 20px;
  flex-direction: column;
  gap: 32px;
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(8, 27, 64, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(8, 27, 64, 0.12);
}

.blog-post-image {
  flex: none;
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.blog-post-image picture,
.blog-post-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: none;
}

.blog-post-image img {
  transition: transform 0.3s ease;
}

/* Blog article link styling */
.article-content a {
  text-decoration: underline !important;
}

/* ensure featured images never exceed viewport width */
.article-featured-image,
.article-featured-image picture,
.article-featured-image img {
  max-width: 100vw;
  display: block;
}

/* extra guard: container should hide any horizontal overflow */
.article-container {
  overflow-x: hidden;
}

.blog-post-card:hover .blog-post-image img {
  transform: scale(1.05);
}

.blog-post-content {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.blog-post-date {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-post-tag {
  padding: 4px 12px;
  background: rgba(1, 92, 191, 0.12);
  color: var(--text-realce);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-post-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-principal);
  margin: 0;
  line-height: 1.3;
}

.blog-post-excerpt {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

body.dark-theme .blog-post-excerpt {
  color: #ffffff !important;
}

body.dark-theme .blog-post-date,
body.dark-theme .blog-post-read-time {
  color: #cbd5e1 !important;
}

.blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}

.blog-post-read-time {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-post-link {
  color: var(--text-realce);
  font-weight: 600;
  transition: color 0.2s ease;
}

.blog-post-link:hover {
  color: var(--accent-green);
}

@media (min-width: 901px) {
  .blog-post-card {
    flex-direction: row;
  }

  .blog-post-image {
    flex: 0 0 420px;
    width: 420px;
    height: 280px;
  }
}

/* =============================
   Contact Page Styles
   ============================= */
.contact-info-section {
  width: 100%;
  padding: 56px 0;
  background: var(--bg-white);
}

.contact-info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  gap: 40px;
  margin-bottom: 40px;
  margin-top: 40px;
  justify-content: center;
}

.contact-info-card {
  background: var(--bg-general);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(8, 27, 64, 0.08);
}

.contact-info-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--text-realce);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.contact-info-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-principal);
  margin: 0 0 8px;
}

.contact-info-text {
  font-size: 1rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

.contact-info-text a {
  color: var(--text-realce);
  transition: color 0.2s ease;
}

.contact-info-text a:hover {
  color: var(--accent-green-text);
}

.contact-map-section {
  width: 100%;
  padding: 0;
  background: var(--bg-general);
}

.contact-map-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.contact-map-wrapper {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  height: 450px;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-social-section {
  width: 100%;
  padding: 56px 0;
  background: var(--bg-white);
  text-align: center;
}

.contact-social-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-social-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-principal);
  margin: 0 0 32px;
}

.contact-social-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-social-link {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--bg-general);
  color: var(--text-realce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.contact-social-link:hover {
  background: var(--text-realce);
  color: #fff;
  transform: translateY(-4px);
  border-color: var(--text-realce);
}

.contact-form-section {
  width: 100%;
  padding: 56px 0;
  background: var(--bg-general);
}

.contact-form-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.contact-form-container iframe {
  width: 90% !important;
  max-width: 100%;
}

.contact-form-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-principal);
  text-align: center;
  margin: 0 0 16px;
}

.contact-form-subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  text-align: center;
  margin: 0 0 40px;
  line-height: 1.6;
}

/* =============================
  Services Section
  ============================= */
.services-section {
  width: 100%;
  padding: 72px 0 80px;
  background: var(--bg-white);
}

.services-container {
  width: 100%;
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto;
  text-align: center;
}

.services-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(140, 214, 39, 0.16);
  border: 1px solid rgba(140, 214, 39, 0.32);
  color: #2f6f1d;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.services-badge::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f6f1d;
  box-shadow: 0 0 0 4px rgba(140, 214, 39, 0.25);
}

.services-title {
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  font-weight: 800;
  color: var(--text-principal);
  margin: 0 0 12px;
  line-height: 1.05;
}

.services-title span {
  color: var(--text-realce);
}

.services-title .services-title-line {
  color: inherit;
}

.services-subtitle {
  font-size: 1.05rem;
  color: #4b617a;
  margin: 0 0 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  justify-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-white);
  border: var(--card-border);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  transition: var(--card-transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--text-realce);
}

/* Hover effects only on desktop */
@media (min-width: 769px) {

  .service-card:hover,
  .service-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(1, 92, 191, 0.35);
    box-shadow: 0 10px 26px rgba(1, 92, 191, 0.08);
  }

  .service-card:hover .service-icon,
  .service-card:focus-within .service-icon {
    background: var(--text-realce);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(1, 92, 191, 0.4);
  }
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(140, 214, 39, 0.18);
  color: #0b1f3f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: inset 0 0 0 1px rgba(140, 214, 39, 0.4);
}

.service-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0b1f3f;
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.services-section {
  margin-top: -26px;
}

.services-container {
  max-width: 100%;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.services-grid {
  width: 100%;
  box-sizing: border-box;
  justify-items: center;
}

.service-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Hover effects removed - using default from base styles */

.services-title .services-title-line {
  display: block;
}

@media (min-width: 1101px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 769px) {
  .services-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
  }
}

.portfolio-section {
  margin-bottom: 0 !important;
  padding-bottom: 30px;
}

.portfolio-container {
  max-width: 900px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 60px;
  box-sizing: border-box;
  margin: 0 auto;
}

.portfolio-grid {
  width: 100%;
  box-sizing: border-box;
  justify-items: stretch;
}

.portfolio-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.portfolio-card,
.portfolio-card * {
  transition: none !important;
}

.portfolio-card {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Hover effects removed - using default from base styles */

@media (min-width: 901px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

details.accordion[open] {
  box-shadow: 0 8px 24px rgba(20, 60, 104, 0.12);
}

.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px 20px;
  cursor: pointer;
  min-height: 52px;
}

.accordion-summary::after {
  content: "+";
  font-weight: 700;
  color: var(--text-realce);
}

details.accordion[open] .accordion-summary::after {
  content: "−";
}

details.accordion>.section-text {
  padding: 0 24px 12px 24px;
  color: var(--text-principal);
  font-weight: 500;
  line-height: 1.7;
}

/* Stronger spacing for list items inside accordions */
details.accordion .section-text li {
  margin: 10px 0;
  margin-left: 24px;
  font-weight: 500;
}

/* Paragraph spacing inside accordions */
details.accordion p.section-text {
  margin: 12px 24px 24px 24px;
}

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.carousel .card {
  min-width: 320px;
}

.form-section iframe {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.footer {
  margin-top: 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  background: linear-gradient(135deg, var(--dark-bg3) 0%, var(--dark-bg2) 100%);
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  margin-bottom: 0;
  border-top: 15px solid #081B40;
}

.footer-top-bar {
  padding: 48px 32px 24px 32px;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  width: 100%;
  max-width: 80vw;
  margin-left: auto;
  margin-right: auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-column-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-column-info {
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.footer-social-mobile {
  display: none !important;
}

.footer .footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  color: #ffffff;
  font-size: 32px;
}

.footer .footer-social a svg,
.footer-social-mobile a svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.footer .footer-social a:hover {
  transform: translateY(-3px);
  color: var(--accent-green);
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-contact-item a {
  color: #fff;
}

.footer .footer-logo {
  margin-bottom: 8px;
  cursor: pointer;
}

.footer-logo-small {
  height: 2rem;
  width: auto;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 24px;
}

.footer-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0 60px 0;
  width: 100%;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(11, 77, 191, 0.18);
  background: #ffffff;
  color: #0b4dbf;
  box-shadow: 0 10px 30px rgba(8, 27, 64, 0.14);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease, color 200ms ease;
  z-index: 120;
  pointer-events: none;
}

.back-to-top i {
  font-size: 1rem;
  line-height: 1;
}

.back-to-top:hover {
  background: #0b4dbf;
  color: #ffffff;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* WhatsApp contact button (above back-to-top) */
.whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(8, 27, 64, 0.14);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease, color 200ms ease;
  z-index: 121;
  pointer-events: none;
  text-decoration: none;
}

.whatsapp-btn i {
  font-size: 1rem;
  line-height: 1;
}

.whatsapp-btn:hover {
  background: #20BA58;
  transform: translateY(8px) scale(1.06);
}

.whatsapp-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.footer-logo-center img {
  height: 12rem;
  width: auto;
}

.footer-bottom-bar {
  background: #001548;
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  margin: 0;
  border-radius: 0;
}

.footer-bottom-bar .footer-legal {
  color: #FFF;
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {

  .back-to-top,
  .whatsapp-btn {
    display: none !important;
  }
}

/* Per-page hero background overrides */
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 32px;
  text-align: left;
  line-height: 1.4;
}

/* Contact Hero Card Styles */
.hero-contacto-card {
  background: transparent;
  padding: 80px 20px 40px;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 16px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-contacto-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px 0;
  line-height: 1.0;
}

.hero-contacto-accent {
  color: var(--accent-green-text);
}

.hero-contacto-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #d1d5db;
  margin: 0;
  line-height: 1.6;
}

.hero-home {
  background-image: url('assets/hero-image.jpg');
}

.hero-banano {
  /* Background image removed as per user request */
}

.hero-cacao {
  background-image: url('assets/cacao-hero.jpg');
}

.hero-agroindustrias {
  background-image: url('assets/industrias.jpg');
}

.hero-contacto {
  background-image: url('assets/contacto.jpg');
}

.hero-contacto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 31, 63, 0.85);
  z-index: 0;
}

@media (min-width: 769px) {
  .contact-info-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-contacto-card {
    padding: 60px 40px;
  }

  .hero-contacto::before {
    background: rgba(11, 31, 63, 0.75);
  }

  .contact-social-link {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
  }

  .contact-social-grid {
    gap: 20px;
  }

  .contact-form-container {
    max-width: 900px;
    padding: 0 20px;
  }

  .contact-form-container iframe {
    width: 100% !important;
  }
}

/* Responsive media queries */
@media (max-width: 768px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    /* remove rounded navbar in mobile */
    border: none;
    top: 0;
    /* Remove desktop offset on mobile */
  }

  .header.is-sticky {
    top: 0;
  }

  .header.is-fixed {
    top: 0;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    /* keep at right edge */
    padding-right: 15px;
    /* extra space from edge */
    margin-right: 14px;
    /* gap from screen edge */
  }

  .header-controls {
    gap: 8px;
  }

  .theme-toggle {
    width: 70px;
    /* match lang-selector proportions */
    height: 34px;
    padding: 3px;
  }

  .theme-toggle-circle {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  body.dark-theme .theme-toggle-circle {
    transform: translateX(36px);
  }

  .lang-selector {
    padding: 3px;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .logo {
    font-size: 1.5rem;
    height: 4rem;
    /* Logo más pequeño en móvil */
  }

  .logo img {
    height: 4rem;
  }

  .nav {
    position: absolute;
    top: 60px;
    left: 50%;
    width: 100%;
    transform: translateX(-50%) translateY(-10px) scaleY(0.95);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* reduce gap; separators handle divider */
    padding: 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  .nav.open {
    transform: translateX(-50%) translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  /* Nav items vertical list */
  .nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    /* bigger touch area */
    border-radius: 0;
    text-align: center;
    font-size: 1.26rem;
    /* larger text */
    font-weight: 700;
    /* stronger bold */
    position: relative;
  }

  /* Mobile separators: override desktop hover/active underline */
  .nav a::after {
    width: 50% !important;
    /* 50% width centered separators */
    height: 1px !important;
    background: var(--dark-bg3) !important;
    /* light theme color */
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    /* center line */
    transform-origin: center !important;
    transition: none !important;
    /* no animation on separators */
    opacity: 1 !important;
  }

  .nav a:hover::after,
  .nav a:focus-visible::after {
    transform: translateX(-50%) !important;
    /* keep centered, no scale */
  }

  .nav a.active::after {
    transform: translateX(-50%) !important;
    /* keep centered */
  }

  .nav a:last-of-type::after {
    display: none;
    /* no separator on last link */
  }

  body.dark-theme .nav a::after {
    background: #00c8ff !important;
    /* celeste in dark theme */
  }

  body.dark-theme .nav {
    background: rgba(11, 21, 43, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
  }

  /* Controls row inside nav on mobile */
  .nav .mobile-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* spacing between toggles */
    padding: 24px 8px 12px;
    /* larger padding */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 90%;
    /* occupy 90% of horizontal area */
    margin-top: 12px;
  }

  body.dark-theme .nav .mobile-controls {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
  }

  /* Enlarge theme/lang toggles in mobile controls */
  .nav .mobile-controls button,
  .nav .mobile-controls a,
  .nav .mobile-controls select {
    flex: 1;
    /* grow equally to fill 80% width */
  }

  /* Size both toggles identically - maintain proportions */
  .nav .mobile-controls .theme-toggle {
    width: 90px !important;
    height: 44px !important;
    padding: 3px !important;
    border-radius: 50px !important;
    flex: 1;
  }

  .nav .mobile-controls .theme-toggle-circle {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem;
    left: 3px !important;
    transform: translateX(0) !important;
  }

  body.dark-theme .nav .mobile-controls .theme-toggle-circle {
    transform: translateX(46px) !important;
  }

  .nav .mobile-controls .lang-selector {
    width: 90px !important;
    height: 44px !important;
    padding: 3px !important;
    flex: 1;
  }

  .nav .mobile-controls .lang-btn {
    padding: 10px 8px !important;
    font-size: 0.85rem !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  .nav .mobile-controls svg {
    width: 24px;
    height: 24px;
  }

  .hero {
    justify-content: center !important;
    min-height: 60vh !important;
  }

  .hero-content {
    max-width: 90vw;
    padding: 20px 16px;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .hero-title {
    font-size: 2rem;
    text-align: center !important;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    text-align: center !important;
  }

  .main-content {
    width: 100%;
    margin: 20px 0 0;
    /* remove bottom gap before footer on mobile */
    gap: 32px;
  }

  /* Maintain centered content on mobile */
  .main-content>section {
    padding-left: 0;
    padding-right: 0;
  }

  .main-content>section[style*="background"] {
    padding-left: 0;
    padding-right: 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer {
    padding: 24px 12px;
    gap: 0;
  }

  .footer-top-bar {
    padding: 16px 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 100%;
  }

  .footer-logo-center {
    padding: 32px 0 24px 0;
  }

  .footer-logo-center img {
    height: 8rem;
  }

  .footer .footer-links,
  .footer .footer-social {
    flex-direction: column;
    gap: 12px;
  }

  /* MOBILE FOOTER LAYOUT (2-column grid) */
  /* Create a 2-column grid for nav and contact */
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    row-gap: 24px;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
  }

  /* First section: logo + info centered at top */
  .footer-column:nth-child(1) {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    order: 1;
  }

  .footer-column:nth-child(1) .footer-logo-link img {
    height: 5rem;
    width: auto;
  }

  .footer-column:nth-child(1) .footer-column-info {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e6ebf5;
    max-width: 90%;
    word-wrap: break-word;
  }

  /* Second section: navigation (left) */
  .footer-column:nth-child(2) {
    grid-column: 1;
    order: 2;
    padding-left: 16px;
  }

  /* Hide social section from main grid (shown on mobile) */
  .footer-column:nth-child(3) {
    display: none;
  }

  /* Second section: contact (right) */
  .footer-column:nth-child(4) {
    grid-column: 2;
    order: 3;
    max-width: 100%;
    padding-left: 8px;
  }

  .footer-column:nth-child(4) .footer-contact-item {
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .footer-top-bar {
    padding: 24px 16px 16px;
  }

  .footer-logo-center {
    display: none;
  }

  /* Third section: social links after nav and contact */
  .footer-social-mobile {
    grid-column: 1 / -1;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    order: 4;
  }

  .footer-social-mobile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    color: #ffffff;
    font-size: 32px;
  }

  .footer-social-mobile a:hover {
    transform: translateY(-3px);
    color: var(--accent-green);
    opacity: 1;
  }


  .footer-logo-center img {
    height: 6rem;
  }

  .footer-logo-center {
    padding: 32px 0 24px 0;
  }

  /* Footer bottom bar - mobile fix */
  .footer-bottom-bar {
    width: calc(100% + 24px);
    margin-left: -12px;
    margin-right: -12px;
    margin-top: 24px;
    margin-bottom: -24px;
    padding: 12px 16px 20px 16px;
  }

  .footer-bottom-bar .footer-legal {
    font-size: 0.8rem;
  }
}

/* HERO MOBILE STYLES */
@media (max-width: 768px) {
  .hero {
    min-height: 65vh !important;
  }

  .hero-content {
    padding: 16px 12px;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .hero-title {
    font-size: 1.8rem;
    text-align: center !important;
  }

  .hero-subtitle {
    font-size: 1rem;
    text-align: center !important;
  }

  .cta-btn {
    padding: 10px 24px;
    font-size: 1rem;
  }
}

.card {
  padding: 24px 16px;
}

/* ============================================================================
   SECURITY & FORM VALIDATION STYLES
   ============================================================================ */

/* Invalid input styling */
input:invalid,
textarea:invalid,
select:invalid {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

input.invalid,
textarea.invalid,
select.invalid {
  border-color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.05);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #dc3545;
}

/* Valid input styling */
input:valid:not([value=""]),
textarea:valid:not([value=""]),
select:valid {
  border-color: #28a745;
}

/* Form error messages */
.form-error {
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
  color: #721c24;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 4px;
  display: none;
}

/* Input focus with error state */
input.invalid:focus,
textarea.invalid:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
  border-color: #dc3545;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(11, 77, 191, 0.18);
  background: #ffffff;
  color: #0b4dbf;
  box-shadow: 0 10px 30px rgba(8, 27, 64, 0.14);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease, color 200ms ease;
  z-index: 120;
  pointer-events: none;
}

.back-to-top i {
  font-size: 1rem;
  line-height: 1;
}

.back-to-top:hover {
  background: #0b4dbf;
  color: #ffffff;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Form submission state */
form.submitting button[type="submit"] {
  opacity: 0.7;
  cursor: not-allowed;
}

form.submitting button[type="submit"]::after {
  content: " ...";
}

/* Input validation feedback */
.input-feedback {
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

.input-feedback.error {
  color: #dc3545;
  display: block;
}

.input-feedback.success {
  color: #28a745;
  display: block;
}

/* Accessibility improvements for validation */
input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

input[aria-invalid="false"]:focus {
  outline: 2px solid #28a745;
  outline-offset: 2px;
}

/* Removed redundant selectors */

/* =============================
   INDEX.HTML - Dark Theme Per-Section Colors
   INDEX.HTML - Dark Theme Per-Section Colors
   ============================= */

/* Quiénes Section - BG2 */
body.dark-theme .quienes-section {
  background: var(--dark-bg2) !important;
}

body.dark-theme .quienes-title,
body.dark-theme .quienes-text {
  color: #ffffff !important;
}

body.dark-theme .quienes-badge {
  background: rgba(1, 92, 191, 0.25) !important;
  border-color: rgba(1, 92, 191, 0.4) !important;
  color: #64b5f6 !important;
}

/* Trayectoria Section - BG1 background, panel BG1, cards BG2, icons BG2 */
body.dark-theme .trayectoria-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .trayectoria-panel {
  background: var(--dark-bg1) !important;
}

body.dark-theme .tray-title {
  color: #ffffff !important;
}

body.dark-theme .tray-card {
  background: var(--dark-bg2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .tray-number {
  color: #ffffff !important;
}

body.dark-theme .tray-label {
  color: #ffffff !important;
}

body.dark-theme .tray-icon {
  background: var(--dark-bg2) !important;
  color: #64b5f6 !important;
  border: 1px solid #ffffff !important;
}

body.dark-theme .tray-card:hover {
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 0 3px var(--accent-green), 0 12px 28px rgba(140, 214, 39, 0.28) !important;
}

/* Force white text for tray elements in dark theme */
body.dark-theme .trayectoria-panel .tray-number,
body.dark-theme .trayectoria-panel .tray-label {
  color: #ffffff !important;
}

/* Solutions Section - BG2 background, cards BG1, images grayscale, text body white */
body.dark-theme .solutions-section {
  background: var(--dark-bg2) !important;
}

body.dark-theme .solutions-title {
  color: #ffffff !important;
}

body.dark-theme .solution-card {
  background: var(--dark-bg1) !important;
  border-color: rgba(51, 178, 230, 0.3) !important;
}

body.dark-theme .solution-image {
  filter: grayscale(1) !important;
}

body.dark-theme .solution-card:hover .solution-image {
  filter: saturate(1) !important;
}

body.dark-theme .solution-card .solution-media {
  background: transparent !important;
}

/* Mobile: siempre saturación 1, sin hover effects en dark theme */
@media (max-width: 900px) {
  body.dark-theme .solution-image {
    filter: saturate(1) !important;
  }
}

body.dark-theme .solution-body {
  background: var(--dark-bg1) !important;
}

body.dark-theme .solution-title {
  color: #ffffff !important;
}

body.dark-theme .solution-text {
  color: #e2e8f0 !important;
}

body.dark-theme .solution-mobile-btn,
body.dark-theme .solution-link {
  background: var(--accent-green) !important;
  color: #000 !important;
}

/* Portfolio Section - Immune to dark theme (maintains original appearance) */
body.dark-theme .portfolio-section {
  background: linear-gradient(135deg, rgba(11, 31, 63, 1) 0%, rgba(11, 31, 63, 0.95) 40%, rgba(63, 174, 77, 0.65) 100%) !important;
  padding: 88px 0 96px !important;
}

body.dark-theme .portfolio-title {
  color: #ffffff !important;
}

body.dark-theme .portfolio-title .accent {
  color: var(--accent-green) !important;
}

body.dark-theme .portfolio-card {
  background: var(--dark-bg1) !important;
  border-color: rgba(140, 214, 39, 0.3) !important;
}

body.dark-theme .portfolio-body {
  background: var(--dark-bg1) !important;
}

body.dark-theme .portfolio-item-title {
  color: #ffffff !important;
}

body.dark-theme .portfolio-item-text {
  color: #e2e8f0 !important;
}

body.dark-theme .portfolio-image {
  filter: saturate(0) !important;
  transition: all 0.4s ease !important;
}

body.dark-theme .portfolio-card:hover .portfolio-image {
  filter: saturate(1) !important;
}

body.dark-theme .portfolio-badge {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #eaf2ff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* Services Section - BG1 background, cards BG3 */
body.dark-theme .services-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .services-title {
  color: #ffffff !important;
}

body.dark-theme .services-badge {
  background: rgba(140, 214, 39, 0.2) !important;
  border-color: rgba(140, 214, 39, 0.4) !important;
  color: #b8e66f !important;
}

body.dark-theme .services-subtitle {
  color: #b0bfd9 !important;
}

body.dark-theme .service-card {
  background: var(--dark-bg1) !important;
  border-color: rgba(51, 178, 230, 0.2) !important;
}

body.dark-theme .service-title {
  color: #ffffff !important;
}

body.dark-theme .service-icon {
  background: var(--dark-bg2) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .service-card:hover .service-icon,
body.dark-theme .service-card:focus-within .service-icon {
  background: var(--text-realce) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(1, 92, 191, 0.4) !important;
}

/* Clientes Section - BG2 */
body.dark-theme .clientes-section {
  background: var(--dark-bg2) !important;
}

body.dark-theme .clientes-title {
  color: #ffffff !important;
}

body.dark-theme .clientes-title span {
  color: #64b5f6 !important;
}

body.dark-theme .clientes-text {
  color: #b0bfd9 !important;
}

body.dark-theme .clientes-badge {
  background: rgba(1, 92, 191, 0.25) !important;
  border-color: rgba(1, 92, 191, 0.4) !important;
  color: #64b5f6 !important;
}

body.dark-theme .clientes-badge::before {
  background: #64b5f6 !important;
  box-shadow: 0 0 0 4px rgba(100, 181, 246, 0.2) !important;
}

/* CTA Section - No changes (maintain background image and overlay) */
body.dark-theme .cta-section {
  background: linear-gradient(135deg, rgba(0, 21, 72, 0.295) 0%, rgba(1, 93, 191, 0.342) 100%),
    url('assets/cta-final.jpg') center/cover no-repeat !important;
  background-attachment: scroll !important;
}

body.dark-theme .cta-title,
body.dark-theme .cta-text {
  color: #ffffff !important;
}

body.dark-theme .cta-button {
  background: var(--accent-green) !important;
  color: #000 !important;
}

/* End of INDEX.HTML Dark Theme Section Styling */

/* =============================
   BANANO.HTML - Dark Theme Per-Section Colors
   ============================= */

/* Hero Split Section - BG2 */
body.dark-theme .hero-split {
  background: var(--dark-bg2) !important;
}

body.dark-theme .hero-left .hero-title {
  color: #ffffff !important;
}

body.dark-theme .hero-left .hero-subtitle {
  color: #b0bfd9 !important;
}

/* Botón "Ver cómo funciona" mantiene fondo blanco */
body.dark-theme .hero-left .cta-btn[href="#desafios"] {
  background: #ffffff !important;
  color: #0033A0 !important;
  border-color: #0033A0 !important;
}

/* Challenges (Dolores) Section - BG1 */
body.dark-theme .challenges-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .challenges-section .section-title,
body.dark-theme .challenges-section .section-text {
  color: #ffffff !important;
}

body.dark-theme .challenge-card {
  background: #0033b3 !important;
  border-color: rgba(51, 178, 230, 0.2) !important;
}

body.dark-theme .challenge-card h3,
body.dark-theme .challenge-card p {
  color: #ffffff !important;
}

body.dark-theme .challenge-card:hover {
  background: #E85D4B !important;
}

/* ERP Ecosystem Section - BG2 */
body.dark-theme .erp-ecosystem {
  background: var(--dark-bg2) !important;
}

body.dark-theme .erp-ecosystem .section-title {
  color: #ffffff !important;
}

body.dark-theme .erp-ecosystem .section-text {
  color: #b0bfd9 !important;
}

body.dark-theme .erp-visual {
  background: var(--dark-bg2) !important;
}

body.dark-theme .erp-visual img {
  background: var(--dark-bg2) !important;
}

body.dark-theme .module-card {
  background: var(--dark-bg3) !important;
  border-color: rgba(100, 181, 246, 0.3) !important;
}

body.dark-theme .module-title {
  color: #ffffff !important;
}

body.dark-theme .module-subtitle {
  color: #b0bfd9 !important;
}

body.dark-theme .module-content p {
  color: #b0bfd9 !important;
}

body.dark-theme .module-label {
  color: #ffffff !important;
}

/* Producción Section - BG1 */
body.dark-theme .produccion-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .produccion-tablero {
  background: var(--dark-bg1) !important;
}

body.dark-theme .produccion-title {
  color: #ffffff !important;
}

body.dark-theme .produccion-subtitle {
  color: #b0bfd9 !important;
}

















body.dark-theme .contabilidad-quote-box {
  background: var(--dark-bg3) !important;
  border-left-color: #ffffff !important;
}

body.dark-theme .contabilidad-quote-box p {
  color: #ffffff !important;
}

/* Solutions Subsection 2 - BG2 */
body.dark-theme .produccion-soluciones {
  background: var(--dark-bg2) !important;
}

body.dark-theme .soluciones-title {
  color: #ffffff !important;
}

body.dark-theme .solucion-card {
  background: var(--dark-bg3) !important;
}

body.dark-theme .solucion-title,
body.dark-theme .solucion-desc {
  color: #ffffff !important;
}

body.dark-theme .solucion-features li {
  color: #b0bfd9 !important;
}

body.dark-theme .soluciones-quote {
  color: #ffffff !important;
}

/* Smart AG Section (Apps) - Mantener textos de cards como tema claro */
body.dark-theme .smart-ag-section {
  background: linear-gradient(135deg, #09244b 0%, #111827 100%) !important;
}

body.dark-theme .smart-ag-section .section-title {
  color: #ffffff !important;
}

body.dark-theme .smart-ag-section .section-text {
  color: #d1d5db !important;
}

body.dark-theme .smart-ag-card {
  background: #ffffff !important;
}

body.dark-theme .smart-ag-title {
  color: #10B981 !important;
}

body.dark-theme .smart-ag-description,
body.dark-theme .smart-ag-card p {
  color: #e7e7e7 !important;
}

body.dark-theme .smart-ag-icon-circle {
  background: #ffffff !important;
  color: #10B981 !important;
}

/* Contabilidad Section - BG2 */
body.dark-theme .contabilidad-section {
  background: var(--dark-bg2) !important;
}

body.dark-theme .contabilidad-title {
  color: #ffffff !important;
}

body.dark-theme .contabilidad-subtitle,
body.dark-theme .contabilidad-intro {
  color: #b0bfd9 !important;
}

body.dark-theme .contabilidad-feature-text {
  color: #ffffff !important;
}

body.dark-theme .contabilidad-dashboard {
  background: var(--dark-bg3) !important;
}

body.dark-theme .contabilidad-dashboard-title {
  color: #ffffff !important;
}

body.dark-theme .dashboard-metric-value,
body.dark-theme .dashboard-metric-label {
  color: #ffffff !important;
}

/* Removed redundant selectors */

/* Nómina Section - BG1 */
body.dark-theme .nomina-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .nomina-section .section-title {
  color: #ffffff !important;
}

body.dark-theme .nomina-section .section-text {
  color: #b0bfd9 !important;
}

body.dark-theme .nomina-item {
  background: var(--dark-bg3) !important;
}

body.dark-theme .nomina-item-text {
  color: #ffffff !important;
}

body.dark-theme .nomina-item:hover {
  background: #ECFDF5 !important;
}

body.dark-theme .nomina-item:hover .nomina-item-text {
  color: #0b1f3f !important;
}

/* BigData Section - Mantener como original */
body.dark-theme .bigdata-section {
  background: #0033A0 !important;
}

/* Agritrace Section - BG1 */
body.dark-theme .agritrace-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .agritrace-hero-split {
  background: var(--dark-bg1) !important;
}

body.dark-theme .agritrace-badge-top {
  background: rgba(140, 214, 39, 0.15) !important;
  color: var(--accent-green-text) !important;
}

body.dark-theme .agritrace-main-heading {
  color: #ffffff !important;
}

body.dark-theme .agritrace-subtitle {
  color: #b0bfd9 !important;
}

body.dark-theme .agritrace-checklist li {
  color: #ffffff !important;
}

/* Traceability Section - BG2 */
body.dark-theme .traceability-section {
  background: var(--dark-bg2) !important;
}

body.dark-theme .traceability-section .section-title {
  color: #ffffff !important;
}

body.dark-theme .traceability-section .section-text {
  color: #b0bfd9 !important;
}

body.dark-theme .trace-title {
  color: #ffffff !important;
}

body.dark-theme .trace-description {
  color: #b0bfd9 !important;
}

body.dark-theme .trace-stage:hover .trace-circle {
  background: #10B981 !important;
  color: #ffffff !important;
}

body.dark-theme .trace-stage:hover .trace-title {
  color: #10B981 !important;
}

/* Mantener animaciones activas con colores en dark theme */
body.dark-theme .traceability-pipeline::before {
  background: rgba(100, 181, 246, 0.3) !important;
}

/* Animaciones activas - Stage 1 */
body.dark-theme .trace-stage:nth-child(1) .trace-title {
  animation: titleActivate1Dark 14s infinite !important;
}

@keyframes titleActivate1Dark {

  0%,
  20% {
    color: #10B981 !important;
  }

  20.001%,
  100% {
    color: #ffffff !important;
  }
}

/* Animaciones activas - Stage 2 */
body.dark-theme .trace-stage:nth-child(2) .trace-title {
  animation: titleActivate2Dark 14s infinite !important;
}

@keyframes titleActivate2Dark {

  0%,
  20% {
    color: #ffffff !important;
  }

  20.001%,
  40% {
    color: #10B981 !important;
  }

  40.001%,
  100% {
    color: #ffffff !important;
  }
}

/* Animaciones activas - Stage 3 */
body.dark-theme .trace-stage:nth-child(3) .trace-title {
  animation: titleActivate3Dark 14s infinite !important;
}

@keyframes titleActivate3Dark {

  0%,
  40% {
    color: #ffffff !important;
  }

  40.001%,
  60% {
    color: #10B981 !important;
  }

  60.001%,
  100% {
    color: #ffffff !important;
  }
}

/* Animaciones activas - Stage 4 */
body.dark-theme .trace-stage:nth-child(4) .trace-title {
  animation: titleActivate4Dark 14s infinite !important;
}

@keyframes titleActivate4Dark {

  0%,
  60% {
    color: #ffffff !important;
  }

  60.001%,
  80% {
    color: #10B981 !important;
  }

  80.001%,
  100% {
    color: #ffffff !important;
  }
}

/* Animaciones activas - Stage 5 */
body.dark-theme .trace-stage:nth-child(5) .trace-title {
  animation: titleActivate5Dark 14s infinite !important;
}

@keyframes titleActivate5Dark {

  0%,
  80% {
    color: #ffffff !important;
  }

  80.001%,
  100% {
    color: #10B981 !important;
  }
}

body.dark-theme .trace-description {
  color: #ffffff !important;
}

/* Exportadoras (Clientes) Section - BG1 */
body.dark-theme .exportadoras-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .exportadoras-section .section-title {
  color: #ffffff !important;
}

body.dark-theme .exportadoras-section .section-text {
  color: #b0bfd9 !important;
}

/* Formulario Section - BG1, form BG2 */
body.dark-theme .form-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .form-wrapper {
  background: var(--dark-bg2) !important;
}

body.dark-theme .form-wrapper iframe {
  background: #ffffff !important;
}

body.dark-theme .form-wrapper h2 {
  color: #ffffff !important;
}

body.dark-theme .form-wrapper p {
  color: #b0bfd9 !important;
}

body.dark-theme .form-wrapper input,
body.dark-theme .form-wrapper select,
body.dark-theme .form-wrapper textarea {
  background: var(--dark-bg3) !important;
  color: #ffffff !important;
  border-color: rgba(100, 181, 246, 0.3) !important;
}

/* End of BANANO.HTML Dark Theme Section Styling */

/* ============================= */
/* CACAO.HTML Dark Theme Styling */
/* ============================= */

/* Hero Section - No changes for dark theme */
body.dark-theme .hero-cacao {
  background: linear-gradient(rgba(60, 36, 21, 0.70), rgba(40, 24, 14, 0.85)), url('assets/cacao-hero.jpg') center/cover no-repeat !important;
}

/* Preserve accent colors in Hero */
body.dark-theme .hero-cacao h1 span {
  color: #d4a445 !important;
}

body.dark-theme .hero-cacao>div>p:nth-of-type(2) {
  color: #d4a445 !important;
}

/* Trayectoria Section */
body.dark-theme .trayectoria-section {
  background: var(--dark-bg1);
}

body.dark-theme .trayectoria-card {
  background: var(--dark-bg2);
  border-color: rgba(212, 164, 69, 0.2);
}

body.dark-theme .trayectoria-number {
  color: #d4a445;
}

body.dark-theme .trayectoria-icon {
  color: #d4a445;
}

body.dark-theme .trayectoria-label {
  color: #ccc;
}

body.dark-theme .trayectoria-badge {
  background: #d4a445;
  color: #001548;
}

body.dark-theme .trayectoria-section .section-title {
  color: #ffffff;
}

body.dark-theme .trayectoria-section .section-title span {
  color: #d4a445;
}

/* Diagnostico Section - No changes for dark theme - preserve completely */
body.dark-theme .diagnostico-section {
  background: linear-gradient(135deg, rgba(60, 36, 21, 0.95), rgba(45, 27, 16, 0.98)), url('assets/cacao-hero.jpg') center/cover no-repeat !important;
}

body.dark-theme .diagnostico-section .section-title {
  color: #ffffff !important;
}

body.dark-theme .diagnostico-section .section-title .highlight {
  color: #d4a445 !important;
}

body.dark-theme .diagnostico-badge {
  background: rgba(212, 164, 69, 0.25) !important;
  color: #d4a445 !important;
  border-color: rgba(212, 164, 69, 0.3) !important;
}

body.dark-theme .diagnostico-header-title {
  color: #d4a445 !important;
}

body.dark-theme .diagnostico-item-text {
  color: #ffffff !important;
}

body.dark-theme .diagnostico-column {
  background: rgba(60, 36, 21, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .diagnostico-item-icon {
  color: #d4a445 !important;
}

/* Produccion Section (Contabilidad) */
body.dark-theme .produccion-section {
  background: var(--dark-bg2);
}

/* Producción main title with decorations */
body.dark-theme .produccion-section h2[style*="color: #3c2415"] {
  color: #d4a445 !important;
}

body.dark-theme .produccion-section img[src="assets/decoration.png"] {
  filter: brightness(0) invert(1);
}

body.dark-theme .produccion-section .section-title,
body.dark-theme .produccion-section h2,
body.dark-theme .produccion-section h3 {
  color: #ffffff;
}

body.dark-theme .produccion-section .section-text,
body.dark-theme .produccion-section p {
  color: #ccc;
}

/* Producción BI KPI Cards */
body.dark-theme .produccion-section .produccion-kpi-card {
  background: var(--dark-bg2) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

body.dark-theme .produccion-section .produccion-kpi-label {
  color: #ccc !important;
}

/* Costos Laborales Subsection */
body.dark-theme .produccion-section .produccion-subsection.reverse {
  background: var(--dark-bg1) !important;
  width: 100% !important;
}

/* Acopio Section (Business Intelligence) */
/* Preserve PAD (Acopio) original brown background in dark theme */
body.dark-theme .acopio-section {
  background: linear-gradient(135deg, rgba(60, 36, 21, 0.98) 0%, rgba(45, 27, 16, 0.98) 100%) !important;
}

body.dark-theme .acopio-card {
  background: var(--dark-bg3);
  border-color: rgba(212, 164, 69, 0.2);
  color: #ffffff;
}

body.dark-theme .acopio-card h3 {
  color: #ffffff;
}

body.dark-theme .acopio-card p {
  color: #ccc;
}

body.dark-theme .acopio-section .section-title {
  color: #ffffff;
}

body.dark-theme .acopio-section .section-title span {
  color: #d4a445;
}

body.dark-theme .acopio-section .section-text {
  color: #ccc;
}

/* PAD Section - No changes for dark theme */
body.dark-theme .smart-ag-section {
  background: linear-gradient(rgba(60, 36, 21, 0.70), rgba(40, 24, 14, 0.85)) !important;
}

/* Kanban subsection: keep light-theme transparent background in dark mode */
body.dark-theme .smart-ag-section[style*="transparent"] {
  background: transparent !important;
}

/* Evidencia Section */
body.dark-theme .evidencia-section {
  background: var(--dark-bg2) !important;
}

body.dark-theme .evidencia-section .section-title {
  color: #ffffff;
}

body.dark-theme .evidencia-section .section-title span {
  color: #d4a445;
}

body.dark-theme .evidencia-section .section-text {
  color: #ccc;
}

body.dark-theme .evidencia-card {
  background: rgba(0, 51, 179, 0.3);
  border-color: rgba(212, 164, 69, 0.2);
  color: #e5e7eb;
}

/* Testimonios Section */
body.dark-theme .testimonios-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .testimonios-section .section-title {
  color: #ffffff;
}

body.dark-theme .testimonios-section .section-title span {
  color: #d4a445;
}

body.dark-theme .testimonios-section .section-text {
  color: #ccc;
}

body.dark-theme .testimonios-card {
  background: var(--dark-bg2) !important;
  border-color: rgba(212, 164, 69, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .testimonios-card:hover {
  border-color: rgba(212, 164, 69, 0.5) !important;
  box-shadow: 0 8px 20px rgba(212, 164, 69, 0.2) !important;
}

body.dark-theme .testimonios-author-name {
  color: #ffffff !important;
}

body.dark-theme .testimonios-author-role {
  color: #ffffff !important;
}

body.dark-theme .testimonios-text {
  color: #ffffff !important;
}

body.dark-theme .testimonial-card {
  background: var(--dark-bg2) !important;
  border-color: rgba(212, 164, 69, 0.2) !important;
  color: #e5e7eb !important;
}

body.dark-theme .testimonial-card .testimonial-text {
  color: #ccc;
}

body.dark-theme .testimonial-author {
  color: #d4a445;
}

/* CTA Cacao Section */
body.dark-theme .cta-cacao-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .cta-cacao-section .section-title {
  color: #ffffff;
}

body.dark-theme .cta-cacao-section .section-title span {
  color: #d4a445;
}

body.dark-theme .cta-cacao-section .section-text {
  color: #ccc;
}

body.dark-theme .cta-cacao-section button,
body.dark-theme .cta-cacao-section a.cta-btn {
  background: linear-gradient(135deg, #d4a445 0%, #b8860b 100%);
  color: #001548;
  font-weight: 700;
}

body.dark-theme .cta-cacao-section button:hover,
body.dark-theme .cta-cacao-section a.cta-btn:hover {
  box-shadow: 0 8px 24px rgba(212, 164, 69, 0.3);
}

/* =============== AGROINDUSTRIAS.HTML Dark Theme Section Styling =============== */

/* Hero: No changes - preserve light theme appearance */
body.dark-theme .agro-hero {
  background-image: url('assets/agroindustrias.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
}

body.dark-theme .agro-hero::before {
  background: rgba(17, 33, 69, 0.751) !important;
}

/* Experiencia (Entendemos) Section - BG2 background */
body.dark-theme .agro-entendemos {
  background: var(--dark-bg2) !important;
}

body.dark-theme .agro-entendemos .entendemos-title,
body.dark-theme .agro-entendemos h2 {
  color: #ffffff !important;
}

body.dark-theme .agro-entendemos .entendemos-text,
body.dark-theme .agro-entendemos p {
  color: #d0d4dc !important;
}

body.dark-theme .agro-entendemos .entendemos-brand strong {
  color: #3fae4d !important;
}

body.dark-theme .agro-entendemos .entendemos-badge {
  background: rgba(63, 174, 77, 0.15) !important;
  color: #3fae4d !important;
}

/* Dolores (Desafios) Section - No changes in dark mode */
/* Preserve light theme appearance completely */
body.dark-theme .agro-desafios {
  background: linear-gradient(135deg, rgba(11, 31, 63, 1) 0%, rgba(11, 31, 63, 0.94) 100%) !important;
}

body.dark-theme .agro-desafios .desafios-title,
body.dark-theme .agro-desafios h2 {
  color: #fff !important;
}

body.dark-theme .agro-desafios .desafio-card {
  background: #fff !important;
  border-color: #e8e8e8 !important;
  color: #333 !important;
}

body.dark-theme .agro-desafios .desafio-card.featured {
  border: 2px solid #63b3ed !important;
}

body.dark-theme .agro-desafios .desafio-card h3 {
  color: #0b1f3f !important;
}

body.dark-theme .agro-desafios .desafio-card p,
body.dark-theme .agro-desafios .desafio-desc {
  color: #666 !important;
}

body.dark-theme .agro-desafios .desafio-icon {
  background: rgba(99, 179, 237, 0.1) !important;
}

body.dark-theme .agro-desafios .desafio-icon i {
  color: #63b3ed !important;
}

/* Preserve hover effects exactly as light theme */
body.dark-theme .agro-desafios .desafio-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(63, 174, 77, 0.4), 0 0 60px rgba(63, 174, 77, 0.2) !important;
}

body.dark-theme .agro-desafios .desafio-card:hover .desafio-icon {
  background: #3fae4d !important;
}

body.dark-theme .agro-desafios .desafio-card:hover .desafio-icon i {
  color: #fff !important;
}

/* Clientes Section - No changes in dark mode */
/* Preserve gradient background and all styling */
body.dark-theme .agro-clientes {
  background: linear-gradient(135deg, rgba(29, 78, 59, 0.98) 0%, rgba(11, 31, 63, 0.98) 100%) !important;
}

body.dark-theme .agro-clientes .section-title {
  color: #fff !important;
}

body.dark-theme .agro-clientes .section-title .highlight {
  color: #3fae4d !important;
}

body.dark-theme .agro-clientes .section-text {
  color: #e8e8e8 !important;
}

/* Solutions Section - BG1 with green accents */
body.dark-theme .agro-soluciones {
  background: var(--dark-bg1) !important;
}

body.dark-theme .agro-soluciones .section-title,
body.dark-theme .agro-soluciones h2 {
  color: #ffffff !important;
}

body.dark-theme .agro-soluciones .section-title .highlight,
body.dark-theme .agro-soluciones h2 .highlight {
  color: #3fae4d !important;
}

body.dark-theme .agro-soluciones .section-text,
body.dark-theme .agro-soluciones p {
  color: #d0d4dc !important;
}

body.dark-theme .agro-soluciones .solucion-card {
  background: var(--dark-bg2) !important;
  border-color: rgba(63, 174, 77, 0.2) !important;
}

body.dark-theme .agro-soluciones .solucion-title {
  color: #ffffff !important;
}

body.dark-theme .agro-soluciones .solucion-description {
  color: #d0d4dc !important;
}

/* About Us Hero - Preserve colors in dark mode */
body.dark-theme .hero-nosotros h1[style*="color: #8cd627"] {
  color: var(--accent-green-text) !important;
}

body.dark-theme .hero-nosotros p[style*="color: #ffffff"] {
  color: #ffffff !important;
}

/* Valores Section - Preserve colors and styling in dark mode */
body.dark-theme .valores-nosotros {
  background: linear-gradient(135deg, var(--text-realce) 0%, #1e7a6f 100%) !important;
  position: relative !important;
  z-index: 1 !important;
}

body.dark-theme .valores-nosotros h2 {
  color: #ffffff !important;
}

body.dark-theme .valores-nosotros h2::after {
  background: #ffffff !important;
}

body.dark-theme .valor-card {
  background: #ffffff !important;
  border-color: var(--text-realce) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

body.dark-theme .valor-card:hover {
  background: var(--text-realce) !important;
  border-color: #ffffff !important;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15) !important;
  transform: translateY(-12px) !important;
}

body.dark-theme .valor-icon {
  background: linear-gradient(135deg, var(--text-realce) 0%, #1e7a6f 100%) !important;
  color: #fff !important;
}

body.dark-theme .valor-card:hover .valor-icon {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
  color: var(--text-realce) !important;
}

body.dark-theme .valor-content h3 {
  color: #1a1a1a !important;
}

body.dark-theme .valor-content p {
  color: #666666 !important;
}

body.dark-theme .valor-card:hover .valor-content h3,
body.dark-theme .valor-card:hover .valor-content p {
  color: #ffffff !important;
}

/* Certificaciones Section - BG3 text on hover in dark mode */
body.dark-theme .certificacion-card:hover .certificacion-title,
body.dark-theme .certificacion-card:hover .certificacion-desc {
  color: #0033b3 !important;
}

/* Contact - Data cards in dark mode */
body.dark-theme .contact-info-card {
  background: #ffffff !important;
  border: 2px solid #0033b3 !important;
  color: #0b1f3f !important;
  box-shadow: 0 8px 20px rgba(0, 27, 72, 0.12) !important;
}

body.dark-theme .contact-info-card:hover {
  background: #0033b3 !important;
  border-color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 27, 72, 0.25) !important;
}

body.dark-theme .contact-info-title {
  color: #0033b3 !important;
}

body.dark-theme .contact-info-text,
body.dark-theme .contact-info-text a {
  color: #0b1f3f !important;
}

body.dark-theme .contact-info-icon {
  background: #0033b3 !important;
  color: #ffffff !important;
}

body.dark-theme .contact-info-card:hover .contact-info-title,
body.dark-theme .contact-info-card:hover .contact-info-text,
body.dark-theme .contact-info-card:hover .contact-info-text a {
  color: #ffffff !important;
}

body.dark-theme .contact-info-card:hover .contact-info-icon {
  background: #ffffff !important;
  color: #0033b3 !important;
}

/* Contact - Social links in dark mode */
body.dark-theme .contact-social-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .contact-social-title {
  color: #ffffff !important;
}

body.dark-theme .contact-social-link {
  background: var(--dark-bg2) !important;
  border: 2px solid #0033b3 !important;
  color: #ffffff !important;
}

body.dark-theme .contact-social-link:hover {
  background: #0033b3 !important;
  border-color: #0033b3 !important;
  color: #ffffff !important;
}

/* Clientes (agro-clientes) Section - No changes in dark mode */
/* Preserve light theme appearance */

/* Testimonios Section - BG1 with BG2 cards */
body.dark-theme .agro-testimonios-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .agro-testimonios-section .testimonios-card {
  background: var(--dark-bg2) !important;
  border-color: rgba(63, 174, 77, 0.2) !important;
}

body.dark-theme .agro-testimonios-section .testimonios-author-name {
  color: #ffffff !important;
}

body.dark-theme .agro-testimonios-section .testimonios-author-role {
  color: #ffffff !important;
}

body.dark-theme .agro-testimonios-section .testimonios-text {
  color: #ffffff !important;
}

/* CTA Section - BG1 */
body.dark-theme .agro-cta {
  background: var(--dark-bg1) !important;
}

body.dark-theme .agro-cta .section-title,
body.dark-theme .agro-cta h2 {
  color: #ffffff !important;
}

body.dark-theme .agro-cta .section-text,
body.dark-theme .agro-cta p {
  color: #d0d4dc !important;
}

body.dark-theme .agro-cta .agro-btn.primary {
  background: #3fae4d !important;
}

body.dark-theme .agro-cta .agro-btn.primary:hover {
  background: #2d8a3b !important;
  box-shadow: 0 10px 24px rgba(63, 174, 77, 0.35) !important;
}

/* Form Section - BG2 */
body.dark-theme .form-section {
  background: var(--dark-bg2) !important;
}

body.dark-theme .form-section .section-title,
body.dark-theme .form-section h2 {
  color: #ffffff !important;
}

body.dark-theme .form-section .section-text,
body.dark-theme .form-section p {
  color: #d0d4dc !important;
}

/* End of AGROINDUSTRIAS.HTML Dark Theme Section Styling */
/* End of CACAO.HTML Dark Theme Section Styling */

/* =============================
   BigData Section (Business Intelligence)
   ============================= */
.bigdata-section {
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0033A0 0%, #015CBF 100%);
}

.bigdata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.bigdata-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.bigdata-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.bigdata-icon {
  font-size: 2.5rem;
  color: #FFD700;
}

.bigdata-number {
  font-size: 2rem;
  font-weight: 800;
  color: #FFD700;
}

.bigdata-label {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .bigdata-section {
    width: 100%;
    padding: 60px 16px;
  }

  .bigdata-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px auto 0;
    max-width: 100%;
  }

  .bigdata-card {
    padding: 20px 16px;
    gap: 12px;
  }

  .bigdata-icon {
    font-size: 2rem;
  }

  .bigdata-number {
    font-size: 1.5rem;
  }

  .bigdata-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .bigdata-section {
    padding: 40px 12px;
  }

  .bigdata-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px auto 0;
  }

  .bigdata-card {
    padding: 16px 12px;
  }

  .bigdata-number {
    font-size: 1.3rem;
  }

  .bigdata-label {
    font-size: 0.8rem;
  }
}

/* =============================
   Challenges Section (Dolores)
   ============================= */
.challenges-section {
  width: 100%;
  padding: 80px 20px;
  margin-top: 0;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .challenges-section {
    padding: 100px 24px;
  }

  .challenges-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .challenges-section {
    padding: 100px 20px;
  }

  .challenges-grid {
    padding: 0 20px;
  }
}

/* ============================================================================
   DESKTOP LAYOUT (MIN-WIDTH: 769px) - FOOTER OVERRIDE
   ============================================================================ */
@media (min-width: 769px) {
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    width: 100%;
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-column:nth-child(1) {
    grid-column: auto;
    order: auto;
    align-items: flex-start;
    text-align: left;
  }

  .footer-column:nth-child(2) {
    grid-column: auto;
  }

  .footer-column:nth-child(3) {
    display: flex;
  }

  .footer-column:nth-child(4) {
    grid-column: auto;
  }

  .footer-top-bar {
    padding: 48px 32px 24px 32px;
  }

  .footer-logo-center {
    display: none;
  }

  .footer-social-mobile {
    display: none !important;
  }

  .footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer .footer-social {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
  }

  /* HERO DESKTOP LAYOUT - texto alineado a la izquierda */
  .hero {
    justify-content: flex-start !important;
  }

  .hero-content {
    text-align: left !important;
    align-items: flex-start !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    left: auto !important;
    width: auto !important;
    max-width: 80vw;
  }

  .hero-title {
    text-align: left !important;
  }

  .hero-subtitle {
    text-align: left !important;
  }

  /* SOLUTIONS SECTION - layout horizontal desktop */
  .solutions-stack {
    height: 520px !important;
    display: block !important;
  }

  .solution-card {
    position: absolute !important;
    top: 40px !important;
    width: 320px !important;
    margin: 0 !important;
  }

  .solution-card.featured {
    left: 50% !important;
    width: 320px !important;
    transform: translateX(-50%) translateY(0) !important;
    z-index: 3 !important;
  }

  .solution-card.left {
    left: calc(50% - 465px) !important;
    transform: translateY(40px) !important;
    z-index: 2 !important;
  }

  .solution-card.right {
    left: calc(50% + 145px) !important;
    transform: translateY(40px) !important;
    z-index: 1 !important;
  }

  /* CHALLENGES SECTION - reducir padding superior */
  .challenges-section {
    padding-top: 20px !important;
  }
}