/* AH Consultores Integrales — estilos */

:root {
  --verde: #176B35;          /* Verde institucional */
  --verde-2: #2E8B45;        /* Verde crecimiento */
  --verde-ink: #0F4A24;      /* verde profundo para hover */
  --grafito: #292D32;        /* Gris grafito */
  --claro: #F2F4F1;          /* Gris claro */
  --blanco: #FFFFFF;
  --muted: #535B55;          /* texto secundario, gris teñido de verde (7:1 sobre blanco) */
  --line: #D9DFD9;           /* reglas */
  --verde-tint: #E4F0E7;
  --on-verde-muted: #CFE3D5;

  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 14px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

::selection { background: var(--verde); color: var(--blanco); }
:focus-visible { outline: 2px solid var(--verde-2); outline-offset: 3px; border-radius: 6px; }

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--verde); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--verde-ink); }

h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--grafito);
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--verde); color: var(--blanco); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--blanco); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--verde); --fg: var(--blanco);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.btn-primary:hover { background: var(--verde-ink); color: var(--blanco); }
.btn-ghost { --bg: transparent; --fg: var(--grafito); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--grafito); color: var(--grafito); }
.btn-light { --bg: var(--blanco); --fg: var(--verde); }
.btn-light:hover { background: var(--claro); color: var(--verde-ink); }
.btn-block { width: 100%; }
@media (hover: hover) { .btn:hover .ico { transform: translateX(3px); } }

