/* =================================================================
   AUSTEN — sitio institucional
   Design system: navy + gold + warm paper. Editorial, calmo.
   ================================================================= */

/* ---------- Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Figtree:wght@400;500;600;700&display=swap");

/* ---------- Tokens ---------- */
:root {
  --navy: #17323f;
  --navy-900: #102730;
  --navy-800: #1e3d4b;
  --navy-700: #2c5163;
  --gold: #d7a44a;
  --gold-600: #c08c33;
  --gold-100: #f3e4c6;
  --cream: #f6f0e5;
  --paper: #fdfbf7;
  --paper-2: #f2ece0;
  --ink: #182529;
  --muted: #5c6b71;
  --muted-2: #7d8a8f;
  --line: rgba(23, 50, 63, 0.14);
  --line-strong: rgba(23, 50, 63, 0.28);
  --white: #ffffff;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(16, 39, 48, 0.06), 0 12px 32px -12px rgba(16, 39, 48, 0.18);
  --shadow-sm: 0 1px 2px rgba(16, 39, 48, 0.08), 0 6px 16px -10px rgba(16, 39, 48, 0.16);

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.42rem);
  --step-2: clamp(1.44rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.7rem + 2vw, 3.5rem);
  --step-5: clamp(2.5rem, 1.9rem + 3vw, 4.6rem);
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }
a { color: var(--navy-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--gold-100); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper2 { background: var(--paper-2); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--gold-100); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.stack > * + * { margin-top: 1.1em; }

.kicker {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.kicker::before { content: ""; width: 2rem; height: 1px; background: var(--gold); display: inline-block; }
.section--navy .kicker { color: var(--gold); }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); font-family: var(--serif); font-weight: 400; }
.section--navy .lede { color: var(--gold-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-600); color: var(--navy-900); }
.btn--dark { background: var(--navy); color: var(--cream); }
.btn--dark:hover { background: var(--navy-800); color: var(--white); }
.btn--ghost { border-color: var(--line-strong); color: var(--navy-800); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.section--navy .btn--ghost,
.hero .btn--ghost { border-color: rgba(246, 240, 229, 0.4); color: var(--cream); }
.section--navy .btn--ghost:hover,
.hero .btn--ghost:hover { background: var(--cream); color: var(--navy-900); border-color: var(--cream); }
.btn--sm { padding: 0.6rem 1.1rem; }

/* magnetic pull (JS sets transform on pointermove); transition only for the snap-back */
[data-magnetic] { transition: transform 0.5s cubic-bezier(0.2, 1.1, 0.3, 1), background 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
[data-magnetic]:hover { transform: none; } /* JS drives hover transform directly */

/* ---------- Marquee (brand names strip) ---------- */
.marquee-strip { background: var(--navy-900); border-bottom: 1px solid rgba(246, 240, 229, 0.1); overflow: hidden; }
.mrq {
  --gap: 3.2rem;
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mrq__track {
  display: flex; gap: var(--gap); padding: 1rem var(--gap) 1rem 0; flex: none;
  animation: mrq 32s linear infinite;
}
.mrq:hover .mrq__track { animation-play-state: paused; }
.mrq span {
  font-family: var(--serif); font-size: var(--step-0); color: var(--gold-100);
  white-space: nowrap; opacity: 0.75; letter-spacing: 0.01em;
}
.mrq span::before { content: "✦"; color: var(--gold); margin-right: var(--gap); font-size: 0.7em; vertical-align: middle; }
@keyframes mrq { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
@media (prefers-reduced-motion: reduce) { .mrq__track { animation: none; } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-800);
}
.link-arrow::after { content: "→"; transition: transform 0.18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: 0.5rem; top: 0.5rem;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
  z-index: 200;
}
.skip:focus { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}
.brandmark { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brandmark img { height: 52px; width: auto; }
.brandmark__text { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--navy); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a { text-decoration: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem; font-weight: 500;
  color: var(--navy-800); border-radius: var(--radius);
  white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold-600); }
.nav__item--has-children:hover .nav__panel,
.nav__item--has-children:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel {
  position: absolute; top: calc(100% - 4px); left: 50%;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav__item--has-children:hover .nav__panel,
.nav__item--has-children:focus-within .nav__panel { transform: translate(-50%, 0); }
.nav__panel a { display: block; padding: 0.55rem 0.8rem; border-radius: var(--radius); font-size: 0.92rem; color: var(--navy-800); }
.nav__panel a:hover { background: var(--paper-2); color: var(--gold-600); }

.header__actions { display: flex; align-items: center; gap: 0.75rem; }
.header__actions .btn { white-space: nowrap; }
.lang-switch {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.4rem 0.75rem;
}
.lang-switch:hover { border-color: var(--navy); color: var(--navy); }

.nav-toggle { display: none; }

/* ---------- Mobile nav ---------- */
@media (max-width: 940px) {
  .header__actions .btn { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 0.6rem; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: 0.2s; }
  .nav {
    position: fixed; inset: 74px 0 0 auto; width: min(360px, 86vw);
    background: var(--paper); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.25rem; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.28s ease;
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav__link { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-bottom: 1px solid var(--line);
    border-radius: 0; padding: 0.25rem 0 0.5rem 0.75rem;
  }
  .nav__item--has-children > .nav__link { border-bottom: 0; }
}

/* ---------- Hero (full-bleed background slideshow) ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  min-height: clamp(30rem, 82vh, 46rem);
  display: flex;
  align-items: flex-end;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero__content { max-width: 34rem; }
.hero h1 { color: var(--white); font-size: var(--step-5); margin-bottom: 0.4em; }
.msk-rise { overflow: hidden; }
.js .msk-rise h1 { transform: translateY(112%); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.js .msk-rise.is-in h1 { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .msk-rise h1 { transform: none; } }
.hero__text { font-size: var(--step-1); color: var(--gold-100); font-family: var(--serif); font-weight: 400; margin-bottom: 2rem; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* full-bleed slideshow behind everything */
.hero .slideshow { position: absolute; inset: 0; z-index: 0; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16,39,48,.35) 0%, rgba(16,39,48,.35) 40%, rgba(16,39,48,.86) 100%),
    linear-gradient(90deg, rgba(16,39,48,.72) 0%, rgba(16,39,48,.28) 55%, rgba(16,39,48,.1) 100%);
}

/* ---------- Hero slideshow ---------- */
.slideshow__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.3s ease;
}
.slideshow__slide picture { display: block; width: 100%; height: 100%; }
.slideshow__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(1.08) brightness(0.82);
  transform: scale(1.06);
  transition: transform 7s linear;
}
.slideshow__slide.is-active img { transform: scale(1.14); }
.slideshow__slide:first-child { opacity: 1; }        /* visible before JS runs */
.js .slideshow__slide { opacity: 0; }                /* once JS owns it, only .is-active shows */
.js .slideshow__slide.is-active { opacity: 1; }

.slideshow__dots {
  position: relative; z-index: 2;
  display: flex; gap: 0.5rem; margin-top: clamp(2rem, 5vw, 3.5rem);
}
.slideshow__dot {
  width: 28px; height: 3px; border-radius: 2px; padding: 0; cursor: pointer;
  border: none; background: rgba(255,255,255,0.3);
  transition: background 0.2s ease;
}
.slideshow__dot.is-active { background: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .slideshow__slide { transition: none; }
  .slideshow__slide img { transition: none; transform: scale(1); }
  .slideshow__slide.is-active img { transform: scale(1); }
}

/* ---------- Feature-card looping video (e.g. "Compromiso con la calidad") ---------- */
.feature__media--video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .hero { min-height: 34rem; align-items: center; }
  .hero__inner { padding-block: 2rem; }
}

