/* ==========================================================================
   HYDROEZA S.A. — hydroeza.com
   Hoja de estilos única. Orden: tokens → base → utilidades → componentes
   compartidos → bloques de página → adaptaciones responsive.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* Marca */
  --brand: #2d60a4;
  --brand-dark: #1f4576;
  --brand-tint: #eef1f6;
  --brand-light: #6ea8ff;
  --ink: #14161a;
  --ink-deep: #0a1220;
  --wa: #25d366;

  /* Neutros */
  --n-0: #ffffff;
  --n-50: #f4f6f9;
  --n-200: #e6e8eb;
  --n-line: #edeef0;
  --n-500: #8a9099;
  --n-600: #5b6169;
  --n-text: #4b5158;

  /* Radios */
  --r-sm: 11px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* Elevación */
  --sh-xs: 0 1px 3px rgba(20, 22, 26, .06);
  --sh-media: 0 30px 60px rgba(10, 18, 32, .2);

  /* Movimiento */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --ease-soft: cubic-bezier(.16, .84, .24, 1);

  /* Retícula */
  --shell: 1240px;
  --gutter: 40px;
}

/* ----------------------------------------------------------------- 2. Base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Deja respirar los anclajes bajo la barra pegajosa */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--n-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: var(--brand); color: #fff; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img,
video { max-width: 100%; }

/* Imprescindible junto a los atributos width/height del HTML: sin esto, en
   cuanto una regla fija el ancho el navegador toma el atributo height como
   altura literal y la imagen sale estirada. object-fit es la red de seguridad
   para el caso inverso: alto fijo y ancho recortado por max-width. */
img {
  height: auto;
  object-fit: contain;
}

h1, h2, h3, p, ul { margin: 0; }

button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 3px;
}

/* ------------------------------------------------------------ 3. Utilidades */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  z-index: 99;
  transition: width .1s linear;
}

/* ------------------------------------------- 4. Componentes compartidos */

/* 4.1 Antetítulo con filete */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 16px;
}
.eyebrow--center {
  display: inline-flex;
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--brand-light); margin-bottom: 14px; }
.eyebrow__rule {
  width: 30px;
  height: 2px;
  background: currentColor;
  display: inline-block;
  flex: 0 0 30px;
}

/* 4.2 Botón primario de marca */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(45, 96, 164, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(45, 96, 164, .4);
}

/* 4.3 Botón WhatsApp */
.btn-wa {
  background: var(--wa);
  color: #fff;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
}
.btn-wa:hover { color: #fff; }

.btn-wa--nav {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  gap: 8px;
}

.btn-wa--lg {
  gap: 10px;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .32);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-wa--lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, .45);
}

.btn-wa__dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--wa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}
.btn-wa__dot--md { width: 22px; height: 22px; font-size: 13px; }
.btn-wa__dot--lg { width: 20px; height: 20px; font-size: 12px; }

/* 4.4 Tarjeta de contacto */
.cc {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e9ecf1;
  border-radius: var(--r-md);
  padding: 15px 18px;
  box-shadow: var(--sh-xs);
  position: relative;
  transition: transform .42s var(--ease-soft), box-shadow .42s var(--ease-soft);
}
a.cc:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(20, 34, 64, .14), inset 0 0 0 1.5px rgba(45, 96, 164, .4);
}
.cc__ico {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: var(--r-sm);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: transform .42s var(--ease-soft);
}
.cc__ico--wa { background: var(--wa); }
.cc__ico--mail { background: var(--brand); }
.cc__ico--map { background: var(--ink); }
.cc__ico--brand { background: var(--brand); }
a.cc:hover .cc__ico { transform: scale(1.09) rotate(-5deg); }

.cc__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cc__label {
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--n-500);
  font-weight: 700;
}
.cc__value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.3px;
  overflow-wrap: anywhere;
}
.cc__go {
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  flex: 0 0 auto;
  color: var(--brand);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s ease, transform .42s var(--ease-soft);
}
a.cc:hover .cc__go { opacity: 1; transform: translateX(0); }

/* ------------------------------------------------------ 5. Bloques de página */

