/* ============================================
   LUBRIFY — Sistema de diseño
   Paleta: Verde Lubrify + Ámbar + Negro puro
   ============================================ */

@font-face {
  font-family: "Peristiwa";
  src: url("../fonts/peristiwa/Peristiwa.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colores marca */
  --green: #6FB544;
  --green-dark: #4F8F2C;
  --green-light: #8DCB66;
  --amber: #E8A53A;
  --amber-dark: #C8861E;

  /* Neutros */
  --black: #000000;
  --night: #0A0A0A;
  --carbon: #141414;
  --graphite: #1F1F1F;
  --steel: #2A2A2A;
  --ash: #555555;
  --silver: #9A9A9A;
  --fog: #E5E5E5;
  --cloud: #F4F4F4;
  --white: #FFFFFF;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado / radios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --container: 1600px;

  /* Sombras */
  --shadow-card: 0 2px 12px rgba(0,0,0,.06);
  --shadow-lift: 0 20px 40px -10px rgba(0,0,0,.25);
  --shadow-green: 0 10px 30px -10px rgba(111,181,68,.55);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Base tipográfica: 16px (default del navegador). */
  font-size: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--carbon);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

/* Tipografía display — Escala basada en proporción áurea (φ = 1.618) sobre base 16px.
   H4 y H3 mantienen ratio áureo puro. H2 y H1 se capan a tamaños cómodos para no
   avasallar el layout en pantallas grandes. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--black);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); }        /* 38 → 80px */
h2 { font-size: clamp(1.8rem, 3.5vw, 3.25rem); }     /* 29 → 52px */
h3 { font-size: clamp(1.4rem, 2.4vw, 2.618rem); }    /* 22 → 42px (φ × h4) */
h4 { font-size: clamp(1.1rem, 1.6vw, 1.618rem); font-weight: 700; line-height: 1.2; } /* 17 → 26px (φ × body) */
p { color: var(--ash); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--green);
}
.eyebrow.on-dark { color: var(--green-light); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 56px);
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--dark { background: var(--night); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--white); }
.section--carbon { background: var(--carbon); color: var(--white); }
.section--carbon h1, .section--carbon h2, .section--carbon h3, .section--carbon h4 { color: var(--white); }
.section--carbon p { color: var(--white); }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  gap: 24px;
}
.header__logo img { height: 64px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav a.active { color: #fff; background: var(--green); }
.nav a.active:hover { color: #fff; background: var(--green-dark); }

/* El enlace "Inicio/Home" se oculta del menú: se va a la home pulsando el logo */
.nav a[data-i18n="nav.home"] { display: none !important; }

/* Botón "Hazte partner" inyectado en el menú móvil (oculto en desktop) */
.nav__partner-mobile { display: none; }

.header__cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  color: var(--white);
}
.menu-toggle svg { margin: auto; }

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 999px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--green);
  color: var(--black);
}
.btn--primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.25);
}
.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green-light);
}
.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--graphite);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--outline:hover {
  background: var(--black);
  color: var(--green-light);
}
/* btn--outline sobre secciones oscuras: blanco para que se vea (ej. botón Descargar catálogo) */
.section--dark .btn--outline,
.section--carbon .btn--outline,
.page-header .btn--outline {
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.section--dark .btn--outline:hover,
.section--carbon .btn--outline:hover,
.page-header .btn--outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0 clamp(80px, 10vw, 140px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(111,181,68,.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(232,165,58,.10), transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.8), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.8), transparent 70%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__content { max-width: 720px; }
.hero h1 {
  color: var(--white);
  margin: 24px 0 24px;
}
.hero h1 .accent { color: var(--green); }
.hero__tagline {
  font-family: "Peristiwa", "Georgia", serif;
  color: var(--green-light);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  margin: -4px 0 32px;
  letter-spacing: .005em;
  text-shadow: 0 2px 18px rgba(111,181,68,.3);
  display: inline-block;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: #fff;
  margin-bottom: 40px;
  max-width: 580px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__visual .orb {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(111,181,68,.35), transparent 60%);
  filter: blur(40px);
}
.hero__bottle {
  position: relative;
  width: 90%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__bottle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(111,181,68,.25));
  position: relative;
  z-index: 2;
}

/* Hero KPI bar */
.hero__kpis {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(56px, 8vw, 80px);
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.kpi { padding: 22px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.kpi:first-child { padding-left: 18px; }
.kpi__num {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.02em;
  line-height: 1;
}
.kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--green);
  background: rgba(111, 181, 68, .12);
  border: 1px solid rgba(111, 181, 68, .25);
  border-radius: 14px;
  margin-bottom: 4px;
}
.kpi__icon svg { width: 28px; height: 28px; }
.kpi__label {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ============================================
   PAGE HEADER (interiores)
   ============================================ */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(111,181,68,.15), transparent 60%);
}
.page-header__inner { position: relative; z-index: 2; max-width: 820px; }
.page-header h1 { color: var(--white); margin: 20px 0 20px; }
.page-header p {
  font-size: 1.15rem;
  color: var(--white);
}