/* ---------- Section heading block ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }

/* ---------- Brand tiles (image-forward, editorial) ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
.brand-grid--feature { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .brand-grid--feature { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .brand-grid--feature { grid-template-columns: 1fr; } }

.brand-tile {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: var(--white);
  background: var(--navy-900);
  box-shadow: 0 1px 2px rgba(16,39,48,.08);
  transition: transform 0.35s cubic-bezier(.2,.6,.2,1), box-shadow 0.35s ease;
}
.brand-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.brand-tile__img { position: absolute; inset: 0; }
.brand-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.6,.2,1); }
.brand-tile:hover .brand-tile__img img { transform: scale(1.06); }
.brand-tile__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,39,48,.12) 0%, rgba(16,39,48,0) 22%, rgba(16,39,48,.55) 62%, rgba(16,39,48,.93) 100%);
}
.brand-tile__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  z-index: 2;
}
.brand-tile__group {
  display: inline-block;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.brand-tile__name {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--step-2); line-height: 1.05; color: var(--white); margin: 0 0 0.25rem;
}
.brand-tile__name::after {
  content: ""; display: block; width: 0; height: 2px; margin-top: 0.55rem;
  background: var(--gold); transition: width 0.4s cubic-bezier(.2,.6,.2,1);
}
.brand-tile:hover .brand-tile__name::after { width: 2.75rem; }
.brand-tile__tag { font-size: 0.9rem; color: rgba(246,240,229,.82); margin: 0; max-width: 26ch; }
.brand-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* self-branded art variant: full-bleed composed artwork, no overlay/gradient */
.brand-tile--art { background: var(--white); border: 1px solid var(--line); }
.brand-tile--art .brand-tile__img::after { display: none; }
.brand-tile--art .brand-tile__body { display: none; }
.brand-tile--art:hover { box-shadow: var(--shadow); }
.brand-tile--art::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1); z-index: 3;
}
.brand-tile--art:hover::after { transform: scaleX(1); }