/* 5.1 WhatsApp flotante */
.wa-float {
  position: fixed;
  z-index: 95;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wa-pulse 2.2s ease-out infinite;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { fill: #fff; }

/* 5.2 Barra de grupo */
.topbar {
  background: #0f1114;
  color: var(--n-500);
  font-size: 12px;
  padding: 8px var(--gutter);
}
.topbar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__brands { display: flex; align-items: center; gap: 4px; }
.topbar__label { color: #6b7178; margin-right: 8px; letter-spacing: .5px; }
.topbar__brand {
  color: #b9bec5;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 7px;
  transition: background .2s ease, color .2s ease;
}
.topbar__brand--active {
  color: #fff;
  font-weight: 700;
  background: rgba(45, 96, 164, .22);
}
.topbar__brand--ht:hover { background: rgba(233, 83, 13, .18); color: #fff; }
.topbar__brand--viax:hover { background: rgba(242, 5, 5, .18); color: #fff; }
.topbar__contact { display: flex; align-items: center; gap: 18px; color: #b9bec5; }
.topbar__muted { color: #6b7178; }

/* 5.3 Navegación */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--n-line);
  transition: background .45s ease, box-shadow .45s ease;
}
.nav__shell {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 15px 40px;
  transition: padding .5s var(--ease-soft);
}
.nav__logo-link { display: block; line-height: 0; }
.nav__logo {
  height: 30px;
  width: auto;
  display: block;
  animation: hz-logo-in .9s var(--ease) both;
  transition: height .5s var(--ease-soft);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  transition: opacity .4s var(--ease-soft), transform .5s var(--ease-soft), filter .4s ease;
}
.nav__links > * {
  transition: opacity .5s var(--ease-soft), transform .55s var(--ease-soft);
}

/* Estado compacto: se activa desde main.js al bajar la página */
.nav.is-compact {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 6px 20px rgba(20, 22, 26, .12);
}
.nav.is-compact .nav__shell { padding: 10px 40px; }
.nav.is-compact .nav__logo { height: 24px; }
.nav.is-compact .nav__links {
  opacity: 0;
  transform: translateY(-14px);
  filter: blur(3px);
  pointer-events: none;
}
.nav.is-compact .nav__links > * {
  opacity: 0;
  transform: translateY(-10px);
}

.nav__link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 5px;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size .25s var(--ease), opacity .5s var(--ease-soft), transform .55s var(--ease-soft);
}
.nav__link:hover { background-size: 100% 2px; color: var(--ink); }

.nav__burger {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  border: 1.5px solid rgba(20, 22, 26, .22);
  color: var(--ink);
  font-size: 19px;
  cursor: pointer;
  transition: background .28s ease, border-color .28s ease, color .28s ease;
}
.nav__burger:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.nav__panel {
  background: rgba(255, 255, 255, .985);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--n-line);
  padding: 10px 24px 20px;
  display: flex;
  flex-direction: column;
  animation: navPanelIn .38s var(--ease-soft) both;
}
.nav__panel[hidden] { display: none; }
.nav__panel-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 2px;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--n-line);
  cursor: pointer;
  animation: navItemIn .4s var(--ease-soft) both;
}
.nav__panel-link:hover { color: var(--brand); }
.nav__panel-link:nth-child(1) { animation-delay: 60ms; }
.nav__panel-link:nth-child(2) { animation-delay: 115ms; }
.nav__panel-link:nth-child(3) { animation-delay: 170ms; }
.nav__panel-link:nth-child(4) { animation-delay: 225ms; }
.nav__panel-link:nth-child(5) { animation-delay: 280ms; }
.nav__panel-wa {
  margin-top: 16px;
  background: var(--wa);
  color: #fff;
  border-radius: var(--r-pill);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  animation: navItemIn .4s var(--ease-soft) both;
  animation-delay: 335ms;
}
.nav__panel-wa:hover { color: #fff; }

/* 5.4 Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink-deep);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.96) contrast(1.06);
}
.hero__scrim { position: absolute; inset: 0; }
.hero__scrim--side {
  background: linear-gradient(100deg,
    rgba(21, 58, 110, .92) 0%,
    rgba(21, 58, 110, .72) 26%,
    rgba(13, 32, 60, .35) 46%,
    rgba(7, 12, 22, .05) 66%,
    transparent 100%);
}
.hero__scrim--edge {
  background: linear-gradient(180deg,
    rgba(7, 12, 22, .28) 0%,
    transparent 22%,
    transparent 70%,
    rgba(7, 12, 22, .4) 100%);
}
.hero__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.hero__content { max-width: 560px; }
.hero__logo {
  width: min(400px, 74vw);
  height: auto;
  margin-bottom: 26px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5));
}
.hero__claim {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
  color: #eaf1fb;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-style: italic;
  margin: 0 0 34px;
  max-width: 440px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}
.hero__cta {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: var(--r-pill);
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background .2s ease, transform .2s ease;
}
.hero__cta:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-2px);
  color: #fff;
}
.hero__cta-ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero__cta-ico svg { fill: #fff; }

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: hz-float 2.4s ease-in-out infinite;
}
.hero__scroll-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.hero__scroll-arrow { font-size: 18px; }

/* 5.5 Franja de confianza */
.trust {
  background: var(--ink-deep);
  color: #fff;
  padding: 30px var(--gutter);
  border-top: 1px solid rgba(110, 168, 255, .12);
}
.trust__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.trust__item { display: flex; align-items: center; gap: 14px; }
.trust__num {
  font-size: 38px;
  font-weight: 800;
  color: var(--brand-light);
  letter-spacing: -1px;
  min-width: 78px;
}
.trust__label {
  font-size: 13px;
  color: #9aa0a8;
  line-height: 1.35;
  max-width: 150px;
}

/* 5.6 Nuestra esencia */
.essence { position: relative; padding: 82px var(--gutter); }
.essence__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.essence__media { position: relative; }
.essence__frame {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-media);
}
.essence__frame img {
  width: 100%;
  display: block;
  filter: saturate(.96) contrast(1.06);
  transform: scale(1.08);
  will-change: transform;
}
.essence__badge {
  position: absolute;
  bottom: -26px; left: -26px;
  background: var(--brand);
  color: #fff;
  border-radius: 16px;
  padding: 20px 26px;
  box-shadow: 0 18px 40px rgba(45, 96, 164, .4);
}
.essence__badge-num { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.essence__badge-text { font-size: 12px; color: #cfe0f5; }
.essence__title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.06;
  margin: 0 0 24px;
}
.essence__text {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--n-text);
  margin: 0 0 18px;
}
.essence__text + .essence__text { margin-bottom: 30px; }

/* 5.7 Misión · Visión */
.mv {
  position: relative;
  background: var(--n-50);
  padding: 82px var(--gutter);
  clip-path: polygon(0 0, 100% 34px, 100% 100%, 0 100%);
  margin-top: -34px;
}
.mv__inner { max-width: var(--shell); margin: 0 auto; }
.mv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mv__card {
  border-radius: 20px;
  padding: 42px;
}
.mv__card--light {
  background: #fff;
  border-top: 4px solid var(--brand);
  box-shadow: var(--sh-xs);
}
.mv__card--dark {
  background: var(--ink);
  border-top: 4px solid var(--brand-light);
}
.mv__ico {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}
.mv__card--light .mv__ico { background: var(--brand-tint); color: var(--brand); }
.mv__card--dark .mv__ico { background: rgba(110, 168, 255, .16); color: var(--brand-light); }
.mv__title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -.5px;
}
.mv__card--dark .mv__title { color: #fff; }
.mv__text { font-size: 16px; line-height: 1.7; color: var(--n-text); }
.mv__card--dark .mv__text { color: #b9bec5; }

/* 5.8 Valores */
.values { margin-top: 70px; }
.values__head { text-align: center; margin-bottom: 40px; }
.values__title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--sh-xs);
  transition: transform .22s ease, box-shadow .22s ease;
}
.value:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(20, 22, 26, .12);
}
.value__ring {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: #eef3fa;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value__ico { width: 44px; height: 44px; object-fit: contain; display: block; }
.value__name {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.value__text { font-size: 13.5px; line-height: 1.6; color: var(--n-600); }

/* 5.9 Nuestras marcas */
.brands {
  position: relative;
  background: var(--ink-deep);
  color: #fff;
  padding: 82px var(--gutter);
  overflow: hidden;
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%);
  margin-top: -34px;
}
.brands__inner { position: relative; max-width: var(--shell); margin: 0 auto; }
.brands__head { text-align: center; margin-bottom: 40px; }
.brands__title {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
}
.brands__lede {
  font-size: 17px;
  color: #b9bec5;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.brands__video {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 34px;
  background: #000;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .55);
}
.brands__video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: saturate(.96) contrast(1.06);
}
.brands__vignette,
.brands__noise { position: absolute; inset: 0; pointer-events: none; }
.brands__vignette {
  background: radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .35) 100%);
}
.brands__noise {
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}
.brands__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.brand-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: 46px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand-card--ht { background: linear-gradient(135deg, #2a1206, #e9530d); }
.brand-card--viax { background: linear-gradient(135deg, #2a0303, #f20505); }
.brand-card--ht:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(233, 83, 13, .35);
}
.brand-card--viax:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(242, 5, 5, .35);
}
.brand-card__logo {
  width: auto;
  object-fit: contain;
  align-self: flex-start;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .4));
}
.brand-card__logo--ht { height: 84px; }
.brand-card__logo--viax { height: 78px; }
.brand-card__kicker {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: .5px;
}
.brand-card--ht .brand-card__kicker { color: #ffd9c4; }
.brand-card--viax .brand-card__kicker { color: #ffc9c9; }
.brand-card__title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.4px;
}
.brand-card__title span { opacity: .8; }
.brand-card__badge {
  position: absolute;
  top: 20px; right: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

/* 5.10 Súmate al crecimiento */
.distrib { position: relative; padding: 82px var(--gutter); }
.distrib__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.distrib__title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.06;
  margin: 0 0 24px;
}
.distrib__text {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--n-text);
  margin: 0 0 30px;
}
.perks {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.perks__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.perks__check { color: #1f8a5b; font-size: 18px; }
.distrib__media {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-media);
}
.distrib__media img {
  width: 100%;
  display: block;
  filter: saturate(.96) contrast(1.06);
  transform: scale(1.08);
  will-change: transform;
}

/* 5.11 Contacto */
.contact {
  position: relative;
  background: var(--n-50);
  padding: 82px var(--gutter);
}
.contact__inner { max-width: var(--shell); margin: 0 auto; }
.contact__head { text-align: center; margin-bottom: 46px; }
.contact__title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
}
.contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}
.contact__slot { display: flex; }

