/* Updated: 2026-02-03 */
/* Agroindustrias – unified visual system aligned with Banano/Cacao */

/* Palette */
:root {
  --agro-navy: #0b1f3f;
  --agro-blue: #0b4bb3;
  --agro-gold: #d4a445;
  --agro-brown-1: #3c2415;
  --agro-brown-2: #2a1810;
}

/* Hero */
.agro-hero {
  width: 100vw;
  height: 100vh;
  background-image: url('assets/agroindustrias.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Disable parallax */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.agro-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 33, 69, 0.751);
  z-index: 0;
}

.agro-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  padding: 64px 48px;
  color: #fff;
  text-align: center;
}

.agro-eyebrow {
  display: none;
}

.agro-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.agro-hero-title .highlight {
  color: #3fae4d;
  display: inline;
}

.agro-hero-subtitle {
  font-size: 1.2rem;
  color: #d0d4dc;
  margin: 0 0 32px;
  line-height: 1.6;
  font-weight: 400;
}

.agro-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.agro-btn {
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agro-btn.primary { background: #3fae4d; color: #fff; }
.agro-btn.primary:hover { background: #2d8a3b; box-shadow: 0 10px 24px rgba(63,174,77,0.35); transform: translateY(-2px); }
.agro-btn.secondary { background: transparent; color: #fff; border-color: #fff; }
.agro-btn.secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; box-shadow: 0 10px 24px rgba(255,255,255,0.15); transform: translateY(-2px); }

/* Subsección: Entendemos tu Industria */
.agro-entendemos {
  background: linear-gradient(135deg, rgba(11,31,63,1) 0%, rgba(11,31,63,0.94) 100%);
  padding: 120px 0 80px 0;
  color: #fff;
  margin-top: none;
}

.entendemos-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.entendemos-badge {
  display: inline-block;
  background: rgba(99, 179, 237, 0.15);
  color: #63b3ed;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.entendemos-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 24px;
  line-height: 1.2;
}

.entendemos-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d0d4dc;
  margin: 0 0 20px;
}

.entendemos-brand {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d0d4dc;
  margin: 0;
}

.entendemos-brand strong {
  color: #3fae4d;
  font-weight: 700;
}

.entendemos-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.entendemos-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Subsección: Desafíos (Problemas que Resolvemos) */
.agro-desafios {
  background: linear-gradient(135deg, rgba(11,31,63,1) 0%, rgba(11,31,63,0.94) 100%);
  padding: 80px 0;
  color: #fff;
}

.desafios-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 0 0 56px;
}

.desafios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.desafio-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.desafio-card.featured {
  border: 2px solid #63b3ed;
}

.desafio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(63, 174, 77, 0.4), 0 0 60px rgba(63, 174, 77, 0.2);
}

.desafio-card:hover .desafio-icon {
  background: #3fae4d;
}

.desafio-card:hover .desafio-icon i,
.desafio-card:hover .desafio-icon svg {
  color: #fff !important;
  stroke: #fff !important;
}

.desafio-icon {
  width: 64px;
  height: 64px;
  background: rgba(99, 179, 237, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.desafio-icon i,
.desafio-icon svg {
  font-size: 1.8rem;
  width: 32px;
  height: 32px;
  color: #3fae4d !important;
  stroke: #3fae4d !important;
}

/* Botón Conoce más en desafios */
.agro-desafios-btn {
  display: inline-block;
  padding: 14px 40px;
  background-color: #0b4bb3;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.agro-desafios-btn:hover {
  background-color: #fff;
  color: #0b4bb3;
  box-shadow: 0 0 20px rgba(99, 179, 237, 0.6);
}

.desafio-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 12px;
  line-height: 1.3;
}

.desafio-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #718096;
  margin: 0;
}

/* Subsección: Soluciones */
.agro-soluciones {
  background: #f5f5f5;
  padding: 80px 0;
}

.soluciones-header {
  text-align: center;
  margin-bottom: 56px;
}

.soluciones-badge {
  display: inline-block;
  background: rgba(99, 179, 237, 0.15);
  color: #63b3ed;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.soluciones-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #2d3748;
  margin: 0;
  line-height: 1.3;
}

.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.solucion-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.solucion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.solucion-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.solucion-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.solucion-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #718096;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.solucion-content {
  padding: 24px 20px 28px;
}

