/* Kenth Peppers · landing
   Radios: botones en píldora; fotografías 6px. Un único acento (pimentón). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #F8F6F0;
  --ivory-2: #EFEDE3;
  --green: #2F4A2B;       /* verde musgo/bosque: más agrícola y sobrio */
  --green-deep: #22371F;
  --olive: #788C4E;       /* decorativo */
  --olive-ink: #56682F;   /* texto, AA sobre marfil */
  --pepper: #B0402A;      /* acento; ajustado desde #C94E34 para AA y cercanía al rojo del logo */
  --harvest: #E6B645;
  --ink: #222923;
  --ink-soft: #4A524B;
  --line: rgb(34 41 35 / .14);

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --radius-img: 6px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 136px);

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--pepper); outline-offset: 3px; border-radius: 4px; }
.contact :focus-visible { outline-color: var(--harvest); }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: var(--ivory); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive-ink);
  margin-bottom: 1.1rem;
}
.eyebrow-on-dark { color: var(--harvest); }
.display, .h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--green);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.35rem, 1.5rem + 2.6vw, 3.75rem);
  line-height: 1.04;
  padding-bottom: .08em;
}
.display em, .h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--pepper);
  display: inline-block;
  padding-bottom: .06em;
}
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.h2-xl { font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); color: var(--ink-soft); max-width: 44ch; }
.body-lg { font-size: clamp(1.0313rem, 1rem + .2vw, 1.125rem); color: var(--ink-soft); max-width: 58ch; }

/* ---------- Botones ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-primary { background: var(--green); color: var(--ivory); }
.btn-ghost { color: var(--green); border-color: rgb(47 74 43 / .35); }
.btn-harvest { background: var(--harvest); color: var(--green-deep); }
.btn-outline-light { color: var(--ivory); border-color: rgb(248 246 240 / .5); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--green-deep); }
  .btn-ghost:hover { border-color: var(--green); background: rgb(47 74 43 / .05); }
  .btn-harvest:hover { background: #F0C45A; }
  .btn-outline-light:hover { border-color: var(--ivory); background: rgb(248 246 240 / .08); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(248 246 240 / .96);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(47 74 43 / .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { position: relative; align-self: flex-start; flex: none; width: 82px; height: var(--header-h); border-radius: 4px; }
.brand img {
  position: absolute; top: 6px; left: 0; width: 82px; height: auto;
  transform-origin: top left;
  transition: transform 260ms var(--ease-out);
  filter: drop-shadow(0 6px 10px rgb(34 55 31 / .12));
}
.site-header.is-scrolled .brand img, .site-header.menu-open .brand img { transform: scale(.72); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px 0 12px;
  background: transparent; border: 1.5px solid rgb(47 74 43 / .3); border-radius: 999px;
  color: var(--green); font-weight: 600; font-size: .9375rem; cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-panel {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -28px rgb(47 74 43 / .45);
  padding: 8px var(--gutter) 24px;
  display: none;
}
.js .nav-panel.is-open { display: block; animation: panel-in 220ms var(--ease-out); }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .nav-panel { position: static; display: block; box-shadow: none; border: 0; padding: 0; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-list a {
  display: block; padding: 14px 2px;
  font-size: 1.125rem; font-weight: 500; text-decoration: none; color: var(--green);
  border-bottom: 1px solid var(--line);
}
.nav-panel .btn { margin-top: 20px; width: 100%; }

@media (min-width: 1180px) {
  :root { --header-h: 84px; }
  .brand { width: 112px; }
  .brand img { width: 112px; top: 8px; }
  .site-header.is-scrolled .brand img { transform: scale(.62); }
  .nav-toggle { display: none; }
  .nav-panel, .js .nav-panel.is-open, html:not(.js) .nav-panel {
    position: static; display: flex; align-items: center; gap: 28px;
    padding: 0; background: none; border: 0; box-shadow: none; animation: none;
  }
  .nav-list { display: flex; gap: 26px; }
  .nav-list a {
    padding: 6px 0; border: 0; font-size: .9375rem; color: var(--ink);
    background: linear-gradient(var(--pepper), var(--pepper)) no-repeat left bottom / 0 1.5px;
    transition: background-size 220ms var(--ease-out), color 200ms ease;
  }
  .nav-list a:hover { background-size: 100% 1.5px; color: var(--green); }
  .nav-panel .btn { margin-top: 0; width: auto; }
}
@media (max-width: 1179px) {
  html:not(.js) .main-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 52px clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; gap: 32px; }
.hero-copy .lead { margin-top: 1.4rem; }
.hero-copy .actions { margin-top: 2rem; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%;
  border-radius: var(--radius-img);
}
@media (min-width: 1024px) {
  .hero { padding-top: 88px; }
  .hero-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: center; gap: clamp(40px, 5vw, 72px);
  }
  /* la foto sangra hacia el borde derecho sin superar su ancho nativo (900px) */
  .hero-media { margin-right: calc(-1 * max(var(--gutter), (100vw - 1280px) / 2 + var(--gutter))); max-width: 900px; justify-self: stretch; }
  /* 5:4 recorta los lados; a 1440px la foto se muestra a ~650x520, por debajo de su tamaño nativo (900x553) */
  .hero-media img { aspect-ratio: 5 / 4; max-height: 553px; border-radius: var(--radius-img) 0 0 var(--radius-img); object-position: 32% 50%; }
}

