/* ============================================================
   PUNEX GROUP — www.punexgroup.com
   Sistema de diseño editorial / corporativo
   Referencias: agrotrading global (LDC, Olam, Cargill)
   Reglas: tipografía protagonista · un solo acento · sin sombras
   ni tarjetas redondeadas · líneas finas · numeración editorial
   ============================================================ */

:root {
  /* Paleta contenida: papel, tinta, verde marca, dorado a cuentagotas */
  --paper: #faf9f6;
  --paper-alt: #efe8db;
  --ink: #161d18;
  --green: #1a3a2a;
  --green-deep: #10261b;
  --gold: #b78722;
  --line: rgba(22, 29, 24, 0.16);
  --line-light: rgba(250, 249, 246, 0.22);
  --muted: #5d665f;

  /* Acento andino — puntuación, nunca >15% de superficie
     (terracota solo en CTAs, divisores greca y 2 momentos a sangre) */
  --terracota: #c2452d;
  --terracota-deep: #a3391f;
  --ocre: #cc9544;
  --crema: #e8dfcb;
  --barro: #4a3527;

  /* Textil andino (identidad de Puno, el asistente) */
  --tex-terracota: #b5532a;
  --tex-rojo: #8e2f3c;
  --tex-crema: #f0e6d2;

  --font-display: 'Archivo', 'Inter', -apple-system, sans-serif;
  --font-expanded: 'Archivo Expanded', 'Archivo', -apple-system, sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 72px;

  /* Escala tipográfica modular */
  --fs-xs: 0.75rem;      /* meta, celdas de tabla */
  --fs-sm: 0.875rem;     /* captions, enlaces, labels */
  --fs-base: 1rem;       /* cuerpo */
  --fs-md: 1.125rem;     /* leads / section-sub */
  --fs-lg: 1.375rem;     /* títulos de tarjeta */
  --fs-xl: 1.75rem;      /* subtítulos dentro de sección */
  --fs-2xl: clamp(1.7rem, 3.4vw, 2.4rem);
  --fs-3xl: clamp(2.2rem, 4.5vw, 3.2rem);   /* h2 de sección */

  /* Etiquetas small-caps */
  --label-display: 0.72rem;    /* kickers, hero, footer h4 */
  --label-functional: 0.78rem; /* labels de formulario, thead */

  /* Medidas de línea */
  --measure-narrow: 36ch;
  --measure: 52ch;
  --measure-wide: 64ch;

  /* Ritmo vertical */
  --sp-section-lg: 128px;
  --sp-section-md: 92px;
  --sp-band: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
section[id] { scroll-margin-top: var(--nav-h); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  counter-reset: sec;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
h1 { line-height: 1.02; letter-spacing: -0.03em; }
h2 { line-height: 1.08; letter-spacing: -0.025em; }
h3 { line-height: 1.22; letter-spacing: -0.015em; }
h4 { line-height: 1.3; letter-spacing: -0.01em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); }
.section-dark { background: var(--green-deep); }
/* En bandas oscuras todo el texto se aclara */
.section-dark, .section-dark p, .section-dark li { color: rgba(250, 249, 246, 0.82); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--paper); }
.section-dark .section-head { border-top-color: var(--line-light); }
.section-dark .section-kicker { color: rgba(250, 249, 246, 0.6); }
.section-dark .section-sub { color: rgba(250, 249, 246, 0.72); }

/* ---------- Cabeceras de sección: índice editorial ---------- */
.section-head {
  text-align: left;
  max-width: none;
  margin: 0 0 56px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.section-head h2 {
  font-size: var(--fs-3xl);
  margin: 10px 0 14px;
  max-width: 15ch;
}
.section-sub { color: var(--muted); font-size: var(--fs-md); max-width: var(--measure); line-height: 1.55; }

/* Numeración automática 01 — 02 — 03 en cada kicker */
.section-kicker {
  display: inline-block;
  font-size: var(--label-display);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-kicker::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero) "  ·  ";
  color: var(--gold);
  font-weight: 700;
}
.kicker-light { color: rgba(250, 249, 246, 0.6); }

/* ---------- Botones: rectos, sin brillos ---------- */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: var(--ink); }
.section-dark .btn-primary { background: var(--paper); color: var(--ink); }
.section-dark .btn-primary:hover { background: var(--tex-crema); }