.breadcrumb {
  font-size: .85rem;
  color: var(--white);
  margin-bottom: 8px;
}
.breadcrumb a:hover { color: var(--green-light); }
.breadcrumb span { color: rgba(255,255,255,.3); margin: 0 8px; }

/* ============================================
   CARDS / GRIDS
   ============================================ */
.section__head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section__head .eyebrow { justify-content: center; }
.section__head h2 { margin: 16px 0 18px; }
.section__head p { font-size: 1.1rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Feature card (diferenciadores) */
.feature {
  position: relative;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--radius-lg);
  transition: all .3s ease;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: var(--shadow-lift);
}
.feature__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 12px; }

/* ----- Tarjetas Audiencias con imagen de fondo ----- */
.feature.feature--bg {
  padding: 28px 26px;
  border: 0;
  background-color: var(--carbon);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  min-height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.feature--bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,.45) 45%, rgba(20,20,20,.92) 100%);
  z-index: -1;
  transition: background .3s ease;
}
.feature--bg:hover::before {
  background:
    linear-gradient(180deg, rgba(20,20,20,.05) 0%, rgba(20,20,20,.5) 40%, rgba(13,53,28,.95) 100%);
}
.feature--bg:hover {
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.feature--bg h3 {
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.feature--bg p {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  font-size: .95rem;
  line-height: 1.55;
}
.feature--bg .feature__icon { display: none; }

.section--dark .feature {
  background: var(--graphite);
  border-color: var(--steel);
  color: var(--white);
}
.section--dark .feature h3 { color: var(--white); }
.section--dark .feature:hover { border-color: var(--green); background: var(--carbon); }

/* Product category card */
.cat-card {
  position: relative;
  display: block;
  padding: 32px 28px 28px;
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  transition: all .3s ease;
  border: 1px solid var(--steel);
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(111,181,68,.18) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--green); }
.cat-card:hover::before { opacity: 1; }
.cat-card__icon {
  width: 48px; height: 48px;
  color: var(--green);
  margin-bottom: 20px;
  position: relative; z-index: 2;
}
.cat-card h3 {
  color: var(--white);
  margin-bottom: 8px;
  position: relative; z-index: 2;
}
.cat-card p {
  color: var(--white);
  font-size: .92rem;
  position: relative; z-index: 2;
}
.cat-card__arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  color: var(--green);
  transition: transform .3s ease;
  z-index: 2;
}
.cat-card:hover .cat-card__arrow { transform: translate(4px, -4px); }

/* ============================================
   SPLIT (texto + visual)
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split--reverse .split__visual { order: 2; }
.split__content { max-width: 540px; }
.split__content h2 { margin: 16px 0 20px; }
.split__list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.split__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.split__list .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.split__list .check svg { width: 14px; height: 14px; }
.split__list strong { display: block; color: var(--black); margin-bottom: 2px; }
.section--dark .split__list strong { color: var(--white); }

.split__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--graphite), var(--black));
  border: 1px solid var(--steel);
}

/* Visual: mapa Europa */
.visual-europe {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  padding: 48px;
  background:
    radial-gradient(circle at center, rgba(111,181,68,.12), transparent 60%),
    var(--carbon);
}
.visual-europe svg { width: 100%; height: auto; }

/* Visual: sostenibilidad */
.visual-eco {
  width: 100%; height: 100%;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  background: var(--carbon);
}
.eco-stat {
  background: var(--graphite);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eco-stat__num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.eco-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  color: var(--green);
  background: rgba(111, 181, 68, .12);
  border: 1px solid rgba(111, 181, 68, .25);
  border-radius: 16px;
}
.eco-stat__icon svg { width: 40px; height: 40px; }
.eco-stat__label { color: var(--white); margin-top: 14px; font-size: .98rem; line-height: 1.4; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 50%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p  { color: var(--white); font-size: 1.05rem; max-width: 540px; }
.cta-banner__actions { display: flex; gap: 12px; position: relative; z-index: 2; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand img { height: 48px; margin-bottom: 20px; filter: brightness(1.05); }
.footer__brand p { color: var(--white); max-width: 320px; font-size: .92rem; }
.footer h3,
.footer h4 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  color: var(--white);
  font-size: .92rem;
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--green-light); }

.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.footer__bottom a:hover { color: var(--green-light); }
.footer__legal { display: flex; gap: 24px; }

