/* ==========================================================================
   AGRAR Ingeniería — tokens de color de DESIGN.md + tipografía de marca
   (Michroma / IBM Plex Serif) + iconografía Material Symbols (Google)
   ========================================================================== */

:root {
  --color-bone-white: #fafffa;
  --color-press-black: #121613;
  --color-ink: #000000;
  --color-slate-verdant: #232924;
  --color-newsprint-gray: #516254;
  --color-muted-sage: #c8d2c8;
  --color-highlighter-green: #2bee4b;
  --color-shadow-moss: #93b799;
  --color-echo-green: #c4e4c9;

  --font-title: 'Michroma', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;

  --shadow-lg: rgba(16, 94, 29, 0.45) 1px 8px 20px 0px;

  --page-max-width: 1400px;
  --section-gap: 80px;
  --element-gap: 20px;

  --radius-pills: 10px;
  --radius-images: 14px;
  --radius-buttons: 5px;

  --ease: cubic-bezier(.22, .8, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bone-white);
  color: var(--color-press-black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-highlighter-green); color: #000;
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

.wrap {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 30px;
}

a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--font-title); font-weight: 400; }

/* ---------- scroll-reveal animations ---------- */

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-animate].in-view { opacity: 1; transform: none; }

.advantages-grid [data-animate],
.product-grid [data-animate],
.timeline [data-animate] {
  transition-delay: calc(var(--stagger, 0) * 70ms);
}
.advantages-grid > :nth-child(1), .product-grid > :nth-child(1), .timeline > :nth-child(1) { --stagger: 0; }
.advantages-grid > :nth-child(2), .product-grid > :nth-child(2), .timeline > :nth-child(2) { --stagger: 1; }
.advantages-grid > :nth-child(3), .product-grid > :nth-child(3), .timeline > :nth-child(3) { --stagger: 2; }
.advantages-grid > :nth-child(4), .product-grid > :nth-child(4), .timeline > :nth-child(4) { --stagger: 3; }
.product-grid > :nth-child(5), .timeline > :nth-child(5) { --stagger: 4; }
.product-grid > :nth-child(6) { --stagger: 5; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 255, 250, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(18, 22, 19, 0.08);
  overflow: visible;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 10px; padding-bottom: 10px;
  position: relative;
}
.brand {
  grid-column: 1; justify-self: start;
  display: flex; align-items: flex-end; gap: 12px; text-decoration: none;
}
.brand-mark {
  width: 84px; height: 84px; object-fit: contain;
  background: var(--color-bone-white);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 12px 24px rgba(18, 22, 19, .25);
  margin-bottom: -28px;
  position: relative; z-index: 5;
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }
.brand-word {
  font-family: var(--font-title); font-size: 17px;
  letter-spacing: 0; color: var(--color-press-black);
  padding-bottom: 8px;
}
.brand-word .dot { color: var(--color-highlighter-green); }

.main-nav { grid-column: 2; justify-self: center; display: flex; gap: 34px; }
.main-nav a {
  position: relative;
  font-family: var(--font-title);
  text-decoration: none; font-size: 12px; font-weight: 400;
  color: var(--color-press-black);
  padding-bottom: 4px;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--color-highlighter-green);
  transition: right .3s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.btn-nav { grid-column: 3; justify-self: end; display: inline-flex; }

.btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

.nav-toggle {
  grid-column: 3; justify-self: end;
  display: none; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; padding: 6px;
  color: var(--color-press-black);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; text-decoration: none;
  padding: 16px 28px; border-radius: var(--radius-buttons);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-highlighter-green); color: #000;
  box-shadow: var(--shadow-lg);
  border: none;
}
.btn-primary:hover { box-shadow: rgba(16, 94, 29, 0.6) 1px 14px 28px 0px; }
.btn-ghost {
  background: transparent; color: inherit;
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: rgba(43, 238, 75, 0.08); border-color: var(--color-highlighter-green); }

/* ---------- eyebrow / headings ---------- */

.eyebrow {
  font-family: var(--font-title);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-newsprint-gray);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--color-muted-sage); }

.h-display {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.15; letter-spacing: -0.01em; font-weight: 400;
  margin: 0 0 20px;
}
.h-display.h-sm { font-size: clamp(26px, 3.4vw, 38px); }
.h-display.h-light { color: var(--color-bone-white); }

.lead { font-size: 19px; line-height: 1.6; color: var(--color-slate-verdant); }
.lead-light { color: var(--color-muted-sage); }

.section { padding: var(--section-gap) 0; }
.section-tight { padding: 60px 0; }
.section-dark {
  background: var(--color-press-black); color: var(--color-bone-white);
}
.section-head { max-width: 720px; margin-bottom: 48px; }

