/* ==========================================================================
   IMPREGSA S.A. — Sistema visual web
   Tokens → base → layout → componentes → secciones → utilidades
   ========================================================================== */

/* ---------- Fuentes (DIN Next W1G, woff2) ---------- */
@font-face { font-family: 'DIN Next W1G'; src: url('../fonts/DINNextW1G-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN Next W1G'; src: url('../fonts/DINNextW1G-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN Next W1G'; src: url('../fonts/DINNextW1G-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN Next W1G'; src: url('../fonts/DINNextW1G-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DIN Next W1G'; src: url('../fonts/DINNextW1G-Heavy.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Corteza (marrones) */
  --bark-950: #1f1912;
  --bark-900: #2b2219;
  --bark-700: #4a3b2a;   /* marrón de marca */
  --bark-500: #7a6a55;
  /* Oliva */
  --olive-700: #5c6239;  /* oliva para texto/links sobre claro */
  --olive-500: #7d8456;  /* oliva de marca */
  --olive-300: #a9b07a;  /* oliva para texto sobre oscuro */
  /* Crema */
  --cream-50:  #faf8f3;  /* fondo de página */
  --cream-100: #f3f0e8;
  --cream-200: #edeae2;  /* crema de marca */
  --line:      #ddd6c8;
  --line-dark: rgba(243, 239, 230, 0.14);
  /* Texto */
  --ink:            #2b2219;
  --ink-muted:      #6b5d4c;
  --on-dark:        #f3efe6;
  --on-dark-muted:  #b9ad9b;
  --whatsapp:       #25d366;

  /* Tipografía */
  --font: 'DIN Next W1G', 'DIN Next', 'Helvetica Neue', Arial, sans-serif;
  --fs-display: clamp(2.6rem, 1.6rem + 4.2vw, 5rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem);
  --fs-h3: 1.375rem;
  --fs-lead: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.75rem;

  /* Espaciado (escala de 4) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;
  --section-y: clamp(72px, 6vw + 40px, 128px);
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1240px;

  /* Radios: la marca es recta e industrial */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-pill: 999px;

  --shadow-lift: 0 18px 40px -18px rgba(31, 25, 18, 0.35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--olive-700); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--olive-300); }
::selection { background: var(--olive-500); color: #fff; }

.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 2000;
  background: var(--on-dark); color: var(--bark-900); padding: var(--space-3) var(--space-4);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; color: inherit; }
.display { font-size: var(--fs-display); font-weight: 700; line-height: 0.98; letter-spacing: -0.025em; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); font-weight: 400; }
.on-dark .lead { color: var(--on-dark-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--olive-700);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--olive-300); }
.prose p { margin-bottom: 1.1em; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose a, .text-link { color: var(--olive-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .text-link:hover { color: var(--bark-700); }
.on-dark .text-link { color: var(--olive-300); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--cream-200); }
.section--dark { background: var(--bark-900); color: var(--on-dark); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section-head { display: grid; gap: var(--space-4); max-width: 760px; margin-bottom: var(--space-8); }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; gap: var(--space-5); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 52px; padding: 0 var(--space-6);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--bark-700); color: var(--on-dark); }
.btn--primary:hover { background: var(--bark-900); }
.btn--light { background: var(--on-dark); color: var(--bark-900); }
.btn--light:hover { background: #fff; }
.btn--outline { border-color: currentColor; color: var(--bark-700); }
.btn--outline:hover { background: var(--bark-700); border-color: var(--bark-700); color: var(--on-dark); }
.btn--ghost-light { border-color: rgba(243, 239, 230, .45); color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--on-dark); background: rgba(243, 239, 230, .08); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header::before { /* velo para legibilidad sobre foto */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(31, 25, 18, .55), rgba(31, 25, 18, 0));
  transition: opacity .35s var(--ease);
}
.site-header.is-solid { background: rgba(31, 25, 18, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.is-solid::before { opacity: 0; }
.site-header .container { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav a {
  position: relative; text-decoration: none; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark); opacity: .86; padding-block: var(--space-2); transition: opacity .2s;
}
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--olive-300); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-cta { display: none; }
.header-cta .btn { min-height: 42px; padding: 0 var(--space-5); font-size: 0.8125rem; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--on-dark); position: relative; transition: background-color .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 24px; height: 2px; background: var(--on-dark); transition: transform .3s var(--ease); }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 999; background: var(--bark-950); color: var(--on-dark);
  padding: var(--space-6) var(--gutter) var(--space-7); display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav a.mobile-link { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) 0; font-size: 1.5rem; font-weight: 500; text-decoration: none; }
.mobile-nav a.mobile-link::after { content: '→'; color: var(--olive-300); font-size: 1.1rem; }
.mobile-nav .btn { margin-top: var(--space-6); }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--bark-950); }
.menu-open .site-header::before { opacity: 0; }