/* ============================================
   CATÁLOGO
   ============================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding: 8px;
  background: var(--cloud);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.filter {
  padding: 10px 22px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ash);
  border-radius: 999px;
  transition: all .2s ease;
}
.filter:hover { color: var(--black); }
.filter.active {
  background: var(--black);
  color: var(--white);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
  position: relative;
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--black);
  box-shadow: var(--shadow-lift);
}
.product__media {
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 50% 60%, rgba(111,181,68,.10), transparent 60%),
    linear-gradient(135deg, #F8F8F8 0%, #EAEAEA 100%);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
}
.product__media img {
  position: relative;
  z-index: 2;
  max-height: 90%;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.18));
  transition: transform .4s ease;
}
.product:hover .product__media img { transform: translateY(-4px) scale(1.03); }
.product__badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--green);
  color: var(--black);
  padding: 5px 12px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  z-index: 3;
}
.product__badge--amber { background: var(--amber); }
.product__badge--bio { background: #2e7d46; color: #fff; }
.product__badge--bio::before { content: '\1F33F  '; }
.filter--bio.active { background: #2e7d46; border-color: #2e7d46; }
.product__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product__cat {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 8px;
}
.product__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 4px;
}
.product__visc {
  color: var(--green-dark);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 14px;
}
.product__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.product__spec {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--cloud);
  color: var(--carbon);
  border-radius: 4px;
}
.product__desc {
  font-size: .9rem;
  color: var(--ash);
  margin-bottom: 20px;
  flex: 1;
}
.product__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--fog);
}
.product__pack { font-size: .85rem; color: var(--ash); }
.product__link {
  color: var(--black);
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product__link:hover { color: var(--green-dark); }

/* Stretched-link: el enlace "Ver detalle" extiende su zona clicable a toda la card.
   z-index: 3 porque .product__media img tiene z-index: 2 (debe quedar por encima). */
.product { cursor: pointer; }
.product .product__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: auto;
}

/* ============================================
   PARTNERS / BENEFICIOS
   ============================================ */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.benefit {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--graphite);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  transition: all .3s ease;
}
.benefit:hover { border-color: var(--green); transform: translateY(-3px); }
.benefit__num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--green);
  color: var(--black);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.benefit h4 { color: var(--white); margin-bottom: 6px; }
.benefit p { color: var(--white); font-size: .92rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 10%; right: 10%;
  height: 2px;
  background: var(--fog);
  z-index: 0;
}
.step { text-align: center; padding: 0 24px; position: relative; z-index: 2; }
.step__num {
  width: 72px; height: 72px;
  background: var(--black);
  color: var(--green);
  border: 4px solid var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}
.section--dark .step__num { border-color: var(--night); }
.section--dark .steps::before { background: var(--steel); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; }

/* ============================================
   FORMULARIO
   ============================================ */
.form {
  display: grid;
  gap: 20px;
}
.form__msg {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: .95rem;
  line-height: 1.45;
  border-left: 4px solid;
}
.form__msg--ok {
  background: rgba(111,181,68,.10);
  border-color: var(--green);
  color: var(--green-dark);
}
.form__msg--err {
  background: rgba(204,38,38,.07);
  border-color: #cc2626;
  color: #a01b1b;
}
.form__msg--info {
  background: rgba(20,20,20,.04);
  border-color: var(--carbon);
  color: var(--carbon);
}
.hp-field { position: absolute !important; left: -9999px !important; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--carbon);
  letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--fog);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--black);
  transition: border-color .2s ease, box-shadow .2s ease;
  font-size: .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(111,181,68,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: .85rem;
}
.field--check input { width: 18px; height: 18px; margin-top: 2px; }
.field--check label { font-weight: 400; color: var(--ash); }
.field--check a { color: var(--green-dark); text-decoration: underline; }

/* Cláusula RGPD básica (encima del checkbox de consentimiento) */
.form__legal {
  padding: 14px 16px;
  border: 1px solid var(--fog);
  border-radius: var(--radius-sm);
  background: var(--cloud);
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ash);
}
.form__legal-title,
.section--dark .form__legal-title,
.section--carbon .form__legal-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: .8rem;
  color: var(--carbon);
}
.form__legal ul { margin: 0; padding: 0; list-style: none; }
.form__legal li { margin: 0 0 3px; }
.form__legal li:last-child { margin-bottom: 0; }
.form__legal strong { color: var(--steel); font-weight: 700; }
.form__legal a { color: var(--green-dark); text-decoration: underline; }

.form-card {
  background: var(--white);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--fog);
  box-shadow: var(--shadow-card);
}