/* entrada del hero (solo con JS y sin movimiento reducido) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .js .hero-media { animation: fade 900ms ease both 100ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Revelado al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Quiénes somos ---------- */
.about { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.about-grid { display: grid; gap: 40px; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 35%; border-radius: var(--radius-img); }
.pullquote {
  margin-top: 2rem; padding-left: 1.25rem; max-width: 30ch;
  border-left: 2px solid var(--pepper);
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.3; color: var(--green);
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 5fr); }
  .about-media { grid-column: 1; }
  .about-copy { grid-column: 3; padding-bottom: 8%; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .about-media, .slide .slide-frame { overflow: hidden; border-radius: var(--radius-img); }
  .about-media img, .slide img { transition: transform 900ms var(--ease-out); }
  .about-media:hover img, .slide:hover img { transform: scale(1.035); }
}

/* ---------- Producto / carrusel ---------- */
.product { padding-block: var(--section-y); background: var(--ivory-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.product-mark { width: clamp(200px, 30vw, 300px); height: auto; margin: .25rem 0 1.5rem -6px; }

.carousel { --per-view: 1; --gap: 16px; position: relative; }
@media (min-width: 640px) { .carousel { --per-view: 2; --gap: 20px; } }
@media (min-width: 1024px) { .carousel { --per-view: 3; --gap: 24px; } }

.carousel-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; /* sin JS: desplazamiento manual */
  scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.js .carousel-viewport { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; cursor: grab; }
.js .carousel-viewport.is-dragging { cursor: grabbing; }
.carousel-track { display: flex; gap: var(--gap); will-change: transform; }
.slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  scroll-snap-align: start;
  user-select: none; -webkit-user-select: none;
}
.slide .slide-frame { border-radius: var(--radius-img); overflow: hidden; background: #dfe3d6; }
.slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; -webkit-user-drag: none; }
.slide figcaption { margin-top: 12px; font-size: .9375rem; font-weight: 500; color: var(--ink-soft); }

.carousel-controls { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; }
.carousel-controls[hidden] { display: none; }
.carousel-arrows { display: flex; gap: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 999px; border: 1.5px solid rgb(47 74 43 / .35); background: var(--ivory);
  color: var(--green); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--green); background: #fff; } }

.carousel-dots { display: flex; gap: 2px; flex: 1; }
.dot {
  position: relative; width: 32px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer;
}
.dot::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px;
  border-radius: 2px; background: rgb(47 74 43 / .25);
  transition: background-color 200ms ease;
}
.dot[aria-current="true"]::after { background: var(--pepper); }

.toggle-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 0; background: none; color: var(--green); font-weight: 600; font-size: .9375rem; cursor: pointer;
  border-radius: 999px;
}
.toggle-btn .icon { width: 18px; height: 18px; }
.toggle-btn .icon-play { display: none; }
.toggle-btn[aria-pressed="true"] .icon-pause { display: none; }
.toggle-btn[aria-pressed="true"] .icon-play { display: block; }
@media (hover: hover) and (pointer: fine) { .toggle-btn:hover { background: rgb(47 74 43 / .06); } }

