/* ==========================================================================
   FUMAGRI — Hoja de estilos principal
   Paleta y tipografía según manual de marca:
   Verde #1E5B2E · Verde secundario #4A8F3C · Café tierra #6B4E2E
   Celeste #DCEEF7 · Blanco humo #F7F9F7 · Poppins (títulos) + Manrope (texto)
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --verde: #1E5B2E;
  --verde-osc: #143F1F;
  --verde-2: #4A8F3C;
  --tierra: #6B4E2E;
  --celeste: #DCEEF7;
  --humo: #F7F9F7;
  --tinta: #17251C;
  --texto: #3E4D43;
  --suave: #F1F4EF;
  --linea: #DCE3DA;
  --error: #B3261E;
  --blanco: #FFFFFF;

  --f-titulo: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-texto: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --header-h: 76px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 124px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--f-titulo);
  color: var(--tinta);
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.85rem); line-height: 1.12; }
h3 { font-size: 1.15rem; line-height: 1.3; }

.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); line-height: 1.6; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--tinta);
  color: var(--blanco);
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--verde-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Botones y enlaces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--f-texto);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--verde); color: var(--blanco); }
.btn--primary:hover { background: var(--verde-osc); }
.btn--light { background: var(--blanco); color: var(--verde); }
.btn--light:hover { background: var(--celeste); }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: var(--blanco); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: var(--blanco); }
.btn--outline { border-color: var(--verde); color: var(--verde); }
.btn--outline:hover { background: var(--verde); color: var(--blanco); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.card-link {
  display: inline-block;
  font-weight: 700;
  color: var(--verde);
  text-decoration: underline;
  text-decoration-color: rgba(74, 143, 60, .45);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s;
}
.card-link:hover { text-decoration-color: var(--verde); }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--blanco);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.site-header.is-solid,
.site-header.is-open {
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: 0 1px 0 var(--linea);
}

.header-inner {
  max-width: calc(1440px + var(--gutter) * 2);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.brand-mark { width: 58px; height: auto; }
.brand-mark--color { display: none; }
.is-solid .brand-mark--light, .is-open .brand-mark--light { display: none; }
.is-solid .brand-mark--color, .is-open .brand-mark--color { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.brand-tag {
  margin-top: 3px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .9;
}
.is-solid .brand-name, .is-open .brand-name { color: var(--verde); }

.nav-list { display: flex; gap: clamp(14px, 1.4vw, 24px); }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-list a:hover::after,
.nav-list a[aria-current]::after { transform: scaleX(1); }
.is-solid .nav-list a[aria-current] { color: var(--verde); }

.nav-cta-mobile { display: none; }
.header-cta { min-height: 44px; padding: 0 18px; font-size: .9rem; white-space: nowrap; }
.site-header:not(.is-solid):not(.is-open):not(.site-header--light) .header-cta { background: var(--blanco); color: var(--verde); }
.site-header--light { color: var(--tinta); }
.site-header--light .brand-mark--light { display: none; }
.site-header--light .brand-mark--color { display: block; }
.site-header--light .brand-name { color: var(--verde); }
.site-header--light .nav-list a[aria-current] { color: var(--verde); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1399px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--blanco);
    color: var(--tinta);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    padding: 16px 0;
    font-size: 1.2rem;
    font-family: var(--f-titulo);
    font-weight: 500;
    border-bottom: 1px solid var(--linea);
  }
  .nav-list a::after { display: none; }
  .nav-cta-mobile { display: flex; margin-top: 28px; width: 100%; }
}
@media (max-width: 420px) {
  .brand-mark { width: 48px; }
  .brand-name { font-size: 1.12rem; }
  .brand-tag { font-size: .54rem; letter-spacing: .1em; }
}

/* ---------- 5. Hero (claro y minimalista) ---------- */
.hero {
  min-height: clamp(620px, 86vh, 900px);
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
  background: var(--humo);
  border-bottom: 1px solid var(--linea);
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-title {
  max-width: 10ch;
  margin-bottom: .4em;
  color: var(--verde-osc);
  font-size: clamp(2.6rem, 1.3rem + 4.6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
}
.hero-lead { max-width: 30rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--linea);
}
.hero-figure picture { display: block; }
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1448 / 762;
  object-fit: cover;
  transform: scale(1.04);
  will-change: transform;
}