.solucion-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 12px;
  line-height: 1.3;
}
body.dark-theme .solucion-title {
  color: #032b5f !important;
}
.solucion-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #718096;
  margin: 0;
}
body.dark-theme .solucion-desc {
  color: #000a75 !important;
}
/* Section wrappers */
.agro-section-dark { background: linear-gradient(135deg, rgba(11,31,63,1) 0%, rgba(11,31,63,0.94) 100%); padding: 72px 0; color: #fff; }
.agro-section-light { background: #f5f5f5; padding: 72px 0; color: #000; }

.agro-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.agro-section-dark .section-title { color: #fff; }
.agro-section-dark .section-title .highlight { color: var(--agro-gold); }
.agro-section-dark .section-text { color: #e8e8e8; }

.agro-section-light .section-title { color: var(--agro-navy); }
.agro-section-light .section-title .highlight { color: var(--agro-blue); }
.agro-section-light .section-text { color: #444; }

/* Cards override for dark/light contexts */
.agro-section-dark .card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); }
.agro-section-dark .card h3 { color: #fff; }
.agro-section-dark .card p { color: #e8e8e8; }
.agro-section-dark .card .icon { color: var(--agro-gold); }

.agro-section-light .card { background: #fff; color: #000; border: 1px solid #e8e8e8; }
.agro-section-light .card .icon { color: var(--agro-blue); }

/* Clients slider wrapper (reuses exportadoras.css marquee) */
.agro-clientes { background: linear-gradient(135deg, rgba(29, 78, 59, 0.98) 0%, rgba(11, 31, 63, 0.98) 100%); padding: 64px 0 72px; }
.agro-clientes .section-title { color: #fff; text-align: center; }
.agro-clientes .section-title .highlight { color: #3fae4d; }
.agro-clientes .section-text { color: #e8e8e8; text-align: center; max-width: 880px; margin: 0 auto 20px; }

/* Próximos Proyectos Agritech */
.agro-proyectos {
  background: linear-gradient(135deg, rgba(17, 29, 45, 1) 0%, rgba(11, 20, 35, 1) 100%);
  padding: 80px 0;
  color: #fff;
}

.proyectos-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.proyectos-badge {
  display: inline-block;
  background: rgba(99, 179, 237, 0.15);
  color: #63b3ed;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.proyectos-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 24px;
  line-height: 1.2;
}

.proyectos-title .highlight {
  color: #3fae4d;
}

.proyectos-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d0d4dc;
  margin: 0 0 20px;
}

.proyectos-text:last-child {
  margin-bottom: 0;
}

.proyectos-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.proyectos-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* CTA banner (neutral, harmonized with Testimonios) */
.agro-cta { background: #f5f5f5; padding: 80px 0; text-align: center; }
.agro-cta .cta-title { font-size: 2.4rem; font-weight: 800; color: #000; margin: 0 0 12px; }
.agro-cta .cta-title .highlight { color: #3fae4d; }
.agro-cta .cta-desc { color: #666; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .agro-hero-title { font-size: 2.2rem; }
  .desafios-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .soluciones-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .agro-hero { min-height: 70vh; padding-top: 48px; }
  .agro-hero-inner { padding: 32px 24px; }
  .agro-hero-title { font-size: 2rem; }
  .agro-hero-subtitle { font-size: 1rem; }

  .agro-entendemos { margin-top: -24px; }

  .agro-desafios { margin-top: -30px; }
  
  .entendemos-layout { grid-template-columns: 1fr; gap: 40px; }
  .entendemos-title { font-size: 2rem; }
  .entendemos-visual { padding: 20px; }
  
  .desafios-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; justify-items: stretch; padding: 0 12px; box-sizing: border-box; }
  .desafio-card { width: 100%; min-width: 0; padding: 16px 16px; }
  .desafio-title { line-height: 1.2; }
  .desafio-desc { line-height: 1.35; }
  .desafios-title { font-size: 1.8rem; margin-bottom: 40px; }
  
  .soluciones-grid { grid-template-columns: 1fr; gap: 20px; }
  .soluciones-title { font-size: 1.8rem; }
  
  .proyectos-layout { grid-template-columns: 1fr; gap: 40px; }
  .proyectos-title { font-size: 1.8rem; }
  .proyectos-visual { padding: 20px; }
}

/* Formulario Agroindustrias - Override form-final.css */
.agro-section-dark + .form-section .form-header .section-title .highlight,
#lead-agroindustrias + .form-disclaimer ~ .form-header .section-title .highlight,
.form-section .form-header .section-title .highlight {
  color: #3fae4d;
}

#lead-agroindustrias {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

#lead-agroindustrias input,
#lead-agroindustrias textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fafafa;
  color: #000;
  transition: all 0.2s ease;
}

#lead-agroindustrias input::placeholder,
#lead-agroindustrias textarea::placeholder {
  color: #999;
}

#lead-agroindustrias input:focus,
#lead-agroindustrias textarea:focus {
  outline: none;
  border-color: #3fae4d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(63, 174, 77, 0.1);
}

#lead-agroindustrias textarea {
  grid-column: span 2;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

#lead-agroindustrias .form-button {
  grid-column: span 2;
  padding: 16px 32px;
  background: #3fae4d;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 6px;
}

#lead-agroindustrias .form-button:hover {
  background: #2d8a3b;
  box-shadow: 0 10px 24px rgba(63, 174, 77, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .form-wrapper {
    width: 92%;
    padding: 28px 16px 32px;
  }
  
  .form-wrapper iframe {
    width: 90% !important;
  }
  
  #lead-agroindustrias {
    grid-template-columns: 1fr;
  }
  
  #lead-agroindustrias textarea {
    grid-column: span 1;
  }
  
  #lead-agroindustrias .form-button {
    grid-column: span 1;
  }
}

/* Dark Theme Support */
body.dark-theme .agro-desafios {
  background: var(--dark-bg1) !important;
}

body.dark-theme .desafios-title {
  color: #ffffff !important;
}

body.dark-theme .desafio-card {
  background: var(--dark-bg2) !important;
  border-color: rgba(100, 181, 246, 0.2) !important;
  color: #fff !important;
}

body.dark-theme .desafio-card:hover {
  border-color: rgba(100, 181, 246, 0.6) !important;
  box-shadow: 0 12px 40px rgba(2, 209, 255, 0.428) !important;
}

body.dark-theme .desafio-card.featured {
  border-color: rgba(100, 181, 246, 0.4) !important;
}

body.dark-theme .desafio-title {
  color: #ffffff !important;
}

body.dark-theme .desafio-desc {
  color: #d1d5db !important;
}

body.dark-theme .desafio-icon {
  background: rgba(100, 181, 246, 0.15) !important;
}

body.dark-theme .desafio-icon i,
body.dark-theme .desafio-icon svg {
  color: #3fae4d !important;
  stroke: #3fae4d !important;
}

body.dark-theme .desafio-icon i:hover,
body.dark-theme .desafio-icon svg:hover {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

body.dark-theme .testimonios-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .testimonios-title {
  color: #ffffff !important;
}

body.dark-theme .testimonios-title .highlight {
  color: #64b5f6 !important;
}

body.dark-theme .testimonios-card {
  background: var(--dark-bg2) !important;
  border-color: rgba(100, 181, 246, 0.2) !important;
}

body.dark-theme .testimonios-card:hover {
  border-color: rgba(100, 181, 246, 0.6) !important;
  box-shadow: 0 12px 32px rgba(11, 75, 179, 0.25) !important;
}

body.dark-theme .testimonios-quote i {
  color: #64b5f6 !important;
}

body.dark-theme .testimonios-text {
  color: #d1d5db !important;
}

body.dark-theme .testimonios-author-name {
  color: #ffffff !important;
}

body.dark-theme .testimonios-author-role {
  color: #b0bfd9 !important;
}

body.dark-theme .testimonios-avatar {
  background: var(--dark-bg3) !important;
  color: #ffffff !important;
}

body.dark-theme .testimonios-rating i {
  color: #fbbf24 !important;
}

body.dark-theme .form-section {
  background: var(--dark-bg1) !important;
}

body.dark-theme .form-wrapper {
  background: var(--dark-bg2) !important;
}

body.dark-theme .section-title {
  color: #ffffff !important;
}

body.dark-theme .section-title .highlight {
  color: #3fae4d !important;
}

body.dark-theme .form-section .section-text {
  color: #d1d5db !important;
}

body.dark-theme #lead-agroindustrias input,
body.dark-theme #lead-agroindustrias textarea {
  background: var(--dark-bg1) !important;
  color: #ffffff !important;
  border-color: rgba(100, 181, 246, 0.2) !important;
}

body.dark-theme #lead-agroindustrias input::placeholder,
body.dark-theme #lead-agroindustrias textarea::placeholder {
  color: #888 !important;
}

body.dark-theme #lead-agroindustrias input:focus,
body.dark-theme #lead-agroindustrias textarea:focus {
  border-color: #64b5f6 !important;
  box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.15) !important;
}

body.dark-theme #lead-agroindustrias .form-button {
  background: #3fae4d !important;
}

body.dark-theme #lead-agroindustrias .form-button:hover {
  background: #2d8a3b !important;
}

/* Ecosistema IoT Section */
.iot-card-premium {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 100%;
}

.iot-card-premium:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #8cd627;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.iot-card-icon {
  width: 64px !important;
  height: 64px !important;
  background: rgba(140, 214, 39, 0.1);
  border: 1px solid rgba(140, 214, 39, 0.3);
  border-radius: 50%;
  color: #8cd627;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.iot-card-icon i,
.iot-card-icon svg {
  width: 100% !important;
  height: 100% !important;
}

.iot-card-content {
  flex-grow: 1;
}

.iot-card-title {
  color: #fff;
  margin: 0 0 6px 0 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.iot-card-text {
  color: #b0bfd9;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .iot-card-premium {
    padding: 20px;
    gap: 16px;
  }
  
  .iot-card-icon {
    width: 40px !important;
    height: 40px !important;
  }
}