/* ---------- FAQ ---------- */

.faq-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; align-items: start;
}
.faq-item {
  background: #fff; border: 1px solid rgba(18,22,19,0.1); border-radius: var(--radius-images);
  padding: 6px 24px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.faq-item:hover {
  border-color: var(--color-highlighter-green);
  box-shadow: var(--shadow-lg-2, rgba(18, 146, 39, 0.25) 1px 8px 20px 0px);
  transform: translateY(-2px);
}
.faq-item summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-question { flex: 1 1 auto; min-width: 0; }
.faq-item summary::after {
  content: 'add'; font-family: 'Material Symbols Outlined'; font-size: 22px;
  color: var(--color-highlighter-green); flex-shrink: 0; transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--color-slate-verdant);
  text-align: justify; text-align-last: left;
}
.faq-item p a { color: var(--color-press-black); }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: 92vh; min-height: 92dvh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--color-bone-white);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,13,11,.72) 0%, rgba(10,13,11,.6) 40%, rgba(10,13,11,.94) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 160px; text-align: center; display: flex; flex-direction: column; align-items: center; }

.hero-eyebrow {
  color: var(--color-bone-white);
  font-size: 12px; letter-spacing: 0.14em;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
  opacity: 0; animation: fadeUp .8s var(--ease) .1s forwards;
}
.hero-title {
  font-size: clamp(38px, 6.4vw, 88px);
  line-height: 1.08; letter-spacing: -0.01em; font-weight: 400;
  margin: 0 0 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
  opacity: 0; animation: fadeUp .9s var(--ease) .25s forwards;
}
.hero-sub {
  font-size: 20px; line-height: 1.55; max-width: 620px; color: var(--color-bone-white);
  margin: 0 0 36px;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
  opacity: 0; animation: fadeUp .9s var(--ease) .45s forwards;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: fadeUp .9s var(--ease) .6s forwards;
}
.hero .btn-ghost { display: inline-flex; align-items: center; gap: 10px; border-color: var(--color-bone-white); color: var(--color-bone-white); }
.hero .btn-ghost .material-symbols-outlined { font-size: 18px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 860px; margin: 60px auto 0;
  padding-top: 36px; padding-bottom: 46px;
  border-top: 1px solid rgba(250,255,250,0.2);
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  padding: 0 16px;
  border-left: 1px solid rgba(250,255,250,0.15);
}
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-title); font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted-sage); }

/* ---------- about ---------- */

.about-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px;
  align-items: center; margin-bottom: 70px;
}
.about-copy p { margin: 0 0 18px; }
.about-copy p:last-child { margin-bottom: 0; }

.photo-tile { margin: 0; border-radius: var(--radius-images); overflow: hidden; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile-lg { aspect-ratio: 4/3; }

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  list-style: none; margin: 0; padding: 48px 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.timeline[data-animate] { opacity: 1; transform: none; transition: none; }

.timeline::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(18,22,19,0.12);
}
.timeline::after {
  content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: var(--color-highlighter-green);
  transition: width 1.6s var(--ease) .1s;
}
.timeline.in-view::after { width: 100%; }

.timeline-item { position: relative; padding-top: 24px; }

.timeline-item::before {
  content: ''; position: absolute; top: -5px; left: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-bone-white);
  border: 2px solid var(--color-muted-sage);
  transform: scale(0);
  transition: transform .5s var(--ease), border-color .3s ease, background-color .3s ease;
  transition-delay: calc(var(--stagger, 0) * 120ms + .3s);
}
.timeline.in-view .timeline-item::before { transform: scale(1); }
.timeline-item:hover::before { border-color: var(--color-highlighter-green); }

.timeline-item-accent::before {
  background: var(--color-highlighter-green); border-color: var(--color-highlighter-green);
}
.timeline-item-accent::after {
  content: ''; position: absolute; top: -9px; left: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--color-highlighter-green);
  opacity: 0;
  animation: pulseRing 2.2s ease-out infinite;
  animation-delay: 1.4s;
}
.timeline-year {
  display: block; font-weight: 700; font-size: 20px;
  margin-bottom: 8px;
}
.timeline-title { font-weight: 600; margin: 0 0 6px; font-size: 14px; }
.timeline-text { margin: 0; font-size: 13px; color: var(--color-newsprint-gray); line-height: 1.55; }

/* ---------- advantages ---------- */