/* Entrada orquestada del hero (único momento de animación automática) */
.js .hero-content > *, .js .hero-figure { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.js .hero-content > :nth-child(2) { animation-delay: .1s; }
.js .hero-content > :nth-child(3) { animation-delay: .2s; }
.js .hero-figure { animation-delay: .2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.trust-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--linea);
}
.trust-bar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 16px 24px 0;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--tinta);
  transition: color .2s;
}
.trust-bar a:hover { color: var(--verde); }
.trust-bar .icon { width: 26px; height: 26px; color: var(--verde-2); }

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 12ch; }
}
@media (max-width: 640px) {
  .hero-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 860px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .trust-bar li:last-child { grid-column: 1 / -1; }
  .trust-bar a { padding: 14px 8px 14px 0; font-size: .9rem; }
}

/* ---------- 6. Secciones genéricas ---------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--suave); }
.section--dark { background: var(--tinta); color: rgba(255,255,255,.8); }
.section--dark h2, .section--dark h3, .section--dark strong { color: var(--blanco); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > p, .section-head > div > p { font-size: 1.12rem; }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.section-head--split > div { max-width: 700px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split--reverse .split-media { order: -1; }
.split-text .btn { margin-top: 12px; }
.split-media { border-radius: var(--r-lg); overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
}

/* ---------- 7. Soluciones (grilla uniforme 3 × 2) ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.solution-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
/* Grilla uniforme: las 6 tarjetas tienen el mismo tamaño */
.solution-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.solution-card:hover { border-color: var(--verde-2); }
.solution-card:hover img { transform: scale(1.03); }
.solution-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.solution-body p { flex: 1; }
.solution-icon { width: 30px; height: 30px; color: var(--verde-2); margin-bottom: 14px; }
.solution-body h3 { font-size: 1.28rem; }

@media (max-width: 1000px) {
  .solution-card { grid-column: span 6; }
}
@media (max-width: 640px) {
  .solutions-grid { gap: 16px; }
  .solution-card { grid-column: 1 / -1; }
}

/* ---------- 8. Maquinaria (índice de categorías, preparado para catálogo) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 28px;
}
.category-card {
  display: flex;
  flex-direction: column;
  padding-top: 22px;
  border-top: 2px solid var(--verde);
}
.category-card .icon { width: 34px; height: 34px; color: var(--verde); margin-bottom: 16px; }
.category-card p { flex: 1; font-size: .98rem; }
.category-card .card-link { font-size: .93rem; }

@media (max-width: 1100px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .category-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
@media (max-width: 400px)  { .category-grid { grid-template-columns: 1fr; } }

/* Galería de equipos */
.equip-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: clamp(44px, 6vw, 64px);
}
.img-low { object-position: 50% 80%; }
.equip-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); }
.equip-gallery figcaption { margin-top: 10px; font-family: var(--f-titulo); font-weight: 600; color: var(--tinta); font-size: .98rem; }

