/* ==========================================================================
   JLG Distribuciones — jlgcr.com
   Sistema de diseño. Sin dependencias, sin estilos en línea (CSP estricta).
   Tipografía: Archivo (titulares) + Source Sans 3 (texto) — auto-alojadas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Tinta y neutros fríos, en armonía con el azul de marca */
  --ink:            #15161F;
  --ink-2:          #383B47;
  --muted:          #696D7B;
  --line:           #E0E2E8;
  --line-strong:    #C3C7D1;
  --surface:        #FFFFFF;
  --surface-2:      #F6F7FB;
  --surface-3:      #EDEFF7;

  /* Azul de marca — tomado directamente del logo (#040885) */
  --brand:          #040885;
  --brand-2:        #030661;
  --brand-3:        #02043D;
  --brand-soft:     #E8E9F8;
  --brand-tint:     #F5F6FC;

  /* Ocre de grano — acento secundario, uso medido */
  --accent:         #A85D12;
  --accent-2:       #C9761C;
  --accent-soft:    #FAF0E1;

  /* Azul clínico — solo línea veterinaria */
  --clinic:         #17566E;
  --clinic-soft:    #E9F1F5;

  --danger:         #A32020;
  --ok:             #1D6B3F;

  --wa:             #1F7A4D;

  /* Tipografía */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  /* Escala fluida */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.13rem + 0.35vw, 1.40rem);
  --step-2:  clamp(1.45rem, 1.33rem + 0.60vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.55rem + 1.00vw, 2.45rem);
  --step-4:  clamp(2.10rem, 1.75rem + 1.75vw, 3.30rem);

  /* Espacio */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.5rem;   --sp-6: 2rem;
  --sp-7: 3rem;     --sp-8: 4rem;     --sp-9: 6rem;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow-1:  0 1px 2px rgba(23,22,15,.06), 0 2px 8px rgba(23,22,15,.05);
  --shadow-2:  0 2px 4px rgba(23,22,15,.06), 0 12px 32px rgba(23,22,15,.09);

  --wrap: 1180px;
  --focus: 0 0 0 3px var(--surface), 0 0 0 6px var(--brand);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.028em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }

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

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15em; }
li { margin-bottom: var(--sp-2); }

strong { color: var(--ink); font-weight: 600; }
em { font-style: normal; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius);
}

::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   3. Utilidades
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

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

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600; text-decoration: none;
}
.skiplink:focus { left: 0; }

