:root{
  /* Base */
  --text: #0E1726;
  --muted: rgba(14,23,38,.72);

  /* Brand */
  --brand: #0C3B2E;     /* verde profundo */
  --brand2: #268DBE;    /* azul tipo logo */
  --accent: #9EF01A;    /* lima suave */
  --light: #F6F8FB;
  --white: #ffffff;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow2: 0 18px 45px rgba(0,0,0,.12);

  /* Layout */
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(158,240,26,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(11,47,58,.08), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--light));
}

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* ===================== TOPBAR ===================== */
.topbar{
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color: rgba(255,255,255,.9);
  font-size: 13px;
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0;
  gap: 10px;
}
.link{ color: rgba(255,255,255,.95); text-decoration: none; }
.link:hover{ text-decoration: underline; }
.dot{ margin: 0 10px; opacity: .7; }

/* ===================== HEADER ===================== */
.header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246,248,251,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14,23,38,.08);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 12px;
}

.brand{ display:flex; align-items:center; gap: 12px; text-decoration:none; color: inherit; }
.brand__logo{
  width: 42px; height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display:flex; align-items:center; justify-content:center;
  color: #fff; font-weight: 800;
  box-shadow: var(--shadow);
}

.brand__tag{ font-size: 12px; color: var(--muted); }
/* ===== BRAND SOLO TEXTO ===== */
.brand{
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand__name--text{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}


/* Un toque más tech en hover */
.brand__name--text:hover{
  opacity: 0.85;
}

.nav{ display:flex; align-items:center; gap: 14px; }
.nav a{
  color: rgba(14,23,38,.85);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover{ color: rgba(14,23,38,1); }

.navbtn{
  display:none;
  border: 1px solid rgba(14,23,38,.12);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(14,23,38,.12);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  font-weight: 800;
  text-decoration:none;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); filter: brightness(1.02); }
.btn--ghost{
  background: #fff;
  color: rgba(14,23,38,.92);
}
.btn--small{ padding: 10px 14px; border-radius: 12px; }

/* ===================== HERO (como maqueta) ===================== */
.hero--bg{
  position: relative;
  padding: 56px 0 34px;
  background-image: url("assets/demo-3.jpg"); /* OJO: carpeta asset (no assets) */
  background-size: cover;
  background-position: 85% center;
 }
.hero__overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246,248,251,0.92) 0%, rgba(246,248,251,0.86) 45%, rgba(246,248,251,0.25) 85%),
    radial-gradient(900px 500px at 20% 10%, rgba(158,240,26,.20), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(11,47,58,.18), transparent 60%);
}


.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}
.hero__grid--bg{
  position: relative;
  z-index: 2;
  grid-template-columns: 1.15fr .85fr;
}

.hero__copy--bg{
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(14,23,38,.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow2);
}

.pill{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12,59,46,.08);
  color: rgba(12,59,46,.95);
  font-weight: 700;
  font-size: 13px;
}

h1{
  margin: 12px 0 10px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -.6px;
}
.hl{ color: rgba(12,59,46,.98); }