.advantages-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.advantage { transition: transform .3s var(--ease); }
.advantage:hover { transform: translateY(-6px); }
.advantage-icon {
  display: block; font-size: 36px; width: 36px; height: 36px;
  color: var(--color-highlighter-green); margin-bottom: 16px;
  transition: transform .4s var(--ease);
}
.advantage:hover .advantage-icon { transform: scale(1.15) rotate(-6deg); }
.advantage h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.advantage p { margin: 0; font-size: 14px; color: var(--color-newsprint-gray); }

/* ---------- products ---------- */

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--color-slate-verdant);
  border-radius: var(--radius-images); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.product-card-media { overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover img { transform: scale(1.08); }
.product-card-body { padding: 22px; }
.product-card h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--color-bone-white); margin: 0 0 8px; }
.product-card p { font-size: 14px; color: var(--color-muted-sage); margin: 0; line-height: 1.6; }
.product-card-feature { grid-column: span 2; grid-row: span 2; }
.product-card-feature .product-card-media { flex: 1; }
.product-card-feature .product-card-media img { width: 100%; height: 100%; aspect-ratio: auto; }
.tag {
  display: inline-block; font-family: var(--font-title); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-highlighter-green); margin-bottom: 10px;
}

.dark-cta {
  margin-top: 50px; padding-top: 40px; border-top: 1px solid rgba(250,255,250,0.15);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.dark-cta p { margin: 0; font-size: 18px; color: var(--color-bone-white); }

/* ---------- aplicaciones: bento con detalle en modal ---------- */

.app-bento {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.app-tile {
  position: relative;
  flex: 1 1 280px;
  max-width: 340px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-images);
  overflow: hidden;
  border: none; padding: 0; cursor: pointer;
  font-family: inherit;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  gap: 10px; padding: 18px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.app-tile:hover, .app-tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  outline: none;
}
.app-tile-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.app-tile:hover .app-tile-img, .app-tile:focus-visible .app-tile-img { transform: scale(1.08); }
.app-tile-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,22,19,.05) 40%, rgba(18,22,19,.85) 100%);
  transition: background .35s var(--ease);
}
.app-tile:hover .app-tile-scrim, .app-tile:focus-visible .app-tile-scrim {
  background: linear-gradient(180deg, rgba(18,22,19,.1) 30%, rgba(16,94,29,.85) 100%);
}
.app-tile-icon {
  position: relative; z-index: 1;
  font-size: 24px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(250,255,250,.92); color: var(--color-press-black);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.app-tile:hover .app-tile-icon, .app-tile:focus-visible .app-tile-icon {
  background: var(--color-highlighter-green);
  transform: scale(1.1) rotate(8deg);
}
.app-tile-label {
  position: relative; z-index: 1;
  font-size: 17px; font-weight: 600; color: var(--color-bone-white); text-align: left;
  line-height: 1.25;
}

/* Modal de detalle */
.app-modal {
  position: fixed; top: 50%; left: 50%; translate: -50% -50%;
  margin: 0; padding: 0; border: none;
  width: min(560px, 90vw);
  max-height: 85vh; overflow: hidden auto;
  border-radius: var(--radius-images);
  background: var(--color-bone-white);
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
}
.app-modal::backdrop { background: rgba(10,13,11,.7); backdrop-filter: blur(2px); }
.app-modal[open] { animation: modalPop .35s var(--ease); }
@keyframes modalPop {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
.app-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(18,22,19,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.app-modal-close:hover { background: var(--color-highlighter-green); color: #000; }
.app-modal-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.app-modal-body { padding: 28px 30px 32px; }
.app-modal-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
  background: var(--color-echo-green); color: var(--color-newsprint-gray); font-size: 22px;
}
.app-modal-body h3 { font-size: 22px; margin: 0 0 10px; }
.app-modal-body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-slate-verdant); }

/* ---------- clientes ---------- */

.clients-carousel {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex; align-items: center; gap: 24px; width: max-content;
  animation: clientsScroll 34s linear infinite;
}
.clients-carousel:hover .clients-track { animation-play-state: paused; }

@keyframes clientsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-card {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 220px; height: 190px; padding: 28px;
  background: #fff; border: 1px solid rgba(18,22,19,0.08);
  border-radius: var(--radius-images);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.client-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg-2, rgba(18, 146, 39, 0.25) 1px 8px 20px 0px);
  border-color: var(--color-shadow-moss);
}
.client-card img { width: 100%; height: 100%; object-fit: contain; }

/* Jardines de los Andes: logo ancho y bajo, ya trae aire arriba/abajo — no lo agrandamos igual que al resto */
.client-card-wide { width: 220px; height: 190px; padding: 52px 28px; }
.clients-more {
  margin: 28px 0 0; font-size: 13px; color: var(--color-newsprint-gray);
}

