/* ==========================================================================
   Garrote Agronegocios — v4.0
   Sistema de diseño: rural contemporáneo, técnico, sobrio.
   ========================================================================== */

/* Tipografías autoalojadas (sin depender de Google Fonts) */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }



:root {
  --ink: #0F1C07;          /* verde casi negro: fondos oscuros */
  --ink-2: #16280C;
  --green: #174A03;        /* verde de marca (logo) */
  --green-2: #3F7A22;      /* verde medio */
  --sage: #9DB57B;         /* verde suave */
  --gold: #A9781F;         /* dorado de marca */
  --gold-2: #D2AE55;       /* dorado claro, para fondos oscuros */
  --paper: #F5F3EC;        /* papel */
  --paper-2: #ECE8DC;
  --white: #FFFFFF;
  --text: #1E2418;
  --text-2: #56604B;
  --line: #DAD5C6;
  --line-dark: rgba(245, 243, 236, .14);
  --danger: #A23B2A;
  --ok: #3F7A22;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* etiquetas: misma familia, en mayúsculas espaciadas */

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(15, 28, 7, .06), 0 8px 28px rgba(15, 28, 7, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--white { background: var(--white); }
.section--sand { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--dark .lead, .section--dark p { color: rgba(245, 243, 236, .78); }

/* ---------- Tipografía ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--dark .kicker, .hero .kicker, .page-hero .kicker { color: var(--gold-2); }
.display { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; }
.h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
.h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; }
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.2; letter-spacing: -.015em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.mono { font-family: var(--mono); }
em.accent, .accent { font-style: normal; color: var(--green-2); }
.section--dark .accent, .hero .accent, .page-hero .accent { color: var(--gold-2); }

.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }
.sec-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--green); --fg: var(--paper); --bd: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 700; font-size: 15.5px; letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); --bg: var(--ink); --bd: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { --bg: var(--gold-2); --fg: var(--ink); --bd: var(--gold-2); }
.btn--gold:hover { --bg: var(--paper); --bd: var(--paper); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: rgba(15, 28, 7, .28); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: var(--paper); --bd: rgba(245, 243, 236, .35); }
.btn--ghost-light:hover { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  color: var(--green); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--gold-2); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr__logo { display: block; flex: none; }
.hdr__logo img { height: 46px; width: auto; }
.hdr__logo .logo-verde { display: none; }
.hdr__nav { display: flex; gap: 4px; margin-left: auto; }
.hdr__nav a {
  position: relative; padding: 10px 12px; font-size: 15px; font-weight: 600; text-decoration: none;
  color: rgba(245, 243, 236, .86); border-radius: var(--radius); transition: color .2s;
}
.hdr__nav a:hover { color: var(--paper); }
.hdr__nav a[aria-current="page"] { color: var(--paper); }
.hdr__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold-2); }
.hdr__actions { display: flex; align-items: center; gap: 10px; }
.hdr__login { font-size: 14px; font-weight: 600; color: rgba(245, 243, 236, .8); text-decoration: none; padding: 8px 10px; display: inline-flex; gap: 7px; align-items: center; }
.hdr__login svg { width: 17px; height: 17px; }
.hdr__login:hover { color: var(--paper); }
.hdr .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

/* estado sólido: al scrollear o en páginas claras */
.hdr.is-solid, .page-light .hdr { background: rgba(245, 243, 236, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom-color: var(--line); }
.hdr.is-solid .logo-claro, .page-light .hdr .logo-claro { display: none; }
.hdr.is-solid .logo-verde, .page-light .hdr .logo-verde { display: block; }
.hdr.is-solid .hdr__nav a, .page-light .hdr .hdr__nav a { color: var(--text-2); }
.hdr.is-solid .hdr__nav a:hover, .hdr.is-solid .hdr__nav a[aria-current="page"],
.page-light .hdr .hdr__nav a:hover, .page-light .hdr .hdr__nav a[aria-current="page"] { color: var(--ink); }
.hdr.is-solid .hdr__nav a[aria-current="page"]::after, .page-light .hdr .hdr__nav a[aria-current="page"]::after { background: var(--gold); }
.hdr.is-solid .hdr__login, .page-light .hdr .hdr__login { color: var(--text-2); }
.hdr.is-solid .hdr__login:hover, .page-light .hdr .hdr__login:hover { color: var(--ink); }
.hdr.is-solid .btn--gold, .page-light .hdr .btn--gold { --bg: var(--green); --fg: var(--paper); --bd: var(--green); }
.hdr.is-solid .btn--gold:hover, .page-light .hdr .btn--gold:hover { --bg: var(--ink); --bd: var(--ink); }

.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--paper); transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.hdr.is-solid .burger span, .page-light .burger span { background: var(--ink); }
.nav-open .burger span { background: var(--paper) !important; }
.nav-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; overflow-y: auto;
}
.nav-open .mnav { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }
.nav-open .hdr { background: transparent !important; border-color: transparent !important; backdrop-filter: none !important; }
.nav-open .hdr .logo-claro { display: block !important; }
.nav-open .hdr .logo-verde { display: none !important; }
.mnav__links a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 26px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.mnav__links a span { font-family: var(--mono); font-size: 12px; color: var(--gold-2); letter-spacing: .1em; font-weight: 500; }
.mnav__foot { margin-top: auto; display: grid; gap: 12px; }
.mnav__foot .btn { width: 100%; }

@media (max-width: 1080px) {
  .hdr__nav, .hdr__actions { display: none; }
  .burger { display: block; }
  .hdr__logo img { height: 40px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--paper);
  min-height: min(100svh, 920px); display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 72px) 0 clamp(48px, 7vw, 88px);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 28, 7, .82) 0%, rgba(15, 28, 7, .25) 30%, rgba(15, 28, 7, .35) 55%, rgba(15, 28, 7, .94) 100%),
    linear-gradient(90deg, rgba(15, 28, 7, .7) 0%, rgba(15, 28, 7, 0) 65%);
}
.hero .wrap { position: relative; width: 100%; }
.hero__grid { display: grid; gap: 48px; align-items: end; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.35fr .8fr; } }
.hero h1 { color: var(--paper); margin: 22px 0 26px; max-width: 14ch; }
.hero .lead { color: rgba(245, 243, 236, .82); margin-bottom: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 243, 236, .7); }
.hero__meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); }