.lead{
  margin: 0 0 16px;
  font-size: 16px;
  color: rgba(14,23,38,.8);
  line-height: 1.6;
}
.hero__cta{ display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hero__badges{ display:flex; gap: 10px; flex-wrap: wrap; }

.badge{
  background: #fff;
  border: 1px solid rgba(14,23,38,.10);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.hero__media--bg{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
}

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat{
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(14,23,38,.10);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.stat__n{ font-weight: 900; color: rgba(12,59,46,.95); }
.stat__t{ color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Separadores curvos */
.wave{ width: 100%; line-height: 0; background: transparent; }
.wave svg{ width: 100%; height: 92px; display:block; }
.wave path{ fill: #ffffff; opacity: 1; }
.wave--down{ margin-top: -10px; }
.wave--up{ margin-bottom: -10px; }

/* ===================== SECTIONS ===================== */
.section{ padding: 54px 0; }
.section--alt{ background: #fff; border-top: 1px solid rgba(14,23,38,.06); border-bottom: 1px solid rgba(14,23,38,.06); }

.section__head{ margin-bottom: 18px; }
.section__head h2{ margin: 0 0 8px; font-size: 28px; }
.section__head p{ margin: 0; color: var(--muted); line-height: 1.6; }

/* Fondo foto suave */
.section--photo{
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.92)),
    url("assets/demo-3.jpg");
  background-size: cover;
  background-position: center;
  border-top: 1px solid rgba(14,23,38,.06);
  border-bottom: 1px solid rgba(14,23,38,.06);
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(14,23,38,.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card h3{ margin: 0 0 8px; }
.card p{ margin: 0; color: var(--muted); line-height: 1.6; }

/* ===================== TABS + PRODUCTS ===================== */
.tabs{ display:flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.tab{
  border: 1px solid rgba(14,23,38,.12);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tab:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.tab.is-active{
  background: linear-gradient(135deg, rgba(12,59,46,.12), rgba(11,47,58,.10));
  border-color: rgba(12,59,46,.22);
}

.products{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Cards cat芍logo */
.pcard{
  background: #fff;
  border: 1px solid rgba(14,23,38,.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pcard:hover{ transform: translateY(-2px); box-shadow: var(--shadow2); }

.pcard__img{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(14,23,38,.10);
  box-shadow: var(--shadow);
}
.pcard__img img{
  width: 100%;
  height: 240px;          /* 👈 más altura */
  object-fit: contain;   /* 👈 muestra la imagen completa */
  background: #f6f8fb;   /* 👈 fondo limpio cuando sobra espacio */
  padding: 12px;         /* 👈 aire tipo catálogo profesional */
  display: block;
}


.pcard__title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.pcard__title h3{ margin: 0; font-size: 16px; line-height: 1.25; }

.tag{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(158,240,26,.18);
  color: rgba(12,59,46,.95);
  border: 1px solid rgba(12,59,46,.14);
  white-space: nowrap;
}

.meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mitem{
  background: rgba(246,248,251,.8);
  border: 1px solid rgba(14,23,38,.06);
  border-radius: 14px;
  padding: 10px 10px;
  font-size: 13px;
  color: rgba(14,23,38,.85);
}
.mitem b{ display:block; font-size: 12px; color: rgba(14,23,38,.55); margin-bottom: 2px; }

.pcard ul{ margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.pcard .btn{ width: 100%; margin-top: auto; }

.noteCard{
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(12,59,46,.10), rgba(11,47,58,.08));
  border: 1px solid rgba(12,59,46,.16);
  border-radius: var(--radius);
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.muted{ color: var(--muted); }
.tiny{ font-size: 12px; }

/* ===================== STEPS ===================== */
.steps{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.step{
  background: #fff;
  border: 1px solid rgba(14,23,38,.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display:flex;
  gap: 12px;
}
.step__n{
  width: 38px; height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  flex: 0 0 auto;
}

/* ===================== GALLERY ===================== */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(14,23,38,.10);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

/* ===================== FAQ ===================== */
.faq details{
  background: #fff;
  border: 1px solid rgba(14,23,38,.10);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.faq summary{ cursor: pointer; font-weight: 900; }
.faq p{ color: var(--muted); line-height: 1.6; }

/* ===================== CONTACT ===================== */
.contact{
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(158,240,26,.18), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(11,47,58,.16), transparent 60%),
    #fff;
}
.contact__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:start;
}
.contactCards{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.contactCard{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(14,23,38,.10);
  background:#fff;
  box-shadow: var(--shadow);
  text-decoration:none;
  color: inherit;
  min-width: 230px;
}
.cc__icon{
  width: 40px; height: 40px;
  border-radius: 14px;
  background: rgba(12,59,46,.10);
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
}

.form{
  background:#fff;
  border: 1px solid rgba(14,23,38,.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
label{ display:block; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
input, select, textarea{
  width: 100%;
  margin-top: 6px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(14,23,38,.12);
  outline: none;
  font: inherit;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(12,59,46,.35);
  box-shadow: 0 0 0 4px rgba(158,240,26,.18);
}

/* ===================== FOOTER ===================== */
.footer{
  padding: 22px 0;
  border-top: 1px solid rgba(14,23,38,.08);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: rgba(14,23,38,.75);
  font-size: 13px;
}
.footer__links a{ color: inherit; text-decoration:none; }
.footer__links a:hover{ text-decoration: underline; }

/* ===================== FLOATING WHATSAPP ===================== */
.fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: var(--shadow2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fab:hover{ transform: translateY(-2px); }

/* ===================== MODAL ===================== */
.modal{ position: fixed; inset: 0; display:none; z-index: 60; }
.modal.is-open{ display:block; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); }
.modal__content{
  position: relative;
  width: min(980px, calc(100% - 24px));
  margin: 6vh auto;
  background: #fff;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow2);
}
.modal__content img{ width:100%; height: auto; display:block; }
.modal__close{
  position:absolute;
  top: 10px; right: 10px;
  border: 0;
  background: rgba(255,255,255,.9);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .products{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }
  .contact__grid{ grid-template-columns: 1fr; }

  .navbtn{ display:block; }
  .nav{
    position: absolute;
    right: 16px;
    top: 64px;
    background:#fff;
    border: 1px solid rgba(14,23,38,.12);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow2);
    display:none;
    flex-direction: column;
    gap: 10px;
    min-width: 210px;
  }
  .nav.is-open{ display:flex; }
}

@media (max-width: 768px){
  /* Topbar m芍s limpio */
  .topbar__inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .topbar{ font-size: 12px; }

  /* HERO m車vil: que se parezca a la maqueta */
  .hero--bg{
    padding: 22px 0 18px;
    background-position: 85% center;
  }
  .hero__grid--bg{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero__copy--bg{
    padding: 16px 14px;
    border-radius: 18px;
  }
  .hero__copy--bg h1{
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -0.4px;
  }
  .lead{ font-size: 15px; }
  .badge{ font-size: 12px; padding: 9px 10px; }

  /* Stats en columna */
  .stats{
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  /* FAB */
  .fab{
    bottom: 12px;
    right: 12px;
    padding: 10px 12px;
    font-size: 14px;
  }
}
/* ===== ICONOS LINEALES (SVG) EN VARIABLES ===== */
.pcard ul{
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.pcard li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.pcard li .vicon{
  width: 22px;
  height: 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  background: rgba(12,59,46,.10);
  border: 1px solid rgba(12,59,46,.14);
  margin-top: 1px;
}

.pcard li .vicon svg{
  width: 14px;
  height: 14px;
  stroke: rgba(12,59,46,.95);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 1024px){
  .pcard__img img{
    height: 280px;
  }
}
/* Ocultar las tarjetas stats del hero (Clima/Suelo/Hidroponía) */
.hero__media .stats {
  display: none !important;
}
/* Botón outline elegante (Cotizar) */
/* Botón outline elegante (header) */
.btn--outline{
  background: transparent;
  color: rgba(12,59,46,.95);
  border: 2px solid rgba(12,59,46,.35);
  box-shadow: none;
  font-weight: 800;
}

.btn--outline:hover{
  background: rgba(12,59,46,.08);
  border-color: rgba(12,59,46,.6);
  box-shadow: var(--shadow);
}

/* ===== LOGO RITEC EN HEADER ===== */
.brand__img{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14,23,38,.10);
  background: #fff;
}

.brand__wordmark{
  height: 22px;
  width: auto;
  display: block;
  margin-bottom: 2px;
}

/* Si en mobile quieres solo el ícono (más limpio) */
@media (max-width: 520px){
  .brand__wordmark{ display:none; }
  .brand__tag{ font-size: 11px; }
}
/* Acceso a sistema (SaaS style) */
.nav__system{
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14,23,38,.18);
  background: #fff;
  font-weight: 700;
  color: rgba(14,23,38,.9);
}

.nav__system:hover{
  background: rgba(12,59,46,.06);
  border-color: rgba(12,59,46,.35);
}
.hero__cta .btn{
  white-space: nowrap;
}

@media (max-width: 768px){
  .hero__cta{
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn{
    width: 100%;
  }
}
/* FIX: mover imagen hero a la derecha (evitar personas) */
.hero--bg{ background-position: 85% center !important; /* prueba 80% - 90% */ } /* FIX mobile */ @media (max-width: 768px){ .hero--bg{ background-position: right top !important; } }