
:root{
  --verde:#4CAF50;
  --verde-osc:#2e7d32;
  --verde-claro:#eaf7ed;
  --celeste:#1e88e5;
  --azul:#0f5fa8;
  --gris:#f5f7fa;
  --texto:#273444;
  --oscuro:#15212d;
  --whatsapp:#25d366;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Segoe UI',Roboto,Arial,sans-serif;
  color:var(--texto);
  background:#fff;
  padding-top:76px;
}
img{max-width:100%;height:auto}
a{transition:.2s ease}
.section{padding:90px 0}
.section-gray{background:var(--gris)}
.section-title{font-weight:800;color:#1f2933;letter-spacing:-.02em}
.section-subtitle{max-width:850px;margin-left:auto;margin-right:auto;color:#5d6978}
.sr-only-seo{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* PRELOADER */
#preloader{
  position:fixed;inset:0;background:#fff;z-index:99999;
  display:flex;align-items:center;justify-content:center;
  transition:opacity .35s ease,visibility .35s ease;
}
.preloader-content{text-align:center}
.preloader-logo{width:170px;max-width:75vw;margin-bottom:20px}
.loader{
  width:46px;height:46px;border-radius:50%;
  border:4px solid #e8edf2;border-top-color:var(--verde);
  animation:spin .9s linear infinite;margin:0 auto;
}
.preloader-hide{opacity:0;visibility:hidden}
@keyframes spin{to{transform:rotate(360deg)}}

/* NAV */
.navbar{
  min-height:76px;
  box-shadow:0 5px 22px rgba(15,35,55,.08);
}
.navbar-brand picture,.navbar-brand img{display:block}
.navbar-brand img{height:50px;width:auto}
.nav-link{font-weight:600;color:#334155!important}
.nav-link:hover{color:var(--verde-osc)!important}
.btn-success{
  background:var(--verde);
  border-color:var(--verde);
  border-radius:999px;
  font-weight:700;
  padding:.55rem 1rem;
}
.btn-success:hover{background:var(--verde-osc);border-color:var(--verde-osc)}
.nav-flags{display:flex;align-items:center;gap:11px}
.nav-flags a{
  display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;
}
.nav-flags span{
  font-size:24px;
  border-radius:4px;
  box-shadow:0 2px 6px rgba(0,0,0,.13);
}
.nav-flags span:hover{transform:translateY(-1px) scale(1.06)}

/* HERO */
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(135deg,#2e7d32 0%,#4CAF50 38%,#1e88e5 100%);
  color:#fff;
}
.hero:before{
  content:"";
  position:absolute;inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:42px 42px;
  opacity:.28;
}
.hero .container{position:relative;z-index:1}
.hero h1{
  font-size:clamp(2.1rem,4vw,4rem);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.04em;
}
.hero p{font-size:1.05rem;color:rgba(255,255,255,.94)}
.hero .lead{font-size:1.2rem;font-weight:500}
.badge-agro{
  background:rgba(255,255,255,.16);
  color:#fff;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  padding:.55rem .85rem;
  font-size:.86rem;
}
.btn-whatsapp{
  background:var(--whatsapp);
  color:#fff;
  font-weight:800;
  border-radius:999px;
  padding:.78rem 1.25rem;
  border:0;
  box-shadow:0 12px 25px rgba(37,211,102,.28);
}
.btn-whatsapp:hover{background:#1ebe5d;color:#fff;transform:translateY(-1px)}
.hero-image-card,.portfolio-card,.demo-box{
  background:#fff;
  border-radius:20px;
  padding:12px;
  box-shadow:0 18px 55px rgba(0,0,0,.22);
}
.carousel-inner{border-radius:15px}
.carousel img{border-radius:15px}
.carousel-control-prev,.carousel-control-next{width:9%}

/* CARDS */
.icon-box{
  background:#fff;
  border-radius:18px;
  padding:32px;
  height:100%;
  box-shadow:0 10px 30px rgba(15,35,55,.08);
  border:1px solid rgba(15,35,55,.05);
  transition:transform .25s ease, box-shadow .25s ease;
}
.icon-box:hover{
  transform:translateY(-7px);
  box-shadow:0 18px 42px rgba(15,35,55,.14);
}
.icon-box i{font-size:36px;color:var(--verde);margin-bottom:18px}
.icon-box h5,.icon-box h6{font-weight:850;color:#1f2933}
.icon-box p{color:#617082;margin-bottom:0}

/* BENEFICIOS */
.beneficios-agro{
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(135deg,#1f6b2e,#4CAF50);
  color:#fff;
}
.beneficios-agro .section-title,
.beneficios-agro .section-subtitle{color:#fff}
.beneficios-agro .icon-box{background:#fff;color:#333}
.beneficios-agro .icon-box i{color:#2e7d32}

/* MODULOS */
.modulos-agro{
  background:
    linear-gradient(180deg,#ffffff 0%,#f5f9fb 100%);
}
.modulos-agro .icon-box{text-align:center}
.modulos-agro .icon-box i{color:#1e88e5}

/* SECTORES */
.sectores{background:#fff}
.sector-pill{
  background:#fff;
  border:1px solid #e7edf3;
  border-radius:999px;
  padding:17px 20px;
  font-weight:750;
  box-shadow:0 8px 22px rgba(15,35,55,.06);
}
.sector-pill i{color:var(--verde);margin-right:9px}

/* CONTACTO */
#contacto ul,.portfolio-section ul{list-style:none;padding-left:0}
#contacto li,.portfolio-section li{margin-bottom:9px;font-weight:600}
.demo-box{padding:34px}
.form-control{
  border-radius:12px;
  min-height:48px;
  border:1px solid #d8e0e8;
}
.form-control:focus{
  border-color:var(--verde);
  box-shadow:0 0 0 .2rem rgba(76,175,80,.15);
}
textarea.form-control{min-height:120px}
.portfolio-section{
  background:linear-gradient(135deg,#1b2b38,#203d4f);
  color:#fff;
}
.portfolio-section h2,.portfolio-section h5{color:#fff}
.portfolio-section p{color:rgba(255,255,255,.88)}
.portfolio-card h5{color:#1f2933}

/* FOOTER */
.footer-agro{
  background:#15212d;
  color:#d7e0ea;
  padding:64px 0 28px;
}
.footer-agro h5{color:#fff;font-weight:800;margin-bottom:18px}
.footer-logo-box,.incloud-footer{
  background:#fff;
  display:inline-block;
  padding:10px 18px;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.22);
}
.footer-logo-box img{height:48px;width:auto}
.incloud-footer img{height:34px;width:auto}
.footer-links{list-style:none;margin:0;padding:0}
.footer-links li{margin-bottom:9px}
.footer-links a{color:#d7e0ea;text-decoration:none}
.footer-links a:hover{color:#8df0a5}
.footer-flags{display:flex;align-items:center;gap:14px}
.footer-flags a{text-decoration:none}
.footer-flags span{font-size:30px;border-radius:4px;box-shadow:0 2px 7px rgba(0,0,0,.22)}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:30px;
  padding-top:24px;
  color:#aebccc;
  font-size:.95rem;
}

/* WHATSAPP */
.wa-float{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9990;
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--whatsapp);
  color:#fff;
  text-decoration:none;
  padding:14px 20px;
  border-radius:999px;
  font-weight:850;
  box-shadow:0 14px 32px rgba(0,0,0,.25);
  animation:float 3s ease-in-out infinite;
}
.wa-float:hover{color:#fff;text-decoration:none;background:#1ebe5d}
.wa-float i{font-size:22px}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* RESPONSIVE */
@media (max-width:991px){
  body{padding-top:70px}
  .navbar{min-height:70px}
  .navbar-brand img{height:42px}
  .navbar-collapse{
    padding:18px 0;
    border-top:1px solid #eef2f6;
    margin-top:12px;
  }
  .nav-flags{margin-top:14px}
  .section{padding:68px 0}
  .hero{text-align:center}
  .hero-image-card{margin-top:38px}
}
@media (max-width:767px){
  .section{padding:56px 0}
  .icon-box{padding:26px}
  .demo-box{padding:24px}
  .footer-agro{text-align:center}
  .footer-flags{justify-content:center}
  .wa-float{right:14px;bottom:14px;padding:13px 15px}
  .wa-float span{display:none}
}
@media (max-width:480px){
  .hero h1{font-size:2rem}
  .hero .lead{font-size:1.05rem}
  .btn-whatsapp{width:100%;justify-content:center}
}