/* ============================================
   CONTACTO INFO
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--cloud);
  border-radius: var(--radius-md);
  transition: background .2s ease;
}
.contact-item:hover { background: var(--fog); }
.contact-item__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--black);
  color: var(--green);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 { margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--ash); font-size: .95rem; }
.contact-item a:hover { color: var(--green-dark); }

/* ============================================
   FAQ
   ============================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--fog);
}
.faq__q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s ease;
}
.faq__q:hover { color: var(--green-dark); }
.faq__q .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .3s ease;
}
.faq__q .plus::before, .faq__q .plus::after {
  content: '';
  position: absolute;
  background: var(--black);
}
.faq__q .plus::before { width: 14px; height: 2px; }
.faq__q .plus::after { width: 2px; height: 14px; transition: transform .3s ease; }
.faq__item.open .faq__q .plus::after { transform: rotate(90deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
}
.faq__a p { padding: 0 0 24px; color: var(--ash); }
.faq__item.open .faq__a { max-height: 300px; }

/* FAQ sobre fondo oscuro */
.section--dark .faq__item,
.section--carbon .faq__item { border-bottom-color: rgba(255,255,255,.1); }
.section--dark .faq__q,
.section--carbon .faq__q { color: var(--white); }
.section--dark .faq__q:hover,
.section--carbon .faq__q:hover { color: var(--green-light); }
.section--dark .faq__q .plus::before,
.section--dark .faq__q .plus::after,
.section--carbon .faq__q .plus::before,
.section--carbon .faq__q .plus::after { background: var(--white); }
.section--dark .faq__a p,
.section--carbon .faq__a p { color: var(--white); }

/* ============================================
   BANNER FULL-WIDTH (imagen real)
   ============================================ */
.image-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--carbon);
  min-height: 280px;
  display: grid;
  place-items: center;
}
.image-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.image-banner--rounded { border-radius: var(--radius-lg); }

/* En móvil el banner ancho se hace más bajo que 280px: quitamos la altura
   mínima para que el contenedor se ajuste a la imagen y no salgan franjas. */
@media (max-width: 768px) {
  .image-banner { min-height: 0; }
}

/* Visual: imagen con bordes y sombra */
.visual-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--carbon);
  padding: 0;
}
.visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Category card con foto */
.cat-card--photo {
  padding: 0;
  background: var(--graphite);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.cat-card__photo {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #F0F0F0, #DCDCDC);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
}
.cat-card__photo img {
  max-height: 95%;
  max-width: 75%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
  transition: transform .4s ease;
}
.cat-card--photo:hover .cat-card__photo img { transform: translateY(-4px) scale(1.04); }
.cat-card__info {
  padding: 24px 24px 28px;
  position: relative;
  z-index: 2;
  flex: 1;
}
.cat-card__info h3 { color: var(--white); margin-bottom: 6px; }
.cat-card__info p { color: var(--white); font-size: .92rem; }
.cat-card--photo .cat-card__arrow { bottom: 20px; right: 20px; }

/* Variante foto a sangre (full-bleed) — tarjetas de mercado del hub */
.cat-card--cover { min-height: 340px; }
.cat-card--cover .cat-card__photo {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: none;
  padding: 0;
  display: block;
  z-index: 0;
}
.cat-card--cover .cat-card__photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: none;
}
.cat-card--cover .cat-card__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  flex: none;
  z-index: 2;
  padding: 56px 22px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 48%, rgba(0,0,0,0) 100%);
}
.cat-card--cover .cat-card__info p { color: var(--white); }
.cat-card--cover .cat-card__arrow { z-index: 3; color: var(--white); }
.cat-card--cover:hover .cat-card__photo img { transform: scale(1.06); }

/* MOQ / Pallet teaser */
.moq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.moq-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--graphite);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  transition: all .3s ease;
}
.moq-item:hover { border-color: var(--green); transform: translateY(-4px); }
.moq-item__icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  color: var(--green);
}
.moq-item h4 { color: var(--white); margin-bottom: 6px; font-size: 1.15rem; }
.moq-item p { color: var(--white); font-size: .9rem; }

/* Catálogo: agrupación por familia */
.product-family {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}
.product-family[hidden] { display: none; }
.product-family__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--fog);
}
.product-family__title h3 { font-size: 1.5rem; color: var(--black); margin: 0; }
.product-family__title .count {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: var(--cloud);
  color: var(--ash);
  border-radius: 999px;
}
.product-family__desc {
  width: 100%;
  margin: 0;
  font-size: .95rem;
  color: var(--ash);
}