/* ---------- Origen ---------- */
.origin { padding-block: var(--section-y); }
.origin-grid { display: grid; gap: 48px; }
.origin-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 40% 55%; border-radius: var(--radius-img); }
.origin-media figcaption { margin-top: 12px; font-size: .875rem; color: var(--ink-soft); max-width: 44ch; }

.route { display: grid; gap: 0; margin-top: 2.5rem; position: relative; counter-reset: none; }
.route li { position: relative; padding: 0 0 1.75rem 2.25rem; }
.route li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ivory); border: 2px solid var(--olive);
}
.route li:last-child::before { background: var(--pepper); border-color: var(--pepper); }
.route li:not(:last-child)::after {
  content: ""; position: absolute; left: 6px; top: 1.45rem; bottom: .1rem; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--olive) 0 6px, transparent 6px 11px);
}
.route-step { display: block; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.2; color: var(--green); }
.route-place { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive-ink); margin-bottom: 2px; }
.route-desc { display: block; margin-top: .35rem; max-width: 52ch; font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); }

@media (min-width: 768px) {
  .origin-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(48px, 7vw, 112px); }
}

/* ---------- Clientes ---------- */
.clients { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.clients .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.clients-marquee {
  --logo-h: 52px; --logo-gap: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
@media (min-width: 768px) { .clients-marquee { --logo-h: 64px; --logo-gap: 80px; } }
@media (min-width: 1024px) { .clients-marquee { --logo-h: 76px; --logo-gap: 104px; } }
.clients-track { display: flex; width: max-content; background: var(--ivory); /* fondo para que multiply funcione dentro de la máscara */ }
.clients-group { display: flex; align-items: center; flex: none; }
.client-logo { flex: none; display: flex; align-items: center; height: calc(var(--logo-h) * 1.2); padding-right: var(--logo-gap); }
/* --k equilibra el peso visual: los logos anchos se muestran más bajos que los cuadrados */
.client-logo img {
  height: calc(var(--logo-h) * var(--k, 1)); width: auto; max-width: none;
  mix-blend-mode: multiply; /* integra el fondo blanco de los JPG con el marfil */
  user-select: none; -webkit-user-drag: none;
}
@media (prefers-reduced-motion: no-preference) {
  .clients-track { animation: clients-marquee 90s linear infinite; }
  @media (hover: hover) and (pointer: fine) { .clients-marquee:hover .clients-track { animation-play-state: paused; } }
}
@keyframes clients-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .clients-marquee { -webkit-mask-image: none; mask-image: none; }
  .clients-track { width: auto; justify-content: center; }
  .clients-group { flex-wrap: wrap; justify-content: center; row-gap: 24px; padding-inline: var(--gutter); }
  .clients-group:nth-child(2), .client-logo[aria-hidden="true"] { display: none; }
  .client-logo { padding-inline: calc(var(--logo-gap) / 2); }
}

/* ---------- Contacto ---------- */
.contact { background: var(--green); color: var(--ivory); padding-block: var(--section-y); }
.contact .h2 { color: var(--ivory); }
.contact .body-lg { color: #D9DED2; }
.contact-grid { display: grid; gap: 48px; }
.contact-card { border-top: 1px solid rgb(248 246 240 / .22); padding-top: 28px; }
.contact-label { font-size: .875rem; color: #D9DED2; }
.contact-number {
  font-family: var(--font-serif); font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  line-height: 1.1; margin: .35rem 0 1.75rem; font-variant-numeric: lining-nums; white-space: nowrap;
}
.contact-note { margin-top: 1.25rem; font-size: .875rem; color: #D9DED2; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 80px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 112px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 96px; }
.footer-brand p { font-size: .9375rem; color: var(--ink-soft); }
.footer-brand strong { color: var(--green); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { display: inline-block; padding: 8px 0; text-decoration: none; font-size: .9375rem; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { font-size: .875rem; color: var(--ink-soft); }
@media (min-width: 1024px) {
  .site-footer { padding-bottom: 48px; }
  .footer-grid { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
  .footer-nav { justify-content: center; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff;
  box-shadow: 0 10px 24px -10px rgb(34 55 31 / .6), 0 0 0 2px var(--ivory);
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:active { transform: scale(0.95); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
@media (min-width: 1024px) { .wa-float { right: 28px; bottom: 28px; width: 60px; height: 60px; } }