.btn-outline { border: 1px solid rgba(250, 249, 246, 0.65); color: var(--paper); }
.btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Enlaces-flecha (sustituyen a los botones fantasma) */
.btn-ghost {
  border: none;
  padding: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
}
.btn-ghost::after { content: "  →"; color: var(--gold); transition: transform 0.2s ease; display: inline-block; white-space: pre; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-block { width: 100%; }

/* ============================================================
   NAVBAR — transparente sobre el hero, sólida al hacer scroll
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: transparent;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled { background: var(--green-deep); border-bottom-color: var(--line-light); }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.logo { display: flex; align-items: center; gap: 8px; }
.logo-img { height: 42px; width: auto; display: block; }
.logo-img-footer { height: 38px; }

.nav-links { display: none; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  color: rgba(250, 249, 246, 0.55);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 6px 4px;
}
.lang-toggle .lang-opt.active { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.lang-sep { margin: 0 4px; }

.btn-nav {
  display: none;
  padding: 11px 24px;
  font-size: 0.85rem;
  border: 1px solid rgba(250, 249, 246, 0.5);
  color: var(--paper);
  background: transparent;
}
.btn-nav:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Hamburger */
.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--paper); transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--green-deep);
  padding: 12px 24px 28px;
  gap: 0;
  border-bottom: 1px solid var(--line-light);
}
.nav-links a {
  color: rgba(250, 249, 246, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-light);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.nav-links a:hover { color: var(--paper); padding-left: 10px; }

/* ============================================================
   HERO — cinematográfico, texto abajo a la izquierda
   ============================================================ */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.9) contrast(1.05) brightness(1.04);
}
/* Scrim enfocado: oscuro solo tras la columna de texto (izquierda),
   la imagen respira clara y viva a la derecha. Vignette suave nav + pie. */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(9,19,13,0.42) 0%, rgba(9,19,13,0) 15%),
    linear-gradient(90deg, rgba(9,19,13,0.86) 0%, rgba(9,19,13,0.66) 34%, rgba(9,19,13,0.28) 62%, rgba(9,19,13,0.04) 100%),
    linear-gradient(to top, rgba(9,19,13,0.46) 0%, rgba(9,19,13,0) 36%);
}
.hero-content {
  position: relative; z-index: 1;
  padding-bottom: 64px; padding-top: 148px;
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  width: 100%;
}
.hero-main { max-width: 720px; }

.hero-kicker {
  color: var(--tex-crema);
  font-weight: 600;
  font-size: var(--label-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}
.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--gold);
  margin-right: 14px;
}
.hero-title {
  color: var(--paper);
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 700;
  margin-bottom: 28px;
  text-wrap: balance;
  max-width: 16ch;
  text-shadow: 0 2px 26px rgba(9, 19, 13, 0.55);
}
.hero-title em {
  font-style: normal;
  color: var(--tex-crema);
  box-shadow: inset 0 -3px 0 var(--gold);
}
.hero-sub {
  color: rgba(250, 249, 246, 0.94);
  font-size: var(--fs-md);
  max-width: var(--measure);
  margin-bottom: 38px;
  line-height: 1.6;
  text-shadow: 0 1px 14px rgba(9, 19, 13, 0.6);
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-ctas .hero-cta-main { background: var(--paper); color: var(--ink); padding: 17px 38px; }
.hero-ctas .hero-cta-main::after { content: ' →'; color: var(--gold); }
.hero-ctas .hero-cta-main:hover { background: var(--tex-crema); }
.hero-cta-link {
  color: var(--paper); font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.hero-cta-link::after { content: ' →'; color: var(--gold); }
.hero-cta-link:hover { border-bottom-color: var(--gold); }

/* Banda de datos integrada en el pie del hero */
.hero-meta {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(250, 249, 246, 0.25);
  padding-top: 26px;
  margin-top: 8px;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 6px; }
.hm-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.9rem; color: var(--paper); line-height: 1; letter-spacing: -0.02em;
}
.hm-lab {
  color: rgba(250, 249, 246, 0.6);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Franja de certificaciones */
.cert-strip { background: var(--green-deep); padding: 26px 0; }
.cert-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; }
.cert-strip-label { color: rgba(250, 249, 246, 0.5); font-size: var(--label-display); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.cert-strip-logos { display: flex; flex-wrap: wrap; align-items: center; }
.cert-logo {
  color: rgba(250, 249, 246, 0.92); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
  padding: 0 28px; border-left: 1px solid var(--line-light);
}
.cert-logo:first-child { padding-left: 0; border-left: none; }
.cert-logo span { color: rgba(250, 249, 246, 0.55); font-weight: 500; }

/* ============================================================
   STATS — banda tipográfica fina
   ============================================================ */
.stats { padding: 56px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.stat .lab { color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; }

/* ============================================================
   PROPUESTA DE VALOR — columnas editoriales, sin tarjetas
   ============================================================ */
.value-props { padding: 84px 0 72px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 48px; }

.value-card { padding-top: 4px; }
.value-icon {
  display: block;
  font-family: var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1.4px var(--gold);
  text-stroke: 1.4px var(--gold);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.value-card h3 { font-size: var(--fs-lg); margin-bottom: 14px; }
.value-card p { color: var(--muted); font-size: var(--fs-base); max-width: var(--measure); line-height: 1.6; }

/* ============================================================
   VERIFICACIÓN — checklist de dos columnas (cómo trabajamos)
   ============================================================ */
.verify-head { text-align: left; max-width: none; margin: 0 0 56px; border-top: 1px solid var(--line); padding-top: 20px; }
.verify-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 10px 0 14px; max-width: 16ch; }
.verify-head p { color: var(--muted); font-size: 1.02rem; max-width: 640px; }

.verify-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.verify-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.verify-item:last-child { border-bottom: 1px solid var(--line); }
.verify-num { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--gold); line-height: 1.5; }
.verify-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.verify-item p { color: var(--muted); font-size: 0.9rem; max-width: 46ch; margin: 0; }

/* ============================================================
   PRODUCTOS — retícula plana, imagen a sangre del tile
   ============================================================ */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 56px 40px; }

.product-card { display: flex; flex-direction: column; transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1); }
.product-card:hover { transform: translateY(-5px); }