/* Tarjeta cadena de valor (hero) */
.chain-card {
  background: rgba(15, 28, 7, .62); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: 26px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.chain-card__title { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.chain { display: grid; gap: 0; counter-reset: ch; }
.chain li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 12px 0; }
.chain li + li { border-top: 1px dashed rgba(245, 243, 236, .16); }
.chain__n { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(210, 174, 85, .55); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--gold-2); }
.chain li:last-child .chain__n { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); }
.chain strong { display: block; font-size: 16px; color: var(--paper); font-weight: 700; }
.chain small { display: block; font-size: 13.5px; line-height: 1.45; color: rgba(245, 243, 236, .66); }

/* Fondo de respaldo cuando no hay foto: curvas de nivel */
.topo { background-color: var(--ink); background-image: url("../img/topo.svg"); background-size: 1400px auto; background-position: center; }
.topo--light { background-color: var(--paper-2); background-image: url("../img/topo-light.svg"); }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px); }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.85); }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 28, 7, .96) 0%, rgba(15, 28, 7, .7) 55%, rgba(15, 28, 7, .45) 100%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--paper); margin: 20px 0 22px; max-width: 18ch; }
.page-hero .lead { color: rgba(245, 243, 236, .8); }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 243, 236, .55); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.page-hero__anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: rgba(245, 243, 236, .88); transition: background .2s, color .2s, border-color .2s; }
.chip-link:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip-link b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--gold-2); }
.chip-link:hover b { color: var(--gold); }