.link-arrow {
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.link-arrow::after { content: "→"; transition: transform 200ms var(--ease-out); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--grafito); }
.brand-mark { width: 46px; height: auto; }
.brand-name { font-family: var(--f-display); line-height: 1.05; font-size: 0.95rem; display: flex; flex-direction: column; }
.brand-name strong { font-weight: 800; letter-spacing: -0.01em; }
.brand-name span { color: var(--verde); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.92rem;
  color: var(--grafito); text-decoration: none; border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-list a:hover { color: var(--verde); }
.nav-list a.nav-cta { background: var(--verde); color: var(--blanco); padding: 0 20px; margin-left: 8px; }
.nav-list a.nav-cta:hover { background: var(--verde-ink); color: var(--blanco); }
.nav-list a.nav-portal { color: var(--verde); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .brand-name span { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; border-radius: 10px;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; background: var(--grafito); border-radius: 2px;
    transition: transform 200ms var(--ease-out), opacity 150ms ease;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .nav-list {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--blanco); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(41, 45, 50, 0.25);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav-list.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav-list a { min-height: 52px; font-size: 1.05rem; border-radius: 10px; }
  .nav-list a.nav-cta { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Rail de secciones ---------- */
.rail { display: none; }
@media (min-width: 1380px) {
  .rail {
    display: block; position: fixed; z-index: 40;
    left: max(20px, calc((100vw - var(--wrap)) / 2 - 120px));
    top: 50%; transform: translateY(-50%);
  }
  .rail-line { position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .rail-fill { position: absolute; inset: 0; background: var(--verde-2); transform-origin: top; transform: scaleY(0); }
  .rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 34px; position: relative; }
  .rail a {
    display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted);
    font-family: var(--f-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  }
  .rail a::before {
    content: ""; width: 12px; height: 12px; border-radius: 50%;
    background: var(--blanco); border: 2px solid var(--line);
    transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease-out);
  }
  .rail a span { opacity: 0; transform: translateX(-4px); transition: opacity 180ms ease, transform 180ms var(--ease-out); }
  .rail a:hover span, .rail a:focus-visible span, .rail a.is-active span { opacity: 1; transform: none; }
  .rail a.is-passed::before { border-color: var(--verde-2); }
  .rail a.is-active::before { background: var(--verde-2); border-color: var(--verde-2); transform: scale(1.15); }
  .rail a.is-active { color: var(--grafito); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(32px, 6vh, 72px);
  background: linear-gradient(to bottom, var(--blanco) 0, var(--blanco) calc(100% - 128px), var(--claro) calc(100% - 128px));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}
.hero-copy { padding-bottom: clamp(40px, 7vh, 88px); }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero h1 em { font-style: normal; color: var(--verde); }
.lead { margin-top: 26px; font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-mail { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.hero-mail a { overflow-wrap: anywhere; }

/* Planta */
.plant { margin: 0; align-self: end; position: relative; }
.plant svg { width: 100%; max-width: 420px; margin-left: auto; overflow: visible; margin-bottom: -2px; }
.plant .draw {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.plant .soil { stroke: var(--verde); stroke-width: 2.5; }
.plant .furrow { stroke: var(--verde-2); stroke-width: 6; opacity: 0.35; }
.plant .root { stroke: var(--grafito); stroke-width: 1.5; opacity: 0.55; }
.plant .stem { stroke: var(--verde); stroke-width: 5; }
.plant .leaf { stroke: var(--verde); stroke-width: 2.5; fill: var(--verde-tint); fill-opacity: 1; }
.plant .vein { stroke: var(--verde); stroke-width: 1.4; opacity: 0.7; }
.plant .petal { stroke: var(--verde-2); stroke-width: 2.5; fill: var(--blanco); }
.plant .pistil { fill: var(--verde); }
.plant .branch { stroke: var(--verde); stroke-width: 2.5; }
.plant .fruit { stroke: var(--grafito); stroke-width: 2.5; fill: var(--blanco); }
.plant .ripe { fill: var(--verde-2); opacity: 0; transition: opacity 400ms var(--ease-out); }
.plant .lens { transition: transform 600ms var(--ease-in-out); }
.plant .lens-ring { fill: rgba(255, 255, 255, 0.25); stroke: var(--grafito); stroke-width: 2.5; stroke-dasharray: 6 6; }
.plant .lens-handle { stroke: var(--grafito); stroke-width: 6; stroke-linecap: round; }
.plant .p-part { transition: opacity 300ms ease; }
.plant .stem { transition: opacity 300ms ease; }

.plant.is-focus .p-part, .plant.is-focus .stem { opacity: 0.22; }
.plant.is-focus[data-focus="suelo"] [data-part="suelo"],
.plant.is-focus[data-focus="desarrollo"] [data-part="desarrollo"],
.plant.is-focus[data-focus="floracion"] [data-part="floracion"],
.plant.is-focus[data-focus="fructificacion"] [data-part="fructificacion"],
.plant.is-focus[data-focus="produccion"] [data-part="fructificacion"],
.plant.is-focus[data-focus="produccion"] [data-part="produccion"] { opacity: 1; }
.plant[data-focus="produccion"] .ripe { opacity: 1; }
.plant.is-focus[data-focus="desarrollo"] .stem { opacity: 1; }

/* Animación de trazo inicial */
.js .plant:not(.is-drawn) .draw { stroke-dashoffset: 1; }
.js .plant:not(.is-drawn) .leaf, .js .plant:not(.is-drawn) .petal, .js .plant:not(.is-drawn) .fruit { fill-opacity: 0; }
.js .plant:not(.is-drawn) .pistil, .js .plant:not(.is-drawn) .lens { opacity: 0; }
.plant.is-drawing .draw { transition: stroke-dashoffset 1100ms var(--ease-out) var(--d, 0ms), fill-opacity 500ms ease calc(var(--d, 0ms) + 700ms); }
.plant.is-drawing .pistil { transition: opacity 400ms ease 1500ms; }
.plant.is-drawing .lens { transition: opacity 500ms ease 2000ms, transform 600ms var(--ease-in-out); }

/* Regla de etapas */
.ruler { position: relative; height: 128px; display: flex; flex-direction: column; justify-content: center; padding-top: 6px; }
.ruler-title {
  margin-bottom: 18px;
  font-family: var(--f-display); font-size: 0.8rem; font-weight: 700; color: var(--verde);
}
.ruler-stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid var(--verde);
}
.ruler-stages button {
  position: relative; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 16px 8px 6px 0; min-height: 44px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; color: var(--muted);
  transition: color 160ms ease;
}
.ruler-stages .tick {
  position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--claro); border: 2px solid var(--verde);
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}
.ruler-stages button:hover, .ruler-stages button.is-active { color: var(--grafito); }
.ruler-stages button:hover .tick, .ruler-stages button.is-active .tick { background: var(--verde-2); border-color: var(--verde-2); transform: scale(1.25); }
.ruler-note { margin-top: 8px; font-size: 0.88rem; color: var(--muted); min-height: 1.5em; }

/* ---------- Método ---------- */
.method { padding: var(--section) 0 calc(var(--section) * 0.8); }
.method-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.method-head p { margin-top: 22px; color: var(--muted); max-width: 46ch; }
.factors { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 56px); }
.factor { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.factor dt {
  font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 12px;
}
.factor dt::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--verde-2); flex: none; }
.factor dd { margin: 10px 0 0; color: var(--muted); font-size: 1rem; }

.statement { margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; border: 0; }
.statement p {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.75rem); line-height: 1.18; letter-spacing: -0.025em;
  max-width: 28ch; color: var(--grafito);
}
.statement strong { color: var(--verde); font-weight: 800; }

/* ---------- Cultivos ---------- */
.crops { background: var(--claro); padding: var(--section) 0; }
.crops-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.crops-head p { color: var(--muted); max-width: 52ch; }

.matrix { --name-w: 220px; background: var(--blanco); border-radius: var(--radius); padding: 8px clamp(12px, 2.4vw, 32px); }
.matrix-head, .crop-row {
  display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr) 28px; align-items: center; gap: 20px;
}
.matrix-head { padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.mh-name { font-family: var(--f-display); font-weight: 700; font-size: 0.78rem; color: var(--muted); }
.mh-scale { display: grid; grid-template-columns: repeat(5, 1fr) 0.9fr; }
.mh-scale span { font-family: var(--f-display); font-weight: 700; font-size: 0.74rem; color: var(--muted); line-height: 1.2; padding-right: 6px; }
.mh-scale .mh-san { padding-left: 14px; border-left: 1px solid var(--line); }

.crop { border-bottom: 1px solid var(--line); }
.crop:last-child { border-bottom: 0; }
.crop-row {
  width: 100%; min-height: 64px; padding: 10px 0;
  background: none; border: 0; cursor: pointer; text-align: left; color: inherit; font: inherit;
}
.crop-name { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; transition: color 160ms ease; }
.crop-row:hover .crop-name, .crop.is-open .crop-name { color: var(--verde); }
.chev { width: 22px; height: 22px; fill: none; stroke: var(--grafito); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease-out); }
.crop.is-open .chev { transform: rotate(180deg); }

.scale { position: relative; display: grid; grid-template-columns: repeat(5, 1fr) 0.9fr; height: 24px; align-items: center; }
.scale::before {
  /* la misma regla de etapas, repetida en cada cultivo */
  content: ""; position: absolute; left: 6px; width: calc(400% / 5.9); top: 50%; height: 2px; margin-top: -1px;
  background: var(--line);
}
.scale .run { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--verde-2); transform-origin: left; }
.scale > span:not(.run) { display: flex; align-items: center; }
.scale .dot { display: block; flex: none; position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--blanco); border: 2px solid var(--line); }
.scale .dot.on { background: var(--verde); border-color: var(--verde); }
.scale .dot.san { margin-left: 14px; }
.scale .dot.san.on { background: var(--grafito); border-color: var(--grafito); }
.scale .cell-san { border-left: 1px solid var(--line); height: 24px; display: flex; align-items: center; }
.crop-other .scale::before { background: repeating-linear-gradient(90deg, var(--verde-2) 0 8px, transparent 8px 14px); }