/* ============================================
   PÁGINAS LEGALES / TEXTO LARGO
   ============================================ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--carbon);
}
.legal h2 {
  font-size: 1.6rem;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: var(--black);
}
.legal p { margin-bottom: 16px; color: var(--carbon); line-height: 1.7; }
.legal ul, .legal ol {
  margin: 0 0 20px 24px;
  padding-left: 8px;
}
.legal ul li, .legal ol li {
  margin-bottom: 10px;
  line-height: 1.65;
  list-style: disc;
  color: var(--carbon);
}
.legal ol li { list-style: decimal; }
.legal strong { color: var(--black); font-weight: 700; }
.legal a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--green); }
.legal .legal-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--cloud);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0 0 32px;
  font-size: .92rem;
}
.legal .legal-meta strong { display: block; color: var(--black); margin-bottom: 2px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.legal .legal-update {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--fog);
  font-size: .85rem;
  color: var(--ash);
}

/* Tarjetas de valores (empresa) */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--radius-lg);
  transition: all .3s ease;
  position: relative;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow-lift);
}
.value-card__num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { font-size: .95rem; }

/* ============================================
   BANNER COOKIES (RGPD)
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--white);
  color: var(--carbon);
  border: 1px solid var(--fog);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -10px rgba(0,0,0,.6);
  padding: 24px 28px;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  animation: cookie-up .4s ease-out;
}
.cookie-banner.is-visible { display: grid; }
@keyframes cookie-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text { font-size: .92rem; color: var(--carbon); }
.cookie-banner__text strong { color: var(--carbon); }
.cookie-banner__text a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__text a:hover { color: var(--green); }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__btn {
  padding: 10px 22px;
  font-size: .88rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
/* RGPD: los 3 botones (Aceptar / Rechazar / Configurar) con IGUAL prominencia:
   mismo verde, mismo peso visual. */
.cookie-banner__btn--accept,
.cookie-banner__btn--reject,
.cookie-banner__btn--ghost {
  background: var(--green);
  color: var(--black);
  border-color: var(--green);
}
.cookie-banner__btn--accept:hover,
.cookie-banner__btn--reject:hover,
.cookie-banner__btn--ghost:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

@media (max-width: 768px) {
  /* Subir el banner por encima de la franja de contacto inferior (~58px) */
  .cookie-banner { grid-template-columns: 1fr; padding: 20px; bottom: 70px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; text-align: center; }
}

/* ----- Modal de preferencias ----- */
.cookie-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.cookie-modal.is-visible { display: flex; }
.cookie-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20,20,20,.55);
  backdrop-filter: blur(2px);
}
.cookie-modal__panel {
  position: relative;
  background: var(--white);
  color: var(--carbon);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  animation: cookieModalIn .25s ease;
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal__close {
  position: absolute; top: 12px; right: 16px;
  width: 34px; height: 34px;
  border: 0; background: transparent;
  font-size: 1.4rem; line-height: 1;
  color: rgba(20,20,20,.55);
  cursor: pointer; border-radius: 50%;
}
.cookie-modal__close:hover { background: rgba(20,20,20,.06); color: var(--carbon); }
.cookie-modal__panel h3 {
  margin: 0 0 10px; font-size: 1.35rem; color: var(--carbon);
}
.cookie-modal__lead {
  font-size: .92rem; line-height: 1.55;
  color: rgba(20,20,20,.7);
  margin: 0 0 20px;
}
.cookie-cat {
  padding: 14px 0;
  border-top: 1px solid rgba(20,20,20,.08);
}
.cookie-cat:last-of-type { border-bottom: 1px solid rgba(20,20,20,.08); margin-bottom: 22px; }
.cookie-cat__row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.cookie-cat__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cookie-cat__head strong {
  font-size: 1rem; color: var(--carbon);
}
.cookie-cat__pill {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(111,181,68,.14); color: var(--green-dark);
  text-transform: uppercase;
}
.cookie-cat__desc {
  font-size: .87rem; line-height: 1.5;
  color: rgba(20,20,20,.65);
  margin: 8px 0 0;
}
.cookie-modal__actions {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
}
/* Botones del modal: heredan el verde de .cookie-banner__btn--* (coherencia) */

/* ----- Toggle switch ----- */
.cookie-toggle {
  position: relative; display: inline-block;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input {
  position: absolute; opacity: 0; pointer-events: none;
}
.cookie-toggle span {
  position: absolute; inset: 0;
  background: rgba(20,20,20,.18);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.cookie-toggle span::before {
  content: ""; position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cookie-toggle input:checked + span { background: var(--green); }
.cookie-toggle input:checked + span::before { transform: translateX(20px); }
.cookie-toggle.is-locked span { cursor: not-allowed; opacity: .85; }

html.cookie-modal-open { overflow: hidden; }

/* ----- Floating "Cookies" button (reopen preferences) ----- */
.cookie-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 9000;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--carbon); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  cursor: pointer; opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
.cookie-fab:hover { opacity: 1; transform: translateY(-2px); }
@media (max-width: 768px) {
  .cookie-fab { right: 12px; bottom: 12px; width: 40px; height: 40px; }
  .cookie-modal__panel { padding: 28px 22px 20px; border-radius: 14px; }
}

/* ============================================
   FLOTANTES: subir arriba + contacto + barra inferior móvil
   ============================================ */
.scroll-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 8000;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--carbon); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.scroll-top.is-visible { opacity: .92; visibility: visible; transform: translateY(0); }
.scroll-top:hover { opacity: 1; background: var(--green); color: var(--black); }

.float-actions {
  position: fixed; right: 18px; bottom: 74px; z-index: 8000;
  display: flex; flex-direction: column; gap: 12px;
}
.float-actions__btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.float-actions__btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.34); }
.float-actions__btn--wa { background: #25D366; }
.float-actions__btn--tel { background: var(--green); color: var(--black); }

.mobile-bar { display: none; }

@media (max-width: 768px) {
  .float-actions { display: none; }
  .scroll-top { left: 12px; bottom: 70px; width: 42px; height: 42px; }
  .cookie-fab { bottom: 70px; }

  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 7000;
    background: var(--green); border-top: 1px solid var(--green-dark);
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
  }
  .mobile-bar__btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 4px; color: #fff; font-size: .7rem; font-weight: 700;
  }
  .mobile-bar__btn svg { width: 22px; height: 22px; }
  .mobile-bar__btn:active { background: var(--green-dark); }
  .mobile-bar__btn:not(:last-child) { border-right: 1px solid rgba(255,255,255,.25); }
  body { padding-bottom: 58px; }
}

