/* =========================================================
   Agroequipos · Demo responsive
   Tipografía: Geomanist (manual de marca). Si los archivos
   están en /fonts se usan; si no, se usa Outfit como respaldo.
   ========================================================= */
@font-face { font-family: "Geomanist"; src: url("../fonts/geomanist-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Geomanist"; src: url("../fonts/geomanist-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geomanist"; src: url("../fonts/geomanist-medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Geomanist"; src: url("../fonts/geomanist-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --green: #00872D;
  --blue: #00589B;
  --yellow: #F9B300;
  --black: #111111;
  --white: #FFFFFF;
  --text: #333333;
  --muted: #555555;
  --tint: #F4F8F5;
  --line: #E2E8E3;
  --on-dark: #DCE4EC;
  --teal: #006C6A;
  --radius: 18px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 24px);
  --sec-pad: clamp(56px, 9vw, 96px);
  --font: "Geomanist", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--blue); }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--text); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { position: relative; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Marcas de agua derivadas del símbolo */
.wm { position: absolute; pointer-events: none; user-select: none; }
.wm--hitos  { right: -60px; top: -90px; width: 420px; opacity: .10; }
.wm--sol    { right: -120px; top: -40px; width: 560px; opacity: .07; }
.wm--serv   { left: -110px; bottom: -120px; width: 520px; opacity: .16; }
.wm--marcas { left: -100px; top: -110px; width: 460px; opacity: .09; }
.wm--foot   { right: -80px; bottom: -120px; width: 420px; opacity: .12; }

.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.kicker img { width: 18px; height: 18px; flex: 0 0 18px; }
.kicker--y { color: var(--yellow); }
.lead { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

.btn, .btn-white, .btn-line, .btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn { margin-top: 28px; background: var(--green); color: var(--white); font-size: 15px; padding: 14px 24px; border-radius: 999px; }
.btn:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); font-size: 16px; padding: 16px 26px; border-radius: 999px; }
.btn-white:hover { background: var(--yellow); color: var(--black); }
.btn-line { border: 1.5px solid var(--white); color: var(--white); font-size: 16px; padding: 15px 26px; border-radius: 999px; }
.btn-line:hover { background: var(--white); color: var(--blue); }
.btn-outline { margin-top: 34px; border: 1.5px solid var(--white); color: var(--white); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 14px 26px; }
.btn-outline:hover { background: var(--white); color: var(--black); }

/* ================= HERO ================= */
.hero { position: relative; height: clamp(600px, 100svh, 820px); overflow: hidden; background: var(--black); color: var(--white); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.80) 100%); }
.hero__tint  { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(0,135,45,.50) 0%, rgba(0,135,45,0) 42%, rgba(0,88,155,0) 58%, rgba(0,88,155,.55) 100%); }
.hero__symbol { position: absolute; right: 4%; bottom: 100px; width: clamp(100px, 19vw, 280px); opacity: .92; pointer-events: none; }

.nav { position: relative; z-index: 5; max-width: 1360px; margin: 0 auto; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 44px; width: auto; }
.nav__menu { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nav__menu a { color: var(--white); text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav__menu a:hover { color: var(--white); border-bottom-color: var(--yellow); }
.nav__wa { border: 1.5px solid var(--yellow); color: var(--yellow); text-decoration: none; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 13px 20px; min-height: 44px; display: inline-flex; align-items: center; }
.nav__wa:hover { background: var(--yellow); color: var(--black); }
.nav__wa--menu { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1.5px solid var(--yellow); background: transparent; color: var(--yellow); align-items: center; justify-content: center; cursor: pointer; }

.hero__rail { position: absolute; z-index: 3; left: 40px; top: 160px; bottom: 90px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__line { width: 1px; flex: 1 1 auto; background: rgba(255,255,255,.35); }
.hero__dot { width: 44px; height: 44px; border: 0; background: transparent; font-family: inherit; font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.7); cursor: pointer; }
.hero__dot.is-active { color: var(--yellow); font-weight: 700; }
.hero__scroll { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.75); }

.hero__content { position: relative; z-index: 3; max-width: 960px; margin: 0 auto; padding: clamp(90px, 14vh, 150px) 120px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__kicker { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .3em; color: var(--yellow); }
.hero__title { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.18; letter-spacing: .01em; text-transform: uppercase; transition: opacity .4s; }
.hero__content.is-changing .hero__title, .hero__content.is-changing .hero__kicker { opacity: 0; }
.hero__kicker { transition: opacity .4s; }

.hero__foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 40px 28px 100px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.hero__arrows { display: flex; gap: 12px; }
.hero__arrow { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hero__arrow:hover { border-color: var(--yellow); color: var(--yellow); }

/* ================= HITOS ================= */
.hitos { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--blue) 0%, var(--blue) 55%, var(--teal) 100%); color: var(--white); }
.hitos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; padding-block: 56px; }
.hito { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid rgba(255,255,255,.28); padding-top: 24px; }
.hito__icon { width: 52px; height: 52px; border-radius: 999px; border: 1.5px solid var(--yellow); color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.hito__icon svg { width: 24px; height: 24px; }
.hito h3 { margin-top: 6px; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.hito p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--on-dark); }