.js .matrix .dot.on, .js .matrix .run { transition: transform 420ms var(--ease-out), opacity 300ms ease; }
.js .matrix:not(.is-seen) .dot.on { transform: scale(0.4); opacity: 0; }
.js .matrix:not(.is-seen) .run { transform: scaleX(0); }

.crop-detail {
  display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr); gap: 20px;
  padding: 0 0 26px;
}
.crop-detail p { grid-column: 2; max-width: 62ch; color: var(--grafito); }
.crop-detail .link-arrow { grid-column: 2; margin-top: 12px; justify-self: start; }
.crop.is-open { background: linear-gradient(to right, transparent, transparent); }
.js .crop-detail { animation: detail-in 280ms var(--ease-out); }
@keyframes detail-in { from { opacity: 0; transform: translateY(-6px); } }

.matrix-legend { margin-top: 18px; font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--verde); display: inline-block; }
.lg-dash { width: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--verde-2) 0 8px, transparent 8px 14px); display: inline-block; }

@media (max-width: 860px) {
  .crops-head { grid-template-columns: 1fr; }
  .matrix-head { display: none; }
  .crop-row { grid-template-columns: minmax(0, 1fr) 28px; grid-template-areas: "name chev" "scale scale"; row-gap: 10px; padding: 16px 0; }
  .crop-name { grid-area: name; }
  .chev { grid-area: chev; }
  .scale { grid-area: scale; }
  .crop-detail { grid-template-columns: 1fr; }
  .crop-detail p, .crop-detail .link-arrow { grid-column: 1; }
  .scale .dot::after {
    content: attr(data-label); position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
    font-size: 0.62rem; font-family: var(--f-display); font-weight: 600; color: var(--muted); white-space: nowrap;
  }
  .scale { height: 40px; align-items: start; padding-top: 6px; }
  .scale::before { top: 12px; }
  .scale .run { top: 12px; }
  .scale > .cell-san { height: 30px; align-items: flex-start; margin-top: -9px; padding-top: 0; }
  /* la primera etiqueta se alinea a la izquierda para no salirse del margen */
  .scale > span:first-child .dot::after { left: -1px; transform: none; }
}