/* product-render variant: transparent pack shot floating on the navy tile */
.brand-tile--product { background: radial-gradient(120% 90% at 50% 20%, var(--navy-700), var(--navy-900) 78%); }
.brand-tile--product .brand-tile__img { inset: 0 0 34% 0; display: grid; place-items: center; padding: 12% 12% 0; }
.brand-tile--product .brand-tile__img img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.4));
  transition: transform 0.5s cubic-bezier(.2,.6,.2,1);
}
.brand-tile--product:hover .brand-tile__img img { transform: scale(1.05) translateY(-4px); }
.brand-tile--product .brand-tile__img::after { display: none; }
.brand-tile--product .brand-tile__body {
  background: linear-gradient(180deg, transparent, rgba(16,39,48,.4) 40%, var(--navy-900));
}

.group-label {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2);
  margin: 2.5rem 0 1.2rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
.group-label:first-child { margin-top: 0; }

/* ---------- Feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem);
}
.feature + .feature { margin-top: clamp(3rem, 7vw, 6rem); }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 5 / 4; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 1rem; border: 1px solid rgba(246, 240, 229, 0.18); border-radius: var(--radius-lg); }
.stat__value { font-family: var(--serif); font-size: var(--step-4); color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--step--1); color: var(--gold-100); margin-top: 0.5rem; letter-spacing: 0.02em; }

/* ---------- Values list ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem 1.5rem; list-style: none; padding: 0; }
.values li {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  font-weight: 500; color: var(--navy-800);
}
.values li::before { content: "—"; color: var(--gold); font-weight: 700; }

/* ---------- Mission / Vision cards ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.mv-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); }
.mv-card h3 { margin-bottom: 0.4em; }
.mv-card p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .mv-grid { grid-template-columns: 1fr; } }

/* ---------- Prose (long text pages) ---------- */
.prose { max-width: var(--container-narrow); }
.prose > h2 { margin-top: 2.2em; }
.prose > h3 { margin-top: 1.8em; font-size: var(--step-1); }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose .muted-note { font-size: var(--step--1); color: var(--muted-2); }

/* numbered/labeled content blocks */
.blocks { counter-reset: b; display: grid; gap: 1.5rem; }
.block {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
}
.block h3 { display: flex; gap: 0.7rem; align-items: baseline; font-size: var(--step-1); margin-bottom: 0.35em; }
.block h3::before {
  counter-increment: b; content: counter(b, decimal-leading-zero);
  font-family: var(--sans); font-size: 0.85rem; font-weight: 700;
  color: var(--gold-600); letter-spacing: 0.05em;
}
.block p { margin: 0; color: var(--muted); }