.map {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 340px;
  box-shadow: 0 20px 46px rgba(20, 34, 64, .14);
  border: 1px solid #e4e8ee;
}
.map__frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: saturate(.9);
}
.map__card {
  position: absolute;
  left: 22px; bottom: 22px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: 0 14px 34px rgba(20, 34, 64, .18);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 44px);
  flex-wrap: wrap;
}
.map__cta {
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .3s var(--ease-soft);
}
.map__cta:hover { transform: translateY(-2px); color: #fff; }

/* 5.12 Video institucional */
.video-embed { background: #fff; padding: 32px var(--gutter) 56px; }
.video-embed__inner { max-width: 1000px; margin: 0 auto; }
.video-embed__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(10, 18, 32, .18);
  aspect-ratio: 16 / 9;
  background: var(--ink-deep);
}
.video-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* 5.13 Pie de página */
.site-footer {
  background: var(--brand);
  color: #dbe6f5;
  padding: 54px var(--gutter) 30px;
}
.site-footer__inner { max-width: var(--shell); margin: 0 auto; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.site-footer__row { display: flex; align-items: center; gap: 11px; }
.site-footer__ico {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex: 0 0 26px;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.site-footer__logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  transition: transform .2s ease;
}
.site-footer__social-link:hover { transform: scale(1.1); color: var(--brand); }
.site-footer__social-link svg { fill: currentColor; }

.site-footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 54px;
  text-align: right;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
}
.site-footer__col-title {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a9c4e6;
  font-weight: 700;
  margin-bottom: 2px;
}
.site-footer__col a { color: #eaf1fb; }
.site-footer__col a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 12.5px;
  color: #a9c4e6;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer__legal { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__legal a { color: #a9c4e6; text-decoration: underline; }
.site-footer__legal a:hover { color: #fff; }

/* ------------------------------------------------------------ 6. Animaciones */
@keyframes hz-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}
@keyframes hz-logo-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes navPanelIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes navItemIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Estado inicial de los bloques que entran al hacer scroll (lo aplica main.js
   solo si el navegador soporta IntersectionObserver y no se pidió menos
   movimiento, para que sin JS el contenido siga siendo visible). */
.is-revealable {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.is-revealed { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------ 7. Responsive */
@media (max-width: 1150px) {
  .nav__links { gap: 14px; }
  .nav__link { font-size: 12px; letter-spacing: .4px; }
}

@media (max-width: 900px) {
  /* Un solo token gobierna el margen lateral de todos los bloques */
  :root { --gutter: 20px; }

  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }

  /* El padding se declara con valores literales, no con var(--gutter): al ser
     una propiedad con transición, los motores WebKit/Blink no reevalúan la
     variable al cruzar el breakpoint y se quedan con el valor anterior. */
  .nav__shell { flex-wrap: wrap; padding: 15px 20px; }
  .nav.is-compact .nav__shell { padding: 10px 20px; }

  /* El hero no tiene margen lateral en escritorio; en móvil sí */
  .hero { padding-left: 20px; padding-right: 20px; }

  .essence__grid,
  .mv__grid,
  .brands__grid,
  .distrib__grid { grid-template-columns: 1fr; }

  .values__grid { grid-template-columns: repeat(2, 1fr); }

  .essence__title,
  .values__title,
  .brands__title,
  .distrib__title,
  .contact__title { font-size: 29px; }

  /* El diseño apila la columna de imagen debajo del texto en móvil */
  .essence__media { order: -1; }
  .essence__badge { left: 0; }

  /* El pie pasa a una sola columna centrada */
  .site-footer__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 34px;
  }
  .site-footer__links { justify-content: center; text-align: center; gap: 40px; }
  .site-footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .values__grid { grid-template-columns: 1fr; }

  .essence__title,
  .values__title,
  .brands__title,
  .distrib__title,
  .contact__title { font-size: 25px; }

  .topbar__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .brand-card { padding: 32px 26px; }
  .map__card { left: 14px; right: 14px; bottom: 14px; max-width: none; padding: 14px 16px; }
  .perks { gap: 12px; }
}

/* ------------------------------------------- 8. Preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .is-revealable { opacity: 1; transform: none; }
}