/* ---------- Modalidades ---------- */
.modes { padding: var(--section) 0; }
.modes-title { margin-bottom: clamp(32px, 5vw, 56px); max-width: 18ch; }
.modes-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.mode { border-radius: var(--radius); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; }
.mode h3 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 800; letter-spacing: -0.025em; }
.mode-sub { margin-top: 12px; font-size: 1.05rem; }
.checks { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M6.5 11.3l3 3 6-6.3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M6.5 11.3l3 3 6-6.3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mode .btn { margin-top: auto; }
.mode-continua { background: var(--verde); color: var(--blanco); }
.mode-continua h3 { color: var(--blanco); }
.mode-continua .mode-sub { color: var(--on-verde-muted); }
.mode-continua .checks li::before { color: #9FD3AE; }
.mode-especializada { background: var(--claro); }
.mode-especializada .mode-sub { color: var(--muted); }
.mode-especializada .checks li::before { color: var(--verde-2); }

/* ---------- Contacto ---------- */
.contact { background: var(--claro); padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-copy p { margin-top: 20px; color: var(--muted); max-width: 44ch; }
.contact-mail {
  display: inline-block; margin-top: 32px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.4rem);
  overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: rgba(23, 107, 53, 0.35);
}
.contact-mail:hover { text-decoration-color: currentColor; }
.socials { list-style: none; margin: 28px 0 0; padding: 0; display: flex; gap: 10px; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--blanco);
  color: var(--grafito); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 0.9rem;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.socials a:hover { border-color: var(--verde); color: var(--verde); }
.socials a:active { transform: scale(0.97); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.handle { margin-top: 12px !important; font-size: 0.9rem; }

.form {
  background: var(--blanco); border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 1px 2px rgba(41, 45, 50, 0.06), 0 18px 40px -24px rgba(23, 107, 53, 0.3);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--f-display); font-weight: 700; font-size: 0.86rem; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--grafito);
  background: var(--blanco); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 50px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  caret-color: var(--verde);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23292D32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9C3BB; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--verde-2); box-shadow: 0 0 0 4px rgba(46, 139, 69, 0.15); }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.err { color: #B3261E; font-size: 0.86rem; }
.form-note { font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--verde); color: var(--on-verde-muted); padding: 56px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { width: min(320px, 100%); height: auto; }
.footer-meta { text-align: right; display: grid; gap: 6px; font-size: 0.92rem; }
.footer-meta a { color: var(--blanco); }
.tagline { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; color: var(--blanco); }
.copy { font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .plant svg { max-width: 300px; margin: 0 auto; }
  .method-grid, .contact-grid, .modes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand-mark { width: 38px; }
  .hero { background: linear-gradient(to bottom, var(--blanco) 0, var(--blanco) calc(100% - 210px), var(--claro) calc(100% - 210px)); }
  .ruler { height: auto; padding: 24px 0 24px; }
  .ruler-title { margin-bottom: 12px; }
  .ruler-stages { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--verde); margin-left: 7px; }
  .ruler-stages button { padding: 10px 0 10px 24px; }
  .ruler-stages .tick { top: 50%; left: -8px; margin-top: -7px; }
  .ruler-note { padding-left: 24px; }
  .factors { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
@media (max-width: 760px) and (min-width: 0px) {
  .plant svg { max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ==========================================================
   Páginas de cultivo (/cultivos/*.html)
   ========================================================== */
.cp-hero { padding-top: clamp(24px, 4vh, 48px); }
.crumbs ol { list-style: none; margin: 0 0 clamp(28px, 5vh, 56px); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--verde); text-decoration: underline; }
.crumbs [aria-current] { color: var(--grafito); font-weight: 600; }
.cp-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; max-width: 16ch;
}
.cp-hero .lead { max-width: 60ch; }
.cp-hero .hero-actions { margin-bottom: clamp(48px, 7vh, 80px); }

.cp-stages { background: var(--claro); padding: 36px 0 32px; border-top: 2px solid var(--verde); }
.cp-stages-title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0; color: var(--verde); margin-bottom: 22px; }
.stage-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: start; }
.stage-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.st { position: relative; display: grid; gap: 12px; padding-right: 8px; }
.st::before {
  /* tramo hacia la etapa anterior */
  content: ""; position: absolute; top: 9px; right: 100%; width: 100%; height: 2px; background: var(--line);
  margin-right: -10px; z-index: 0;
}
.st:first-child::before { display: none; }
.st.linked::before { background: var(--verde-2); }
.st-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--blanco); border: 2px solid #B9C3BB; }
.st.on .st-dot, .st-san.on .st-dot { background: var(--verde); border-color: var(--verde); }
.st-label { font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; color: var(--muted); line-height: 1.25; }
.st.on .st-label { color: var(--grafito); }
.st-diag .st-dot { border-style: dashed; border-color: var(--verde-2); }
.st-san {
  display: grid; gap: 12px; justify-items: start; padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; color: var(--muted);
}
.st-san.on { color: var(--grafito); }
.st-san.on .st-dot { background: var(--grafito); border-color: var(--grafito); }
.stage-note { margin-top: 22px; font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-ring { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #B9C3BB; display: inline-block; background: var(--blanco); }

.cp-body { padding: var(--section) 0 calc(var(--section) * 0.7); }
.cp-body-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cp-checks { font-size: 1.12rem; margin-bottom: 0; }
.cp-checks li::before { color: var(--verde-2); }
.cp-prep { background: var(--claro); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.cp-prep h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.015em; }
.cp-prep p { margin-top: 12px; color: var(--muted); }
.cp-prep ul { margin: 18px 0 0; padding-left: 1.1em; display: grid; gap: 10px; }
.cp-prep li::marker { color: var(--verde-2); }

.cp-modes { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-mode {
  display: grid; gap: 6px; padding: 24px 26px; border-radius: var(--radius); border: 1.5px solid var(--line);
  text-decoration: none; color: var(--grafito);
  transition: border-color 180ms ease, transform 160ms var(--ease-out);
}
.cp-mode strong { font-family: var(--f-display); font-size: 1.12rem; font-weight: 800; color: var(--verde); }
.cp-mode span { color: var(--muted); font-size: 0.98rem; }
.cp-mode:hover { border-color: var(--verde); color: var(--grafito); }
.cp-mode:active { transform: scale(0.99); }

.cp-others { padding: clamp(56px, 8vw, 96px) 0; }
.cp-others h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.015em; margin-bottom: 22px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); text-decoration: none; color: var(--grafito);
  font-family: var(--f-display); font-weight: 600; font-size: 0.92rem;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.chips a:hover { border-color: var(--verde); color: var(--verde); }
.chips a:active { transform: scale(0.97); }

@media (max-width: 860px) {
  .cp-body-grid, .cp-modes { grid-template-columns: 1fr; }
  .stage-wrap { grid-template-columns: 1fr; }
  .stage-track { grid-template-columns: 1fr; gap: 0; }
  .st { grid-template-columns: 20px 1fr; align-items: start; gap: 14px; padding: 0 0 18px; }
  .st-label { padding-top: 1px; }
  .st::before { top: -18px; bottom: auto; right: auto; left: 9px; width: 2px; height: 18px; margin: 0; }
  .st:last-child { padding-bottom: 0; }
  .st-san { grid-template-columns: 20px 1fr; align-items: center; gap: 14px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Foto + etiqueta de espécimen */
.cp-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cp-hero-copy .hero-actions { margin-bottom: clamp(48px, 7vh, 80px); }
.cp-photo { position: relative; margin: 0 0 clamp(40px, 6vh, 72px); }
.cp-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--claro); }
.specimen {
  position: absolute; left: -28px; bottom: 34px; width: 116px; height: 116px; border-radius: 50%;
  background: var(--blanco); display: grid; place-items: center;
  box-shadow: 0 2px 4px rgba(41, 45, 50, 0.08), 0 16px 32px -14px rgba(23, 107, 53, 0.45);
}
.specimen svg { width: 76px; height: 76px; overflow: visible; }
.specimen .s, .specimen .f { fill: none; stroke: var(--verde); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.specimen .f { fill: var(--verde-tint); }
.specimen .d { fill: var(--verde); }
.cp-photo figcaption { margin-top: 10px; font-size: 0.78rem; color: var(--muted); text-align: right; }
.cp-photo figcaption a { color: var(--muted); }

/* Problemas frecuentes */
.cp-problems { margin-top: clamp(64px, 9vw, 120px); }
.cp-problems-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.cp-problems-head p { color: var(--muted); max-width: 52ch; }
.pb-list { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3vw, 48px); }
.pb { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.pb dt { font-family: var(--f-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; display: flex; gap: 10px; align-items: baseline; }
.pb dt::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--verde-2); transform: translateY(-1px); }
.pb dd { margin: 8px 0 0; color: var(--muted); font-size: 0.98rem; }

/* Pasos del servicio: la misma regla de etapas */
.cp-steps { background: var(--verde); color: var(--on-verde-muted); padding: clamp(64px, 9vw, 112px) 0; }
.cp-steps h2 { color: var(--blanco); margin-bottom: clamp(32px, 5vw, 56px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid rgba(255, 255, 255, 0.35); }
.steps li { position: relative; padding: 34px clamp(12px, 2vw, 28px) 0 0; }
.step-n {
  position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blanco); color: var(--verde);
  font-family: var(--f-display); font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.steps h3 { color: var(--blanco); font-size: 1.2rem; }
.steps p { margin-top: 10px; font-size: 0.98rem; }

/* Modalidades + FAQ */
.cp-more { padding: clamp(64px, 9vw, 112px) 0; }
.cp-more .cp-modes { margin-top: 0; }
.faq { margin-top: clamp(56px, 8vw, 96px); max-width: 860px; }
.faq h2 { margin-bottom: 16px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; min-height: 44px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--grafito);
  transition: color 160ms ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--verde); }
.qa summary svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease-out); }
.qa[open] summary svg { transform: rotate(180deg); }
.qa p { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }
.js .qa[open] p { animation: detail-in 280ms var(--ease-out); }