/* ---------- Brand detail ---------- */
.brand-hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.brand-hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 10; }
.brand-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .brand-hero { grid-template-columns: 1fr; } }
.brand-hero__links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- product showcase: horizontal scroll of real pack shots --- */
.product-showcase { overflow: hidden; }
.pshow-track {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 0.75rem; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.pshow-card {
  flex: none; width: clamp(150px, 22vw, 190px); scroll-snap-align: start;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform 0.3s cubic-bezier(.2,.6,.2,1);
}
.pshow-card:hover { transform: translateY(-6px); }
.pshow-card__shot {
  display: block; aspect-ratio: 1; border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 50% 15%, var(--paper), var(--paper-2));
  border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center; padding: 1.1rem;
}
.pshow-card__shot img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(23,50,63,.14)); transition: transform 0.35s ease; }
.pshow-card:hover .pshow-card__shot img { transform: scale(1.06); }
.pshow-card__brand { margin-top: 0.85rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-600); }
.pshow-card__name { font-family: var(--serif); font-size: 0.98rem; color: var(--navy); margin-top: 0.2rem; line-height: 1.25; }

/* --- needs-based finder (e.g. Higifral "¿Qué necesitás hoy?") --- */
.needs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.need-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 1.8rem); position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.need-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.need-card__n { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; color: var(--gold-600); letter-spacing: 0.06em; }
.need-card h3 { font-size: var(--step-1); margin: 0.5rem 0 0.4rem; }
.need-card p { color: var(--muted); margin: 0 0 1rem; }
.need-card__ideal {
  display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--navy-800);
  background: var(--paper-2); border-radius: 999px; padding: 0.35rem 0.8rem;
}

/* --- brand attribute chips --- */
.feature-strip {
  list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: clamp(1.4rem,3vw,1.9rem) 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.7rem;
}
.feature-strip li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line-strong);
  font-size: 0.85rem; font-weight: 600; color: var(--navy-800);
}
.feature-strip li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none;
}

/* --- product catalog --- */
.catalog { display: grid; gap: clamp(1.25rem, 2.6vw, 1.9rem); }
.prod-line {
  display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.prod-line--flip .prod-line__shot { order: 2; }
.prod-line--noimg { grid-template-columns: 1fr; }
.prod-line__shot {
  align-self: stretch; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 20%, var(--paper), var(--paper-2));
  border-radius: var(--radius); padding: 1.5rem; min-height: 220px;
}
.prod-line__shot img {
  max-width: 100%; max-height: 300px; width: auto; object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(23, 50, 63, 0.16));
}
.prod-line__body h3 { font-size: var(--step-1); margin-bottom: 0.35em; color: var(--navy); }
.prod-line__body p { margin: 0 0 1rem; color: var(--muted); }
.prod-line__body p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .prod-line { grid-template-columns: 1fr; }
  .prod-line--flip .prod-line__shot { order: 0; }
  .prod-line__shot { min-height: 0; }
  .prod-line__shot img { max-height: 220px; }
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 0.75rem; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: center; }
.spec-table th { background: var(--paper-2); font-family: var(--sans); font-weight: 700; color: var(--navy); }
.spec-table td:first-child, .spec-table th:first-child { text-align: left; font-weight: 600; }
.spec-wrap { overflow-x: auto; }

/* --- extra artwork strip below the catalog --- */
.prod-extras {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.prod-extras figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.prod-extras img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--paper-2); padding: 0.5rem; }
.prod-extras figcaption { padding: 0.55rem 0.85rem; font-size: 0.8rem; color: var(--muted); }