/* ---------- Unidades de negocio ---------- */
.units { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .units { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .units { grid-template-columns: repeat(5, 1fr); } }
.unit { background: var(--white); padding: 30px 26px 28px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: background .25s var(--ease); min-height: 290px; }
.unit:hover { background: var(--ink); color: var(--paper); }
.unit:hover h3 { color: var(--paper); }
.unit:hover p { color: rgba(245, 243, 236, .72); }
.unit:hover .unit__icon { color: var(--gold-2); border-color: rgba(210, 174, 85, .5); }
.unit__top { display: flex; justify-content: space-between; align-items: flex-start; }
.unit__n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--gold); }
.unit__icon { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--green); transition: color .25s, border-color .25s; }
.unit__icon svg { width: 24px; height: 24px; }
.unit__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-top: auto; }
.unit:hover .unit__label { color: var(--gold-2); }
.unit h3 { font-size: 21px; letter-spacing: -.015em; }
.unit p { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---------- Método 5 pasos ---------- */
.method { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .method { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: 30px 24px 30px 0; border-top: 1px solid var(--line-dark); }
@media (max-width: 899px) { .step { padding: 24px 0 24px 64px; } .step__n { position: absolute; left: 0; top: 24px; } }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--gold-2); display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(210, 174, 85, .45); border-radius: 50%; margin-bottom: 22px; }
@media (min-width: 900px) {
  .step::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--gold-2); transition: width .9s var(--ease); }
  .method.is-in .step::before { width: 100%; }
  .method.is-in .step:nth-child(2)::before { transition-delay: .15s; }
  .method.is-in .step:nth-child(3)::before { transition-delay: .3s; }
  .method.is-in .step:nth-child(4)::before { transition-delay: .45s; }
  .method.is-in .step:nth-child(5)::before { transition-delay: .6s; }
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.55; }

/* ---------- Paquetes de consultoría ---------- */
.pkgs { display: grid; gap: 20px; }
@media (min-width: 960px) { .pkgs { grid-template-columns: repeat(3, 1fr); } }
.pkg { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.pkg:hover { border-color: var(--sage); box-shadow: var(--shadow); transform: translateY(-3px); }
.pkg__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pkg h3 { font-size: 25px; }
.pkg__for { font-size: 15.5px; color: var(--text-2); }
.pkg__list { display: grid; gap: 9px; font-size: 15px; }
.pkg__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.pkg__list li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border: 1.5px solid var(--green-2); border-radius: 50%; }
.pkg__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: auto; }
.pkg__facts div { background: var(--paper); padding: 12px 14px; }
.pkg__facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.pkg__facts dd { margin: 3px 0 0; font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.35; }
.pkg .btn { margin-top: 4px; }

/* ---------- Split / feature blocks ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--ink); }
.media-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; }
.media-frame__cap { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 243, 236, .85); z-index: 2; }
.media-frame__cap span { background: rgba(15, 28, 7, .7); padding: 6px 10px; border-radius: 4px; backdrop-filter: blur(6px); }

.checks { display: grid; gap: 14px; margin: 28px 0 32px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 16px; }
.checks svg { width: 22px; height: 22px; color: var(--green-2); margin-top: 2px; }
.section--dark .checks svg { color: var(--gold-2); }
.checks strong { color: var(--ink); }
.section--dark .checks strong { color: var(--paper); }

/* ---------- Diagrama dato→decisión ---------- */
.flow { display: grid; gap: 14px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.flow__item { position: relative; padding: 28px 26px; border: 1px solid var(--line-dark); background: rgba(245, 243, 236, .03); }
@media (min-width: 900px) {
  .flow__item + .flow__item { border-left: 0; }
  .flow__item:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .flow__item:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--gold-2); border-color: var(--gold-2); }
  .flow__item:last-child * { color: var(--ink) !important; }
  .flow__item:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; border-top: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); background: var(--ink); transform: translateY(-50%) rotate(45deg); z-index: 1; }
}
@media (max-width: 899px) { .flow__item { border-radius: var(--radius); } .flow__item:last-child { background: var(--gold-2); border-color: var(--gold-2); } .flow__item:last-child * { color: var(--ink) !important; } }
.flow__k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.flow__item h3 { font-size: 26px; margin: 10px 0 10px; }
.flow__item p { font-size: 14.5px; line-height: 1.55; }
.flow__eg { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-dark); font-family: var(--mono); font-size: 12.5px; color: rgba(245, 243, 236, .75) !important; }
.flow__item:last-child .flow__eg { border-top-color: rgba(15, 28, 7, .25); }