/* ---------- 9. Arriendo ---------- */
.feature-list { display: grid; gap: 18px; margin: 28px 0 20px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature-list .icon {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--blanco);
  border: 1px solid var(--linea);
  color: var(--verde);
}
.feature-list strong { display: block; font-family: var(--f-titulo); font-weight: 600; color: var(--tinta); font-size: 1.02rem; }
.feature-list span { display: block; font-size: .98rem; }
.feature-list--compact { gap: 16px; }
.section--dark .feature-list strong { color: var(--blanco); }
.section--dark .feature-list .icon { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #A8D39A; }

.drone-card {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--verde);
  color: rgba(255,255,255,.88);
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.drone-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.drone-body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; }
.drone-body > .icon { width: 36px; height: 36px; color: #A8D39A; margin-bottom: 16px; }
.drone-body h3 { color: var(--blanco); font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); }
.check-list { display: grid; gap: 10px; margin: 8px 0 28px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; color: #A8D39A; margin-top: 2px; }

@media (max-width: 900px) {
  .drone-card { grid-template-columns: 1fr; }
  .drone-card img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- 10. Ferretería (estantería de categorías) ---------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--linea);
  border-left: 1px solid var(--linea);
}
.shelf-item {
  padding: 30px 28px;
  border-right: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  transition: background-color .25s var(--ease);
}
.shelf-item:hover { background: var(--suave); }
.shelf-item .icon { width: 32px; height: 32px; color: var(--verde); margin-bottom: 14px; }
.shelf-item p { font-size: .98rem; }
.note {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--celeste);
  color: var(--tinta);
  font-size: .95rem;
  font-weight: 600;
}
@media (max-width: 860px) { .shelf { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .shelf-item { padding: 22px 16px; } .shelf-item p { font-size: .92rem; } }
@media (max-width: 380px) { .shelf { grid-template-columns: 1fr; } }

/* ---------- 11. Repuestos ---------- */
.parts-panel {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.parts-panel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.parts-form { padding: 28px; display: grid; gap: 16px; }
.parts-form h3 { margin: 0; }
.parts-form .field label { color: rgba(255,255,255,.92); }

/* ---------- 12. Taller ---------- */
.workshop {
  position: relative;
  color: rgba(255,255,255,.88);
  background: var(--verde-osc);
  overflow: hidden;
  isolation: isolate;
}
.workshop-media { position: absolute; inset: 0; z-index: -1; }
.workshop-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.workshop-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(14,38,20,.9) 0%, rgba(14,38,20,.35) 45%, rgba(14,38,20,0) 70%),
    linear-gradient(90deg, rgba(14,38,20,.95) 0%, rgba(14,38,20,.82) 45%, rgba(14,38,20,.55) 100%);
}
.workshop h2, .workshop h3 { color: var(--blanco); }
.workshop-text { max-width: 580px; }
.workshop-text .btn { margin-top: 12px; }
.service-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.service-strip .icon { width: 30px; height: 30px; color: #A8D39A; margin-bottom: 12px; }
.service-strip h3 { font-size: 1.05rem; margin-bottom: .3em; }
.service-strip p { font-size: .95rem; }
@media (max-width: 1000px) { .service-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .service-strip { grid-template-columns: 1fr 1fr; gap: 24px 20px; } }

/* ---------- 13. Por qué Fumagri ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); }
.values li { padding: 4px 24px 8px; border-left: 1px solid var(--linea); }
.values li:first-child { padding-left: 0; border-left: 0; }
.values .icon { width: 36px; height: 36px; color: var(--verde-2); margin-bottom: 18px; }
.values p { font-size: .98rem; }
@media (max-width: 1000px) {
  .values { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .values li, .values li:first-child { padding: 0 24px 0 0; border-left: 0; }
}
@media (max-width: 520px) { .values { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 14. Proceso (línea de parra) ---------- */
.timeline { position: relative; }
.timeline-vine {
  position: absolute;
  top: 6px; left: 0;
  width: 100%; height: 40px;
  fill: none;
  stroke: var(--tierra);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: .7;
}
.timeline-vine path { vector-effect: non-scaling-stroke; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step-num {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 0 0 6px var(--suave);
}
.step h3 { font-size: 1.15rem; }
.step p { font-size: .98rem; max-width: 28ch; }

@media (max-width: 860px) {
  .timeline-vine { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step {
    position: relative;
    padding: 0 0 32px 76px;
  }
  .step::before {
    content: "";
    position: absolute;
    left: 25px; top: 52px; bottom: 0;
    width: 2px;
    background: var(--tierra);
    opacity: .5;
  }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
  .step-num { position: absolute; left: 0; top: 0; }
}

/* ---------- 15. CTA ---------- */
.cta-band {
  padding-block: clamp(64px, 8vw, 104px);
  background: var(--verde);
  color: rgba(255,255,255,.88);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.cta-inner > div:first-child { max-width: 640px; }
.cta-band h2 { color: var(--blanco); }
.cta-band p { font-size: 1.12rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 16. Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.advisors { display: grid; gap: 12px; margin: 28px 0; }
.advisor {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--suave);
}
.advisor img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.advisor h3 { font-size: 1.05rem; margin: 0; }
.advisor p { margin: 0 0 4px; font-size: .93rem; }
.advisor-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--verde);
  text-decoration: none;
}
.advisor-wa:hover { text-decoration: underline; text-underline-offset: 4px; }
.advisor-wa .icon { width: 20px; height: 20px; }

.contact-data { display: grid; gap: 12px; }
.contact-data li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.contact-data .icon { color: var(--verde-2); margin-top: 2px; }
.contact-data a { color: var(--tinta); text-decoration: none; font-weight: 600; }
.contact-data a:hover { color: var(--verde); text-decoration: underline; text-underline-offset: 4px; }

.contact-form {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  background: var(--blanco);
  box-shadow: 0 24px 48px -32px rgba(23, 37, 28, .35);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 700; color: var(--tinta); }
.field label span { color: var(--verde-2); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #C5CFC3;
  border-radius: var(--r-sm);
  background: var(--blanco);
  color: var(--tinta);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5B2E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px var(--celeste);
}
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error, .form-error { margin: 0; color: var(--error); font-size: .86rem; font-weight: 600; }
.section--dark .form-error { color: #FFB4AB; }

.field--check { grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--verde); }
.field--check label { font-weight: 500; color: var(--texto); }
.field--check .field-error { grid-column: 2; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--verde); }
.form-status.is-error { color: var(--error); }
.form-hint { margin-top: 10px; font-size: .86rem; }

@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: #10301A;
  color: rgba(255,255,255,.75);
  padding-top: clamp(56px, 7vw, 88px);
  font-size: .96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-title { color: var(--blanco); font-size: 1rem; margin-bottom: 16px; }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-nav a, .footer-contact a { text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--blanco); text-decoration: underline; text-underline-offset: 4px; }