/* ============================================
   SELECTOR DE IDIOMA
   ============================================ */
.lang-switch {
  position: relative;
  margin-right: 4px;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  transition: all .2s ease;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lang-switch__btn:hover {
  border-color: var(--green);
  color: var(--white);
}
.lang-switch__btn svg { transition: transform .2s ease; }
.lang-switch.is-open .lang-switch__btn svg { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--night);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
  padding: 6px;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
  z-index: 110;
}
.lang-switch.is-open .lang-switch__menu { display: flex; }
.lang-switch__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: all .15s ease;
}
.lang-switch__item:hover { background: rgba(255,255,255,.08); color: var(--white); }
.lang-switch__item.is-active { color: var(--green-light); background: rgba(111,181,68,.1); }
.lang-switch__flag {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .lang-switch__menu { right: auto; left: 0; }
}

/* ============================================
   PÁGINA DETALLE DE PRODUCTO
   ============================================ */
.product-hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 40%, rgba(111,181,68,.18), transparent 60%);
}
.product-hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.product-hero__media {
  background: linear-gradient(135deg, #F8F8F8 0%, #E5E5E5 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.product-hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(111,181,68,.12), transparent 60%);
}
.product-hero__media img {
  position: relative; z-index: 2;
  max-width: 70%; max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.25));
}
.product-hero__info { max-width: 540px; }
.product-hero h1 { color: var(--white); margin: 16px 0 8px; }
.product-hero__visc {
  font-size: 1.2rem;
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 24px;
}
.product-hero__lead {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.7;
}
.product-hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.product-hero__spec {
  padding: 6px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.product-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Detail body */
.product-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail__main h2 {
  font-size: 1.4rem;
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
}
.product-detail__main h2:first-child { margin-top: 0; }
.product-detail__main p { color: var(--carbon); line-height: 1.7; margin-bottom: 12px; }
.product-detail__main ul {
  margin: 0 0 20px 24px;
  padding-left: 8px;
}
.product-detail__main ul li {
  margin-bottom: 10px;
  list-style: disc;
  line-height: 1.65;
  color: var(--carbon);
}

.product-aside {
  position: sticky;
  top: 100px;
  background: var(--cloud);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--fog);
}
.product-aside h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--black);
}
.product-aside__row {
  padding: 12px 0;
  border-top: 1px solid var(--fog);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  font-size: .92rem;
}
.product-aside__row:first-of-type { border-top: 0; padding-top: 0; }
.product-aside__row strong {
  color: var(--ash);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.product-aside__row span { color: var(--black); font-weight: 600; text-align: right; }
.product-aside .btn { width: 100%; justify-content: center; margin-top: 18px; }

/* Related products */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.related-card {
  display: block;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--radius-md);
  transition: all .25s ease;
  text-align: center;
}
.related-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.related-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: linear-gradient(135deg, #F8F8F8, #EAEAEA);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}
.related-card h4 {
  font-size: .95rem;
  color: var(--black);
  margin-bottom: 2px;
}
.related-card small { color: var(--ash); font-size: .8rem; }

@media (max-width: 1024px) {
  .product-hero__inner { grid-template-columns: 1fr; }
  .product-hero__media { max-width: 420px; margin: 0 auto; }
  .product-detail { grid-template-columns: 1fr; }
  .product-aside { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ANTI-FLASH i18n
   ============================================ */
html.i18n-pending body { visibility: hidden; }

/* ============================================
   ANIMACIONES
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 16px; border-radius: var(--radius-sm); }
  .header__cta .btn { display: none; }

  /* "Hazte partner" como primera opción destacada del menú móvil */
  .nav__partner-mobile {
    display: block;
    order: -1;
    margin-bottom: 8px;
    padding: 15px 16px;
    text-align: center;
    font-weight: 800;
    background: var(--green);
    color: var(--black) !important;
    border-radius: var(--radius-sm);
  }
  .nav__partner-mobile:hover { background: var(--green-light); color: var(--black) !important; }

  .grid-3, .grid-2, .grid-4, .products, .values, .moq-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__visual { order: 0; }
  .hero__kpis { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .kpi { padding: 0; border-left: 0; }
  .cta-banner { grid-template-columns: 1fr; text-align: left; }
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .benefits { grid-template-columns: 1fr; }
}

/* ============================================
   GLOW CARD — pointer-tracked aura (verde Lubrifly)
   ============================================ */
[data-glow] {
  --base: 95;            /* hue base = verde Lubrifly */
  --spread: 50;          /* rango estrecho para que no salga del verde */
  --radius: 14;
  --border: 2;
  --backdrop: rgba(111, 181, 68, .06);
  --backup-border: rgba(111, 181, 68, .22);
  --size: 240;
  --border-size: calc(var(--border, 2) * 1px);
  --spotlight-size: calc(var(--size, 200) * 1px);
  --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));

  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at
      calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(var(--hue, 110) calc(var(--saturation, 80) * 1%) calc(var(--lightness, 60) * 1%) / var(--bg-spot-opacity, .22)),
    transparent 70%
  );
  background-color: var(--backdrop, transparent);
  border: var(--border-size) solid var(--backup-border);
  border-radius: calc(var(--radius) * 1px);
  position: relative;
  touch-action: none;
}

