/* 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: #4DA3FF;
  --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: #015CBF;
  --accent-green-text: #015CBF;
  /* Acento azul de marca (antes verde lima) — alto contraste en fondo claro */
  --accent-green-glow: #015CBF;
  --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: #4DA3FF !important;
  text-shadow: 0 0 20px rgba(1, 92, 191, 0.4);
}
  --card-radius: 24px;
  --card-shadow: 0 1px 2px rgba(8, 27, 64, 0.04), 0 14px 34px rgba(8, 27, 64, 0.07);
  --card-shadow-hover: 0 2px 8px rgba(8, 27, 64, 0.06), 0 30px 60px rgba(8, 27, 64, 0.15);
  --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 { /* flote continuo retirado */ }

@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 2px 6px rgba(0, 0, 0, 0.25), 0 18px 44px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4), 0 34px 70px rgba(0, 0, 0, 0.55);
  --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: #4DA3FF;
  --accent-green-text: #64B5F6;
  /* Acento azul más brillante para fondos oscuros */
  --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 #015CBF;
  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(1, 92, 191, 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(1, 92, 191, 0.10);
  border: 1px solid rgba(1, 92, 191, 0.22);
  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: 68px 0 72px;
  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(1, 92, 191, 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: 80px 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.05) contrast(1.02);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.4s ease;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.solution-card:hover .solution-image {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.06);
}

.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(1, 92, 191, 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(1.05) contrast(1.02);
  }

  .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(1, 92, 191, 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);
  transform: translateY(-5px);
}

.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(1.05) contrast(1.02);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.4s ease;
}

.portfolio-card:hover .portfolio-image {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.06);
}