/* ---------- Principios ---------- */
.principles { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { background: var(--paper); padding: 40px 32px 40px 0; }
@media (min-width: 900px) { .principle + .principle { padding-left: 32px; } }
.principle .principle__q { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin-bottom: 14px; }
.principle p { color: var(--text-2); font-size: 16px; }
.principle__n { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .12em; margin-bottom: 18px; display: block; }

/* ---------- Digital ---------- */
.tools { display: grid; gap: 14px; }
@media (min-width: 700px) { .tools { grid-template-columns: 1fr 1fr; } }
.tool { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 10px; background: rgba(245, 243, 236, .03); }
.tool__head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
.tool h4 { font-size: 18px; color: var(--paper); }
.tool p { font-size: 14.5px; line-height: 1.55; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.badge--live { color: var(--sage); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--dev { color: var(--gold-2); }
.badge--muted { color: var(--text-2); }

/* ---------- Novedades ---------- */
.news-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--sage); }
.news-card__img { aspect-ratio: 16 / 10; background: var(--ink); position: relative; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__img--empty { display: grid; place-items: center; }
.news-card__img--empty img { width: 42%; height: auto; object-fit: contain; opacity: .9; transform: none !important; }
.news-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__date { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.news-card h3 { font-size: 21px; line-height: 1.25; }
.news-card p { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.news-card .link-arrow { margin-top: auto; align-self: flex-start; font-size: 14px; }

.article { max-width: 760px; margin: 0 auto; }
.article__img { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 40px; }
.article__body { font-size: 18.5px; line-height: 1.75; color: var(--text); }
.article__body p + p { margin-top: 1.2em; }
.article__body blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.article__cta { margin-top: 56px; padding: 32px; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); display: grid; gap: 18px; }
.article__cta h3 { color: var(--paper); font-size: 24px; }
.article__cta p { color: rgba(245, 243, 236, .75); }

/* ---------- Productos ---------- */
.cats { display: grid; gap: 20px; }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
.cat { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cat__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--green); }
.cat__icon svg { width: 26px; height: 26px; }
.cat h3 { font-size: 22px; margin-bottom: 8px; }
.cat p { color: var(--text-2); font-size: 15.5px; }
.cat__criteria { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14.5px; }
.cat__criteria b { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; font-weight: 500; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-2); transition: all .2s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.prod-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
.prod { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.prod__img { aspect-ratio: 4 / 3; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }
.prod__img--empty img { width: 38%; height: auto; object-fit: contain; opacity: .35; }
.prod__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod__cat { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.prod h3 { font-size: 20px; line-height: 1.25; }
.prod p { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.prod__actions { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

.state { padding: 48px 24px; text-align: center; color: var(--text-2); border: 1px dashed var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .5); }
.state strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, #f3f0e6 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite linear; border-radius: var(--radius-lg); min-height: 320px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Capacitaciones ---------- */
.courses { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 800px) { .courses { grid-template-columns: repeat(2, 1fr); } }
.course { background: var(--white); padding: 30px; display: grid; gap: 12px; align-content: start; }
.course__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.course__meta span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; background: var(--paper); border-radius: 4px; color: var(--text-2); }
.course h3 { font-size: 22px; }
.course p { color: var(--text-2); font-size: 15.5px; }
.incompany { margin-top: 20px; border: 1.5px solid var(--gold); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); display: grid; gap: 24px; background: var(--white); }
@media (min-width: 900px) { .incompany { grid-template-columns: 1.4fr 1fr; align-items: center; } }

/* ---------- Service detail blocks ---------- */
.svc { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) { .svc { grid-template-columns: 360px 1fr; } }
.svc__aside { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1000px) { .svc__aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.svc__num { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--gold); }
.svc__aside h2 { font-size: clamp(30px, 3.4vw, 44px); }
.feature-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--white); padding: 26px; }
.feature h4 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feature h4 svg { width: 22px; height: 22px; color: var(--green-2); flex: none; }
.feature p { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.callout { margin-top: 20px; padding: 24px 28px; border-left: 3px solid var(--gold); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-size: 16.5px; }
.callout strong { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13.5px; font-weight: 600; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 400; font-size: 22px; color: var(--green); transition: transform .25s var(--ease), background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq .faq__a { padding: 0 60px 26px 0; color: var(--text-2); font-size: 16.5px; max-width: 76ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1.3fr 1fr; } }
.cta-band h2 { color: var(--paper); }
.contact-lines { display: grid; gap: 12px; }
.contact-line { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: var(--radius); text-decoration: none; transition: background .2s, border-color .2s; }
.contact-line:hover { background: rgba(245, 243, 236, .06); border-color: rgba(210, 174, 85, .5); }
.contact-line__i { width: 44px; height: 44px; border-radius: 50%; background: rgba(210, 174, 85, .14); display: grid; place-items: center; color: var(--gold-2); }
.contact-line__i svg { width: 20px; height: 20px; }
.contact-line small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 243, 236, .55); }
.contact-line b { font-size: 16.5px; color: var(--paper); font-weight: 700; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 16px; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2356604B' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(63, 122, 34, .14); }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--danger); }
.field__err { font-size: 13px; color: var(--danger); min-height: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 13.5px; color: var(--text-2); }
.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 15px; font-weight: 600; display: none; }
.alert.is-show { display: block; }
.alert--ok { background: rgba(63, 122, 34, .1); color: var(--green); border: 1px solid rgba(63, 122, 34, .3); }
.alert--err { background: rgba(162, 59, 42, .08); color: var(--danger); border: 1px solid rgba(162, 59, 42, .3); }
.checkbox { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--green); }