@media (min-width: 1080px) {
  .nav, .header-cta { display: block; }
  .menu-toggle, .mobile-nav { display: none; }
  .brand img { height: 38px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--on-dark); background: var(--bark-950); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s linear; }
.hero-media img.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(31, 25, 18, .92) 0%, rgba(31, 25, 18, .55) 38%, rgba(31, 25, 18, .15) 70%),
    linear-gradient(to right, rgba(31, 25, 18, .55), rgba(31, 25, 18, 0) 65%);
}
.hero-inner { width: 100%; padding-top: calc(var(--header-h) + var(--space-8)); }
.hero-copy { max-width: 820px; padding-bottom: var(--space-8); }
.hero-copy .eyebrow { margin-bottom: var(--space-5); }
.hero-copy h1 { font-size: var(--fs-display); line-height: .98; letter-spacing: -0.025em; margin-bottom: var(--space-5); text-wrap: balance; }
.hero-copy h1 em { font-style: normal; color: var(--olive-300); }
.hero-copy .lead { color: rgba(243, 239, 230, .82); max-width: 560px; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-controls { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); padding-bottom: var(--space-4); }
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-dark); background: rgba(31, 25, 18, .4); color: var(--on-dark);
  font-size: 1.125rem; cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.hero-arrow:hover { background: rgba(243, 239, 230, .18); border-color: var(--on-dark-muted); }
.hero-arrow:focus-visible, .hero-dot:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.hero-dots { display: flex; }
.hero-dot {
  width: 26px; height: 26px; padding: 8px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(243, 239, 230, .4); background-clip: content-box; transition: background-color .2s ease;
}
.hero-dot.is-active { background-color: var(--olive-300); }
.hero-facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-dark);
}
.hero-fact { padding: var(--space-5) var(--space-4) var(--space-5) 0; }
.hero-fact + .hero-fact { padding-left: var(--space-4); border-left: 1px solid var(--line-dark); }
.hero-fact:nth-child(3) { padding-left: 0; border-left: 0; }
.hero-fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
.hero-fact strong { display: block; font-size: 1.125rem; font-weight: 700; letter-spacing: 0.01em; }
.hero-fact span { display: block; font-size: 0.8125rem; color: var(--on-dark-muted); margin-top: 2px; }
@media (min-width: 900px) {
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
  .hero-fact { padding: var(--space-6) var(--space-5); }
  .hero-fact:first-child { padding-left: 0; }
  .hero-fact:nth-child(3) { padding-left: var(--space-5); border-left: 1px solid var(--line-dark); }
  .hero-fact:nth-child(n+3) { border-top: 0; }
}

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
  position: relative; color: var(--on-dark); background: var(--bark-950); isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 140px)) 0 clamp(48px, 6vw, 88px);
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(31, 25, 18, .94) 0%, rgba(31, 25, 18, .6) 50%, rgba(31, 25, 18, .35) 100%), linear-gradient(to right, rgba(31, 25, 18, .5), transparent 70%); }
.page-hero h1 { max-width: 900px; margin: var(--space-4) 0 var(--space-5); text-wrap: balance; }
.page-hero .lead { color: rgba(243, 239, 230, .82); max-width: 640px; margin-bottom: var(--space-6); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: var(--space-2); opacity: .5; }
.breadcrumb a { text-decoration: none; color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--on-dark); }
.breadcrumb [aria-current] { color: var(--on-dark); }