.product-img { height: 300px; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; filter: saturate(0.92); }
.product-card:hover .product-img img { transform: scale(1.05); filter: saturate(1.02); }
/* Filete oro que aparece al pasar el ratón */
.product-img::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); transition: width 0.4s cubic-bezier(0.22,0.61,0.36,1); }
.product-card:hover .product-img::after { width: 100%; }

.product-body { padding: 22px 0 0; display: flex; flex-direction: column; gap: 10px; flex: 1; border-top: 1px solid var(--line); margin-top: 18px; transition: border-color 0.3s ease; }
.product-card:hover .product-body { border-top-color: var(--gold); }
.product-body h3 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.name-en { display: block; font-size: 0.7rem; font-weight: 600; color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 6px; }

.sci { color: var(--muted); font-size: 0.88rem; }

/* Certificaciones: texto plano separado por puntos, sin píldoras */
.badges { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.78rem; }
.badges li { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }
.badges li + li::before { content: "·"; color: var(--gold); margin: 0 8px; font-weight: 700; }

.formats { color: var(--muted); font-size: 0.88rem; }

.spec-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s ease;
}
.spec-link:hover { color: var(--gold); }
.spec-link svg { width: 14px; height: 14px; flex-shrink: 0; }

.product-cta { margin-top: 14px; align-self: flex-start; }

/* ============================================================
   COMPARADOR — tabla editorial de productos
   ============================================================ */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.88rem; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); color: var(--paper); letter-spacing: -0.01em; background: var(--green-deep); padding: 20px 18px; border-bottom: none; }