.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.35fr 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px); }
.panel--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel--dark h3 { color: var(--paper); }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: rgba(245, 243, 236, .72); padding: clamp(64px, 8vw, 96px) 0 28px; font-size: 15px; }
.ftr__top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .ftr__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.ftr__brand img { height: 64px; width: auto; margin-bottom: 20px; }
.ftr__slogan { font-size: 18px; font-weight: 700; color: var(--paper); line-height: 1.35; max-width: 30ch; letter-spacing: -.01em; }
.ftr h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px; }
.ftr ul { display: grid; gap: 9px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--paper); }
.ftr__contact li { display: flex; gap: 10px; align-items: center; }
.ftr__contact svg { width: 16px; height: 16px; color: var(--gold-2); flex: none; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 13px; color: rgba(245, 243, 236, .5); }
.ftr__bottom a:hover { color: var(--paper); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #1FAF5A; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(15, 28, 7, .28); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Utilidades ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.center { text-align: center; }
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.divider { height: 1px; background: var(--line); margin: 48px 0; border: 0; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 800px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--ink); padding: 26px 22px; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--paper); letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 14px; color: rgba(245, 243, 236, .66); }
.chain--light li + li { border-top-color: var(--line); }
.chain--light .chain__n { color: var(--gold); border-color: var(--line); }
.chain--light li:last-child .chain__n { background: var(--green); color: var(--paper); border-color: var(--green); }
.chain--light strong { color: var(--ink); }
.chain--light small { color: var(--text-2); }

/* ==========================================================================
   Aplicación: acceso, cuenta y administración
   ========================================================================== */