.footer-contact > ul:first-of-type { display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 20px; height: 20px; margin-top: 3px; color: #A8D39A; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}
.social a[hidden] { display: none; }
.social .icon { margin: 0; color: var(--blanco); }
.footer-bottom {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  font-size: .88rem;
}
.footer-bottom p { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 640px) { .footer-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 18. WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--verde);
  color: var(--blanco);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px -10px rgba(14, 38, 20, .6);
  transition: background-color .2s, transform .2s var(--ease);
}
.wa-float:hover { background: var(--verde-osc); transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; padding: 0; justify-content: center; }
  .wa-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa-float .icon { width: 28px; height: 28px; }
}

/* ---------- 19. Páginas internas ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(48px, 6vw, 80px);
  color: rgba(255,255,255,.88);
  background: var(--verde-osc);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,38,20,.95) 0%, rgba(14,38,20,.8) 50%, rgba(14,38,20,.55) 100%);
}
.page-hero h1 { color: var(--blanco); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); line-height: 1.05; letter-spacing: -.025em; max-width: 18ch; }
.page-hero p { max-width: 38rem; font-size: 1.15rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; margin-bottom: 18px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- 20. Aparición al hacer scroll (sutil) ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 21. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .hero-content > *, .js .hero-figure { opacity: 1; transform: none; animation: none; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .hero-img { transform: none; }
}