/* ---------- Intro / Empresa ---------- */
.intro { display: grid; gap: var(--space-7); }
.intro-copy h2 { margin: var(--space-4) 0 var(--space-5); text-wrap: balance; }
.intro-copy .lead { margin-bottom: var(--space-5); }
.intro-media { position: relative; }
.intro-media .img-main { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.intro-media .img-badge {
  position: absolute; left: calc(var(--space-5) * -1); bottom: var(--space-7);
  background: var(--olive-500); color: #fff; padding: var(--space-5) var(--space-5); max-width: 220px;
}
.intro-media .img-badge strong { display: block; font-size: 3rem; line-height: 1; font-weight: 300; letter-spacing: -0.03em; }
.intro-media .img-badge span { display: block; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: var(--space-2); font-weight: 500; }
.check-list { list-style: none; display: grid; gap: 0; margin-top: var(--space-5); border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: var(--space-3) 0 var(--space-3) var(--space-6); border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--olive-500); }
@media (min-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: var(--space-8); }
  .intro-media .img-main { aspect-ratio: 3 / 1; }
  .intro-copy { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: var(--space-9); align-items: start; }
  .intro-copy > .eyebrow, .intro-copy > h2, .intro-copy > .lead { grid-column: 1; }
  .intro-copy > .intro-detail { grid-column: 2; grid-row: 1 / span 3; }
  .intro-detail .check-list--2col { grid-template-columns: 1fr; }
  .intro--reverse .intro-media { order: 2; }
  .check-list--2col { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); }
}
@media (max-width: 899px) {
  .intro-media .img-badge { left: var(--space-3); bottom: var(--space-3); padding: var(--space-3) var(--space-4); }
  .intro-media .img-badge strong { font-size: 1.75rem; }
}

/* ---------- Cifras ---------- */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.figure { padding: var(--space-6) var(--space-4) var(--space-6) 0; border-bottom: 1px solid var(--line); }
.figure:nth-child(even) { padding-left: var(--space-5); border-left: 1px solid var(--line); }
.figure-value { display: block; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1; font-weight: 300; letter-spacing: -0.03em; color: var(--bark-700); }
.figure-value small { font-size: .45em; font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.figure-label { display: block; margin-top: var(--space-3); font-size: var(--fs-small); color: var(--ink-muted); }
@media (min-width: 900px) {
  .figures { grid-template-columns: repeat(4, 1fr); }
  .figure { padding: var(--space-6) var(--space-5); border-left: 1px solid var(--line); }
  .figure:first-child { border-left: 0; padding-left: 0; }
}
.on-dark .figures, .on-dark .figure { border-color: var(--line-dark); }
.on-dark .figure-value { color: var(--on-dark); }
.on-dark .figure-label { color: var(--on-dark-muted); }

/* ---------- Tarjetas de producto ---------- */
.product-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
.product-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); border-color: transparent; }
.product-card .media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-200); }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .media img { transform: scale(1.05); }
.product-card .body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); flex: 1; }
.product-card .index { font-size: var(--fs-eyebrow); letter-spacing: .22em; color: var(--olive-700); font-weight: 500; }
.product-card h3 { font-size: 1.375rem; }
.product-card .measure { font-size: 1.0625rem; font-weight: 300; color: var(--bark-700); }
.product-card p { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.5; }
.product-card .more { margin-top: auto; padding-top: var(--space-4); display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--bark-700); }
.product-card .more span { transition: transform .25s var(--ease); }
.product-card:hover .more span { transform: translateX(4px); }

/* ---------- Proceso ---------- */
.process { display: grid; gap: var(--space-8); }
.process-photos { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-8); }
.process-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); }
@media (min-width: 640px) { .process-photos { grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--line-dark); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-bottom: 1px solid var(--line-dark); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 0.875rem; font-weight: 500; letter-spacing: .12em; color: var(--olive-300); padding-top: 4px; }
.step h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.step p { color: var(--on-dark-muted); font-size: var(--fs-small); line-height: 1.6; max-width: 56ch; }
.step .param { display: inline-flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.chip { display: inline-block; font-size: 0.8125rem; font-weight: 500; letter-spacing: .04em; padding: 4px 10px; border: 1px solid var(--line-dark); border-radius: var(--radius-pill); color: var(--on-dark); }
@media (min-width: 1000px) {
  .process { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-9); align-items: start; }
  .process-aside { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}
/* versión clara de los pasos (páginas internas) */
.steps--light { border-color: var(--line); }
.steps--light .step { border-color: var(--line); }
.steps--light .step::before { color: var(--olive-700); }
.steps--light .step p { color: var(--ink-muted); }

.video-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--bark-950); }
.video-strip video { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; }
@media (min-width: 900px) { .video-strip { grid-template-columns: repeat(4, 1fr); } .video-strip video { aspect-ratio: 3 / 4; } }