/* ================= SECCIONES ================= */
.sec { position: relative; overflow: hidden; padding-block: var(--sec-pad); }
.sec--white { background: var(--white); }
.sec--tint { background: var(--tint); border-block: 1px solid var(--line); }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.sec__head > div { max-width: 640px; }
.link-more { font-weight: 600; font-size: 16px; text-decoration: none; }

.sol-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sol-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.sol-card:hover { color: var(--text); transform: translateY(-4px); border-color: var(--green); box-shadow: 0 14px 30px rgba(0, 88, 155, .12); }
.sol-card__icon { width: 56px; height: 56px; border-radius: 999px; background: linear-gradient(135deg, var(--green) 0%, var(--green) 45%, var(--blue) 100%); color: var(--white); display: flex; align-items: center; justify-content: center; }
.sol-card__icon svg { width: 26px; height: 26px; }
.sol-card h3 { margin-top: 6px; font-size: 22px; }
.sol-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.sol-card__brand { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--green); }

.serv { display: flex; flex-wrap: wrap; gap: 56px; }
.serv__intro { flex: 1 1 340px; min-width: 0; }
.serv__list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.serv-card { display: flex; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.serv-card img { flex: 0 0 180px; width: 180px; height: 130px; border-radius: 12px; object-fit: cover; }
.serv-card > div { flex: 1 1 auto; min-width: 0; }
.serv-card__n { font-size: 13px; font-weight: 600; color: var(--green); }
.serv-card h3 { margin: 4px 0 8px; font-size: 22px; }
.serv-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: inherit; font-size: 14px; font-weight: 500; padding: 10px 18px; min-height: 44px; border-radius: 999px; border: 1px solid #C9D4CC; background: var(--white); color: var(--text); cursor: pointer; }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--white); font-weight: 600; }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.prod { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.prod:hover { color: var(--text); border-color: var(--green); box-shadow: 0 14px 30px rgba(0, 88, 155, .10); }
.prod__img { height: 200px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.prod__img img { width: 64px; opacity: .35; }
.prod__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.prod__tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.prod__name { font-size: 21px; font-weight: 600; }
.prod__more { font-size: 14px; color: var(--muted); margin-top: 6px; }

.marcas { position: relative; overflow: hidden; padding-block: var(--sec-pad); background: linear-gradient(250deg, var(--blue) 0%, var(--blue) 60%, var(--teal) 100%); color: var(--white); }
.marcas h2 { max-width: 720px; }
.brand-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.brand { background: var(--white); border-radius: 16px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.brand__logo { height: 76px; width: 100%; display: flex; align-items: center; justify-content: center; }
.brand__logo img { width: var(--w); max-width: 100%; height: auto; }
.brand__rule { width: 32px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--green), var(--yellow)); }
.brand a { font-size: 14px; font-weight: 600; text-decoration: none; }

.hist { display: flex; flex-wrap: wrap; gap: 56px; }
.hist__intro { flex: 1 1 340px; min-width: 0; }
.hist__img { margin-top: 32px; width: 100%; height: 260px; border-radius: var(--radius); object-fit: cover; }
.timeline { flex: 1 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: #444; }
.timeline__y { flex: 0 0 90px; font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--green); }

.cta-wrap { padding-bottom: var(--sec-pad); }
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--green) 0%, var(--green) 50%, var(--blue) 100%); color: var(--white); border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta__symbol { position: absolute; right: 30%; top: -70px; width: 260px; opacity: .14; pointer-events: none; }
.cta__text { position: relative; max-width: 640px; }
.cta__text h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; }
.cta__text p { margin: 14px 0 0; font-size: 17px; color: #E6F3EA; }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* ================= FOOTER ================= */
.foot { position: relative; overflow: hidden; background: var(--black); color: var(--on-dark); }
.foot__bar { height: 4px; background: linear-gradient(90deg, var(--yellow) 0%, var(--green) 50%, var(--blue) 100%); }
.foot .wrap { padding-block: 64px 32px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.foot__logo { height: 46px; width: auto; }
.foot__grid p { margin: 20px 0 0; font-size: 14px; line-height: 1.6; }
.foot__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot__col a { color: var(--on-dark); text-decoration: none; }
.foot__col a:hover { color: var(--yellow); }
.foot__h { font-weight: 600; color: var(--white); margin-bottom: 4px; }
.foot__col .foot__mail { color: var(--yellow); word-break: break-all; }
.foot__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2E2E2E; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.foot__legal a { color: var(--on-dark); text-decoration: none; }
.foot__legal a:hover { color: var(--yellow); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 999px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); transition: background .2s, transform .2s; }
body.menu-open .wa-float { display: none; }
.wa-float:hover { background: var(--blue); color: var(--white); transform: scale(1.06); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav__menu { gap: 8px 20px; }
}

@media (max-width: 1080px) {
  .nav { padding: 20px var(--gutter); }
  .nav__toggle { display: inline-flex; }
  .nav > .nav__wa { display: none; }
  .nav__wa--menu { display: inline-flex; margin-top: 12px; }
  .nav__menu { position: fixed; inset: 0; z-index: 40; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 6px; padding: 80px 24px; background: rgba(17,17,17,.97); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav__menu a { font-size: 16px; padding: 12px 0; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav.is-open .nav__toggle { position: relative; z-index: 45; }
  .hitos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__rail { display: none; }
  .hero__content { padding: clamp(80px, 16vh, 140px) var(--gutter) 0; }
  .hero__foot { padding: 0 var(--gutter) 22px; }
  .hero__symbol { right: 16px; bottom: 90px; }
  .wm--sol, .wm--serv { width: 340px; }
}

@media (max-width: 640px) {
  .nav__logo img { height: 34px; }
  .hero { height: clamp(560px, 92svh, 720px); }
  .hero__tint { background: linear-gradient(160deg, rgba(0,135,45,.45) 0%, rgba(0,135,45,0) 40%, rgba(0,88,155,0) 60%, rgba(0,88,155,.5) 100%); }
  .hero__kicker { font-size: 11px; }
  .hero__tag { display: none; }
  .hero__foot { justify-content: center; }
  .hero__symbol { width: 96px; bottom: 84px; }
  .hitos__grid { grid-template-columns: 1fr; gap: 0; padding-block: 24px; }
  .hito { flex-direction: row; flex-wrap: wrap; align-items: flex-start; column-gap: 16px; row-gap: 4px; border-top: 0; padding: 14px 0; }
  .hito__icon { width: 44px; height: 44px; flex: 0 0 44px; }
  .hito__icon svg { width: 20px; height: 20px; }
  .hito h3 { margin: 0; font-size: 20px; flex: 1 1 calc(100% - 60px); align-self: center; }
  .hito p { flex: 1 1 100%; padding-left: 60px; font-size: 14px; }
  .wm--hitos { width: 220px; right: -60px; top: -50px; }
  .sec__head { margin-bottom: 28px; }
  .sol-grid { grid-template-columns: 1fr; gap: 12px; }
  .sol-card { padding: 22px; }
  .serv { gap: 32px; }
  .serv-card { flex-direction: column; align-items: stretch; gap: 16px; padding: 14px; }
  .serv-card img { flex: none; width: 100%; height: 180px; }
  .serv-card > div { padding: 0 6px 6px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prod__img { height: 120px; }
  .prod__body { padding: 12px 14px 14px; }
  .prod__name { font-size: 16px; }
  .prod__tag, .prod__more { font-size: 11px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .brand { padding: 16px 12px; gap: 12px; }
  .brand__logo { height: 64px; }
  .brand a { font-size: 13px; }
  .wm--marcas { width: 240px; left: -70px; top: -60px; }
  .hist { gap: 32px; }
  .hist__img { height: 200px; }
  .timeline li { gap: 16px; padding: 18px 0; font-size: 15px; }
  .timeline__y { flex-basis: 64px; font-size: 22px; }
  .cta { border-radius: 22px; }
  .cta__symbol { width: 170px; right: -40px; top: -50px; opacity: .16; }
  .cta__actions { width: 100%; flex-direction: column; }
  .cta__actions a { width: 100%; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
  .foot .wrap { padding-block: 40px 28px; }
  .wm--foot { width: 220px; right: -60px; bottom: -70px; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (max-width: 380px) {
  .prod-grid { grid-template-columns: 1fr; }
}