[data-glow]::before,
[data-glow]::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent;
  border-radius: calc(var(--radius) * 1px);
  background-repeat: no-repeat;
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  -webkit-mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in;
          mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
          mask-clip: padding-box, border-box;
          mask-composite: intersect;
}

[data-glow]::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * .9) calc(var(--spotlight-size) * .9) at
      calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(var(--hue, 110) calc(var(--saturation, 100) * 1%) calc(var(--lightness, 55) * 1%) / var(--border-spot-opacity, 1)),
    transparent 70%
  );
  filter: brightness(1.6);
}

[data-glow]::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * .5) calc(var(--spotlight-size) * .5) at
      calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(95 100% 88% / var(--border-light-opacity, 1)),
    transparent 70%
  );
}

@media (prefers-reduced-motion: reduce) {
  [data-glow] { background-image: none; }
  [data-glow]::before,
  [data-glow]::after { display: none; }
}


/* ============================================
   TABS — Feature/empresa (port shadcn Feature108)
   ============================================ */
.tabs { margin-top: clamp(40px, 6vw, 64px); }
.tabs__list {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tabs__trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ash);
  background: transparent;
  border-radius: 12px;
  transition: color .2s ease, background .2s ease;
}
.tabs__trigger:hover { color: var(--black); }
.tabs__trigger.is-active {
  background: var(--cloud);
  color: var(--black);
}
.tabs__trigger svg { width: 18px; height: 18px; }

.tabs__content {
  background: var(--cloud);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 64px);
}
.tabs__panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.tabs__panel.is-active { display: grid; }
.tabs__panel-text { display: flex; flex-direction: column; gap: 20px; }
.tabs__panel-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
}
.tabs__panel-text p {
  font-size: 1.02rem;
  color: var(--ash);
  line-height: 1.6;
}
.tabs__panel-text .btn { align-self: flex-start; margin-top: 8px; }

.tabs__panel-image {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-lift);
}

.badge--feature {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  width: fit-content;
}

.section__head--center { text-align: center; max-width: 720px; margin: 0 auto; }
.section__head--center .badge--feature { margin: 0 auto; }

@media (max-width: 880px) {
  .tabs__panel { grid-template-columns: 1fr; }
  .tabs__panel-image { aspect-ratio: 16 / 10; }
}


/* ============================================
   FEATURE CAROUSEL — Valores empresa (port shadcn/motion)
   ============================================ */