@media (max-width: 960px) {
  .pb-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; border-top: 0; }
  .steps li { border-top: 2px solid rgba(255, 255, 255, 0.35); }
}
@media (max-width: 860px) {
  .cp-hero-grid { grid-template-columns: 1fr; }
  .cp-hero-copy .hero-actions { margin-bottom: 8px; }
  .cp-photo { max-width: 440px; margin-left: 28px; }
  .cp-photo img { aspect-ratio: 5 / 4; }
  .cp-problems-head { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pb-list, .steps { grid-template-columns: 1fr; }
  .specimen { width: 92px; height: 92px; left: -20px; bottom: 26px; }
  .specimen svg { width: 60px; height: 60px; }
  .cp-photo { margin-left: 16px; }
}

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px;
  border-radius: 999px; background: #25D366; color: #fff; text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12), 0 14px 28px -10px rgba(18, 140, 70, 0.55);
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14), 0 18px 32px -10px rgba(18, 140, 70, 0.6); }
.wa-float:active { transform: scale(0.96); }
/* solo el ícono, en escritorio y en móvil; el texto queda para lectores de pantalla */
.wa-float { width: 60px; height: 60px; padding: 0; justify-content: center; }
.wa-float svg { width: 32px; height: 32px; }
.wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-wa { --bg: #25D366; --fg: #0B2E17; margin-top: 24px; }
.btn-wa:hover { background: #1FBE5A; color: #0B2E17; }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Lupa arrastrable ---------- */
.plant .lens { cursor: grab; touch-action: none; }
.plant.is-dragging .lens { cursor: grabbing; transition: none; }
.plant .lens-hit { fill: transparent; }
.plant .lens:hover .lens-ring, .plant.is-dragging .lens-ring { stroke: var(--verde); fill: rgba(228, 240, 231, 0.45); }
.plant .lens-hint text { font-family: var(--f-display); font-weight: 800; font-size: 15px; fill: var(--verde); }
.plant .lens-hint text.sub { font-weight: 600; font-size: 12px; fill: var(--muted); }
.plant .lens-hint path { fill: none; stroke: var(--verde-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 5; }
.plant .lens-hint path + path { stroke-dasharray: none; }
.plant .lens-hint { transition: opacity 300ms ease; }
.plant.lens-used .lens-hint { opacity: 0; pointer-events: none; }
.js .plant:not(.is-drawn) .lens-hint { opacity: 0; }
.plant.is-drawing .lens-hint { transition: opacity 500ms ease 2300ms; }
@media (prefers-reduced-motion: no-preference) {
  /* el anillo punteado "camina" hasta que alguien usa la lupa: señal de que se puede mover */
  .plant:not(.lens-used) .lens-ring { animation: lens-march 1.6s linear infinite; }
  @keyframes lens-march { to { stroke-dashoffset: -24; } }
}