.page-app { background: var(--paper); }
.page-app .wa-float { display: none; }
.app-auth { min-height: 100svh; display: grid; padding-top: var(--header-h); }
@media (min-width: 960px) { .app-auth { grid-template-columns: 1fr 1fr; } }
.app-auth__side { color: var(--paper); padding: clamp(40px, 6vw, 80px) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.app-auth__main { display: grid; place-items: center; padding: clamp(32px, 5vw, 72px) var(--gutter); }
.app-auth .app-card { width: 100%; max-width: 460px; }
.app-shell { padding: calc(var(--header-h) + 48px) 0 96px; min-height: 80vh; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.app-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .app-grid { grid-template-columns: 1.2fr 1fr; } }
.app-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); }
.app-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app-toolbar .filters { margin: 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 12px 16px; font-weight: 700; font-size: 15px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.count { font-family: var(--mono); font-size: 11px; background: var(--gold); color: var(--white); padding: 2px 7px; border-radius: 999px; }
.count:empty { display: none; }

.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 680px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; background: var(--paper-2); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table .sub { font-size: 13px; color: var(--text-2); }
.pill { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--paper-2); color: var(--text-2); white-space: nowrap; }
.pill--ok { background: rgba(63, 122, 34, .12); color: var(--green); }
.pill--new { background: rgba(169, 120, 31, .14); color: #7c5812; }
.pill--off { background: rgba(162, 59, 42, .1); color: var(--danger); }

.inq { display: grid; gap: 12px; }
.inq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; display: grid; gap: 10px; }
.inq__item.is-new { border-left: 3px solid var(--gold); }
.inq__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; }
.inq__who { font-weight: 800; font-size: 17px; color: var(--ink); }
.inq__meta { font-size: 13.5px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.inq__meta a { color: var(--green); font-weight: 600; }
.inq__msg { white-space: pre-wrap; font-size: 15px; line-height: 1.6; background: var(--paper); padding: 14px 16px; border-radius: var(--radius); }
.inq__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.svc-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, background .2s; }
.svc-card + .svc-card { margin-top: 10px; }
.svc-card:hover { border-color: var(--green-2); background: var(--paper); }
.svc-card b { display: block; color: var(--ink); font-size: 17px; }
.svc-card span { font-size: 14.5px; color: var(--text-2); }
.row-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.row-list > div:last-child { border-bottom: 0; }

.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 80px rgba(15, 28, 7, .35); background: var(--white); color: var(--text); }
.modal::backdrop { background: rgba(15, 28, 7, .55); backdrop-filter: blur(3px); }
.modal form { padding: 26px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; }
.modal__x { border: 0; background: var(--paper); width: 38px; height: 38px; border-radius: 50%; font-size: 24px; cursor: pointer; line-height: 1; }
.modal__body { display: grid; gap: 16px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; }
.drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 16px; align-items: center; background: var(--paper); cursor: pointer; }
.drop.is-over { border-color: var(--green-2); background: rgba(63, 122, 34, .06); }
.drop img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--paper-2); }
.drop small { color: var(--text-2); display: block; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius); font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .25s var(--ease); z-index: 300; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Paquetes dentro del bloque de servicios: tarjeta horizontal */
.svc > * { min-width: 0; }
.svc .pkgs { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .svc .pkg { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 12px; align-items: start; }
  .svc .pkg > .pkg__tag, .svc .pkg > h3, .svc .pkg > .pkg__for { grid-column: 1; }
  .svc .pkg > .pkg__list { grid-column: 2; grid-row: 1 / span 3; }
  .svc .pkg > .pkg__facts { grid-column: 1; margin-top: 8px; }
  .svc .pkg > .btn { grid-column: 2; align-self: end; }
}
.contact-grid > *, .app-grid > *, .split > *, .hero__grid > *, .grid-2 > *, .cta-band__inner > * { min-width: 0; }
.select { text-overflow: ellipsis; }
.contact-grid aside { grid-template-columns: minmax(0, 1fr); }
.contact-line > span:last-child { min-width: 0; }
.contact-line b { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.app-auth__side .accent, .app-auth__side .kicker { color: var(--gold-2); }

/* ---------- Hero con foto de campo (v4.0.2) ---------- */
.hero { align-items: stretch; min-height: min(100svh, 1000px); padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px)); }
.hero .wrap { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { object-position: center 62%; filter: saturate(.88) contrast(1.04); }
.hero__media::after {
  background:
    linear-gradient(180deg, rgba(15, 28, 7, .88) 0%, rgba(15, 28, 7, .62) 26%, rgba(15, 28, 7, .12) 50%, rgba(15, 28, 7, 0) 62%, rgba(15, 28, 7, .15) 82%, rgba(15, 28, 7, .9) 100%);
}
.hero h1 { max-width: 20ch; margin: 20px 0 22px; }
.hero__row { display: grid; gap: 22px 48px; align-items: end; }
@media (min-width: 1000px) { .hero__row { grid-template-columns: minmax(0, 1fr) auto; } }
.hero__row .lead { margin: 0; max-width: 56ch; }
.hero__meta { margin-top: 0; }
.hero .kicker, .hero h1, .hero .lead { text-shadow: 0 1px 4px rgba(5, 12, 2, .35); }
@media (max-width: 699px) {
  .hero { flex-direction: column; min-height: 0; padding-bottom: 0; }
  .hero .wrap { order: 1; gap: 36px; }
  .hero__media { position: relative; order: 2; aspect-ratio: 4 / 3; margin-top: 36px; }
  .hero__media::after { background: linear-gradient(180deg, rgba(15, 28, 7, 1) 0%, rgba(15, 28, 7, 0) 28%); }
  .hero__media.no-photo { display: none; }
  .hero__media img { object-position: center; }
}
/* Hero desktop: todo el texto vive en el cielo; la hacienda queda libre abajo */
@media (min-width: 700px) {
  .hero .display { font-size: clamp(42px, 5.2vw, 76px); }
}
@media (min-width: 1000px) {
  .hero { min-height: clamp(760px, 100svh, 1000px); }
  .hero__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
  .hero__top .kicker { grid-column: 1 / -1; }
  .hero h1 { margin-bottom: 0; max-width: 12ch; }
  .hero__row { grid-template-columns: 1fr !important; gap: 22px; padding-bottom: 8px; }
  .hero__row .lead { font-size: 18px; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(15, 28, 7, .9) 0%, rgba(15, 28, 7, .72) 24%, rgba(15, 28, 7, .3) 42%, rgba(15, 28, 7, 0) 54%, rgba(15, 28, 7, 0) 80%, rgba(15, 28, 7, .85) 100%);
  }
}
@media (min-width: 1000px) {
  .hero .display { font-size: clamp(44px, 4.4vw, 66px); }
  .hero h1 { max-width: 13ch; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(15, 28, 7, .9) 0%, rgba(15, 28, 7, .72) 24%, rgba(15, 28, 7, .3) 42%, rgba(15, 28, 7, 0) 54%, rgba(15, 28, 7, 0) 70%, rgba(15, 28, 7, .55) 86%, rgba(15, 28, 7, .92) 100%);
  }
}