.lock {
  display: inline-block; width: .55em; height: .72em;
  border: 1.5px solid currentColor; border-radius: 2px;
  position: relative; margin-right: .4em; vertical-align: -1px;
}
.lock::before {
  content: ""; position: absolute; left: 50%; top: -5px;
  width: .34em; height: .34em; transform: translateX(-50%);
  border: 1.5px solid currentColor; border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

/* --------------------------------------------------------------------------
   4. Eyebrow / etiquetas
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-3);
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.eyebrow__num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pagehead .eyebrow::after { display: none; }

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: 46px;
  padding: 0.62em 1.25em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease,
              border-color .16s ease, transform .16s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--brand); --btn-bd: var(--brand); }
.btn--primary:hover { --btn-bg: var(--brand-2); --btn-bd: var(--brand-2); }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong);
}
.btn--outline:hover { --btn-bg: var(--surface-2); --btn-bd: var(--ink); --btn-fg: var(--ink); }

.btn--ghost {
  --btn-bg: var(--surface); --btn-fg: var(--brand); --btn-bd: var(--line);
}
.btn--ghost:hover { --btn-bg: var(--brand-soft); --btn-bd: var(--brand); }

.btn--inverse {
  --btn-bg: #fff; --btn-fg: var(--brand-2); --btn-bd: #fff;
}
.btn--inverse:hover { --btn-bg: var(--accent-soft); --btn-bd: var(--accent-soft); --btn-fg: var(--brand-3); }

.btn--wa { --btn-bg: var(--wa); --btn-bd: var(--wa); }
.btn--wa:hover { --btn-bg: #186140; --btn-bd: #186140; }

/* --------------------------------------------------------------------------
   6. Barra superior + cabecera
   -------------------------------------------------------------------------- */
.utilitybar {
  background: var(--brand-3);
  color: #C4C8E2;
  font-size: var(--step--1);
}
.utilitybar__inner {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  align-items: center; justify-content: space-between;
  min-height: 38px;
}
.utilitybar__note { margin: 0; letter-spacing: .01em; }
.utilitybar__links { margin: 0; display: flex; gap: var(--sp-3); align-items: center; }
.utilitybar a { color: #DFE3F4; text-decoration: none; }
/* Los números de teléfono no deben partirse entre líneas: en el pie se veía
   «+506» al final de una línea y el resto del número al principio de la
   siguiente. */
.nowrap { white-space: nowrap; }
.utilitybar a:hover { color: #fff; text-decoration: underline; }
.utilitybar__sep { opacity: .45; }

.siteheader {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.siteheader.is-scrolled { box-shadow: var(--shadow-1); }
.siteheader__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 92px;
}

.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; color: var(--ink);
  flex: 0 0 auto;
}
/* Lockup horizontal: ilustración (perro + gato) + logotipo tipográfico del
   cliente, colocados lado a lado y a la misma altura. Los trazos de la
   ilustración miden 18px en el origen y por debajo de 64px dejan de leerse;
   el subtexto "Distribuciones" del logotipo necesita esa misma altura para
   ser legible, así que 64px es la altura de la marca en escritorio. */
.brand__mark { height: 64px; width: auto; flex: 0 0 auto; }
.brand__word { height: 64px; width: auto; flex: 0 0 auto; }

.primarynav { margin-left: auto; }
.primarynav__list {
  display: flex; gap: clamp(.35rem, 1.4vw, 1.1rem);
  list-style: none; margin: 0; padding: 0;
}
.primarynav__list li { margin: 0; }
.primarynav a {
  display: block; padding: .5rem .55rem;
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 600;
  color: var(--ink-2); text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.primarynav a:hover { color: var(--brand); border-bottom-color: var(--line-strong); }
.primarynav a.is-active { color: var(--brand-2); border-bottom-color: var(--brand); }

.header-cta { flex: 0 0 auto; min-height: 42px; padding: 0.5em 1em; }

.navtoggle {
  display: none;
  margin-left: auto;
  background: none; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); color: var(--ink);
  font-family: var(--font-display); font-size: var(--step--1);
  font-weight: 600; padding: .55rem .8rem; cursor: pointer;
  align-items: center; gap: .5rem;
}
.navtoggle__bars {
  width: 16px; height: 2px; background: currentColor; position: relative;
}
.navtoggle__bars::before, .navtoggle__bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
}
.navtoggle__bars::before { top: -5px; }
.navtoggle__bars::after  { top: 5px; }

/* --------------------------------------------------------------------------
   7. Hero (asimetría: 1.35fr / 1fr — no centrado)
   -------------------------------------------------------------------------- */
.hero {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.hero h1 { margin-bottom: var(--sp-5); max-width: 22ch; }
.hero h1 em {
  color: var(--brand);
  box-shadow: inset 0 -0.32em 0 var(--brand-soft);
}
.hero__lede {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: var(--sp-6);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.hero__fineprint {
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 48ch;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.hero__index {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-1);
}
.hero__index-title {
  font-size: var(--step--1);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.chips { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chips li { margin: 0; }
.chips a {
  display: block;
  padding: .48rem .8rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 600;
  color: var(--ink-2); text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chips a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.hero__index-foot {
  margin: 0; padding-top: var(--sp-4); border-top: 1px solid var(--line);
  font-size: var(--step--1); font-weight: 600;
}
.hero__index-foot a { text-decoration: none; }

/* --------------------------------------------------------------------------
   8. Franja de capacidades
   -------------------------------------------------------------------------- */
.capabilities {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.capabilities__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cap {
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  border-left: 1px solid var(--line);
  padding-left: var(--sp-5);
}
.cap:first-child { border-left: 0; padding-left: 0; }
.cap__label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 var(--sp-2);
}
.cap__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-0); font-weight: 600;
  color: var(--ink); line-height: 1.35;
}

/* --------------------------------------------------------------------------
   9. Secciones
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--catalog { background: var(--surface-2); border-block: 1px solid var(--line); }
.section--split { background: var(--surface); }

.section__head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section__head h2 { margin-bottom: var(--sp-3); }
.section__intro { font-size: var(--step-1); color: var(--muted); margin: 0; }
.section__foot { margin-top: var(--sp-6); color: var(--muted); }

/* --------------------------------------------------------------------------
   10. Índice de categorías (filas, no tarjetas con icono)
   -------------------------------------------------------------------------- */
.catindex { list-style: none; margin: 0; padding: 0; counter-reset: cat; }
.catrow { margin: 0; border-top: 1px solid var(--line-strong); }
.catrow:last-child { border-bottom: 1px solid var(--line-strong); }

.catrow__link {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.15fr) minmax(0, 1fr) 2rem;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-3);
  text-decoration: none; color: inherit;
  transition: background-color .16s ease, padding-left .16s ease;
}
.catrow__link:hover { background: var(--surface); padding-left: var(--sp-5); }
.catrow__link:hover .catrow__go { color: var(--brand); transform: translateX(4px); }
.catrow__link:hover .catrow__name { color: var(--brand); }

.catrow__idx {
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.catrow__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.catrow__name {
  font-family: var(--font-display);
  font-size: var(--step-2); font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.15;
  transition: color .16s ease;
}
.catrow__kicker { font-size: var(--step--1); color: var(--muted); }
.catrow__species {
  font-size: var(--step--1); color: var(--ink-2);
  font-weight: 600;
}
.catrow__go {
  font-size: 1.4rem; color: var(--line-strong);
  transition: color .16s ease, transform .16s ease;
  justify-self: end;
}

/* --------------------------------------------------------------------------
   11. Banda de marca (ritmo oscuro)
   -------------------------------------------------------------------------- */
.band--brand {
  background: var(--brand-2);
  color: #DFE3F4;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.band--brand h2, .band--brand h3 { color: #fff; }
/* :not(.btn) es imprescindible: sin él esta regla (especificidad 0-1-1) gana a
   .btn (0-1-0) y pinta de blanco el texto del botón inverso, que también es
   blanco — el botón quedaba completamente vacío en el inicio. */
.band--brand a:not(.btn) { color: #fff; }
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.band__lede { font-size: var(--step-1); color: #C4C8E2; max-width: 46ch; }
.band__cta { margin-top: var(--sp-5); }
.band__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5);
}
.band__cols h3 {
  font-size: var(--step--1); letter-spacing: .12em;
  text-transform: uppercase; color: #A7AECD;
  padding-bottom: var(--sp-3); border-bottom: 1px solid rgba(255,255,255,.18);
  margin-bottom: var(--sp-4);
}
.band__cols p { font-size: var(--step-0); color: #DFE3F4; margin: 0; }

/* --------------------------------------------------------------------------
   12. Split (cuerpo + aside)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split__body h2:not(:first-child) { margin-top: var(--sp-7); }
.split__body > p { max-width: 62ch; }
.split__cta { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.split__alt { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-3); }

.split__aside {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.split__aside h2, .split__aside h3 { font-size: var(--step-1); }
.split__aside--steps { background: var(--surface); }
/* El logo completo (ilustración + logotipo) solo se usa a tamaño grande, donde
   todos sus detalles son legibles. */
.split__logo { display: block; width: 200px; height: auto; margin: 0 0 var(--sp-5); }

.ticks { list-style: none; margin: 0 0 var(--sp-5); padding: 0; }
.ticks li {
  position: relative; padding-left: 1.6em; margin-bottom: var(--sp-3);
  color: var(--ink-2);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: .55em; height: .3em;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.ticks--lg li { margin-bottom: var(--sp-4); }

.steps { list-style: none; margin: 0 0 var(--sp-5); padding: 0; counter-reset: s; }
.steps li {
  position: relative; padding-left: 2.4em; margin-bottom: var(--sp-4);
  font-size: var(--step--1); color: var(--ink-2);
}
.steps__n {
  position: absolute; left: 0; top: -.05em;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-2);
  font-family: var(--font-display); font-weight: 700; font-size: .82em;
  display: flex; align-items: center; justify-content: center;
}

.factlist { margin: 0 0 var(--sp-5); }
.factlist dt {
  font-family: var(--font-display);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .15rem;
}
.factlist dd {
  margin: 0 0 var(--sp-4); color: var(--ink);
  font-size: var(--step-0);
}
.factlist dd:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13. Cabecera de página
   -------------------------------------------------------------------------- */
.pagehead {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.25rem, 5vw, 4rem);
}
.pagehead h1 { max-width: 26ch; margin-bottom: var(--sp-4); }
.pagehead__lede {
  font-size: var(--step-1); color: var(--ink-2);
  max-width: 62ch; margin-bottom: var(--sp-4);
}
.pagehead__meta { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   14. Catálogo
   -------------------------------------------------------------------------- */
.jumpnav { margin-bottom: var(--sp-7); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
.jumpnav ul { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.jumpnav li { margin: 0; }
.jumpnav a {
  display: block; padding: .4rem .8rem;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--surface); font-size: var(--step--1); font-weight: 600;
  color: var(--ink-2); text-decoration: none;
}
.jumpnav a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.catblock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.catblock:last-child { border-bottom: 1px solid var(--line); }
.catblock__head h2 { font-size: var(--step-2); margin-bottom: var(--sp-3); }
.catblock__species { font-size: var(--step--1); color: var(--muted); margin: 0; }
.catblock__body .lede { font-size: var(--step-1); color: var(--ink-2); }
.catblock__cta { margin-top: var(--sp-5); }

.itemlist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-5);
}
.itemlist li {
  position: relative; padding-left: 1.1em;
  font-size: var(--step--1); color: var(--ink-2); margin: 0;
  border-bottom: 1px dotted var(--line);
  padding-block: var(--sp-2);
}
.itemlist li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 5px; height: 5px; background: var(--accent); border-radius: 50%;
}
.itemlist--lg { grid-template-columns: 1fr; }

/* --------------------------------------------------------------------------
   15. Detalle de categoría
   -------------------------------------------------------------------------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.detail__main h2 { font-size: var(--step-2); }
.detail__note {
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--muted);
}
.detail__cta { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.detail__aside {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.6rem);
}
.detail__aside h2 { font-size: var(--step-0); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.othercats { list-style: none; margin: 0; padding: 0; }
.othercats li { margin: 0; border-top: 1px solid var(--line); }
.othercats li:last-child { border-bottom: 1px solid var(--line); }
.othercats a {
  display: flex; flex-direction: column; gap: 1px;
  padding: var(--sp-3) 0; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
}
.othercats a span { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.othercats a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   16. Marcas
   -------------------------------------------------------------------------- */
.brandgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-4);
}
.brandcard {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-5); margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.brandcard__name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; color: var(--ink); }
.brandcard__note { font-size: var(--step--1); color: var(--muted); }
.brandgrid .pending {
  grid-column: 1 / -1; margin: 0;
  padding: var(--sp-6);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink-2);
}
.brandgrid .pending code {
  font-size: .9em; background: var(--surface-3);
  padding: .1em .35em; border-radius: 3px;
}