/* ---------- Banda de calidad ---------- */
.quality { position: relative; background: var(--olive-700); color: var(--on-dark); overflow: hidden; }
.quality .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
.quality .btn { white-space: normal; text-align: center; }
.quality h2 { text-wrap: balance; margin-top: var(--space-4); }
.quality .eyebrow { color: var(--cream-200); }
.quality p { color: rgba(243, 239, 230, .86); }
.quality-list { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(243, 239, 230, .22); }
.quality-list li { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid rgba(243, 239, 230, .22); font-size: var(--fs-small); }
.quality-list li b { font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 0.75rem; padding-top: 3px; color: var(--cream-200); }
@media (min-width: 900px) { .quality .container { grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: center; } }

/* ---------- Sectores ---------- */
.sectors { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sector { background: var(--cream-50); padding: var(--space-6) var(--space-5); display: grid; gap: var(--space-2); align-content: start; }
.sector svg { width: 32px; height: 32px; color: var(--olive-700); margin-bottom: var(--space-3); }
.sector h3 { font-size: 1.125rem; }
.sector p { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.5; }
@media (min-width: 640px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .sectors { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: var(--space-2); }
.gallery button { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--cream-200); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: var(--space-3); } }

.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 16, 11, .94); display: none; align-items: center; justify-content: center; padding: var(--space-8) var(--space-4); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; color: var(--on-dark); width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--radius-pill); background: rgba(31, 25, 18, .6); }
.lightbox .lb-close { top: var(--space-4); right: var(--space-4); }
.lightbox .lb-prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--space-4); top: 50%; transform: translateY(-50%); }

/* ---------- FAQ (acordeón nativo) ---------- */
.faq-layout { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-9); } .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + var(--space-6)); align-self: start; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  padding: var(--space-5) 0; font-size: 1.125rem; font-weight: 500; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background:
  linear-gradient(var(--bark-700), var(--bark-700)) center / 14px 2px no-repeat,
  linear-gradient(var(--bark-700), var(--bark-700)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--bark-700); }
.faq .answer { padding: 0 var(--space-7) var(--space-5) 0; color: var(--ink-muted); max-width: 68ch; }
.faq summary h3 { font: inherit; letter-spacing: 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: var(--space-7); }
@media (min-width: 1000px) { .contact { grid-template-columns: 1fr 1fr; gap: var(--space-9); } }
.contact-channels { display: grid; gap: 0; margin: var(--space-6) 0; border-top: 1px solid var(--line-dark); }
.channel { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.channel svg { width: 22px; height: 22px; color: var(--olive-300); }
.channel small { display: block; font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.channel span { display: block; font-size: 1.0625rem; font-weight: 500; }
a.channel:hover span { color: var(--olive-300); }
.map { margin-top: var(--space-5); border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; filter: grayscale(.35) contrast(1.05); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card { background: var(--cream-50); color: var(--ink); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-sm); }
.form-card h3 { font-size: 1.5rem; margin-bottom: var(--space-2); }
.form-card > p { color: var(--ink-muted); font-size: var(--fs-small); margin-bottom: var(--space-6); }
.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.field-row { display: grid; gap: 0 var(--space-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: 0.8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-bottom-color: var(--bark-500); border-radius: var(--radius-sm);
  padding: 14px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--olive-700); box-shadow: 0 0 0 3px rgba(92, 98, 57, .2); }
.form-note { margin-top: var(--space-4); font-size: 0.8125rem; color: var(--ink-muted); }
.form-status { margin-top: var(--space-4); font-size: var(--fs-small); font-weight: 500; color: var(--olive-700); }
.form-status.is-error { color: #9a3412; }

/* ---------- Datos técnicos (páginas internas) ---------- */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: var(--space-7) 0; }
.spec { padding: var(--space-5); background: var(--cream-50); }
.spec-value { display: block; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; color: var(--bark-700); }
.spec-label { display: block; margin-top: var(--space-2); font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.section--tint .spec { background: var(--cream-50); }

/* Documento técnico: título a la izquierda, contenido a la derecha */
.doc { display: grid; gap: var(--space-5); }
.doc-head { display: grid; gap: var(--space-3); align-content: start; }
.doc-head .num { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .22em; color: var(--olive-700); }
.doc-head h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); text-wrap: balance; }
.doc-body { min-width: 0; }
.doc-body > .lead-in { font-size: var(--fs-lead); color: var(--ink-muted); margin-bottom: var(--space-5); max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: var(--space-7) 0 var(--space-4); }
.small-note { font-size: 0.875rem; color: var(--ink-muted); }
@media (min-width: 1000px) {
  .doc { grid-template-columns: 4fr 8fr; gap: var(--space-9); }
  .doc-head { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}
.table-wrap { overflow-x: auto; margin: var(--space-6) 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream-50); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 520px; }
.data-table th { text-align: left; font-size: 0.75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); background: var(--bark-700); padding: var(--space-4) var(--space-5); }
.data-table td { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:hover td { background: var(--cream-100); }
.data-table td:first-child { font-weight: 500; }
@media (max-width: 639px) {
  .data-table { min-width: 0; table-layout: fixed; }
  .data-table th, .data-table td { padding: var(--space-3) var(--space-2); }
  .data-table td { font-size: 0.8125rem; }
  .data-table th { font-size: 0.625rem; letter-spacing: .03em; }
  .data-table th:first-child { width: 32%; }
}

.use-grid { list-style: none; display: grid; gap: 0 var(--space-6); border-top: 1px solid var(--line); margin-top: var(--space-6); }
.use-grid li { position: relative; padding: var(--space-4) 0 var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.use-grid li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--olive-500); }
@media (min-width: 700px) { .use-grid { grid-template-columns: 1fr 1fr; } }