/* v4.0.4 — Etiquetas y rótulos en Plus Jakarta Sans (se reemplazó la monoespaciada) */
.kicker, .hero__meta, .chain-card__title, .unit__n, .unit__label, .pkg__tag, .pkg__facts dt, .media-frame__cap,
.flow__k, .principle__n, .badge, .news-card__date, .prod__cat, .cat__criteria b, .course__meta span,
.contact-line small, .ftr h4, .mnav__links a span, .crumbs, .chip-link b, .svc__num, .table th, .pill, .count {
  font-weight: 700; letter-spacing: .12em;
}
.chain__n, .step__n { font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.flow__eg { font-weight: 500; letter-spacing: 0; font-size: 13.5px; }
.kicker { font-size: 12px; }
.pkg > .btn { margin-top: auto; }
.svc .pkg > .btn { margin-top: 0; }

/* Botón Instagram en la portada */
.hero__ig {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 20px 8px 8px; border-radius: 999px; text-decoration: none; color: var(--paper);
  background: rgba(15, 28, 7, .55); border: 1px solid rgba(245, 243, 236, .28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.hero__ig:hover { background: rgba(15, 28, 7, .8); border-color: var(--gold-2); transform: translateY(-1px); }
.hero__ig-i { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-2); color: var(--ink); display: grid; place-items: center; flex: none; }
.hero__ig-i svg { width: 21px; height: 21px; }
.hero__ig b { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.hero__ig small { display: block; font-size: 13px; color: rgba(245, 243, 236, .72); line-height: 1.3; }
.hero__ig-arrow { font-size: 18px; color: var(--gold-2); transition: transform .2s var(--ease); }
.hero__ig:hover .hero__ig-arrow { transform: translateX(3px); }