.portfolio-media {
  height: 200px;
  background: linear-gradient(160deg, rgba(1, 92, 191, 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);
  transform: translateY(-5px);
}

/* =============================
   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(1, 92, 191, 0.3);
  cursor: pointer;
  margin-top: 12px;
}

.cta-button:hover {
  background: #7abc1f;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(1, 92, 191, 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;
  }
}

/* ===== Blog: primer post = DESTACADO (tarjeta tech hero) ===== */
.blog-posts-container > .blog-post-card:first-child {
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(720px 320px at 12% 0%, rgba(1, 92, 191, 0.32), transparent 60%),
    radial-gradient(600px 300px at 95% 8%, rgba(201, 162, 75, 0.10), transparent 60%),
    linear-gradient(160deg, #0a1b3d 0%, #07122a 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 34px 80px -34px rgba(0, 12, 40, 0.6);
}
.blog-posts-container > .blog-post-card:first-child .blog-post-image {
  width: 100%;
  height: 380px;
}
/* badge "DESTACADO" sobre la imagen */
.blog-posts-container > .blog-post-card:first-child::before {
  content: "\2726  DESTACADO";
  position: absolute; top: 18px; left: 18px; z-index: 3;
  background: linear-gradient(135deg, rgba(20, 120, 235, 0.95), rgba(1, 92, 191, 0.85));
  color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px -8px rgba(1, 92, 191, 0.7);
}
.blog-posts-container > .blog-post-card:first-child .blog-post-content {
  padding: 30px 36px 36px;
}
.blog-posts-container > .blog-post-card:first-child .blog-post-title {
  color: #fff; font-size: 1.9rem;
}
.blog-posts-container > .blog-post-card:first-child .blog-post-excerpt,
body.dark-theme .blog-posts-container > .blog-post-card:first-child .blog-post-excerpt {
  color: #c3d2ec !important; font-size: 1.05rem;
}
.blog-posts-container > .blog-post-card:first-child .blog-post-date,
.blog-posts-container > .blog-post-card:first-child .blog-post-read-time {
  color: #9fb3d4;
}
.blog-posts-container > .blog-post-card:first-child .blog-post-tag {
  background: rgba(100, 181, 246, 0.16); color: #9fc8ff;
}
.blog-posts-container > .blog-post-card:first-child .blog-post-link { color: #64B5F6; }
.blog-posts-container > .blog-post-card:first-child .blog-post-link:hover { color: #9fc8ff; }
.blog-posts-container > .blog-post-card:first-child .blog-post-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 901px) {
  .blog-posts-container > .blog-post-card:first-child { flex-direction: column; }
  .blog-posts-container > .blog-post-card:first-child .blog-post-image {
    flex: none; width: 100%; height: 440px;
  }
  .blog-posts-container > .blog-post-card:first-child .blog-post-title { font-size: 2.2rem; }
}

/* resto de la lista: toque tech en hover (acento + lift) */
.blog-posts-container > .blog-post-card:not(:first-child) {
  border: 1px solid #E5EBF3;
}
.blog-posts-container > .blog-post-card:not(:first-child):hover {
  border-color: rgba(1, 92, 191, 0.35);
  box-shadow: 0 16px 36px -16px rgba(8, 27, 64, 0.22);
}
body.dark-theme .blog-posts-container > .blog-post-card:not(:first-child) {
  border: 1px solid rgba(255, 255, 255, 0.09);
}
body.dark-theme .blog-posts-container > .blog-post-card:not(:first-child):hover {
  border-color: rgba(100, 181, 246, 0.4);
}

/* =============================
   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(1, 92, 191, 0.16);
  border: 1px solid rgba(1, 92, 191, 0.32);
  color: #015CBF;
  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: #015CBF;
  box-shadow: 0 0 0 4px rgba(1, 92, 191, 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(1, 92, 191, 0.18);
  color: #0b1f3f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: inset 0 0 0 1px rgba(1, 92, 191, 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(1, 92, 191, 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: saturate(1.06) contrast(1.03) !important;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.4s ease !important;
}

body.dark-theme .solution-card:hover .solution-image {
  filter: saturate(1.14) contrast(1.05) !important;
  transform: scale(1.06) !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: #fff !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(1, 92, 191, 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(1, 92, 191, 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(1.05) contrast(1.02) !important;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.4s ease !important;
}

body.dark-theme .portfolio-card:hover .portfolio-image {
  filter: saturate(1.12) contrast(1.04) !important;
  transform: scale(1.06) !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(1, 92, 191, 0.2) !important;
  border-color: rgba(1, 92, 191, 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: #4DA3FF !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: #4DA3FF !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(1, 92, 191, 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: #4DA3FF !important;
  color: #ffffff !important;
}

body.dark-theme .trace-stage:hover .trace-title {
  color: #4DA3FF !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 {
  
}

@keyframes titleActivate1Dark {

  0%,
  20% {
    color: #4DA3FF !important;
  }

  20.001%,
  100% {
    color: #ffffff !important;
  }
}

/* Animaciones activas - Stage 2 */
body.dark-theme .trace-stage:nth-child(2) .trace-title {
  
}

@keyframes titleActivate2Dark {

  0%,
  20% {
    color: #ffffff !important;
  }

  20.001%,
  40% {
    color: #4DA3FF !important;
  }

  40.001%,
  100% {
    color: #ffffff !important;
  }
}

/* Animaciones activas - Stage 3 */
body.dark-theme .trace-stage:nth-child(3) .trace-title {
  
}

@keyframes titleActivate3Dark {

  0%,
  40% {
    color: #ffffff !important;
  }

  40.001%,
  60% {
    color: #4DA3FF !important;
  }

  60.001%,
  100% {
    color: #ffffff !important;
  }
}

/* Animaciones activas - Stage 4 */
body.dark-theme .trace-stage:nth-child(4) .trace-title {
  
}

@keyframes titleActivate4Dark {

  0%,
  60% {
    color: #ffffff !important;
  }

  60.001%,
  80% {
    color: #4DA3FF !important;
  }

  80.001%,
  100% {
    color: #ffffff !important;
  }
}

/* Animaciones activas - Stage 5 */
body.dark-theme .trace-stage:nth-child(5) .trace-title {
  
}

@keyframes titleActivate5Dark {

  0%,
  80% {
    color: #ffffff !important;
  }

  80.001%,
  100% {
    color: #4DA3FF !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: #4DA3FF !important;
}

body.dark-theme .agro-entendemos .entendemos-badge {
  background: rgba(1, 92, 191, 0.15) !important;
  color: #4DA3FF !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(1, 92, 191, 0.4), 0 0 60px rgba(1, 92, 191, 0.2) !important;
}

body.dark-theme .agro-desafios .desafio-card:hover .desafio-icon {
  background: #4DA3FF !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(160deg, #0a1b3d 0%, #07122a 100%) !important;
}

body.dark-theme .agro-clientes .section-title {
  color: #fff !important;
}

body.dark-theme .agro-clientes .section-title .highlight {
  color: #4DA3FF !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: #4DA3FF !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(1, 92, 191, 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: #4DA3FF"] {
  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%, #013F86 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%, #013F86 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(1, 92, 191, 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: #4DA3FF !important;
}

body.dark-theme .agro-cta .agro-btn.primary:hover {
  background: #013F86 !important;
  box-shadow: 0 10px 24px rgba(1, 92, 191, 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;
  }
}

/* ===== Banda de confianza / Certificaciones (GLOBALG.A.P. + respaldo) ===== */
.trust-band {
  background: #001548;
  padding: 40px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.trust-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: center;
}
.trust-badge {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #002176;
  font-size: 12px;
  line-height: 1.05;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.trust-text b {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.trust-text span {
  color: #9fb3d6;
  font-size: 13px;
}
@media (max-width: 860px) {
  .trust-band-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
}
@media (max-width: 480px) {
  .trust-band-inner { grid-template-columns: 1fr; }
}
/* ===== Tipografía premium: Space Grotesk en títulos (display) ===== */
h1, h2, h3,
.hero-title-main,
.quienes-title, .quienes-heading, .quienes-text strong,
.trayectoria-title, .trayectoria-number, .stat-number,
.solutions-title, .solution-title,
.portfolio-title, .portfolio-item-title,
.services-title, .service-title,
.clientes-title,
.testimonios-title,
.cta-title, .cta-heading,
.section-title, .iot-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
}

/* ===== Banda de stats premium (override completo) ===== */
.trayectoria-section { padding: 84px 0 !important; }
.trayectoria-panel {
  background: linear-gradient(135deg, #001548 0%, #002176 60%, #013a8a 100%) !important;
  border-radius: 28px !important;
  padding: 64px 48px !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 33, 118, 0.6);
}
.trayectoria-panel::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 280px at 15% 0, rgba(1,92,191,.45), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(201,162,75,.14), transparent 60%);
  pointer-events: none;
}
.trayectoria-panel > * { position: relative; z-index: 1; }
.tray-title {
  color: #fff !important;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem) !important;
  text-align: center;
  margin: 0 auto 44px !important;
}
.tray-card, body.dark-theme .tray-card {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 16px !important;
  padding: 30px 18px !important;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.tray-card:hover, body.dark-theme .tray-card:hover {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(100,181,246,0.40) !important;
  transform: translateY(-4px);
}
.tray-icon {
  background: rgba(100,181,246,0.14) !important;
  color: #64B5F6 !important;
  margin: 0 auto 14px !important;
}
.tray-number,
body.dark-theme .tray-number,
body.dark-theme .trayectoria-panel .tray-number {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem) !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
}
.tray-label,
body.dark-theme .tray-label,
body.dark-theme .trayectoria-panel .tray-label {
  color: #A9BAD6 !important;
  font-size: 0.95rem !important;
}
.tray-results-title, body.dark-theme .tray-results-title {
  color: #C9A24B !important;
  text-align: center;
  margin: 44px auto 24px !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}
.result-card, body.dark-theme .result-card {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-bottom: 3px solid #015CBF !important;
}

/* ===== Stats band: nivel command-center (innovación) ===== */
.trayectoria-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(100,181,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,181,246,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.tray-icon {
  box-shadow: 0 0 0 1px rgba(100,181,246,0.25), 0 10px 28px -8px rgba(1,92,191,0.7) !important;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.tray-card { position: relative !important; overflow: hidden !important; }
.tray-card::after {
  content: "";
  position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #015CBF, #64B5F6, transparent);
  opacity: 0.45;
  transition: opacity .3s ease;
}
.tray-card:hover::after { opacity: 1; }
.tray-card:hover .tray-icon {
  background: rgba(100,181,246,0.24) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(100,181,246,0.45), 0 12px 32px -6px rgba(1,92,191,0.85) !important;
}
.result-card::after {
  background: linear-gradient(90deg, transparent, #C9A24B, transparent) !important;
}
.tray-number { text-shadow: 0 0 32px rgba(100,181,246,0.35); }
.tray-results-title::before {
  content: "";
  display: block;
  width: 84px; height: 2px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, #C9A24B, transparent);
}

/* ===== Botones CTA inteligentes (global, agro+tech) ===== */
.cta-button, .btn-smart {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #0a6fe0 0%, #015CBF 55%, #0140A0 100%) !important;
  color: #fff !important;
  padding: 16px 36px !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 30px -6px rgba(1, 92, 191, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease, background .25s ease !important;
  z-index: 0;
  border: none;
  cursor: pointer;
}
.cta-button::after, .btn-smart::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  transition: left .65s cubic-bezier(.2, .7, .3, 1);
  z-index: -1;
  pointer-events: none;
}
.cta-button:hover::after, .btn-smart:hover::after { left: 135%; }
.cta-button:hover, .btn-smart:hover {
  background: linear-gradient(135deg, #2b8cf5 0%, #0a6fe0 55%, #015CBF 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 44px -8px rgba(1, 92, 191, 0.8), inset 0 0 0 1px rgba(120, 190, 255, 0.5) !important;
  color: #fff !important;
}
.cta-button:active, .btn-smart:active { transform: translateY(-1px) !important; }

/* pulso de atención en el CTA principal de cada sección */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 30px -6px rgba(1, 92, 191, 0.55), 0 0 0 0 rgba(1, 92, 191, 0.5); }
  50% { box-shadow: 0 10px 30px -6px rgba(1, 92, 191, 0.55), 0 0 0 14px rgba(1, 92, 191, 0); }
}
.cta-section .cta-button { }
.cta-section .cta-button:hover { animation: none; }

/* ===== Eyebrows unificados (limpio y sobrio) ===== */
.quienes-badge, .services-badge, .clientes-badge, .testimonios-badge, .portfolio-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(1, 92, 191, 0.10) !important;
  border: 1px solid rgba(1, 92, 191, 0.22) !important;
  color: #015CBF !important;
  padding: 7px 16px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
}
body.dark-theme .quienes-badge, body.dark-theme .services-badge,
body.dark-theme .clientes-badge, body.dark-theme .testimonios-badge,
body.dark-theme .portfolio-badge {
  background: rgba(100, 181, 246, 0.12) !important;
  border-color: rgba(100, 181, 246, 0.30) !important;
  color: #64B5F6 !important;
}
.quienes-text .emphasis { color: #015CBF; font-weight: 700; }
body.dark-theme .quienes-text .emphasis { color: #4DA3FF !important; }

/* ===== Legibilidad: acentos en azul claro sobre fondos oscuros ===== */
body.dark-theme { --text-realce: #4DA3FF; }
.cta-title span, .cta-title .accent,
.portfolio-title .accent,
.iot-section .highlight, .iot-section .accent,
.trayectoria-panel .highlight,
.hero-title-main span,
.hero-title .highlight, .hero-title .accent,
.hero-contacto-accent, .hero-accent,
body.dark-theme .highlight, body.dark-theme .accent,
body.dark-theme h1 .highlight, body.dark-theme h2 .highlight,
body.dark-theme .section-title .highlight {
  color: #4DA3FF !important;
}

/* ===== Hero Banano: cinematográfico agro+tech ===== */
.hero-banano {
  background-color: #07122a !important;
  background-image:
    radial-gradient(820px 480px at 85% -10%, rgba(1, 92, 191, 0.40), transparent 60%),
    radial-gradient(620px 420px at 4% 112%, rgba(1, 92, 191, 0.18), transparent 55%),
    linear-gradient(160deg, #0a1b3d 0%, #112143 55%, #07122a 100%) !important;
  position: relative;
}
.hero-banano .hero-title {
  color: #fff !important;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  letter-spacing: -0.025em;
  line-height: 1.07;
}
.hero-banano .hero-title span { color: #4DA3FF !important; }
.hero-banano .hero-subtitle { color: #cdd8ec !important; }
.hero-banano .hero-lead { color: #8aa0c0 !important; }
/* imagen con glow y marco */
.hero-banano .hero-image-container { position: relative; }
.hero-banano .hero-image-container::before {
  content: ""; position: absolute; inset: -28px; z-index: 0;
  background: radial-gradient(closest-side, rgba(1, 92, 191, 0.40), transparent 70%);
  pointer-events: none;
}
.hero-banano .hero-image-container img {
  position: relative; z-index: 1;
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
/* tarjetas de métricas estilo glass */
.hero-banano .metric-card {
  background: rgba(255, 255, 255, 0.09) !important;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
}
.hero-banano .metric-label { color: #A9BAD6 !important; }
.hero-banano .metric-value { color: #fff !important; }
/* botones: amarillo -> azul inteligente */
.hero-banano .cta-btn[href="#cta-form"] {
  background: linear-gradient(135deg, #0a6fe0 0%, #015CBF 100%) !important;
  color: #fff !important; border: none !important; border-radius: 12px !important;
  box-shadow: 0 10px 28px -6px rgba(1, 92, 191, 0.6) !important;
  padding: 14px 28px !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.hero-banano .cta-btn[href="#cta-form"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 42px -8px rgba(1, 92, 191, 0.85) !important;
}
.hero-banano .cta-btn[href$=".pdf"] {
  background: rgba(255, 255, 255, 0.06) !important; color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important; border-radius: 12px !important;
  padding: 13px 24px !important;
}
.hero-banano .cta-btn[href$=".pdf"]:hover {
  border-color: rgba(100, 181, 246, 0.8) !important; background: rgba(1, 92, 191, 0.14) !important;
}

/* ===== Hero Agroindustrias: botón primario inteligente ===== */
.agro-btn.primary {
  background: linear-gradient(135deg, #0a6fe0 0%, #015CBF 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 28px -6px rgba(1, 92, 191, 0.6) !important;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.agro-btn.primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 42px -8px rgba(1, 92, 191, 0.85) !important;
}
/* refuerzo legibilidad del overlay del hero agro */
.agro-hero::before { background: linear-gradient(160deg, rgba(7,18,42,0.82) 0%, rgba(10,27,61,0.62) 55%, rgba(7,18,42,0.78) 100%) !important; }

/* ===== Footer: acento premium + perf ===== */
.footer { position: relative; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #015CBF 25%, #4DA3FF 50%, #C9A24B 75%, transparent);
  opacity: 0.75; z-index: 2;
}

/* ===== Portafolio/Plataforma: rediseño tech (glass + glow + grid) ===== */
.portfolio-section {
  background:
    radial-gradient(820px 420px at 80% -5%, rgba(1, 92, 191, 0.38), transparent 60%),
    radial-gradient(600px 360px at 5% 105%, rgba(1, 92, 191, 0.16), transparent 55%),
    linear-gradient(160deg, #0a1b3d 0%, #0a1733 55%, #07122a 100%) !important;
  position: relative;
}
body.dark-theme .portfolio-section { background:
    radial-gradient(820px 420px at 80% -5%, rgba(1, 92, 191, 0.38), transparent 60%),
    linear-gradient(160deg, #0a1b3d 0%, #07122a 100%) !important; }
.portfolio-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(100, 181, 246, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 181, 246, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 18%, #000, transparent 75%);
  pointer-events: none;
}
.portfolio-section > * { position: relative; z-index: 1; }
.portfolio-card, body.dark-theme .portfolio-card {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
}
.portfolio-card:hover, body.dark-theme .portfolio-card:hover {
  border-color: rgba(100, 181, 246, 0.55) !important;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-6px) !important;
}
.portfolio-body, body.dark-theme .portfolio-body { background: transparent !important; }
.portfolio-item-title, body.dark-theme .portfolio-item-title { color: #fff !important; }
.portfolio-item-text, body.dark-theme .portfolio-item-text { color: #c3d2ec !important; }
.portfolio-mobile-btn, body.dark-theme .portfolio-mobile-btn { color: #4DA3FF !important; }

/* ===== Tech-glass: Servicios ===== */
.services-section {
  background:
    radial-gradient(760px 380px at 82% -5%, rgba(1, 92, 191, 0.28), transparent 60%),
    linear-gradient(160deg, #0a1b3d 0%, #07122a 100%) !important;
  position: relative;
}
.services-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(100, 181, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 181, 246, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 14%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 14%, #000, transparent 78%);
  pointer-events: none;
}
.services-section > * { position: relative; z-index: 1; }
.services-title, .services-title span, .services-title-line { color: #fff !important; }
.services-subtitle { color: #c3d2ec !important; }
.service-card {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: none !important;
}
.service-card:hover {
  border-color: rgba(100, 181, 246, 0.50) !important;
  box-shadow: 0 22px 52px -20px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-4px) !important;
}
.service-title { color: #fff !important; }
.service-icon { background: rgba(100, 181, 246, 0.16) !important; color: #64B5F6 !important; }
.service-card:hover .service-icon, .service-card:focus-within .service-icon {
  background: #015CBF !important; color: #fff !important;
}

/* ===== Fix alineación stats + Liquid Glass (iOS 26) ===== */
/* Centrado vertical del contenido en las tarjetas de stats */
.tray-card, body.dark-theme .tray-card { justify-content: center !important; min-height: 198px; }
.results-grid .tray-card, body.dark-theme .results-grid .tray-card { min-height: 182px; }
.tray-number { overflow-wrap: anywhere; }

/* Liquid Glass — botones CTA (vidrio con brillo superior + profundidad) */
.btn-smart, .cta-button {
  border: 1px solid rgba(255, 255, 255, 0.30) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.35); backdrop-filter: blur(8px) saturate(1.35);
  box-shadow:
    0 8px 24px -6px rgba(1, 92, 191, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 8px rgba(0, 28, 78, 0.45) !important;
}
.btn-smart:hover, .cta-button:hover {
  box-shadow:
    0 18px 44px -8px rgba(1, 92, 191, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 10px rgba(0, 28, 78, 0.5) !important;
}

/* Liquid Glass — tarjetas y módulos (vidrio esmerilado) */
.tray-card, .portfolio-card, .service-card, .module-card,
body.dark-theme .tray-card, body.dark-theme .portfolio-card,
body.dark-theme .service-card, body.dark-theme .module-card {
  -webkit-backdrop-filter: blur(9px) saturate(1.2); backdrop-filter: blur(9px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 36px -16px rgba(0, 0, 0, 0.55) !important;
}
.tray-card:hover, .portfolio-card:hover, .service-card:hover, .module-card:hover,
body.dark-theme .tray-card:hover, body.dark-theme .portfolio-card:hover,
body.dark-theme .service-card:hover, body.dark-theme .module-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 0 0 1px rgba(120, 190, 255, 0.4),
    0 26px 60px -20px rgba(0, 0, 0, 0.6) !important;
}

/* Corrección números stats: sin quiebre dentro de palabras, tamaño que entra */
.tray-number, body.dark-theme .tray-number, body.dark-theme .trayectoria-panel .tray-number {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
  font-size: clamp(1.7rem, 3.1vw, 2.55rem) !important;
  white-space: normal !important;
}

/* ===== Anti-camuflaje: contraste garantizado ===== */
/* background-color sólido bajo los gradientes (fallback + contraste correcto) */
.portfolio-section { background-color: #0a1733 !important; }
.services-section { background-color: #0a1733 !important; }
.erp-ecosystem { background-color: #0a1733 !important; }
.trayectoria-panel { background-color: #001548; }
/* eyebrows sobre secciones oscuras -> texto claro */
.services-badge, .portfolio-badge {
  background: rgba(100, 181, 246, 0.14) !important;
  border-color: rgba(100, 181, 246, 0.30) !important;
  color: #cfe0f6 !important;
}
/* link de cookies legible sobre banner oscuro */
.cookie-link, .cookie-consent a, .cookie-banner a { color: #8ec5ff !important; }

/* background-color sólido bajo gradientes oscuros (fallback + contraste) */
.cta-section { background-color: #001548; }
.iot-section { background-color: #0a1835; }
.produccion-section { background-color: #07122a !important; }
.cacao-dashboard { background-color: #0a1733 !important; }
.skip-link { color: #fff !important; background: #015CBF !important; }

/* ===== Anti-camuflaje páginas internas (contraste garantizado) ===== */
/* Acentos azules sobre fondos oscuros -> azul claro */
.agro-hero-title .highlight, .agro-soluciones .highlight, .agro-soluciones h2 .highlight,
.iot-section .highlight, .iot-ecosystem .highlight, .cacao-dashboard .highlight,
.agro-entendemos .entendemos-brand strong {
  color: #4DA3FF !important;
}
/* iot-badge azul sobre navy -> claro */
.iot-badge {
  background: rgba(100, 181, 246, 0.14) !important;
  border-color: rgba(100, 181, 246, 0.30) !important;
  color: #cfe0f6 !important;
}
/* badge claro -> azul oscuro legible */
.soluciones-badge {
  color: #015CBF !important;
  background: rgba(1, 92, 191, 0.10) !important;
  border: 1px solid rgba(1, 92, 191, 0.25) !important;
}
/* Botón secundario: texto SIEMPRE visible (corrige blanco sobre blanco) */
.agro-btn.secondary {
  background: #ffffff !important; color: #015CBF !important;
  border: 1.5px solid #015CBF !important;
}
/* Dorado sobre fondo claro -> dorado oscuro legible */
.produccion-kpi-value, .produccion-badge, .evidencia-badge { color: #9a7a2e !important; }
.evidencia-badge { background: rgba(201, 162, 75, 0.16) !important; }

/* ===== Anti-camuflaje (lote 2) ===== */
/* títulos de sección sobre fondos oscuros -> claros */
.diagnostico-section .section-title, .acopio-section .section-title,
.acopio-subsection .section-title, .clientes-cacao .section-title { color: #fff !important; }
/* acentos azul sobre navy en IoT -> azul claro */
.iot-ecosystem .highlight, .iot-section .highlight,
.iot-ecosystem .iot-conectado, .iot-connected,
.iot-ecosystem [class*="badge"] { color: #4DA3FF !important; }
.iot-ecosystem [class*="badge"], .iot-section [class*="badge"] {
  background: rgba(100,181,246,0.14) !important; border-color: rgba(100,181,246,0.3) !important; color:#cfe0f6 !important;
}
/* acentos agroindustrias restantes sobre oscuro -> claros */
.agro-soluciones .highlight, .agro-desafios .highlight, .agro-proyectos .highlight { color: #4DA3FF !important; }
/* dorado sobre claro -> dorado oscuro legible (cacao) */
.evidencia-section .highlight, .cta-cacao-section .highlight,
.clientes-cacao .highlight, .acopio-section .highlight { color: #9a7a2e !important; }

/* ===== Anti-camuflaje (lote 3) ===== */
/* "Éxito Conectado" / acentos var(--accent-green-text) sobre IoT oscuro -> claro */
.iot-ecosystem h2 span, .iot-section h2 span,
.iot-ecosystem .highlight, .iot-ecosystem span[style*="accent-green-text"] { color: #4DA3FF !important; }

/* ===== Anti-camuflaje (lote final) ===== */
/* cualquier .highlight azul oscuro restante en secciones agro oscuras */
.agro-soluciones .highlight, .agro-soluciones .section-title .highlight,
.agro-proyectos .highlight, .agro-cta .highlight, .agro-desafios .highlight { color: #4DA3FF !important; }
/* dorado claro sobre fondos claros de cacao -> dorado oscuro legible */
.evidencia-section .highlight, .evidencia-section span[style*="d4a44"],
.cta-cacao-section .highlight, .clientes-cacao .highlight,
.clientes-cacao span[style*="d4a44"], .cta-cacao-section span[style*="d4a44"] { color: #9a7a2e !important; }

/* ===== Anti-camuflaje (cierre) + CTA más glass ===== */
.agro-clientes .highlight, .agro-cta .highlight, .cta-section .highlight,
.agro-clientes .section-title .highlight { color: #4DA3FF !important; }

/* CTAs estilo Liquid Glass más translúcido (iOS 26) */
.btn-smart, .cta-button {
  background: linear-gradient(135deg, rgba(20, 120, 235, 0.82) 0%, rgba(1, 92, 191, 0.74) 100%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow:
    0 8px 26px -6px rgba(1, 92, 191, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 9px rgba(0, 26, 74, 0.4) !important;
  text-shadow: 0 1px 2px rgba(0, 20, 60, 0.4);
}
.btn-smart:hover, .cta-button:hover {
  background: linear-gradient(135deg, rgba(43, 140, 245, 0.92) 0%, rgba(10, 111, 224, 0.84) 100%) !important;
}

/* ===== Cacao Producción: texto claro garantizado (anti-camuflaje) ===== */
.cacao-prod h2, .cacao-prod h3, .cacao-prod h4 { color: #ffffff !important; }
.cacao-prod p, .cacao-prod .produccion-subtitle, .cacao-prod .produccion-feature-text,
.cacao-prod li, .cacao-prod span:not([style*="d4a4"]):not(.highlight) { color: #c7d6ee !important; }
.cacao-prod .produccion-feature-text { color: #cdd9ee !important; }
.cacao-prod .produccion-badge {
  background: rgba(201, 162, 75, 0.18) !important; color: #e8cfa6 !important;
  border: 1px solid rgba(201, 162, 75, 0.3) !important;
}
.cacao-prod .produccion-feature-icon { color: #C9A24B !important; border-color: rgba(201,162,75,0.4) !important; }

/* ===== Liquid Glass en TODOS los CTAs (iOS 26) ===== */
.btn-smart, .cta-button, .agro-btn.primary, .module-cta-btn,
.hero-banano .cta-btn[href="#cta-form"], .form-submit, button[type="submit"].cta-btn,
.acopio-cta .cta-btn, .cta-cacao-btn {
  background: linear-gradient(135deg, rgba(20, 120, 235, 0.82) 0%, rgba(1, 92, 191, 0.74) 100%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow:
    0 8px 26px -6px rgba(1, 92, 191, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 9px rgba(0, 26, 74, 0.4) !important;
  text-shadow: 0 1px 2px rgba(0, 20, 60, 0.4);
  position: relative; overflow: hidden;
}
.agro-btn.primary:hover, .module-cta-btn:hover, .hero-banano .cta-btn[href="#cta-form"]:hover {
  background: linear-gradient(135deg, rgba(43, 140, 245, 0.92) 0%, rgba(10, 111, 224, 0.84) 100%) !important;
  transform: translateY(-3px) !important;
}

/* ===== FOOTER tech-agro (rediseño innovador) ===== */
.footer {
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(1, 92, 191, 0.30), transparent 60%),
    radial-gradient(600px 300px at 92% 20%, rgba(201, 162, 75, 0.10), transparent 60%),
    linear-gradient(160deg, #001a4d 0%, #001034 55%, #00071f 100%) !important;
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
}
/* grid tecnológico de fondo */
.footer .footer-top-bar::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(100, 181, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 181, 246, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000, transparent 80%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000, transparent 80%);
}
.footer .footer-top-bar { position: relative; z-index: 1; padding: 56px 32px 28px !important; }
.footer .footer-grid { position: relative; z-index: 1; gap: 32px; }

/* surcos de cultivo + nodos de datos al pie (motivo agro+tech) */
.footer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(3px 3px at 14% 62%, rgba(100,181,246,0.95), transparent 60%),
    radial-gradient(3px 3px at 41% 42%, rgba(201,162,75,0.95), transparent 60%),
    radial-gradient(2px 2px at 63% 58%, rgba(100,181,246,0.9), transparent 60%),
    radial-gradient(3px 3px at 83% 46%, rgba(255,255,255,0.8), transparent 60%),
    repeating-linear-gradient(90deg, rgba(100,181,246,0.07) 0 1px, transparent 1px 36px);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent);
  mask-image: linear-gradient(to top, #000 10%, transparent);
}

/* títulos de columna con acento */
.footer-column-title {
  color: #fff !important; font-size: 0.82rem !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px !important;
  position: relative; padding-bottom: 10px;
}
.footer-column-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #4DA3FF, #C9A24B);
}
.footer-column-info { color: #aebfda !important; }

/* links con deslizamiento */
.footer .footer-links a {
  color: #c2d2ea !important; transition: color .2s ease, padding-left .2s ease; position: relative;
}
.footer .footer-links a:hover { color: #fff !important; padding-left: 8px; }
.footer .footer-links a::before {
  content: "›"; position: absolute; left: -2px; opacity: 0; color: #4DA3FF; transition: .2s;
}
.footer .footer-links a:hover::before { opacity: 1; left: -6px; }

/* redes sociales como tiles glass que brillan */
.footer .footer-social { gap: 12px !important; }
.footer .footer-social a, .footer-social-mobile a {
  width: 44px !important; height: 44px !important; display: grid !important; place-items: center;
  border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfe0f6 !important; transition: .25s;
}
.footer .footer-social a svg, .footer-social-mobile a svg { width: 20px !important; height: 20px !important; }
.footer .footer-social a:hover, .footer-social-mobile a:hover {
  background: linear-gradient(135deg, rgba(20,120,235,0.85), rgba(1,92,191,0.75)) !important;
  border-color: rgba(255,255,255,0.32); color: #fff !important;
  transform: translateY(-3px); box-shadow: 0 12px 26px -8px rgba(1,92,191,0.6);
}

/* panel de contacto: filas glass con icono */
.footer-contact-item {
  display: flex !important; align-items: center; gap: 11px;
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 11px; padding: 10px 12px; margin-bottom: 10px; transition: .25s;
}
.footer-contact-item:hover { border-color: rgba(100,181,246,0.4); background: rgba(1,92,191,0.12); }
.footer-contact-item::before {
  content: ""; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  background-color: rgba(100,181,246,0.16); background-repeat: no-repeat; background-position: center; background-size: 16px;
  border: 1px solid rgba(100,181,246,0.28);
}
.footer-contact-item:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2364B5F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.footer-contact-item:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2364B5F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3-8.6A2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.3 1.8.6 2.6a2 2 0 0 1-.5 2.1L8 9.6a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.5c.8.3 1.7.5 2.6.6A2 2 0 0 1 22 16.9z'/%3E%3C/svg%3E"); }
.footer-contact-item:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2364B5F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.footer-contact-item a { color: #c2d2ea !important; font-size: 0.9rem !important; line-height: 1.4; }
.footer-contact-item:hover a { color: #fff !important; }

/* ===== Contacto: fila de info como panel tech (toque del footer) ===== */
.contact-info-section { padding: 64px 0; }
.contact-info-container {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 48px 40px;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(1, 92, 191, 0.30), transparent 60%),
    radial-gradient(600px 300px at 92% 20%, rgba(201, 162, 75, 0.10), transparent 60%),
    linear-gradient(160deg, #001a4d 0%, #001034 55%, #00071f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 80px -34px rgba(0, 12, 40, 0.55);
}
/* grid tecnológico de fondo (como el footer) */
.contact-info-container::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(100, 181, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 181, 246, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000, transparent 80%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000, transparent 80%);
}
/* surcos de cultivo + nodos de datos al pie del panel (motivo agro+tech) */
.contact-info-container::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(3px 3px at 14% 62%, rgba(100,181,246,0.95), transparent 60%),
    radial-gradient(3px 3px at 41% 42%, rgba(201,162,75,0.95), transparent 60%),
    radial-gradient(2px 2px at 63% 58%, rgba(100,181,246,0.9), transparent 60%),
    radial-gradient(3px 3px at 83% 46%, rgba(255,255,255,0.8), transparent 60%),
    repeating-linear-gradient(90deg, rgba(100,181,246,0.07) 0 1px, transparent 1px 36px);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent);
  mask-image: linear-gradient(to top, #000 10%, transparent);
}
.contact-info-grid {
  position: relative; z-index: 1;
  margin-top: 0 !important; margin-bottom: 0 !important;
}
/* tarjetas glass consistentes en ambos temas */
.contact-info-card,
body.dark-theme .contact-info-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}
.contact-info-card:hover,
body.dark-theme .contact-info-card:hover {
  background: rgba(1, 92, 191, 0.14) !important;
  border-color: rgba(100, 181, 246, 0.5) !important;
  box-shadow: 0 24px 52px -22px rgba(0, 0, 0, 0.6) !important;
}
.contact-info-title,
body.dark-theme .contact-info-title,
body.dark-theme .contact-info-card:hover .contact-info-title { color: #ffffff !important; }
.contact-info-text,
body.dark-theme .contact-info-text,
body.dark-theme .contact-info-card:hover .contact-info-text { color: #b6c6e2 !important; }
.contact-info-text a,
body.dark-theme .contact-info-text a,
body.dark-theme .contact-info-card:hover .contact-info-text a { color: #64B5F6 !important; }
.contact-info-text a:hover { color: #9fc8ff !important; }

@media (max-width: 768px) {
  .contact-info-container { padding: 32px 20px; border-radius: 22px; }
}

/* ===== Módulos imagen+texto -> panel "campo" glass contenido ===== */
.cacao-prod .produccion-subsection {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 24px !important;
  padding: 36px !important;
  margin: 0 auto 28px !important;
  max-width: 1120px;
  box-shadow: 0 22px 54px -26px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.cacao-prod .produccion-subsection:hover {
  border-color: rgba(100, 181, 246, 0.4) !important;
  box-shadow: 0 30px 66px -26px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.cacao-prod .produccion-image img,
.cacao-prod .produccion-image picture { border-radius: 16px !important; overflow: hidden; }

/* ===== Módulos imagen+texto en CAMPO (secciones claras) ===== */
.contabilidad-container, .nomina-container {
  max-width: 1180px !important;
  background: #ffffff;
  border: 1px solid #E5EBF3;
  border-radius: 24px;
  padding: 44px !important;
  box-shadow: 0 2px 6px rgba(8, 27, 64, 0.05), 0 26px 60px -30px rgba(8, 27, 64, 0.20);
}

/* ===== Campos: módulos sueltos restantes (todas las páginas) ===== */
/* Oscuros -> campo glass */
.entendemos-layout, .diagnostico-grid {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 24px !important;
  padding: 38px !important;
  box-shadow: 0 22px 54px -26px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
/* Claros -> campo claro */
.lider-content-wrapper {
  background: #ffffff !important;
  border: 1px solid #E5EBF3 !important;
  border-radius: 24px !important;
  padding: 40px !important;
  box-shadow: 0 2px 6px rgba(8, 27, 64, 0.05), 0 26px 60px -30px rgba(8, 27, 64, 0.20) !important;
  align-items: center !important;
}

/* ===== Liquid Glass en TODOS los CTAs (todas las páginas) ===== */
.btn-smart, .cta-button, .cta-btn:not(.secondary):not([href$=".pdf"]),
.agro-btn.primary, .module-cta-btn, .article-cta-button, .acopio-flow-button,
.smart-ag-button, .cta-ribbon-btn, .btn-gold, .btn-action-primary, .produccion-btn,
.cta-main-btn, .cta-nosotros, .webinar-submit-btn, .ebook-btn,
.home-button, .cta-cacao-btn, .form-submit, button[type="submit"]:not(.lang-btn) {
  background: linear-gradient(135deg, rgba(20,120,235,0.82) 0%, rgba(1,92,191,0.74) 100%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  box-shadow: 0 8px 26px -6px rgba(1,92,191,0.55), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -3px 9px rgba(0,26,74,0.4) !important;
  text-shadow: 0 1px 2px rgba(0,20,60,0.4);
  position: relative; overflow: hidden;
}
/* frost (glass) a botones secundarios/ghost, sin cambiar su identidad */
.hero-btn-ghost, .agro-btn.secondary, .cta-btn[href$=".pdf"] {
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}

/* AGRITECH 4.0 watermark DENTRO del módulo del fundador */
.lider-content-wrapper { overflow: hidden !important; }
.lider-content-wrapper .lider-background-text {
  color: rgba(1, 92, 191, 0.07) !important;
  font-size: clamp(4.5rem, 13vw, 10rem) !important;
  z-index: 0 !important;
  top: 44% !important;
}
.lider-content-wrapper .lider-image-container,
.lider-content-wrapper .lider-text-content { position: relative; z-index: 2; }

/* ===== .btn-primary también con cristal iOS 26 (todas las páginas) ===== */
.btn-primary, .btn.btn-primary, .cta-nosotros .btn-primary {
  background: linear-gradient(135deg, rgba(20,120,235,0.82) 0%, rgba(1,92,191,0.74) 100%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  box-shadow: 0 8px 26px -6px rgba(1,92,191,0.55), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -3px 9px rgba(0,26,74,0.4) !important;
  text-shadow: 0 1px 2px rgba(0,20,60,0.4);
  position: relative; overflow: hidden;
}
.btn-primary:hover, .cta-nosotros .btn-primary:hover {
  background: linear-gradient(135deg, rgba(43,140,245,0.92) 0%, rgba(10,111,224,0.84) 100%) !important;
  transform: translateY(-3px) !important;
}

/* ============================================================
   FORMATO ÚNICO de botón CTA cristalino (iOS 26) — TODO el sitio
   ============================================================ */
.btn-smart, .cta-button, .cta-btn:not(.secondary):not([href$=".pdf"]),
.agro-btn.primary, .agro-desafios-btn, .module-cta-btn, .article-cta-button,
.acopio-flow-button, .smart-ag-button, .cta-ribbon-btn, .btn-gold, .btn-green,
.btn-y, .btn-action-primary, .btn-action-link, .btn-event-premium, .produccion-btn,
.cta-main-btn, .cta-cacao-btn, .webinar-submit-btn, .ebook-btn,
.home-button, .sidebar-btn, .btn-primary, .btn.btn-primary, .cta-nosotros .btn-primary,
.form-submit, .home-cta-btn {
  background: linear-gradient(135deg, rgba(20,120,235,0.82) 0%, rgba(1,92,191,0.74) 100%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 26px -6px rgba(1,92,191,0.55), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -3px 9px rgba(0,26,74,0.4) !important;
  text-shadow: 0 1px 2px rgba(0,20,60,0.4) !important;
  text-decoration: none !important;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease !important;
}
.btn-smart:hover, .cta-button:hover, .cta-btn:not(.secondary):not([href$=".pdf"]):hover,
.agro-btn.primary:hover, .agro-desafios-btn:hover, .module-cta-btn:hover, .article-cta-button:hover,
.acopio-flow-button:hover, .smart-ag-button:hover, .cta-ribbon-btn:hover, .btn-gold:hover, .btn-green:hover,
.btn-y:hover, .btn-action-primary:hover, .btn-action-link:hover, .btn-event-premium:hover, .produccion-btn:hover,
.cta-main-btn:hover, .cta-cacao-btn:hover, .webinar-submit-btn:hover, .ebook-btn:hover,
.home-button:hover, .sidebar-btn:hover, .btn-primary:hover, .cta-nosotros .btn-primary:hover, .form-submit:hover {
  background: linear-gradient(135deg, rgba(43,140,245,0.92) 0%, rgba(10,111,224,0.84) 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 44px -8px rgba(1,92,191,0.8), inset 0 1px 0 rgba(255,255,255,0.65), inset 0 -3px 10px rgba(0,26,74,0.45) !important;
}
/* secundarios/ghost: frost (vidrio) + radio uniforme, conservan jerarquía */
.hero-btn-ghost, .agro-btn.secondary, .cta-btn[href$=".pdf"] {
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border-radius: 12px !important;
}

/* ===== Ajustes móviles: paneles "campo" y módulos nuevos ===== */
@media (max-width: 600px) {
  .produccion-subsection, .contabilidad-container, .nomina-container,
  .entendemos-layout, .diagnostico-grid, .lider-content-wrapper {
    padding: 22px !important; border-radius: 18px !important;
  }
  .ntl-card { padding: 18px 16px !important; }
  .nosotros-stats { padding: 40px 18px !important; }
  .nstat b { font-size: 2rem !important; }
  .trayectoria-panel { padding: 36px 22px !important; }
  /* evitar desbordes horizontales */
  .nosotros-stats-inner, .ntl-track, .footer-grid { max-width: 100% !important; }
}
html, body { overflow-x: hidden; }

/* Legibilidad hero Contacto: 'Conversemos' azul medio -> azul claro */
.hero-contacto-accent { color: #7CC0FF !important; text-shadow: 0 2px 16px rgba(0,12,40,0.7), 0 1px 3px rgba(0,0,0,0.5); }

/* ===== Iconos premium: tiles con gradiente + glow + brillo (demo Servicios) ===== */
.service-icon {
  background: linear-gradient(135deg, #1f86f0 0%, #015CBF 100%) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: 0 10px 24px -6px rgba(1,92,191,0.65), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -3px 8px rgba(0,26,74,0.35) !important;
  color: #fff !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.service-icon i, .service-icon svg { color: #fff !important; stroke: #fff !important; filter: drop-shadow(0 1px 2px rgba(0,20,60,0.4)); }
.service-card:hover .service-icon { transform: translateY(-3px) scale(1.05) !important; box-shadow: 0 16px 32px -8px rgba(1,92,191,0.8), inset 0 1px 0 rgba(255,255,255,0.5) !important; }

/* ============================================================
   SISTEMA ÚNICO DE ICONOS PREMIUM (todas las páginas, todos los iconos)
   tile con gradiente azul + glow + brillo interno + icono blanco
   ============================================================ */
.service-icon, .tray-icon, .trayectoria-icon, .valor-icon, .module-icon,
.produccion-feature-icon, .nomina-item-icon, .contabilidad-feature-icon,
.bigdata-icon, .diagnostico-item-icon, .diagnostico-header-icon, .desafio-icon,
.challenge-icon, .acopio-step-icon, .acopio-benefit-icon, .problem-card-icon,
.section-icon, .smart-ag-icon-circle, .who-icon, .oi-icon, .metric-icon,
.ebook-detail-icon, .contact-info-icon, .solucion-icon, .m-icon, .detail-icon,
.agritrace-check-icon, .agritrace-card-icon-item, .agritrace-card-icon,
.iot-card-icon, .equipment-icon, .success-icon, .operator-icon, .cta-cacao-icon,
.diagram-icon-wrapper, .hero-floral .ic {
  /* V2-A "soft": tile tenue + icono azul line (menos saturacion). Azul #1f86f0 legible en claro y oscuro. */
  background: rgba(31, 134, 240, 0.12) !important;
  border: 1px solid rgba(31, 134, 240, 0.24) !important;
  box-shadow: none !important;
  color: #1f86f0 !important;
}
.service-icon i, .service-icon svg, .tray-icon i, .tray-icon svg, .trayectoria-icon i, .trayectoria-icon svg,
.valor-icon i, .valor-icon svg, .module-icon i, .module-icon svg,
.produccion-feature-icon i, .produccion-feature-icon svg, .nomina-item-icon i, .nomina-item-icon svg,
.contabilidad-feature-icon i, .contabilidad-feature-icon svg, .bigdata-icon i, .bigdata-icon svg,
.diagnostico-item-icon i, .diagnostico-item-icon svg, .diagnostico-header-icon i, .diagnostico-header-icon svg,
.desafio-icon i, .desafio-icon svg, .challenge-icon i, .challenge-icon svg,
.acopio-step-icon i, .acopio-step-icon svg, .acopio-benefit-icon i, .acopio-benefit-icon svg,
.problem-card-icon i, .problem-card-icon svg, .section-icon i, .section-icon svg,
.smart-ag-icon-circle i, .smart-ag-icon-circle svg, .who-icon i, .who-icon svg,
.oi-icon i, .oi-icon svg, .metric-icon i, .metric-icon svg, .ebook-detail-icon i, .ebook-detail-icon svg,
.contact-info-icon i, .contact-info-icon svg, .solucion-icon i, .solucion-icon svg,
.m-icon i, .m-icon svg, .detail-icon i, .detail-icon svg,
.agritrace-check-icon i, .agritrace-check-icon svg, .agritrace-card-icon-item i, .agritrace-card-icon-item svg,
.agritrace-card-icon i, .agritrace-card-icon svg, .iot-card-icon i, .iot-card-icon svg,
.equipment-icon i, .equipment-icon svg, .success-icon i, .success-icon svg,
.operator-icon i, .operator-icon svg, .diagram-icon-wrapper i, .diagram-icon-wrapper svg {
  color: #1f86f0 !important; stroke: #1f86f0 !important; fill: none;
  filter: none;
}

/* ===== Mejora sección Trazabilidad (agritrace) + iconos pulidos ===== */
.agritrace-hero-split {
  background:
    radial-gradient(720px 420px at 100% 0, rgba(1,92,191,0.42), transparent 60%),
    linear-gradient(160deg, #001a4d 0%, #00102e 100%) !important;
  position: relative;
}
.agritrace-hero-right { position: relative; }
.agritrace-hero-right::before {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(rgba(100,181,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,181,246,.06) 1px, transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image: radial-gradient(130% 100% at 100% 0, #000, transparent 75%);
  mask-image: radial-gradient(130% 100% at 100% 0, #000, transparent 75%);
}
.agritrace-hero-right > * { position: relative; z-index: 1; }
/* checklist: checkmarks como tiles redondeados premium */
.agritrace-check-icon {
  width: 30px !important; height: 30px !important; min-width: 30px;
  border-radius: 9px !important;
  display: inline-grid !important; place-items: center !important;
  font-size: 0.9rem !important;
}
/* tarjetas internas (Geocercas/Usuarios/Fotos) con glass sobre el panel */
.agritrace-card-text { background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(255,255,255,0.12) !important; border-radius: 14px !important; }

/* ===== Fix tarjetas Trazabilidad (Geocercas/Usuarios/Fotos): glass, no bloque azul plano ===== */
.agritrace-card-icon-item {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 14px 34px -16px rgba(0,0,0,0.5) !important;
  color: #fff !important;
  padding: 18px 14px !important;
  transition: transform .25s ease, border-color .25s ease, background .25s ease !important;
}
.agritrace-card-icon-item:hover {
  border-color: rgba(100,181,246,0.45) !important;
  background: rgba(1,92,191,0.16) !important;
  transform: translateY(-3px);
}
.agritrace-card-icon-item:hover .agritrace-card-icon { background: linear-gradient(135deg,#2b8cf5,#0a6fe0) !important; }
/* el icono adentro sí es el tile premium (gradiente) */
.agritrace-card-icon {
  width: 46px !important; height: 46px !important; border-radius: 13px !important;
  display: grid !important; place-items: center !important; margin: 0 auto 10px !important;
}
/* etiquetas y textos -> blanco legible */
.agritrace-card-icon-item .agritrace-card-text,
.agritrace-card-icon-item span, .agritrace-card-icon-item p { color: #ffffff !important; background: transparent !important; border: 0 !important; font-weight: 600; }
.agritrace-subtitle { color: #cdd9ee !important; }

/* ===== Animación cronología paso a paso (PAD Cacao / acopio-timeline) ===== */
@keyframes acopioStep {
  0%, 22%, 100% { transform: scale(1) translateY(0); filter: brightness(1) drop-shadow(0 0 0 rgba(100,181,246,0)); }
  8% { transform: scale(1.18) translateY(-7px); filter: brightness(1.3) drop-shadow(0 0 16px rgba(100,181,246,0.9)); }
}
.acopio-timeline .acopio-step-icon { }
.acopio-timeline .acopio-step:nth-child(1) .acopio-step-icon { animation-delay: 0s; }
.acopio-timeline .acopio-step:nth-child(2) .acopio-step-icon { animation-delay: 1s; }
.acopio-timeline .acopio-step:nth-child(3) .acopio-step-icon { animation-delay: 2s; }
.acopio-timeline .acopio-step:nth-child(4) .acopio-step-icon { animation-delay: 3s; }
.acopio-timeline .acopio-step:nth-child(5) .acopio-step-icon { animation-delay: 4s; }
.acopio-timeline .acopio-step:nth-child(6) .acopio-step-icon { animation-delay: 5s; }
/* resalta también la etiqueta del paso activo */
@keyframes acopioLabel { 0%,22%,100%{ color:#cdd9ee; } 8%{ color:#fff; } }
.acopio-timeline .acopio-step-label { }
.acopio-timeline .acopio-step:nth-child(2) .acopio-step-label { animation-delay: 1s; }
.acopio-timeline .acopio-step:nth-child(3) .acopio-step-label { animation-delay: 2s; }
.acopio-timeline .acopio-step:nth-child(4) .acopio-step-label { animation-delay: 3s; }
.acopio-timeline .acopio-step:nth-child(5) .acopio-step-label { animation-delay: 4s; }
.acopio-timeline .acopio-step:nth-child(6) .acopio-step-label { animation-delay: 5s; }
@media (prefers-reduced-motion: reduce) {
  .acopio-timeline .acopio-step-icon, .acopio-timeline .acopio-step-label { animation: none !important; }
}

/* ===== Seccion "Para quien?" (segmentacion por perfil) ===== */
.paraquien-section{ width:100%; padding:80px 0; position:relative;
  background:radial-gradient(820px 420px at 80% -5%,rgba(1,92,191,.28),transparent 60%),linear-gradient(160deg,#0a1b3d 0%,#07122a 100%); }
.paraquien-section::before{ content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:linear-gradient(rgba(100,181,246,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(100,181,246,.05) 1px,transparent 1px);
  background-size:46px 46px; -webkit-mask-image:radial-gradient(circle at 50% 12%,#000,transparent 78%); mask-image:radial-gradient(circle at 50% 12%,#000,transparent 78%); }
.pq-inner{ position:relative; z-index:1; max-width:1200px; margin:0 auto; padding:0 20px; }
.pq-head{ text-align:center; margin-bottom:48px; }
.pq-badge{ display:inline-block; background:rgba(1,92,191,.18); color:#64B5F6; font-size:.8rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; padding:7px 15px; border-radius:999px; margin-bottom:18px; }
.pq-title{ font-family:'Space Grotesk',sans-serif; font-size:clamp(1.9rem,4vw,2.5rem); font-weight:700; color:#fff; margin:0 0 12px; }
.pq-title .hl{ color:#64B5F6; }
.pq-sub{ color:#c3d2ec; font-size:1.05rem; max-width:640px; margin:0 auto; line-height:1.55; }
.pq-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.pq-card{ background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.11); border-radius:24px; padding:34px 30px;
  box-shadow:0 22px 54px -26px rgba(0,0,0,.55); transition:transform .25s ease, border-color .25s ease; display:flex; flex-direction:column; }
.pq-card:hover{ border-color:rgba(100,181,246,.5); transform:translateY(-4px); }
.pq-icon{ width:60px; height:60px; border-radius:16px; background:rgba(100,181,246,.12); border:1px solid rgba(100,181,246,.22); display:grid; place-items:center; margin-bottom:22px; }
.pq-icon i, .pq-icon svg{ width:28px; height:28px; color:#64B5F6; stroke:#64B5F6; }
.pq-tag{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:#9fb3d4; font-weight:700; margin-bottom:6px; }
.pq-role{ font-family:'Space Grotesk',sans-serif; font-size:1.3rem; font-weight:700; color:#fff; margin:0 0 10px; }
.pq-msg{ color:#c3d2ec; font-size:.98rem; line-height:1.6; margin:0; flex-grow:1; }
.pq-msg b{ color:#fff; }
.pq-link{ margin-top:20px; color:#64B5F6; font-weight:600; font-size:.95rem; text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.pq-link:hover{ color:#9fc8ff; }
@media (max-width:900px){ .pq-grid{ grid-template-columns:1fr; } .paraquien-section{ padding:56px 0; } }

/* =====================================================================
   BOTONES UNIFICADOS: glass + animacion de brillo (shine) en hover.
   Aplica a TODOS los botones de accion/CTA (no a UI: lang/slider/whatsapp/share).
   ===================================================================== */
/* 1) glass completo a los que faltaban (secundarios, ghost, "ver mas") */
.cta-btn.secondary, .cta-btn[href$=".pdf"], .agro-btn.secondary, .hero-btn-ghost, .portfolio-mobile-btn, .solution-mobile-btn {
  background: linear-gradient(135deg, rgba(20,120,235,0.82) 0%, rgba(1,92,191,0.74) 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 26px -6px rgba(1,92,191,0.55), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -3px 9px rgba(0,26,74,0.4) !important;
  text-shadow: 0 1px 2px rgba(0,20,60,0.4) !important;
  text-decoration: none !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
}
.cta-btn.secondary:hover, .cta-btn[href$=".pdf"]:hover, .agro-btn.secondary:hover, .hero-btn-ghost:hover, .portfolio-mobile-btn:hover, .solution-mobile-btn:hover {
  background: linear-gradient(135deg, rgba(43,140,245,0.92) 0%, rgba(10,111,224,0.84) 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 44px -8px rgba(1,92,191,0.8), inset 0 1px 0 rgba(255,255,255,0.65), inset 0 -3px 10px rgba(0,26,74,0.45) !important;
}

/* 2) shine: contenedor recortado para el brillo */
.btn-smart, .cta-button, .cta-btn, .agro-btn, .agro-desafios-btn, .module-cta-btn, .article-cta-button, .acopio-flow-button, .smart-ag-button, .cta-ribbon-btn, .btn-gold, .btn-green, .btn-y, .btn-action-primary, .btn-action-link, .btn-event-premium, .produccion-btn, .cta-main-btn, .cta-cacao-btn, .webinar-submit-btn, .ebook-btn, .home-button, .sidebar-btn, .btn-primary, .form-submit, .home-cta-btn, .portfolio-mobile-btn, .solution-mobile-btn, .hero-btn-ghost { position: relative; overflow: hidden; }

/* 3) el brillo (reflejo de luz diagonal), oculto en reposo */
.btn-smart::before,
.cta-button::before,
.cta-btn::before,
.agro-btn::before,
.agro-desafios-btn::before,
.module-cta-btn::before,
.article-cta-button::before,
.acopio-flow-button::before,
.smart-ag-button::before,
.cta-ribbon-btn::before,
.btn-gold::before,
.btn-green::before,
.btn-y::before,
.btn-action-primary::before,
.btn-action-link::before,
.btn-event-premium::before,
.produccion-btn::before,
.cta-main-btn::before,
.cta-cacao-btn::before,
.webinar-submit-btn::before,
.ebook-btn::before,
.home-button::before,
.sidebar-btn::before,
.btn-primary::before,
.form-submit::before,
.home-cta-btn::before,
.portfolio-mobile-btn::before,
.solution-mobile-btn::before,
.hero-btn-ghost::before {
  content: ""; position: absolute; top: 0; left: -85%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.42) 50%, transparent 100%);
  transform: skewX(-22deg); pointer-events: none; opacity: 0; z-index: 2;
}

/* 4) al pasar el mouse / foco: el brillo barre el boton */
.btn-smart:hover::before, .btn-smart:focus-visible::before,
.cta-button:hover::before, .cta-button:focus-visible::before,
.cta-btn:hover::before, .cta-btn:focus-visible::before,
.agro-btn:hover::before, .agro-btn:focus-visible::before,
.agro-desafios-btn:hover::before, .agro-desafios-btn:focus-visible::before,
.module-cta-btn:hover::before, .module-cta-btn:focus-visible::before,
.article-cta-button:hover::before, .article-cta-button:focus-visible::before,
.acopio-flow-button:hover::before, .acopio-flow-button:focus-visible::before,
.smart-ag-button:hover::before, .smart-ag-button:focus-visible::before,
.cta-ribbon-btn:hover::before, .cta-ribbon-btn:focus-visible::before,
.btn-gold:hover::before, .btn-gold:focus-visible::before,
.btn-green:hover::before, .btn-green:focus-visible::before,
.btn-y:hover::before, .btn-y:focus-visible::before,
.btn-action-primary:hover::before, .btn-action-primary:focus-visible::before,
.btn-action-link:hover::before, .btn-action-link:focus-visible::before,
.btn-event-premium:hover::before, .btn-event-premium:focus-visible::before,
.produccion-btn:hover::before, .produccion-btn:focus-visible::before,
.cta-main-btn:hover::before, .cta-main-btn:focus-visible::before,
.cta-cacao-btn:hover::before, .cta-cacao-btn:focus-visible::before,
.webinar-submit-btn:hover::before, .webinar-submit-btn:focus-visible::before,
.ebook-btn:hover::before, .ebook-btn:focus-visible::before,
.home-button:hover::before, .home-button:focus-visible::before,
.sidebar-btn:hover::before, .sidebar-btn:focus-visible::before,
.btn-primary:hover::before, .btn-primary:focus-visible::before,
.form-submit:hover::before, .form-submit:focus-visible::before,
.home-cta-btn:hover::before, .home-cta-btn:focus-visible::before,
.portfolio-mobile-btn:hover::before, .portfolio-mobile-btn:focus-visible::before,
.solution-mobile-btn:hover::before, .solution-mobile-btn:focus-visible::before,
.hero-btn-ghost:hover::before, .hero-btn-ghost:focus-visible::before { animation: btnShine 0.8s ease; }
@keyframes btnShine {
  0%   { left: -85%; opacity: 0; }
  14%  { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-smart:hover::before, .btn-smart:focus-visible::before,
.cta-button:hover::before, .cta-button:focus-visible::before,
.cta-btn:hover::before, .cta-btn:focus-visible::before,
.agro-btn:hover::before, .agro-btn:focus-visible::before,
.agro-desafios-btn:hover::before, .agro-desafios-btn:focus-visible::before,
.module-cta-btn:hover::before, .module-cta-btn:focus-visible::before,
.article-cta-button:hover::before, .article-cta-button:focus-visible::before,
.acopio-flow-button:hover::before, .acopio-flow-button:focus-visible::before,
.smart-ag-button:hover::before, .smart-ag-button:focus-visible::before,
.cta-ribbon-btn:hover::before, .cta-ribbon-btn:focus-visible::before,
.btn-gold:hover::before, .btn-gold:focus-visible::before,
.btn-green:hover::before, .btn-green:focus-visible::before,
.btn-y:hover::before, .btn-y:focus-visible::before,
.btn-action-primary:hover::before, .btn-action-primary:focus-visible::before,
.btn-action-link:hover::before, .btn-action-link:focus-visible::before,
.btn-event-premium:hover::before, .btn-event-premium:focus-visible::before,
.produccion-btn:hover::before, .produccion-btn:focus-visible::before,
.cta-main-btn:hover::before, .cta-main-btn:focus-visible::before,
.cta-cacao-btn:hover::before, .cta-cacao-btn:focus-visible::before,
.webinar-submit-btn:hover::before, .webinar-submit-btn:focus-visible::before,
.ebook-btn:hover::before, .ebook-btn:focus-visible::before,
.home-button:hover::before, .home-button:focus-visible::before,
.sidebar-btn:hover::before, .sidebar-btn:focus-visible::before,
.btn-primary:hover::before, .btn-primary:focus-visible::before,
.form-submit:hover::before, .form-submit:focus-visible::before,
.home-cta-btn:hover::before, .home-cta-btn:focus-visible::before,
.portfolio-mobile-btn:hover::before, .portfolio-mobile-btn:focus-visible::before,
.solution-mobile-btn:hover::before, .solution-mobile-btn:focus-visible::before,
.hero-btn-ghost:hover::before, .hero-btn-ghost:focus-visible::before { animation: none; }
}

/* Botones "Ver mas" de tarjetas (portfolio/solution): proporciones correctas de boton
   (originalmente eran links subrayados con padding:0 -> se veian apretados al volverlos glass) */
.portfolio-mobile-btn, .solution-mobile-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 26px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
}

/* ============================================================
   BROWSER FRAME — envoltura tipo navegador para capturas de producto
   (estilo John Deere / Stripe). Estructura:
   .browser-frame > .browser-bar (.browser-dots + .browser-url) + .browser-body
   ============================================================ */
.browser-frame {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f7fb;
  border: 1px solid #d8e1ee;
  box-shadow: 0 30px 60px -28px rgba(8, 27, 64, .38), 0 10px 24px -14px rgba(8, 27, 64, .22);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s cubic-bezier(.22,.61,.36,1);
}
.browser-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 72px -28px rgba(8, 27, 64, .45), 0 14px 28px -14px rgba(8, 27, 64, .26);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  background: linear-gradient(180deg, #fbfcfe, #eef2f8);
  border-bottom: 1px solid #e2e9f2;
}
.browser-dots { display: flex; gap: 8px; flex: none; }
.browser-dots span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.browser-dots span:nth-child(1){ background: #ff5f57; }
.browser-dots span:nth-child(2){ background: #febc2e; }
.browser-dots span:nth-child(3){ background: #28c840; }
.browser-url {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 27px;
  padding: 0 16px;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e4e9f1;
  color: #5b6b85;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url i, .browser-url svg { width: 13px; height: 13px; flex: none; color: #28c840; stroke-width: 2.4; }
.browser-body { display: block; line-height: 0; background: #ffffff; }
.browser-body img { width: 100%; height: auto; display: block; }
/* Cuando el cuerpo es un dashboard HTML (no imagen) le damos padding */
.browser-body.is-live { padding: 26px; line-height: normal; background: linear-gradient(160deg, #0a1b3d, #07122a); position: relative; }
.browser-body.is-live::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(100,181,246,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(100,181,246,.06) 1px, transparent 1px); background-size: 42px 42px; -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 85%); mask-image: radial-gradient(circle at 50% 0%, #000, transparent 85%); }
.browser-body.is-live > * { position: relative; z-index: 1; }

/* Dark theme */
body.dark-theme .browser-frame {
  background: #0a1b3d;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 34px 70px -28px rgba(0,0,0,.6), 0 12px 26px -14px rgba(0,0,0,.45);
}
body.dark-theme .browser-bar {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border-bottom-color: rgba(255,255,255,.1);
}
body.dark-theme .browser-url {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: #9db4d6;
}
body.dark-theme .browser-body { background: #07122a; }
body.dark-theme .browser-body.is-live { background: linear-gradient(160deg, #0a1b3d, #07122a); }

@media (max-width: 600px){
  .browser-bar { height: 38px; padding: 0 12px; gap: 10px; }
  .browser-dots span { width: 10px; height: 10px; }
  .browser-url { font-size: 0.7rem; height: 24px; max-width: 220px; }
  .browser-body.is-live { padding: 14px; }
}
@media (prefers-reduced-motion: reduce){
  .browser-frame, .browser-frame:hover { transition: none; transform: none; }
}

/* Modificador ancho + dashboard HTML dentro del marco */
.browser-frame--wide { max-width: 900px; }
.browser-body .produccion-dashboard { max-width: none; padding: 0; margin: 0; }
@media (max-width: 600px){ .browser-frame--wide { max-width: 100%; } }

/* ============================================================
   CASOS DE EXITO — resultados reales de clientes reales (Climate-style)
   ============================================================ */
.casos-section { position: relative; padding: 96px 24px; background: linear-gradient(160deg, #0a1b3d, #07122a); overflow: hidden; }
.casos-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(100,181,246,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(100,181,246,.05) 1px, transparent 1px);
  background-size: 46px 46px;
}
.casos-container { position: relative; max-width: 1140px; margin: 0 auto; }
.casos-header { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.casos-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(77,163,255,.12); border: 1px solid rgba(77,163,255,.3);
  color: #7CC0FF; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px;
}
.casos-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: #fff; margin: 0 0 14px; }
.casos-title .hl { color: #4DA3FF; }
.casos-subtitle { color: #b9c6df; font-size: 1.05rem; line-height: 1.6; margin: 0; }

.caso-featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.caso-featured-media { min-width: 0; }
.caso-featured .browser-frame { max-width: 100%; }
.caso-video-embed { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }
.caso-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.caso-featured-info { min-width: 0; }

.caso-sector { display: inline-flex; align-items: center; gap: 8px; color: #7CC0FF; font-size: .85rem; font-weight: 600; margin-bottom: 16px; }
.caso-sector i, .caso-sector svg { width: 17px; height: 17px; stroke-width: 2; }

.caso-metric { display: flex; flex-direction: column; margin-bottom: 16px; }
.caso-metric-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: #4DA3FF; }
.caso-metric-label { color: #cdd8ec; font-size: .98rem; margin-top: 6px; }

.caso-outcome { color: #b9c6df; font-size: 1rem; line-height: 1.65; margin: 0 0 18px; }
.caso-quote { border-left: 3px solid rgba(77,163,255,.5); padding-left: 16px; margin: 0 0 20px; color: #dce6f5; font-style: italic; line-height: 1.6; }
.caso-client { display: flex; flex-direction: column; }
.caso-client-name { color: #fff; font-weight: 700; font-size: 1.02rem; }
.caso-client-role { color: #93a6c6; font-size: .85rem; margin-top: 2px; }

.caso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.caso-card { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.11); border-radius: 24px; padding: 32px; transition: border-color .3s ease, transform .3s ease; }
.caso-card:hover { border-color: #64B5F6; transform: translateY(-4px); }
.caso-card .caso-metric { margin-bottom: 14px; }
.caso-card .caso-outcome { margin-bottom: 20px; }

@media (max-width: 900px){
  .caso-featured { grid-template-columns: 1fr; gap: 28px; }
  .caso-grid { grid-template-columns: 1fr; }
  .casos-section { padding: 72px 18px; }
}
@media (prefers-reduced-motion: reduce){ .caso-card, .caso-card:hover { transition: none; transform: none; } }

/* ============================================================
   BANDA DE ECOSISTEMA / INTEGRACIONES + FAQ
   ============================================================ */
.eco-band { padding: 56px 24px; background: #f4f7fb; border-top: 1px solid #e6ecf5; border-bottom: 1px solid #e6ecf5; }
.eco-band-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.eco-band-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: #081B40; margin: 0 0 28px; }
.eco-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0; margin: 0; }
.eco-chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: #fff; border: 1px solid #e2e9f2; color: #0f2a52; font-weight: 600; font-size: .92rem; box-shadow: 0 2px 8px rgba(8,27,64,.05); transition: border-color .25s, transform .25s, box-shadow .25s; }
.eco-chip:hover { border-color: #64B5F6; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(8,27,64,.1); }
.eco-chip i, .eco-chip svg { width: 18px; height: 18px; color: #015CBF; stroke-width: 2; flex: none; }
body.dark-theme .eco-band { background: #0a1730; border-color: rgba(255,255,255,.08); }
body.dark-theme .eco-band-title { color: #eaf1fb; }
body.dark-theme .eco-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.11); color: #dce6f5; box-shadow: none; }
body.dark-theme .eco-chip i, body.dark-theme .eco-chip svg { color: #64B5F6; }
body.dark-theme .eco-chip:hover { border-color: #64B5F6; }

.faq-section { padding: 88px 24px; background: #fff; }
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 40px; }
.faq-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #EAF4FF; border: 1px solid #cfe3fb; color: #015CBF; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.faq-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.4rem); color: #081B40; margin: 0; }
.faq-title .hl { color: #015CBF; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #f7f9fc; border: 1px solid #e6ecf5; border-radius: 16px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: #bcd9fb; box-shadow: 0 8px 22px rgba(8,27,64,.07); }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem; color: #0f2a52; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-caret { width: 20px; height: 20px; flex: none; color: #015CBF; transition: transform .25s ease; stroke-width: 2; }
.faq-item[open] .faq-caret { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { margin: 0; color: #4a5a73; line-height: 1.65; font-size: 1rem; }
body.dark-theme .faq-section { background: #07122a; }
body.dark-theme .faq-badge { background: rgba(77,163,255,.12); border-color: rgba(77,163,255,.3); color: #7CC0FF; }
body.dark-theme .faq-title { color: #fff; }
body.dark-theme .faq-title .hl { color: #4DA3FF; }
body.dark-theme .faq-item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
body.dark-theme .faq-item[open] { border-color: #64B5F6; box-shadow: none; }
body.dark-theme .faq-item > summary { color: #eaf1fb; }
body.dark-theme .faq-caret { color: #7CC0FF; }
body.dark-theme .faq-answer p { color: #b9c6df; }

@media (max-width: 600px){
  .faq-item > summary { padding: 16px 18px; font-size: .98rem; }
  .faq-answer { padding: 0 18px 18px; }
  .eco-chip { font-size: .85rem; padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce){ .eco-chip, .eco-chip:hover, .faq-item, .faq-caret { transition: none; } }

/* ===== POLISH PRO hero Trazabilidad (jun 2026): mismo lenguaje tech-glass del dashboard ===== */
.agritrace-hero-split {
  background:
    radial-gradient(680px 380px at 100% 0, rgba(31,134,240,0.20), transparent 62%),
    linear-gradient(160deg, #0a1b3d 0%, #07122a 100%) !important;
}
/* grid mas presente en el panel derecho */
.agritrace-hero-right::before {
  background-size: 40px 40px !important;
  -webkit-mask-image: radial-gradient(150% 120% at 100% 0, #000, transparent 82%) !important;
  mask-image: radial-gradient(150% 120% at 100% 0, #000, transparent 82%) !important;
}
/* badge azul tech (quita el verde #E8F5E9) */
.agritrace-badge-top {
  background: rgba(77,163,255,.12) !important;
  border: 1px solid rgba(77,163,255,.32);
  color: #7CC0FF !important;
  text-transform: uppercase; letter-spacing: .05em; font-size: .76rem; padding: 7px 15px;
}
/* titulo Space Grotesk */
.agritrace-main-heading {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(2rem, 3.2vw, 2.7rem) !important;
  letter-spacing: -.015em;
}
.agritrace-subtitle { color: #b9c6df !important; font-size: 1.05rem !important; }
.agritrace-checklist li { color: #d3deef !important; font-size: 1rem !important; }
.agritrace-check-icon {
  background: rgba(77,163,255,.16) !important;
  border: 1px solid rgba(77,163,255,.36);
  color: #7CC0FF !important;
}
/* tarjeta interna: glass marcada y separada del fondo (en vez de bloque azul plano) */
.agritrace-card-dark {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 22px 50px -26px rgba(0,0,0,.6) !important;
  backdrop-filter: blur(6px);
}
.agritrace-card-text { background: transparent !important; border: 0 !important; border-radius: 0 !important; color: #eaf1fb !important; }
.agritrace-highlight { color: #4DA3FF !important; }
/* sub-tarjetas mas vivas + hover azul */
.agritrace-card-icon-item { background: rgba(255,255,255,.05) !important; }
.agritrace-card-icon-item:hover { border-color: #64B5F6 !important; background: rgba(31,134,240,.14) !important; }

/* ===== POLISH PRO agroindustrias/cacao (jun 2026): secciones oscuras planas -> navy tech-glass + grid ===== */
.agro-entendemos, .agro-desafios, .agro-proyectos, .agro-clientes, .iot-ecosystem {
  background: linear-gradient(160deg, #0a1b3d 0%, #07122a 100%) !important;
  position: relative;
  overflow: hidden;
}
.agro-entendemos::after, .agro-desafios::after, .agro-proyectos::after, .agro-clientes::after, .iot-ecosystem::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(100,181,246,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(100,181,246,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 82%);
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 82%);
}
.agro-entendemos > *, .agro-desafios > *, .agro-proyectos > *, .agro-clientes > *, .iot-ecosystem > * {
  position: relative; z-index: 1;
}
/* badge IoT y clientes highlight: azul tech (no verde) */
.iot-ecosystem .iot-badge { background: rgba(77,163,255,.12) !important; color: #7CC0FF !important; border: 1px solid rgba(77,163,255,.3); }
.agro-clientes .section-title .highlight { color: #4DA3FF !important; }

/* ============================================================
   MARCO DE NAVEGADOR -> solo imagen (sin barra de URL)  [2026-06-05]
   El usuario pidio quitar el panel/URL de navegador de todas las
   imagenes y dejar solo la imagen, con un realce sutil (radio + sombra).
   ============================================================ */
.browser-bar { display: none; }
.browser-frame,
body.dark-theme .browser-frame {
  background: transparent;
  border: none;
  box-shadow: 0 24px 50px -30px rgba(8, 27, 64, .50);
}
.browser-frame:hover {
  transform: none;
  box-shadow: 0 24px 50px -30px rgba(8, 27, 64, .50);
}

/* ============================================================
   ICONOS Lucide site-wide -> tamanos/relleno para los casos NO
   cubiertos por los tiles normalizados (testimonios, slider, blog)
   [2026-06-08] unificacion total de iconos
   ============================================================ */
/* Testimonios: estrellas de rating (rellenas, doradas/ambar) */
.testimonios-rating { color: #d4a445; }
.testimonios-rating svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
body.dark-theme .testimonios-rating { color: #fbbf24; }
body.dark-theme .testimonios-rating svg { fill: #fbbf24; stroke: #fbbf24; }
/* Testimonios: comilla decorativa */
.testimonios-quote svg { width: 2.8rem; height: 2.8rem; color: rgb(202,188,1); stroke-width: 1.5; display: block; }
body.dark-theme .testimonios-quote svg { color: #64b5f6; }
/* Botones del slider de testimonios */
.slider-btn svg { width: 18px; height: 18px; }
/* Iconos Lucide en linea dentro de texto/meta de blog */
.article-meta svg.lucide, .article-date svg.lucide, .blog-post-meta svg.lucide { width: 1em; height: 1em; vertical-align: -0.14em; }
.article-content p svg.lucide, .blog-content p svg.lucide, p svg.lucide { width: 1.05em; height: 1.05em; vertical-align: -0.16em; }

/* ===== Nav: enlace nuevo con badge "Nuevo" (XassGo) ===== */
.nav .nav-new{position:relative}
.nav .nav-new .nav-new-badge{
  position:absolute;top:-10px;right:-6px;font-size:.54rem;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:#0a1b3d;background:#C7F25D;padding:2px 6px;border-radius:6px;line-height:1;
  box-shadow:0 0 0 3px rgba(199,242,93,.20);animation:navnew 2.4s ease-in-out infinite}
@keyframes navnew{0%,100%{box-shadow:0 0 0 3px rgba(199,242,93,.20)}50%{box-shadow:0 0 0 5px rgba(199,242,93,.0)}}
@media (prefers-reduced-motion:reduce){.nav .nav-new .nav-new-badge{animation:none}}

/* ============================================================
   OPTIMIZACIÓN RESPONSIVE — móvil · tablet · laptop · escritorio
   Endurecimiento global aplicado a TODO el sitio (jun 2026)
   ============================================================ */
/* 1) Nada provoca scroll horizontal en ningún dispositivo */
html, body { overflow-x: hidden; max-width: 100%; }
/* 2) Imágenes y medios nunca exceden su contenedor (mantienen proporción por sus width/height) */
img, svg, video, iframe, canvas { max-width: 100%; }
/* 3) Texto/URLs largas no rompen el layout en pantallas estrechas */
h1, h2, h3, h4, h5, p, li, a, blockquote, figcaption, td, th, .section-title, .section-text { overflow-wrap: break-word; }
/* 4) Carruseles/marquees se recortan dentro de su sección (no a la página) */
.clientes-section, .clientes-carousel, .exportadoras, .exportadoras-carousel, .testimonios-slider-container { max-width: 100%; }
/* 5) SCM Exportación (banano): tablets decorativas contenidas y centradas en tablet/móvil */
@media (max-width: 900px){
  .scm-images-container { overflow: hidden; }
  .scm-tablet-1 { left: 50% !important; transform: translateX(-50%) !important; width: 82% !important; max-width: 460px !important; top: 10px !important; }
  .scm-tablet-2 { display: none !important; }
}
/* 6) Tap targets cómodos en móvil (accesibilidad táctil) */
@media (max-width: 600px){
  .nav a, .footer-links a, .lang-btn { padding-top: 6px; padding-bottom: 6px; }
}

/* ============================================================
   7) MÓVIL — módulos centrados y organizados + texto justificado
   (jun 2026) Corrige grids apretados a 2 columnas y palabras
   partidas en celular; aplica a TODAS las páginas.
   ============================================================ */
/* 7a) En celular (<=480px) las rejillas de tarjetas con texto pasan a
   UNA columna, centradas y a todo el ancho útil — fin del apretujado. */
@media (max-width: 480px){
  .desafios-grid, .soluciones-grid, .services-grid, .module-grid,
  .portfolio-grid, .valores-grid, .results-grid, .caso-grid, .pq-grid,
  .smart-ag-grid, .bigdata-grid, .diagnostico-grid, .evidencia-grid,
  .certificaciones-grid, .agritrace-cards-grid, .acopio-benefits-grid,
  .alianzas-grid, .card-grid, .challenges-grid, .diagram-grid,
  .contact-info-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
    align-items: stretch;
    gap: 16px !important;
  }
  /* Las tarjetas ocupan el ancho disponible, centradas y limitadas para
     que no se vean estiradas en pantallas grandes de celular. */
  .desafios-grid > *, .soluciones-grid > *, .services-grid > *,
  .module-grid > *, .portfolio-grid > *, .valores-grid > *,
  .results-grid > *, .caso-grid > *, .pq-grid > *, .smart-ag-grid > *,
  .bigdata-grid > *, .diagnostico-grid > *, .evidencia-grid > *,
  .certificaciones-grid > *, .agritrace-cards-grid > *,
  .acopio-benefits-grid > *, .alianzas-grid > *, .card-grid > *,
  .challenges-grid > *, .diagram-grid > *, .contact-info-grid > * {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    grid-column: auto !important; /* anula spans tipo "5º a todo el ancho" */
    box-sizing: border-box;
  }
}
/* 7b) Evita cortes feos a media palabra dentro de las tarjetas en móvil:
   permite guion automático (es) y rompe solo si de verdad no cabe. */
@media (max-width: 600px){
  .desafio-card, .solucion-card, .service-card, .module-card,
  .portfolio-card, .card,
  .desafio-title, .desafio-desc, .solucion-desc, .module-subtitle,
  .trace-description, .who-text, .smart-ag-description {
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}
/* 7c) Texto justificado en párrafos descriptivos (solo en móvil, con
   guion automático para que quede prolijo y sin "ríos" de espacio). */
@media (max-width: 600px){
  .section-text, .hero-subtitle, .hero-description, .solucion-desc,
  .desafio-desc, .trace-description, .who-text, .smart-ag-description,
  .produccion-feature-text, .nomina-item-text, .contabilidad-feature-text,
  .diagnostico-item-text, .testimonios-text, .module-subtitle,
  .lider-description, .nosotros-text, .intro-text, .seccion-descripcion {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

/* ============================================================
   8) CORRECCIONES PUNTUALES DE CONSISTENCIA MÓVIL (jun 2026)
   ============================================================ */
/* 8.1) Stat tiles "Transformando Empresas" (.tray-grid): número en UNA
   sola línea y etiquetas SIN guion automático (no más "Latinoamér-ica"). */
@media (max-width: 520px){
  .tray-grid { gap: 12px; }
  .tray-card { padding: 20px 12px; min-height: 148px; }
  .tray-icon { width: 56px; height: 56px; font-size: 1.6rem; margin-bottom: 12px; border-radius: 16px; }
  .tray-card .tray-number {
    font-size: 1.4rem !important;
    white-space: nowrap !important;
    -webkit-hyphens: none !important; hyphens: none !important;
    margin-bottom: 6px;
  }
  .tray-label {
    font-size: 0.9rem;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: none; hyphens: none;
  }
}

/* 8.2) Tarjetas "Solución por cultivo" (.solution-body): el padding lateral
   de 68px ahogaba el texto en móvil. Más ancho útil = bloque prolijo. */
@media (max-width: 600px){
  .solution-body { padding: 30px 22px 26px !important; }
  .solution-text { text-align: center; line-height: 1.55; }
}

/* 8.3) Hero Banano: en móvil seguía en DOS columnas (texto + imagen al 50%),
   por eso el bloque de CTA colapsaba a 152px y partía el texto. Se apila a
   una sola columna y los botones van a todo el ancho. */
@media (max-width: 768px){
  .hero-banano.hero-split {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  .hero-banano .hero-left,
  .hero-banano .hero-right { width: 100% !important; max-width: 100% !important; }
  .hero-banano .hero-left { align-items: stretch !important; }
}
@media (max-width: 600px){
  .hero-banano .hero-left > div { width: 100% !important; }
  .hero-banano .hero-left > div[style*="flex"] {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-banano .cta-btn {
    flex: 1 1 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

/* 8.4) Formulario Banano (#cta-form): el iframe estaba al 70% (angosto).
   A todo el ancho en móvil y con aire bajo el nav flotante. */
@media (max-width: 768px){
  #cta-form iframe,
  .form-section iframe { width: 100% !important; margin: 0 auto !important; }
}
#cta-form { scroll-margin-top: 90px; }

/* 8.5) Flujo de acopio (cacao): pills de ANCHO UNIFORME y centradas
   (en vez de pirámide irregular) — proceso claro y ordenado. */
@media (max-width: 768px){
  .acopio-flow-item { width: 100%; justify-content: center; }
  .acopio-flow-button {
    width: 230px;
    max-width: 82%;
    text-align: center;
  }
}

/* 8.6) "Split sections" (texto + imagen) cuyo contenedor es grid de 2
   columnas por estilo INLINE y no se apilaban en móvil (texto ahogado a un
   lado + imagen flotante). Cubre IoT (agroindustrias/cacao) y Cacao en
   Tiempo Real. Se apilan a 1 columna a todo el ancho. */
@media (max-width: 768px){
  .iot-ecosystem > .iot-container,
  .iot-ecosystem > .container,
  .cacao-dashboard > .container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 0 20px !important;
  }
  .iot-content-left { text-align: left !important; }
  .iot-visual-right,
  .iot-ecosystem > .container > *,
  .cacao-dashboard > .container > * { width: 100%; min-width: 0; }
  .iot-visual-right img,
  .iot-visual-wrapper { width: 100% !important; height: auto; display: block; border-radius: 16px; }
}

/* 8.7) Pie de página: en celular pasa a UNA columna para que el correo y la
   dirección no se partan ("ventas@agr / osoft.com.e / c"). */
@media (max-width: 480px){
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-grid > * { grid-column: auto !important; } /* anula spans que crean 2ª columna */
  .footer-contact-item { word-break: normal; overflow-wrap: anywhere; }
  .footer-contact-item a { font-size: 0.95rem !important; }
}

/* 8.8) CAUSA RAÍZ DEL "MÓDULO CORRIDO A LA DERECHA":
   varias rejillas/stacks de tarjetas están hechas con <ul>, que arrastra la
   sangría por defecto del navegador (padding-inline-start: 40px). Eso desplaza
   el módulo entero ~40px a la derecha y rompe el centrado. Se resetea la lista
   en TODOS los contenedores de maquetación (no afecta listas de contenido). */
.tray-grid, .results-grid, .trayectoria-grid, .solutions-stack, .eco-chips,
.desafios-grid, .soluciones-grid, .services-grid, .module-grid, .portfolio-grid,
.valores-grid, .caso-grid, .pq-grid, .smart-ag-grid, .bigdata-grid,
.diagnostico-grid, .evidencia-grid, .certificaciones-grid, .agritrace-cards-grid,
.acopio-benefits-grid, .alianzas-grid, .card-grid, .challenges-grid,
.diagram-grid, .contact-info-grid, .testimonios-grid {
  list-style: none;
  padding-inline-start: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}