/* --------------------------------------------------------------------------
   17. Cobertura
   -------------------------------------------------------------------------- */
.coverage {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.coverage__col h2 { font-size: var(--step-2); }
.coverage__note { color: var(--muted); }
.geo {
  list-style: none; margin: var(--sp-5) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--sp-4);
}
.geo li {
  margin: 0; padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
}

.noteblock {
  background: var(--brand-soft);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.noteblock h2 { font-size: var(--step-2); }
.noteblock p { max-width: 68ch; }

/* --------------------------------------------------------------------------
   18. Contacto y formulario
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__form h2 { font-size: var(--step-2); }
.contact__aside {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.contact__aside h2 { font-size: var(--step-0); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__note {
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--muted);
}

.form { max-width: 42rem; }
.field { margin-bottom: var(--sp-5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field-row .field { margin-bottom: var(--sp-5); }

.field label {
  display: block; margin-bottom: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--step--1); font-weight: 600; color: var(--ink);
}
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: var(--step-0);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .68em .8em;
  min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: auto; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.err {
  margin: var(--sp-2) 0 0; font-size: var(--step--1);
  color: var(--danger); font-weight: 600; min-height: 0;
}
.err:empty { display: none; }

[data-hp] { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__req-note { font-size: var(--step--1); color: var(--muted); margin: var(--sp-4) 0 0; }
.form__consent { font-size: var(--step--1); color: var(--muted); }
.form__actions { margin: 0; }
.form__status { margin: var(--sp-4) 0 0; font-weight: 600; }
.form__status[data-state="ok"]   { color: var(--ok); }
.form__status[data-state="err"]  { color: var(--danger); }
.form__status[data-state="busy"] { color: var(--muted); }

/* --------------------------------------------------------------------------
   19. Prosa legal
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-1); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h2:first-child { margin-top: 0; }
.prose__meta { margin-top: var(--sp-7); padding-top: var(--sp-4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   20. 404
   -------------------------------------------------------------------------- */
.notfound { padding-block: clamp(4rem, 12vw, 9rem); background: var(--surface-2); }
.notfound__inner { max-width: 46rem; }
.notfound__lede { font-size: var(--step-1); color: var(--ink-2); }
.notfound__links { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.notfound__links li { margin: 0; }
.notfound__links a {
  display: block; padding: .55rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); font-family: var(--font-display);
  font-weight: 600; font-size: var(--step--1);
  color: var(--ink); text-decoration: none;
}
.notfound__links a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* --------------------------------------------------------------------------
   21. Pie
   -------------------------------------------------------------------------- */
.sitefooter {
  background: var(--brand-3);
  color: #B9BFD8;
  padding-block: clamp(2.5rem, 5vw, 4rem) var(--sp-6);
  margin-top: var(--sp-8);
}
.sitefooter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.sitefooter__logo { width: 170px; height: auto; margin-bottom: var(--sp-4); }
.sitefooter__tagline { font-size: var(--step--1); margin: 0 0 var(--sp-2); }
.sitefooter__locale { font-size: var(--step--1); color: #A5ACC9; margin: 0; }

.sitefooter__col h2 {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #A5ACC9; margin-bottom: var(--sp-4);
}
.sitefooter__col ul { list-style: none; margin: 0; padding: 0; }
.sitefooter__col li { margin-bottom: var(--sp-2); font-size: var(--step--1); }
.sitefooter__col a { color: #DBDFF0; text-decoration: none; }
.sitefooter__col a:hover { color: #fff; text-decoration: underline; }

.sitefooter__base {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  padding-top: var(--sp-5);
  font-size: var(--step--1);
}
.sitefooter__base p { margin: 0; }
.sitefooter__legal { list-style: none; display: flex; gap: var(--sp-4); margin: 0; padding: 0; }
.sitefooter__legal li { margin: 0; }
.sitefooter__legal a { color: #DBDFF0; text-decoration: none; }
.sitefooter__legal a:hover { color: #fff; text-decoration: underline; }
.sitefooter__secure { color: #A5ACC9; display: flex; align-items: center; }

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .primarynav a { padding-inline: .4rem; }
  .header-cta { display: none; }
}

@media (max-width: 960px) {
  .hero__grid,
  .band__grid,
  .split,
  .detail,
  .contact,
  .catblock { grid-template-columns: 1fr; }

  .capabilities__inner { grid-template-columns: 1fr 1fr; }
  .cap { padding-left: var(--sp-5); }
  .cap:nth-child(3) { border-left: 0; padding-left: 0; }
  .cap:nth-child(1), .cap:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cap:nth-child(3), .cap:nth-child(4) { padding-top: var(--sp-5); }

  .sitefooter__grid { grid-template-columns: 1fr 1fr; }

  /* Navegación móvil */
  .navtoggle { display: inline-flex; }
  .primarynav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: var(--sp-4) clamp(1rem, 4vw, 2.5rem) var(--sp-5);
  }
  .siteheader { position: sticky; }
  .siteheader__inner { position: relative; flex-wrap: wrap; }
  .primarynav.is-open { display: block; }
  .primarynav__list { flex-direction: column; gap: 0; }
  .primarynav a {
    padding: var(--sp-3) 0; font-size: var(--step-1);
    border-bottom: 1px solid var(--line);
  }
  .primarynav li:last-child a { border-bottom: 0; }
}

@media (max-width: 720px) {
  /* La marca se reduce, pero nunca por debajo de ~50px de ilustración */
  .brand__mark { height: 50px; }
  .brand__word { height: 50px; }
  .siteheader__inner { min-height: 74px; }

  .catrow__link {
    grid-template-columns: 2.25rem minmax(0, 1fr) 1.5rem;
    gap: var(--sp-3);
  }
  .catrow__species { display: none; }
  .catrow__name { font-size: var(--step-1); }

  .itemlist { grid-template-columns: 1fr; }
  .band__cols, .coverage, .geo { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .sitefooter__grid { grid-template-columns: 1fr; }
  .utilitybar__note { display: none; }
  .utilitybar__inner { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   23. Preferencias y accesibilidad
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .catrow__link:hover .catrow__go { transform: none; }
}

@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .ticks li::before { border-color: CanvasText; }
}

@media print {
  .utilitybar, .siteheader, .navtoggle, .header-cta,
  .hero__actions, .form, .sitefooter__legal { display: none; }
  body { color: #000; font-size: 11pt; }
  a { color: #000; }
  .band--brand { background: none; color: #000; }
  .band--brand h2, .band--brand h3, .band--brand a { color: #000; }
}