/* ---------- News ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2.25rem); }
.post-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-card__date { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); }
.post-card__title { font-family: var(--serif); font-size: var(--step-1); line-height: 1.2; color: var(--navy); margin: 0; }
.post-card__excerpt { font-size: 0.92rem; color: var(--muted); margin: 0; flex: 1; }

.article { max-width: var(--container-narrow); }
.article__meta { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 1rem; }
.article__hero { border-radius: var(--radius-lg); overflow: hidden; margin: 1.75rem 0 2.5rem; box-shadow: var(--shadow-sm); }
.article p { font-size: var(--step-0); }
.article p:first-of-type { font-size: var(--step-1); color: var(--navy-800); font-family: var(--serif); line-height: 1.5; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.contact-list dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.2rem; }
.contact-list dd { margin: 0; font-size: var(--step-1); font-family: var(--serif); color: var(--navy); }
.contact-list dd a { text-decoration: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--gold-100); max-width: 48ch; margin: 0 auto 2rem; }
.cta-band__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--gold-100); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: var(--gold-100); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo {
  display: inline-flex; background: var(--cream); border-radius: 10px;
  padding: 0.85rem 1.1rem; margin-bottom: 1.1rem;
}
.footer-logo img { display: block; height: 46px; width: auto; }
.footer-brand p { font-family: var(--serif); font-size: var(--step-1); color: var(--cream); max-width: 22ch; }
.footer-flags { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; font-size: 0.85rem; color: var(--gold-100); }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-col li { font-size: 0.92rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(246, 240, 229, 0.15);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--muted-2);
}
.footer-social { display: flex; gap: 1rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-600); }

/* ---------- Reveal on scroll (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Page header ---------- */
.page-head { background: var(--cream); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { max-width: 52ch; margin-top: 0.5rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flow > * + * { margin-top: 1.5rem; }

/* ============================================================
   Enhancements: bigger brands, timeline, flags, motion
   ============================================================ */

/* --- Brands: larger, more dynamic --- */
.brands-section { position: relative; overflow: hidden; }
.brands-section::before {
  content: ""; position: absolute; top: -20%; left: -10%;
  width: 40vw; height: 40vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(215,164,74,0.10), transparent 65%);
  pointer-events: none;
}
/* chips strip: quick access to every brand */
.brand-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.brand-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white);
  font-size: 0.88rem; font-weight: 600; color: var(--navy-800); text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.brand-chip:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); transform: translateY(-2px); }

/* --- Certification chips (home sustainability block) --- */
.nature-block p { color: var(--gold-100); }
.cert-chips {
  list-style: none; padding: 0; margin: 2rem 0;
  display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center;
}
.cert-chips li {
  border: 1px solid rgba(246, 240, 229, 0.3); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-size: 0.86rem; font-weight: 600;
  color: var(--cream); letter-spacing: 0.01em;
}
.cert-chips li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

/* --- Timeline (Quiénes somos) --- */
.timeline { position: relative; display: grid; gap: 0; margin-top: 1.5rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--gold), var(--line));
}
.timeline__item { position: relative; padding: 0 0 1.9rem 2.4rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--gold);
}
.timeline__year {
  font-family: var(--sans); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600);
}
.timeline__text { margin: 0.25rem 0 0; color: var(--muted); }

/* --- Animated flags (Brasil / Paraguay) --- */
.flag {
  width: 30px; height: 21px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35); flex: none;
  transform-origin: left center;
  animation: flag-wave 3.6s ease-in-out infinite;
}
.flag:nth-child(2) { animation-delay: -1.2s; }
@keyframes flag-wave {
  0%, 100% { transform: perspective(120px) rotateY(0deg) skewY(0deg); }
  25% { transform: perspective(120px) rotateY(-12deg) skewY(1.2deg); }
  50% { transform: perspective(120px) rotateY(0deg) skewY(0deg); }
  75% { transform: perspective(120px) rotateY(10deg) skewY(-1.2deg); }
}
@media (prefers-reduced-motion: reduce) { .flag { animation: none; } }
.flag svg { display: block; width: 100%; height: 100%; }

/* --- Motion helpers (CSS transitions; JS toggles .is-in) --- */
.js .fx-up { opacity: 0; transform: translateY(20px); }
.js .fx-in { opacity: 0; }
.js .fx-up.is-in, .js .fx-in.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .fx-up, .js .fx-in { opacity: 1 !important; transform: none !important; }
}

/* --- Soft brand band (plush logo) --- */
.soft-band { background: #faf9f7; border-block: 1px solid var(--line); }
.soft-band__inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.soft-band__art img {
  width: 100%; max-width: 420px; height: auto; margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(23, 50, 63, 0.14));
  animation: soft-float 7s ease-in-out infinite;
}
@keyframes soft-float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-10px) rotate(0.4deg); }
}
@media (prefers-reduced-motion: reduce) { .soft-band__art img { animation: none; } }
.soft-band h2 { font-size: var(--step-3); }
@media (max-width: 760px) {
  .soft-band__inner { grid-template-columns: 1fr; text-align: center; }
  .soft-band .kicker { justify-content: center; }
  .soft-band__art { order: -1; }
}

/* parallax: give the image vertical bleed so the scrub never shows an edge */
[data-parallax] { overflow: hidden; }
[data-parallax] img { height: 118%; margin-top: -9%; }
@media (prefers-reduced-motion: reduce) {
  [data-parallax] img { height: 100%; margin-top: 0; }
}