.compare thead th:first-child { color: rgba(250,249,246,0.55); font-family: var(--font); font-weight: 600; font-size: var(--label-functional); letter-spacing: 0.12em; text-transform: uppercase; }
.compare thead .sci-sm { color: rgba(250,249,246,0.55); }
.compare tbody th { font-weight: 600; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.compare tbody tr:hover td { background: var(--paper-alt); }
.compare .sci-sm { display: block; font-style: italic; font-weight: 400; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.compare .btn-ghost { font-size: 0.82rem; }

/* ============================================================
   MAPA DE ORIGEN — Perú interactivo
   ============================================================ */
.origin-inner { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.peru-map { background: #0d1f16; padding: 0; overflow: hidden; }
.peru-map svg { width: 100%; height: auto; display: block; max-width: 440px; margin: 0 auto; }
.peru-pin { fill: var(--gold); cursor: pointer; transition: fill 0.2s ease, r 0.2s ease; stroke: rgba(13,31,22,0.6); stroke-width: 1.5; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.peru-pin:hover { fill: var(--paper); }
.peru-pin.active { fill: var(--paper); }
.pin-group { outline: none; }
.pin-group:focus-visible .peru-pin { stroke: var(--paper); stroke-width: 2; }
.peru-label { fill: rgba(250, 249, 246, 0.4); font-family: var(--font-display); font-weight: 600; }
.origin-info .reg { color: var(--gold); font-weight: 600; font-size: var(--label-functional); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.origin-info h3 { font-size: var(--fs-xl); margin-bottom: 12px; color: var(--ink); }
.origin-info p { color: var(--muted); font-size: var(--fs-base); margin-bottom: 20px; max-width: 48ch; line-height: 1.6; }
.origin-prods { display: flex; flex-wrap: wrap; gap: 8px; }
.origin-prods li { border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); padding: 8px 15px; }

/* ============================================================
   CENTRO DE DOCUMENTOS
   ============================================================ */
.docs-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.doc-card { display: flex; align-items: center; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); transition: padding-left 0.2s ease; }
.doc-card:last-child { border-bottom: 1px solid var(--line); }
.doc-card:hover { padding-left: 10px; }
.doc-ico { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--gold); border: 1px solid var(--line); }
.doc-ico svg { width: 20px; height: 20px; }
.doc-card h3 { font-size: 1.05rem; margin-bottom: 3px; }
.doc-card p { color: var(--muted); font-size: 0.86rem; }
.doc-card .go { margin-left: auto; flex-shrink: 0; color: var(--ink); font-weight: 600; font-size: 0.82rem; border-bottom: 1px solid var(--gold); padding-bottom: 2px; white-space: nowrap; }

/* ============================================================
   MUESTRAS — banda de acción
   ============================================================ */
#muestras.section { padding: 48px 0; }
#muestras.section { padding: 0; }
.samples-band { background: var(--green); padding: 52px 44px; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.samples-band h2 { font-size: var(--fs-xl); margin-bottom: 10px; color: var(--paper); max-width: 20ch; }
.samples-band p { color: rgba(250, 249, 246, 0.78); max-width: 52ch; line-height: 1.55; }
.samples-band .btn-primary { background: var(--paper); color: var(--ink); white-space: nowrap; }
.samples-band .btn-primary:hover { background: var(--tex-crema); }

/* ============================================================
   CALENDARIO DE COSECHA — tabla editorial
   ============================================================ */
.catalog-link-row { margin: -28px 0 48px; }

.cal-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cal { width: 100%; min-width: 720px; border-collapse: collapse; }
.cal th, .cal td { border-bottom: 1px solid var(--line); padding: 14px 6px; text-align: center; }
.cal thead th {
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal .cal-product {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  padding-left: 0;
  white-space: nowrap;
  padding-right: 24px;
}
.cal tbody td:not(.cal-product) { position: relative; }
.cal tbody td.on::after {
  content: "";
  display: inline-block;
  width: 100%;
  max-width: 44px;
  height: 10px;
  background: var(--gold);
}

.cal-legend { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.cal-key { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.cal-dot { display: inline-block; width: 26px; height: 10px; background: var(--gold); }
.cal-note { color: var(--muted); font-size: 0.82rem; max-width: 620px; }

/* ============================================================
   CÓMO FUNCIONA — proceso numerado, sin iconos ni círculos
   ============================================================ */
.timeline { display: grid; grid-template-columns: 1fr; gap: 36px 40px; position: relative; }

.step { text-align: left; padding: 28px 0 0; border-top: 1px solid var(--line); position: relative; }
.step::before {
  content: ''; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
}
.step-icon { display: none; }
.step-num {
  display: block;
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.step h3 { font-size: var(--fs-lg); margin-bottom: 10px; }
.step p { color: var(--muted); font-size: var(--fs-base); max-width: var(--measure-narrow); margin: 0; line-height: 1.55; }

/* ============================================================
   COMPRADORES — banda institucional oscura
   ============================================================ */
.buyers-inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }

.buyers .section-kicker { border-bottom: 1px solid var(--line); padding-bottom: 18px; display: block; max-width: 480px; }
.buyers h2 { color: var(--ink); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 20px 0 30px; letter-spacing: -0.025em; }

.check-list { display: flex; flex-direction: column; margin-bottom: 36px; }
.check-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  color: var(--ink);
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}
.check-list li:first-child { border-top: 1px solid var(--line); }

.check-list-dark li { color: var(--ink); border-color: var(--line); }
.check-list-dark li:first-child { border-top-color: var(--line); }

.buyers-img img, .suppliers-img img {
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: saturate(0.92);
}

/* ============================================================
   PROVEEDORES
   ============================================================ */
.suppliers-inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.suppliers .section-kicker { border-bottom: 1px solid var(--line); padding-bottom: 18px; display: block; max-width: 480px; }
.suppliers h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 20px 0 18px; }
.suppliers-text > p { color: var(--muted); margin-bottom: 28px; max-width: 56ch; }
.suppliers-img { order: 2; }
.suppliers-text { order: 1; }

/* ============================================================
   QUIÉN ESTÁ DETRÁS
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  max-width: 980px;
}
.about-photo { display: flex; justify-content: flex-start; }
.about-avatar {
  width: 200px;
  height: 200px;
  background: var(--green-deep);
  color: var(--tex-crema);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--gold);
}
.about-photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-bottom: 3px solid var(--gold);
}
.about-text { text-align: left; }
.about-text .section-kicker { border-bottom: 1px solid var(--line); padding-bottom: 18px; display: block; max-width: 480px; }
.about-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 20px 0 16px; }
.about-text > p { color: var(--muted); max-width: 58ch; margin: 0 0 18px; }
.about-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.36;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}
.about-name { font-size: 1rem; margin-bottom: 20px; color: var(--muted); }
.about-name strong { color: var(--ink); font-weight: 600; }
.about-linkedin { display: inline-flex; align-items: center; gap: 8px; }
.about-linkedin svg { width: 15px; height: 15px; }

/* ============================================================
   CERTIFICACIONES — línea tipográfica sobria
   ============================================================ */
.certs { text-align: left; padding: 64px 0; border-top: 1px solid var(--line); }
.certs-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 34px; max-width: 40ch; }
.certs-groups { display: grid; grid-template-columns: 1fr; gap: 34px 40px; margin-bottom: 30px; }
.cert-group { border-top: 1px solid var(--line); padding-top: 16px; }
.cert-group h4 {
  font-size: var(--label-functional);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 14px;
}
.cert-group ul { display: flex; flex-direction: column; gap: 9px; }
.cert-group li {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  padding-left: 18px;
  position: relative;
}
.cert-group li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.certs-note { color: var(--muted); font-size: 0.88rem; max-width: 620px; margin: 0; }

/* ============================================================
   GALERÍA — sobre el terreno
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.gal-item { position: relative; overflow: hidden; margin: 0; }
.gal-item img {
  width: 100%; height: 300px; object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.7s ease;
}
.gal-item:hover img { transform: scale(1.035); }
.gal-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px;
  background: linear-gradient(to top, rgba(9,19,13,0.78), transparent);
  color: var(--paper);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   MAPA
   ============================================================ */
.map-wrap {
  background: #0d1f16;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}
.world-map { width: 100%; height: auto; display: block; }

/* --- Mapa interactivo: rutas, pines, panel --- */
.map-inner { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }
.wroute { stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 6 8; opacity: 0.22; transition: opacity 0.3s ease, stroke-width 0.3s ease; }
.wroute.active { opacity: 0.95; stroke-width: 2.4; animation: dash 3s linear infinite; }
.wpin-origin { fill: var(--gold); stroke: rgba(13,31,22,0.6); stroke-width: 1.5; }
.wpin-pulse { fill: none; stroke: var(--gold); stroke-width: 1.5; transform-origin: 259px 339px; animation: pulse 2.6s ease-out infinite; }
.wpin { fill: var(--crema); stroke: var(--terracota); stroke-width: 2; cursor: pointer; transition: r 0.2s ease, fill 0.2s ease; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.wpin-group:hover .wpin, .wpin-group:focus-visible .wpin { fill: #fff; r: 8; }
.wpin-group.active .wpin { fill: var(--terracota); stroke: var(--crema); r: 8; }
.map-labels text { fill: rgba(250, 249, 246, 0.9); font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-anchor: start; }

.world-info { border-top: 2px solid var(--terracota); padding-top: 20px; }
.wi-reg { color: var(--terracota); font-weight: 700; font-size: var(--label-functional); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.world-info h3 { font-size: var(--fs-xl); margin-bottom: 12px; color: var(--ink); }
.world-info > p { color: var(--muted); font-size: var(--fs-base); line-height: 1.6; margin-bottom: 22px; max-width: 52ch; }
.world-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.world-chips button { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; background: none; transition: border-color 0.2s ease, color 0.2s ease; }
.world-chips button::before { content: "→ "; color: var(--terracota); }
.world-chips button:hover { border-color: var(--terracota); }
.world-chips button.active { border-color: var(--terracota); color: var(--terracota); }

.route {
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-dasharray: 7 9;
  opacity: 0.9;
  animation: dash 3.2s linear infinite;
}
.route-2 { animation-delay: 0.8s; }
.route-3 { animation-delay: 1.6s; }

@keyframes dash { to { stroke-dashoffset: -32; } }

.node { fill: var(--paper); }
.node-origin { fill: var(--gold); }
.node-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  animation: pulse 2.6s ease-out infinite;
  transform-origin: 245px 300px;
}
@keyframes pulse {
  0% { transform: scale(0.55); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.map-labels text {
  fill: rgba(250, 249, 246, 0.9);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-anchor: middle;
}

/* ============================================================
   FAQ — acordeón de líneas finas
   ============================================================ */
.faq-list { max-width: none; margin: 0; display: flex; flex-direction: column; }

.faq-item { background: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 48px 22px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--ink);
  position: relative;
  user-select: none;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 300;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 24px; color: var(--muted); font-size: 0.94rem; max-width: 64ch; }

/* ============================================================
   ASISTENTE DE COTIZACIÓN (wizard)
   ============================================================ */
.wizard { max-width: 640px; margin: 0; background: var(--paper); border: 1px solid var(--line); }
.wiz-bar { height: 3px; background: var(--line); }
.wiz-fill { height: 100%; background: var(--gold); width: 20%; transition: width 0.35s ease; }
.wiz-body { padding: 36px 32px; }
.wiz-step { display: none; }
.wiz-step.active { display: block; }
.wiz-step .q { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.wiz-step .hint { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }
.wiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wiz-opt { border: 1px solid var(--line); padding: 14px 16px; font-weight: 600; font-size: 0.9rem; text-align: left; color: var(--ink); transition: border-color 0.2s ease, background 0.2s ease; }
.wiz-opt:hover { border-color: var(--gold); }
.wiz-opt.sel { border-color: var(--gold); background: var(--paper-alt); }
.wiz-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wiz-field input { padding: 12px 14px; border: 1px solid var(--line); font-family: inherit; font-size: 0.95rem; background: var(--paper); }
.wiz-field input:focus { outline: none; border-color: var(--ink); }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.wiz-back { color: var(--muted); font-weight: 600; font-size: 0.88rem; }
.wiz-back:hover { color: var(--ink); }
.wiz-back[hidden] { visibility: hidden; }
.wiz-summary { background: var(--paper-alt); padding: 16px 18px; margin-bottom: 20px; font-size: 0.88rem; border-left: 2px solid var(--gold); }
.wiz-summary b { color: var(--ink); }
.wiz-done { text-align: left; padding: 8px 0; }
.wiz-done .ic { width: 44px; height: 44px; margin-bottom: 16px; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.wiz-done .ic svg { width: 22px; height: 22px; }

/* ============================================================
   BOLETÍN DE MERCADO
   ============================================================ */
.news-band { text-align: left; max-width: 640px; margin: 0; }
.news-band h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 8px; }
.news-band p { color: var(--muted); margin-bottom: 24px; max-width: 52ch; }
.news-form { display: flex; gap: 10px; max-width: 460px; flex-wrap: wrap; }
.news-form input { flex: 1; min-width: 200px; padding: 13px 16px; border: 1px solid var(--line); font-family: inherit; font-size: 0.94rem; background: var(--paper); }
.news-form input:focus { outline: none; border-color: var(--ink); }
.news-status { margin-top: 14px; font-size: 0.88rem; font-weight: 600; min-height: 1.2em; }
.news-status.ok { color: var(--green); }
.news-status.err { color: #a33; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: 1120px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
}

/* Panel institucional oscuro */
.contact-aside {
  background: var(--green-deep);
  color: var(--paper);
  padding: 40px 34px;
}
.contact-aside-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; }
.contact-aside-tag { color: rgba(250, 249, 246, 0.6); font-size: var(--fs-sm); margin-top: 8px; max-width: 30ch; line-height: 1.5; }
.contact-aside-list { margin-top: 34px; display: flex; flex-direction: column; gap: 20px; }
.contact-aside-list dt { color: rgba(250, 249, 246, 0.45); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.contact-aside-list dd { color: rgba(250, 249, 246, 0.92); font-size: var(--fs-sm); line-height: 1.5; }
.contact-aside-list a { color: var(--paper); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.contact-aside-list a:hover { color: var(--tex-crema); }

.contact-form-panel { padding: 36px 28px; }

.tabs { display: flex; gap: 0; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 13px 20px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab.active { color: var(--ink); border-bottom-color: var(--gold); }

.form { display: flex; flex-direction: column; gap: 26px; }
.form[hidden] { display: none; }
.form fieldset { border: none; display: flex; flex-direction: column; gap: 16px; }
.form legend {
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 12px; margin-bottom: 4px; width: 100%;
  border-bottom: 1px solid var(--line);
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }

.form label { display: flex; flex-direction: column; gap: 7px; font-size: var(--label-functional); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.form input, .form select, .form textarea {
  font-family: inherit;
  font-size: var(--fs-base);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease;
  width: 100%;
  text-transform: none;
  letter-spacing: normal;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form textarea { resize: vertical; }

/* Consentimiento RGPD */
.form-consent {
  flex-direction: row !important;
  align-items: flex-start; gap: 10px !important;
  font-size: var(--fs-sm) !important; font-weight: 400 !important;
  text-transform: none !important; letter-spacing: normal !important;
  color: var(--muted) !important; line-height: 1.5;
}
.form-consent input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--green); }
.form-consent a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--gold); }
.form-consent a:hover { color: var(--gold); }
.form .btn-primary { align-self: flex-start; padding: 15px 44px; }

.form-status { margin-top: 4px; padding: 13px 16px; border-radius: 2px; font-size: var(--fs-sm); font-weight: 600; text-align: left; border: 1px solid var(--line); }
.form-status.ok { border-color: var(--green); color: var(--green); background: rgba(26, 58, 42, 0.05); }
.form-status.err { border-color: #a33; color: #a33; background: rgba(170, 51, 51, 0.05); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--green-deep); color: rgba(250, 249, 246, 0.75); padding: 72px 0 28px; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }

.footer-tagline { font-size: 0.88rem; margin-top: 14px; max-width: 260px; color: rgba(250, 249, 246, 0.5); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: rgba(250, 249, 246, 0.45); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 8px; }
.footer-col a { font-size: 0.9rem; color: rgba(250, 249, 246, 0.8); transition: color 0.2s ease; width: fit-content; }
.footer-col a:hover { color: var(--gold); }
.footer-address { font-size: 0.84rem; color: rgba(250, 249, 246, 0.45); margin-top: 8px; }

.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(250, 249, 246, 0.45);
}
.footer-bottom a { color: rgba(250, 249, 246, 0.6); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--gold); }
.footer-disclaimer { font-size: 0.76rem; }

.footer-credits { padding-top: 14px; }
.footer-credits p { font-size: 0.68rem; color: rgba(250, 249, 246, 0.28); line-height: 1.9; }
.footer-credits a { color: rgba(250, 249, 246, 0.38); text-decoration: underline; }
.footer-credits a:hover { color: var(--gold); }

/* ============================================================
   WIDGETS FLOTANTES — WhatsApp + Puno
   ============================================================ */

/* ---------- Botón WhatsApp (abajo izquierda) ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(9, 19, 13, 0.25);
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: translateY(-3px); }
.whatsapp-fab svg { width: 29px; height: 29px; fill: #fff; }

/* ---------- Puno (abajo derecha) ---------- */
.puno { position: fixed; bottom: 22px; right: 22px; z-index: 95; }

.puno-fab {
  height: 54px;
  padding: 0 20px 0 18px;
  border-radius: 100px;
  background: var(--green-deep);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(9, 19, 13, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.puno-fab:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(9, 19, 13, 0.36); }
.puno-chat-ic { width: 24px; height: 24px; color: var(--tex-crema); flex-shrink: 0; }
.puno-fab-label { color: var(--paper); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.puno-fab-dot {
  position: absolute; top: -3px; left: -3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--paper);
}
.puno-fab-close {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--tex-crema);
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  background: var(--green-deep);
  border-radius: 100px;
}
.puno.open .puno-chat-ic, .puno.open .puno-fab-label, .puno.open .puno-fab-dot { display: none; }
.puno.open .puno-fab-close { display: flex; }
.puno.open .puno-fab { padding: 0; width: 54px; }

/* Panel */
.puno-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: min(370px, calc(100vw - 44px));
  height: min(540px, calc(100vh - 130px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(9, 19, 13, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.puno-panel[hidden] { display: none; }

/* Cabecera con banda de textil andino */
.puno-header { background: var(--green-deep); flex-shrink: 0; }
.puno-header-stripes {
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--gold) 0 18px,
    var(--tex-terracota) 18px 30px,
    var(--tex-crema) 30px 36px,
    var(--tex-rojo) 36px 48px,
    var(--green) 48px 56px);
}
.puno-header-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.puno-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.puno-avatar svg { width: 25px; height: 25px; fill: var(--paper); }
.puno-title { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.puno-title strong { color: var(--paper); font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.01em; }
.puno-title span { color: rgba(250, 249, 246, 0.6); font-size: 0.72rem; }
.puno-close {
  margin-left: auto;
  color: rgba(250, 249, 246, 0.7);
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px 8px;
}
.puno-close:hover { color: var(--paper); }

/* Cuerpo del chat con chakana de fondo */
.puno-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cpath d='M40 12h16v8h8v-8h0 8v16h-8v8h8v0 8h16v16H72v8h8v8h-8v8h8v0-16H64v8h-8v-8h0-16v8h-8v-8h8v0-8H24v8h-8v-8h8v0-8H8V40h16v-8h-8v-8h8v-8h8v8h8v-8z' fill='%231a3a2a' fill-opacity='.05'/%3E%3C/svg%3E") 0 0/96px 96px,
    var(--paper-alt);
}
.puno-msg {
  max-width: 86%;
  margin-bottom: 10px;
  padding: 11px 14px;
  border-radius: 4px;
  font-size: 0.89rem;
  line-height: 1.55;
  word-wrap: break-word;
}
.puno-msg.bot {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  margin-right: auto;
}
.puno-msg.user {
  background: var(--green-deep);
  color: var(--paper);
  margin-left: auto;
}
.puno-msg strong { color: inherit; }
.puno-msg a { color: var(--gold); font-weight: 600; text-decoration: underline; }
.puno-msg.bot em { color: var(--muted); }
.puno-msg ul { padding-left: 16px; list-style: disc; margin: 4px 0; }

/* Indicador de escritura */
.puno-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.puno-typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: punoBlink 1.2s infinite;
}
.puno-typing i:nth-child(2) { animation-delay: 0.2s; }
.puno-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes punoBlink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* Chips de respuesta rápida */
.puno-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  background: var(--paper-alt);
  flex-shrink: 0;
}
.puno-chips:empty { display: none; }
.puno-chip {
  border: 1px solid var(--green);
  color: var(--green);
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}
.puno-chip:hover { background: var(--green); color: var(--paper); }

/* Barra de entrada */
.puno-inputbar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
}
.puno-inputbar input {
  flex: 1;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}
.puno-inputbar input:focus { outline: none; border-color: var(--ink); }
.puno-inputbar button {
  width: 42px; height: 42px;
  border-radius: 2px;
  background: var(--green-deep);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.puno-inputbar button:hover { background: var(--green); }
.puno-inputbar button svg { width: 17px; height: 17px; }

@media (max-width: 480px) {
  .whatsapp-fab { bottom: 16px; left: 16px; width: 50px; height: 50px; }
  .puno { bottom: 16px; right: 16px; }
  .puno-panel { bottom: 68px; }
}

/* ============================================================
   IDENTIDAD ANDINA v5 — greca · sello · banda de escala
   Puntuación cultural sobre la base editorial. Terracota <15%.
   ============================================================ */

/* --- Greca: divisor de textil andino (diamante escalonado) --- */
.greca {
  height: 20px;
  width: 100%;
  background-repeat: repeat-x;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='20' viewBox='0 0 36 20'%3E%3Cg fill='none' stroke='%23c2452d' stroke-width='1.3'%3E%3Cpath d='M18 2 L28 10 L18 18 L8 10 Z'/%3E%3C/g%3E%3Cpath d='M18 6.5 L21.5 10 L18 13.5 L14.5 10 Z' fill='%23b78722'/%3E%3C/svg%3E");
  opacity: 0.55;
}
.greca-band { padding: 26px 0; }
.section-dark .greca, .scale-band .greca {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='20' viewBox='0 0 36 20'%3E%3Cg fill='none' stroke='%23e8dfcb' stroke-width='1.3'%3E%3Cpath d='M18 2 L28 10 L18 18 L8 10 Z'/%3E%3C/g%3E%3Cpath d='M18 6.5 L21.5 10 L18 13.5 L14.5 10 Z' fill='%23cc9544'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* --- Sello de firma "Verificado en origen" --- */
.seal { width: 132px; height: 132px; display: block; }
.seal .seal-ring-text { fill: var(--gold); font-family: var(--font); font-size: 9.2px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.seal circle.seal-edge { fill: none; stroke: var(--gold); stroke-width: 1; }
.seal .seal-diamond { fill: none; stroke: var(--terracota); stroke-width: 2; }
.seal .seal-diamond-in { fill: var(--terracota); }
.seal .seal-rot { transform-origin: 90px 90px; animation: sealSpin 44s linear infinite; }
.seal-dark .seal-ring-text { fill: var(--crema); }
.seal-dark circle.seal-edge { stroke: var(--ocre); }
.seal-dark .seal-diamond { stroke: var(--crema); }
.seal-dark .seal-diamond-in { fill: var(--ocre); }
@keyframes sealSpin { to { transform: rotate(360deg); } }
.band-seal { margin-top: 30px; }
.band-seal .seal { width: 118px; height: 118px; }
.footer-seal { margin-top: 26px; }
.footer-seal .seal { width: 96px; height: 96px; opacity: 0.9; }

/* --- Banda de escala a sangre (terracota) --- */
.scale-band { background: var(--terracota); color: var(--crema); padding: 0; overflow: hidden; }
.scale-band .container { padding-top: 72px; padding-bottom: 72px; }
.scale-band .sb-lead { font-family: var(--font-expanded); font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.1; letter-spacing: -0.01em; max-width: 20ch; margin-bottom: 48px; color: #fff; }
.scale-band .sb-lead em { font-style: normal; color: var(--crema); }
.scale-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.scale-item { border-top: 1px solid rgba(255,255,255,0.28); padding-top: 20px; }
.scale-item .sb-num { display: block; font-family: var(--font-expanded); font-weight: 900; font-size: clamp(3.4rem, 9vw, 6.4rem); line-height: 0.92; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.scale-item .sb-lab { display: block; margin-top: 12px; font-size: 0.92rem; line-height: 1.5; color: rgba(255,255,255,0.85); max-width: 30ch; }

/* --- Marcador diamante para numerales de sección --- */
.section-kicker::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 12px; background: var(--terracota); transform: rotate(45deg); vertical-align: middle; opacity: 0.9; }

/* ============================================================
   MOVIMIENTO — reveal sutil al entrar en viewport
   (aparición contenida: 16px + opacidad, sin rebotes)
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22,0.61,0.36,1), transform 0.7s cubic-bezier(0.22,0.61,0.36,1); }
.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route, .node-pulse { animation: none; }
  .product-img img { transition: none; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   TABLET — 768px
   ============================================================ */
@media (min-width: 768px) {
  .section { padding: var(--sp-section-md) 0; }
  .value-props { padding: var(--sp-section-md) 0 72px; }

  /* Hero: dos columnas, meta a la derecha alineada al pie */
  .hero-content { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; }
  .hero-meta {
    flex-direction: column;
    gap: 24px;
    border-top: none;
    padding-top: 0;
    margin: 0 0 6px;
    text-align: right;
    min-width: 190px;
  }
  .hero-meta-item { align-items: flex-end; padding-bottom: 22px; border-bottom: 1px solid rgba(250,249,246,0.2); }
  .hero-meta-item:last-child { border-bottom: none; padding-bottom: 0; }
  .hm-num { font-size: 2.4rem; }

  /* Separadores verticales entre columnas de propuesta de valor */
  .value-card { position: relative; }
  .grid-3 > .value-card + .value-card::before {
    content: ''; position: absolute; left: -24px; top: 6px; bottom: 6px;
    width: 1px; background: var(--line);
  }

  .section-head, .verify-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "kicker kicker" "title sub";
    align-items: end;
    gap: 0 48px;
    padding-top: 24px;
  }
  .section-head .section-kicker, .verify-head .section-kicker { grid-area: kicker; margin-bottom: 34px; }
  .section-head h2, .verify-head h2 { grid-area: title; margin: 0; }
  .section-head .section-sub, .verify-head p { grid-area: sub; justify-self: end; margin-bottom: 6px; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }

  .timeline { grid-template-columns: repeat(2, 1fr); }

  .faq-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; }
  .faq-item:nth-child(2) { border-top: 1px solid var(--line); }

  /* Galería editorial: 3 columnas, piezas anchas arriba y panorámica al cierre */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .gal-item.gal-wide:first-child { grid-column: span 2; }
  .gal-item img { height: 320px; }
  .gal-item.gal-wide:last-child { grid-column: 1 / -1; }
  .gal-item.gal-wide:last-child img { height: 380px; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .certs-groups { grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
  .scale-band .container { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
  .scale-band .sb-lead { margin-bottom: 0; }
  .scale-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .verify-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .origin-inner { grid-template-columns: 1.1fr 1fr; gap: 60px; }
  .peru-map svg { max-width: none; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .samples-band { grid-template-columns: 1.6fr auto; gap: 40px; }
  .wiz-body { padding: 44px; }
  .news-form { flex-wrap: nowrap; }

  .buyers-inner { grid-template-columns: 1.05fr 0.95fr; gap: 72px; }
  .suppliers-inner { grid-template-columns: 0.95fr 1.05fr; gap: 72px; }
  .suppliers-img { order: 0; }
  .suppliers-text { order: 0; }

  .about-inner { grid-template-columns: auto 1fr; gap: 64px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .contact-card { grid-template-columns: 340px 1fr; }
  .contact-aside { padding: 48px 40px; }
  .contact-form-panel { padding: 48px 44px; }
  .tab { font-size: var(--fs-sm); }

  .btn-nav { display: inline-block; }
}

/* ============================================================
   DESKTOP — 1200px
   ============================================================ */
@media (min-width: 1200px) {
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    gap: 4px;
    border: none;
  }
  .nav-links a {
    padding: 8px 10px;
    font-size: 0.84rem;
    color: rgba(250, 249, 246, 0.8);
    border-bottom: none;
    white-space: nowrap;
  }
  .nav-links a:hover { color: var(--paper); padding-left: 12px; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
  .hamburger { display: none; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-img { height: 260px; }

  /* Un solo punto de entrada de chat en desktop: la píldora de Puno */
  .whatsapp-fab { display: none; }

  .timeline { grid-template-columns: repeat(4, 1fr); }

  .docs-grid { grid-template-columns: repeat(3, 1fr); }

  .map-wrap { padding: 0; }
}