/* ---------- servicio ---------- */

.service-grid {
  display: grid; grid-template-columns: 1fr 0.9fr; gap: 60px; align-items: center;
}
.check-list { list-style: none; margin: 24px 0 0; padding: 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px;
  font-size: 15px; color: var(--color-slate-verdant);
}
.check-list .material-symbols-outlined {
  font-size: 20px; color: var(--color-highlighter-green); flex-shrink: 0; margin-top: 1px;
}

/* ---------- formulario de contacto ---------- */

.form-wrap { max-width: 720px; }

/* Honeypot — oculto para personas, visible para bots que ignoran CSS */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-newsprint-gray);
}
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--color-press-black);
  background: #fff; border: 1px solid rgba(18,22,19,0.15); border-radius: var(--radius-buttons);
  padding: 13px 16px; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--color-highlighter-green);
  box-shadow: 0 0 0 3px rgba(43,238,75,.18);
}
.form-row-captcha { min-height: 78px; justify-content: center; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: 13px; color: var(--color-newsprint-gray); }
.form-note a { color: var(--color-slate-verdant); text-decoration: underline; }
.form-status { margin: 0; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-status.is-success { color: #10a027; }
.form-status.is-error { color: #c23b3b; }

/* ---------- footer ---------- */

.footer { background: var(--color-press-black); color: var(--color-bone-white); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 70px 30px 60px;
}
.footer-brand p { color: var(--color-muted-sage); font-size: 14px; margin-top: 18px; }
.brand-mark-light {
  width: 204px; height: 204px;
  background: none; padding: 0; box-shadow: none; margin-bottom: 0;
  position: static;
}

.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(250,255,250,.1); color: var(--color-bone-white);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--color-highlighter-green); color: #000; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-partner {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 10px 16px;
  background: var(--color-bone-white); border-radius: var(--radius-buttons);
}
.footer-partner-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-newsprint-gray); line-height: 1.3; max-width: 70px;
}
.footer-partner-logo { height: 20px; width: auto; }

.footer-map {
  margin-top: 16px; border-radius: var(--radius-images); overflow: hidden;
  border: 1px solid rgba(250,255,250,.15);
}
.footer-map iframe { width: 100%; height: 160px; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }
.footer-heading {
  font-family: var(--font-title);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-muted-sage); margin: 0 0 16px;
}
.footer-col p { margin: 0 0 10px; font-size: 14px; }
.footer-col a { text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: var(--color-highlighter-green); }

.footer-credit {
  border-top: 1px solid rgba(250,255,250,.1);
  padding: 20px 30px; text-align: center;
}
.footer-credit p { margin: 0; font-size: 12px; color: var(--color-newsprint-gray); }
.footer-credit a { color: var(--color-muted-sage); text-decoration: underline; transition: color .2s ease; }
.footer-credit a:hover { color: var(--color-highlighter-green); }

/* ---------- volver arriba ---------- */

.back-to-top {
  position: fixed; left: 50%; bottom: 24px; z-index: 199;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-press-black); color: var(--color-bone-white);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s ease, color .2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.back-to-top:hover { background: var(--color-highlighter-green); color: #000; }
.back-to-top .material-symbols-outlined { font-size: 26px; }

/* ---------- WhatsApp flotante ---------- */

.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-highlighter-green); color: #000;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.whatsapp-fab svg { width: 28px; height: 28px; }
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: rgba(16, 94, 29, 0.6) 1px 14px 28px 0px; }
.whatsapp-fab-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--color-highlighter-green);
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .main-nav { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .about-grid, .service-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card-feature { grid-column: span 2; grid-row: span 1; }
  .product-card-feature .product-card-media { flex: none; }
  .product-card-feature .product-card-media img { aspect-ratio: 21/9; height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; column-gap: 20px; }
  .stat { border-left: none; padding: 0; }
  .faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .timeline { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card-feature { grid-column: span 1; }
  .client-card, .client-card-wide { width: 170px; height: 150px; padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 50px 20px; }
  .dark-cta { flex-direction: column; align-items: flex-start; }
  .whatsapp-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .back-to-top { bottom: 16px; width: 46px; height: 46px; }
  .brand-mark { width: 56px; height: 56px; margin-bottom: -14px; }
  .hero-inner { padding-top: 110px; }
}

/* mobile nav open state */
.main-nav.is-open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-bone-white);
  padding: 10px 30px 20px;
  border-bottom: 1px solid rgba(18,22,19,0.08);
}
.main-nav.is-open a { padding: 12px 0; border-bottom: 1px solid rgba(18,22,19,0.08); }
.main-nav.is-open a::after { display: none; }