.note-box { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--line); background: var(--cream-100); border-radius: var(--radius-sm); margin: var(--space-6) 0; font-size: var(--fs-small); }
.note-box svg { width: 24px; height: 24px; color: var(--olive-700); }
.note-box strong { color: var(--bark-700); }

.related-grid { display: grid; gap: var(--space-4); }
@media (min-width: 800px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6) var(--space-5); background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; transition: border-color .25s, background-color .25s; }
.related-card:hover { border-color: var(--bark-700); background: #fff; }
.related-card h3 { font-size: 1.25rem; display: flex; justify-content: space-between; gap: var(--space-4); }
.related-card h3::after { content: '→'; color: var(--olive-700); transition: transform .25s var(--ease); }
.related-card:hover h3::after { transform: translateX(4px); }
.related-card p { font-size: var(--fs-small); color: var(--ink-muted); }

.split-media { display: grid; gap: var(--space-7); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
@media (min-width: 900px) { .split-media { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-9); } }

/* ---------- CTA final ---------- */
.cta-band { position: relative; color: var(--on-dark); background: var(--bark-950); isolation: isolate; overflow: hidden; }
.cta-band .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(31, 25, 18, .95), rgba(31, 25, 18, .6)); }
.cta-band .container { display: grid; gap: var(--space-6); align-items: end; }
.cta-band h2 { max-width: 760px; text-wrap: balance; margin-top: var(--space-4); }
.cta-band p { color: var(--on-dark-muted); max-width: 560px; margin-top: var(--space-4); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.4fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bark-950); color: var(--on-dark-muted); padding: var(--space-9) 0 var(--space-6); font-size: var(--fs-small); }
.footer-top { display: grid; gap: var(--space-7); padding-bottom: var(--space-8); border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 40px; width: auto; margin-bottom: var(--space-5); }
.footer-brand p { max-width: 340px; }
.footer-col h3 { color: var(--on-dark); font-size: 0.75rem; line-height: 1.08; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; display: grid; gap: var(--space-2); }
.footer-col a { text-decoration: none; color: var(--on-dark-muted); transition: color .2s; }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-5); font-size: 0.8125rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; align-items: center; gap: var(--space-3);
  height: 56px; padding: 0 18px 0 16px; border-radius: var(--radius-pill); background: var(--whatsapp); color: #0b3d1f;
  text-decoration: none; font-weight: 500; font-size: 0.9375rem; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .5); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float .wa-label { display: none; }
@media (min-width: 700px) { .wa-float .wa-label { display: inline; } }
@media (max-width: 699px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .hero-controls { justify-content: flex-start; }
  .btn { max-width: 100%; white-space: normal; text-align: center; }
  .site-footer { padding-bottom: 88px; }
  .figure-value { font-size: 2rem; white-space: nowrap; }
}

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

/* ---------- Utilidades ---------- */
.on-dark { color: var(--on-dark); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.doc-figure { display: none; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); margin-top: var(--space-6); }
@media (min-width: 1000px) { .doc-figure { display: block; } }
.hero .eyebrow, .page-hero .eyebrow { color: var(--cream-200); }
@media (max-width: 639px) {
  .product-card .media { aspect-ratio: 4 / 3; }
  .hero::after { background: linear-gradient(to top, rgba(31, 25, 18, .94) 0%, rgba(31, 25, 18, .7) 55%, rgba(31, 25, 18, .45) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
}