.feature-carousel {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: clamp(24px, 3vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  min-height: 600px;
}
@media (min-width: 960px) {
  .feature-carousel { grid-template-columns: 40fr 60fr; }
}

/* === Columna izquierda: chips === */
.feature-carousel__chips {
  position: relative;
  background: var(--green-dark);
  color: var(--white);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px clamp(24px, 4vw, 56px);
}
.feature-carousel__chips::before,
.feature-carousel__chips::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 5;
}
.feature-carousel__chips::before {
  top: 0;
  background: linear-gradient(to bottom, var(--green-dark) 0%, rgba(79,143,44,.85) 50%, transparent 100%);
}
.feature-carousel__chips::after {
  bottom: 0;
  background: linear-gradient(to top, var(--green-dark) 0%, rgba(79,143,44,.85) 50%, transparent 100%);
}
.feature-carousel__chips-rail {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-carousel__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  height: 56px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .7s cubic-bezier(.34,1.3,.64,1), opacity .7s ease, background .4s ease, color .4s ease, border-color .4s ease;
  will-change: transform, opacity;
}
.feature-carousel__chip:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.feature-carousel__chip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255,255,255,.45);
  transition: color .4s ease;
}
.feature-carousel__chip.is-active {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
  z-index: 10;
}
.feature-carousel__chip.is-active svg { color: var(--green-dark); }

/* === Columna derecha: stage de cards === */
.feature-carousel__stage {
  position: relative;
  background: var(--graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 5vw, 64px);
  min-height: 500px;
  overflow: hidden;
}
.feature-carousel__deck {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
}
.feature-carousel__card {
  position: absolute;
  inset: 0;
  border-radius: clamp(24px, 3vw, 40px);
  overflow: hidden;
  background: var(--black);
  border: 6px solid var(--graphite);
  transition: transform .8s cubic-bezier(.34,1.3,.64,1), opacity .6s ease;
  pointer-events: none;
  opacity: 0;
  transform: scale(.7);
  will-change: transform, opacity;
}
.feature-carousel__card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1) rotate(0);
  z-index: 30;
  pointer-events: auto;
}
.feature-carousel__card.is-prev {
  opacity: .4;
  transform: translateX(-100px) scale(.85) rotate(-3deg);
  z-index: 20;
}
.feature-carousel__card.is-next {
  opacity: .4;
  transform: translateX(100px) scale(.85) rotate(3deg);
  z-index: 20;
}

.feature-carousel__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .7s ease;
  filter: grayscale(1) brightness(.75) blur(2px);
}
.feature-carousel__card.is-active img {
  filter: grayscale(0) brightness(1) blur(0);
}

.feature-carousel__overlay {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.4) 45%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease .15s, transform .5s ease .15s;
}
.feature-carousel__card.is-active .feature-carousel__overlay {
  opacity: 1;
  transform: translateY(0);
}

.feature-carousel__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  border-radius: 999px;
  width: fit-content;
}
.feature-carousel__caption {
  color: var(--white);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.feature-carousel__live {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: opacity .4s ease .2s;
  z-index: 5;
  pointer-events: none;
}
.feature-carousel__card.is-active .feature-carousel__live { opacity: 1; }
.feature-carousel__live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 10px var(--green-light);
  animation: feature-carousel-pulse 1.6s ease-in-out infinite;
}
@keyframes feature-carousel-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-carousel__chip, .feature-carousel__card,
  .feature-carousel__card img, .feature-carousel__overlay {
    transition: none;
  }
  .feature-carousel__live .dot { animation: none; }
}

/* ============================================
   TECH TABLE — Ficha producto de motor
   ============================================ */
.tech-table {
  background: var(--cloud);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 12px 0 24px;
}
.tech-table__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.tech-table__row:last-of-type { border-bottom: 0; }
.tech-table__prop {
  color: var(--ash);
  font-size: .95rem;
  font-weight: 500;
}
.tech-table__val {
  color: var(--black);
  font-weight: 700;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tech-table__micro {
  margin-top: 16px;
  font-size: .78rem;
  color: var(--silver);
  font-style: italic;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,.08);
}
.tech-table--empty {
  border: 1px dashed rgba(0,0,0,.15);
  background: transparent;
  text-align: center;
}
.tech-table--empty p { margin: 0; color: var(--ash); font-size: .95rem; }


/* ============================================
   About split — sección empresa con imagen + checklist
   ============================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-split:has(.about-split__media) {
  grid-template-columns: 1.1fr 1fr;
}
.about-split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  display: block;
}
.about-split__intro .eyebrow { color: var(--green-dark); }
.about-split__content .eyebrow { color: var(--green-dark); }
.about-split__intro h2, .about-split__content h2 {
  margin: 14px 0 18px;
}
.about-split__lead {
  color: rgba(20,20,20,.7);
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.6;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.check-list__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(111, 181, 68, .14);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.check-list strong {
  display: block;
  font-size: 1.05rem;
  color: var(--carbon);
  margin-bottom: 4px;
  font-weight: 700;
}
.check-list li > div > span {
  color: rgba(20,20,20,.65);
  font-size: .93rem;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; gap: 32px; }
}
