/* ============================================================
   EMPAC – Embotelladora del Pacífico · Hoja de estilos
   Colores de marca: #003054 (azul marino) · #00A8C0 (celeste)
   #E6F4F7 (celeste claro) · #FFFFFF (blanco) · Tipografía: Poppins
   ============================================================ */

/* ---------- Fuentes ---------- */
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Light.ttf") format("truetype");    font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype");   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype");     font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-ExtraBold.ttf") format("truetype");font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Black.ttf") format("truetype");    font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --navy: #003054;
  --navy-dark: #00243f;
  --teal: #00A8C0;
  --teal-dark: #0090a5;
  --teal-deep: #00748a;
  --ice: #E6F4F7;
  --white: #ffffff;
  --text: #2b3a46;
  --text-soft: #5b6b77;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 48, 84, 0.10);
  --shadow-lg: 0 18px 50px rgba(0, 48, 84, 0.16);
  --container: 1160px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 20px; border-radius: 0 0 12px 12px;
  background: var(--navy); color: var(--white);
  font-weight: 600; font-size: 0.9rem;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

::selection { background: var(--teal); color: var(--white); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 6px 18px rgba(0,48,84,.25); }
.btn--primary:hover { background: var(--navy-dark); box-shadow: 0 10px 24px rgba(0,48,84,.32); }
.btn--accent { background: var(--teal); color: var(--white); box-shadow: 0 6px 18px rgba(0,168,192,.35); }
.btn--accent:hover { background: var(--teal-dark); box-shadow: 0 10px 24px rgba(0,168,192,.45); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1.5px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 4px 24px rgba(0,48,84,.10); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.header__logo { height: 52px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__link {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--navy);
  transition: background-color .2s ease, color .2s ease;
}
.nav__link:hover { background: var(--ice); color: var(--teal-dark); }
.nav__link.is-active { background: var(--ice); color: var(--teal-dark); }
.header__cta { padding: 11px 22px; font-size: 0.88rem; }
.header__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.header__toggle span {
  width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--navy); transition: transform .25s ease, opacity .2s ease;
}
.header__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 0;
  background:
    radial-gradient(900px 460px at 50% 78%, rgba(0,168,192,.16), transparent 65%),
    linear-gradient(180deg, #fbfeff 0%, #edf6f9 62%, var(--white) 100%);
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero__eyebrow {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.7rem, 6.5vw, 5.1rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
  color: var(--navy);
  text-wrap: balance;
}
.hero__title-accent { color: var(--teal-dark); }
.hero__sub {
  max-width: 58ch;
  margin: 24px auto 32px;
  font-size: 1rem; line-height: 1.7; color: var(--text-soft);
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
}
.btn--outline {
  background: var(--white); color: var(--navy);
  border: 1.5px solid #d6e6ee;
  box-shadow: 0 4px 14px rgba(0,48,84,.08);
}
.btn--outline:hover { background: var(--ice); }
.hero__product {
  width: min(760px, 92%);
  margin-top: 34px;
  pointer-events: none;
}
.hero__product img {
  width: 100%; height: auto;
  filter: drop-shadow(0 38px 34px rgba(0,48,84,.20));
  animation: hero-float 9s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}
.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.wave svg { width: 100%; height: 90px; display: block; }

/* ---------- Franja de datos ---------- */
.statband { background: var(--white); border-block: 1px solid #e8f1f5; }
.statband__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding-block: 30px;
}
.statband__inner div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.statband strong { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.2; font-variant-numeric: tabular-nums; }
.statband span { font-size: 0.8rem; color: var(--text-soft); }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--tinted { background: var(--ice); }
.section--navy {
  position: relative;
  background: linear-gradient(150deg, var(--navy) 30%, #00486e 100%);
  color: var(--white);
  padding-bottom: 170px;
}
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal-deep);
}
.section__eyebrow--light { color: #7be0ef; }
.section__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -0.4px;
  text-wrap: balance;
}
.section__title--light { color: var(--white); }
.section__sub { margin-top: 16px; color: var(--text-soft); font-size: 1rem; }
.section__sub--light { color: rgba(255,255,255,.82); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about__text p {
  margin-bottom: 18px; color: var(--text-soft);
  text-align: justify; text-align-last: left;
  hyphens: auto;
}
.about__text p strong { color: var(--navy); }
.about__text .btn { margin-top: 10px; }
.about__list { display: grid; gap: 14px; }
.about__list li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid #e3edf2;
  border-radius: 14px; padding: 15px 18px;
  font-size: 0.94rem; font-weight: 500; color: var(--navy);
  box-shadow: 0 3px 12px rgba(0,48,84,.05);
}
.about__icon {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ice); color: var(--teal-dark);
  font-size: 0.8rem; font-weight: 700;
}

/* ---------- Misión / Visión / Valores (banda inmersiva) ---------- */
.mvband {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
  color: #fff;
  background: var(--navy-dark);
}
.mvband__bg { position: absolute; inset: 0; z-index: 0; }
.mvband__bg img {
  position: absolute; left: 0; top: -10%;
  width: 100%; height: 120%; object-fit: cover; display: block;
  will-change: translate;
}
.mvband::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,32,58,.72) 0%, rgba(0,32,58,.80) 55%, rgba(0,32,58,.92) 100%),
    radial-gradient(900px 500px at 18% 24%, rgba(0,168,192,.28), transparent 68%);
}
.mvband__inner { position: relative; z-index: 2; }
.mvband__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.mvband__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 26px; max-width: 940px; margin: 0 auto 40px;
}
.mvband__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 32px 30px;
  backdrop-filter: blur(6px);
}
.mvband__icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(0,168,192,.22); color: #7be0ef;
  border: 1px solid rgba(255,255,255,.14);
}
.mvband__card h3 {
  font-size: 1.15rem; font-weight: 800; color: #fff;
  margin-bottom: 12px; letter-spacing: .3px; text-transform: uppercase;
}
.mvband__card p { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,.86); }
.mvband__values {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 900px; margin: 0 auto;
}
.mvband__values li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 12px; border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  transition: background-color .22s ease, transform .22s ease;
}
.mvband__values li:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.mvband__vicon {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,168,192,.28); color: #7be0ef;
}
.mvband__values strong { font-size: 0.92rem; font-weight: 700; color: #fff; }

/* ---------- Nuestro equipo ---------- */
.team {
  margin-top: 64px;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid #e3edf2;
}
.team__photo { min-height: 100%; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__text { padding: 40px 36px; align-self: center; }
.team__text h3 {
  font-size: 1.3rem; font-weight: 800; color: var(--navy);
  margin-bottom: 14px;
}
.team__text p {
  font-size: 0.93rem; color: var(--text-soft); margin-bottom: 14px;
  text-align: justify; text-align-last: left; hyphens: auto;
}
.team__text p:last-child { margin-bottom: 0; }

/* ---------- Productos ---------- */
.products {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card__media {
  aspect-ratio: 4 / 3.4; overflow: hidden;
  background:
    radial-gradient(90% 75% at 50% 100%, rgba(0,168,192,.14), transparent 70%),
    linear-gradient(180deg, var(--white) 0%, var(--ice) 100%);
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 20px 18px 24px;
  filter: drop-shadow(0 16px 14px rgba(0,48,84,.18));
  transition: transform .35s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.05) translateY(-3px); }
.product-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-card__body p { font-size: 0.87rem; color: var(--text-soft); flex: 1; }
.product-card__cta {
  margin-top: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  align-self: center;
  padding: 10px 20px; border-radius: 999px;
  background: var(--teal-dark); color: #fff;
  font-weight: 700; font-size: 0.85rem;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.product-card__cta:hover {
  background: var(--teal-deep); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,116,138,.30);
}
.product-card__cta svg { transition: transform .2s ease; }
.product-card__cta:hover svg { transform: translateX(3px); }
.products__note {
  margin-top: 36px; text-align: center;
  font-size: 0.88rem; color: var(--text-soft);
}
.products__note strong { color: var(--navy); }
.products__note-link {
  color: var(--teal-deep); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s ease;
}
.products__note-link:hover { color: var(--navy); }

/* ---------- Nuestras líneas (carrusel) ---------- */
.lines {
  position: relative; overflow: hidden;
  padding: 132px 0 156px;
  color: #fff;
  background-color: var(--ln-bg);
  transition: background-color .9s cubic-bezier(.16,1,.3,1);
}
.lines[data-theme="delfin"]  { --ln-bg: #00748a; --ln-cta: #00566b; }
.lines[data-theme="melody"]  { --ln-bg: #c06a00; --ln-cta: #9a5500; }
.lines[data-theme="quantum"] { --ln-bg: #333087; --ln-cta: #2a2870; }
.lines::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 22% 30%, rgba(255,255,255,.14), transparent 70%),
    radial-gradient(900px 520px at 85% 90%, rgba(0,0,0,.18), transparent 70%);
}
.lines__inner { position: relative; z-index: 1; }
.lines .wave--flip { top: -1px; bottom: auto; transform: rotate(180deg); }
/* Onda de fondo en movimiento continuo (agua fluyendo) */
.wave--anim svg {
  width: 200%;
  animation: wave-flow 18s linear infinite;
}
@keyframes wave-flow {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* El impulso al cambiar de producto se maneja por JS (playbackRate)
   para acelerar y frenar de forma continua, sin saltos de posición */
.lines__stage {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 48px; align-items: center;
  max-width: 880px; margin-inline: auto;
  min-height: 440px;
}
.lines__media { display: grid; place-items: center; }
.lines__media img {
  max-height: 420px; width: auto; max-width: 100%;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.30));
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1);
}
.lines__text { transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1); }
.lines.is-switching .lines__media img { opacity: 0; transform: translateY(14px) scale(.97); }
.lines.is-switching .lines__text { opacity: 0; transform: translateY(12px); }
.lines__eyebrow {
  display: block; margin-bottom: 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.lines__title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
}
.lines__tag { margin-top: 6px; font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,.9); }
.lines__desc { margin-top: 14px; font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,.85); max-width: 46ch; }
.lines__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lines__chips span {
  padding: 7px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
}
.lines__cta {
  margin-top: 26px;
  background: #fff; color: var(--ln-cta);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, color .7s ease;
}
.lines__cta:hover { transform: translateY(-2px); }
.lines__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.45); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.lines__arrow:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.lines__arrow--prev { left: 24px; }
.lines__arrow--next { right: 24px; }
.lines__counter {
  position: absolute; right: 28px; bottom: -46px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,.85);
  font-variant-numeric: tabular-nums;
}
.lines__counter i { display: block; width: 54px; height: 1.5px; background: rgba(255,255,255,.5); }

/* ---------- Calidad: bidón central + 3 tarjetas por lado (hover blanco) ---------- */
.quality {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 20px 40px; align-items: center;
  max-width: 1100px; margin: 0 auto 64px;
}
.quality__col { display: grid; gap: 18px; align-content: center; }
.quality__media { display: grid; place-items: center; }
.quality__media img {
  height: 440px; width: auto;
  filter: drop-shadow(0 30px 28px rgba(0,48,84,.18));
  transform-origin: center bottom;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
/* El bidón "mira" hacia la tarjeta que señalas: la boquilla (su cabeza) se
   inclina hacia el lado y sube o baja según la tarjeta esté arriba o abajo */
/* Columna izquierda */
.quality:has(.quality__col:first-of-type .qcard:nth-child(1):hover) .quality__media img {
  transform: rotate(-4deg) translateY(-11px) scale(1.04);
}
.quality:has(.quality__col:first-of-type .qcard:nth-child(2):hover) .quality__media img {
  transform: rotate(-6deg) translateY(-1px) scale(1.04);
}
.quality:has(.quality__col:first-of-type .qcard:nth-child(3):hover) .quality__media img {
  transform: rotate(-7deg) translateY(11px) scale(1.04);
}
/* Columna derecha */
.quality:has(.quality__col:last-of-type .qcard:nth-child(1):hover) .quality__media img {
  transform: rotate(4deg) translateY(-11px) scale(1.04);
}
.quality:has(.quality__col:last-of-type .qcard:nth-child(2):hover) .quality__media img {
  transform: rotate(6deg) translateY(-1px) scale(1.04);
}
.quality:has(.quality__col:last-of-type .qcard:nth-child(3):hover) .quality__media img {
  transform: rotate(7deg) translateY(11px) scale(1.04);
}
/* Al pasar el cursor directamente sobre el bidón, se realza */
.quality__media img:hover {
  transform: translateY(-10px) scale(1.05);
}
.qcard {
  padding: 26px 24px;
  border: 1px solid #d9e8ee; border-radius: 18px;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease,
              border-color .25s ease, transform .25s ease,
              opacity .7s cubic-bezier(.22,1,.36,1);
}
.qcard:hover {
  background: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.qcard__num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  margin-bottom: 14px;
  background: rgba(0,168,192,.12); color: var(--teal-deep);
  font-size: 0.85rem; font-weight: 800;
  transition: background-color .25s ease, color .25s ease;
}
.qcard:hover .qcard__num { background: var(--teal); color: #fff; }
.qcard h3 { font-size: 0.98rem; font-weight: 800; color: var(--navy); margin-bottom: 7px; }
.qcard p { font-size: 0.84rem; line-height: 1.58; color: var(--text-soft); }
/* Mayor especificidad que .reveal para que el hover transicione rápido */
.quality__col .qcard {
  transition: background-color .25s ease, box-shadow .25s ease,
              border-color .25s ease, transform .45s cubic-bezier(.22,1,.36,1),
              opacity .7s cubic-bezier(.22,1,.36,1);
}

/* ---------- Calidad / Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 56px; }
.steps--six { grid-template-columns: repeat(3, 1fr); }
.step {
  background: var(--white); border: 1px solid #e3edf2; border-radius: var(--radius);
  padding: 28px 24px; box-shadow: 0 3px 14px rgba(0,48,84,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.95rem; font-weight: 800; color: var(--white);
  background: var(--teal); border-radius: 10px; padding: 6px 12px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text-soft); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.4;
}
.gallery figure { position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery__cap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px 22px 24px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,32,58,.90) 0%, rgba(0,32,58,.55) 42%, rgba(0,32,58,0) 78%);
  opacity: 0;
  transition: opacity .4s ease;
}
.gallery figure:hover .gallery__cap,
.gallery figure:focus-within .gallery__cap { opacity: 1; }
.gallery__cap h3 {
  font-size: 1.05rem; font-weight: 800; margin-bottom: 6px;
  transform: translateY(10px);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.gallery__cap p {
  font-size: 0.86rem; line-height: 1.5; color: rgba(255,255,255,.9);
  transform: translateY(12px);
  transition: transform .45s cubic-bezier(.16,1,.3,1) .05s;
}
.gallery figure:hover .gallery__cap h3,
.gallery figure:hover .gallery__cap p { transform: none; }

/* ---------- Sectores ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sector {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 30px 24px;
  transition: background-color .25s ease, transform .25s ease;
}
.sector:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); }
.sector__icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(0,168,192,.25); color: #7be0ef;
}
.sector h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.sector p { font-size: 0.87rem; color: rgba(255,255,255,.78); }
.wave--navy { bottom: -1px; }
.sectors__photos {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.sectors__photo {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
}
.sectors__photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
}
.sectors__photo figcaption {
  flex: 1; padding: 14px 20px; text-align: center;
  font-size: 0.85rem; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.07);
}

/* ---------- Sostenibilidad ---------- */
.section--eco { padding: 40px 0 96px; }
.eco {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
  background: linear-gradient(120deg, #e9f7ef, var(--ice));
  border: 1px solid #d3ecdd; border-radius: 24px;
  padding: 40px 44px;
}
.eco__content { display: flex; gap: 28px; align-items: center; }
.eco__photo { margin: 0; }
.eco__photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 16px; display: block;
  box-shadow: var(--shadow);
}
.eco__icon {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 22px;
  display: grid; place-items: center;
  background: #1c8a5a; color: var(--white);
  box-shadow: 0 10px 24px rgba(28,138,90,.3);
}
.eco__title { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.eco__text { color: var(--text-soft); font-size: 0.95rem; max-width: 70ch; }
.eco__text strong { color: #1c8a5a; }
.eco__cta {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 9px;
  background: #1c8a5a; color: #fff;
  box-shadow: 0 8px 20px rgba(28,138,90,.28);
}
.eco__cta:hover { background: #157048; transform: translateY(-2px); }

/* ---------- Clientes (carrusel de logos) ---------- */
.clients-carousel {
  position: relative;
  display: flex; align-items: center; gap: 14px;
}
.clients__viewport { overflow: hidden; flex: 1; }
.clients__track {
  --per: 5;
  display: flex;
  transition: transform .85s cubic-bezier(.16,1,.3,1);
}
.clients__item {
  flex: 0 0 calc(100% / var(--per));
  padding: 8px;
}
.clients__card {
  height: 116px;
  display: grid; place-items: center;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid #e3edf2; border-radius: 16px;
  box-shadow: 0 3px 14px rgba(0,48,84,.05);
  transition: transform .22s ease, box-shadow .22s ease;
}
.clients__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.clients__card img {
  max-height: 80px; max-width: 100%;
  width: auto; height: auto; object-fit: contain;
}
.clients__arrow {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy);
  border: 1.5px solid #d6e6ee; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,48,84,.08);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.clients__arrow:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.contact-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .22s ease, box-shadow .22s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 6px;
  background: var(--ice); color: var(--teal-dark);
  transition: background-color .22s ease, color .22s ease;
}
a.contact-card:hover .contact-card__icon { background: var(--teal); color: #fff; }
.contact-card__label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal-deep);
}
.contact-card__value { font-size: 1.12rem; font-weight: 700; color: var(--navy); }
.contact-card__value--sm { font-size: 0.9rem; font-weight: 500; line-height: 1.5; }
.contact__map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  min-height: 360px;
}
.contact__map { display: flex; flex-direction: column; background: var(--white); }
.contact__map iframe { width: 100%; flex: 1; min-height: 320px; border: 0; }
.contact__map-link {
  display: block; padding: 14px 20px; text-align: center;
  font-size: 0.88rem; font-weight: 600; color: var(--teal-dark);
  border-top: 1px solid #e3edf2; transition: background-color .2s ease;
}
.contact__map-link:hover { background: var(--ice); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.8); }
.footer__inner {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px; padding: 64px 24px 44px;
}
.footer__logo {
  height: 84px; width: auto; margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.footer__brand p { font-size: 0.9rem; font-weight: 300; max-width: 36ch; }
.footer__social {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  color: var(--white);
  transition: background-color .2s ease, border-color .2s ease;
}
.footer__social:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.footer__col h3 {
  color: var(--white); font-size: 0.95rem; font-weight: 700;
  margin-bottom: 16px; letter-spacing: .5px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: 0.9rem; transition: color .2s ease; }
.footer__col a:hover { color: #7be0ef; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0; text-align: center;
}
.footer__bottom p { font-size: 0.8rem; opacity: .7; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; z-index: 70;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: var(--white);
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .22s ease, box-shadow .22s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(37,211,102,.55); }

/* ---------- Animaciones de aparición ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity .95s cubic-bezier(.16,1,.3,1),
    transform .95s cubic-bezier(.16,1,.3,1),
    filter .95s cubic-bezier(.16,1,.3,1);
}
.reveal--delay { transition-delay: .15s; }
.reveal--left { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal--zoom { transform: scale(.95); }
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* Pase de suavidad estilo Zajno — de momento solo en el hero */
.hero .reveal {
  transform: translateY(38px) scale(.98);
  filter: blur(6px);
  transition:
    opacity 1.15s cubic-bezier(.16,1,.3,1),
    transform 1.15s cubic-bezier(.16,1,.3,1),
    filter 1.15s cubic-bezier(.16,1,.3,1);
}
.hero .reveal.is-visible { transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero .reveal { filter: none; }
  .btn, .product-card, .step, .sector, .gallery img, .whatsapp-float { transition: none; }
  .hero__product img { animation: none; }
  .lines, .lines__media img, .lines__text, .lines__cta { transition: none; }
  .wave--anim svg { animation: none; width: 100%; }
  .qcard, .quality__col .qcard, .qcard__num { transition: none; }
  .quality__media img { transition: none; }
  .gallery__cap, .gallery__cap h3, .gallery__cap p { transition: none; }
  .gallery__cap h3, .gallery__cap p { transform: none; }
  .quality:has(.qcard:hover) .quality__media img,
  .quality__media img:hover { transform: none; }
  .clients__track { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .products, .steps, .steps--six, .sectors { grid-template-columns: repeat(2, 1fr); }
  .mvband__grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; }
  .quality { grid-template-columns: 1fr 1fr; gap: 24px; }
  .quality__media { grid-column: 1 / -1; order: -1; }
  .quality__media img { height: 340px; }
  .clients__track { --per: 4; }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .header__logo { height: 44px; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero__title { font-size: clamp(2.2rem, 9.5vw, 3.4rem); }
  .hero__sub { font-size: 0.93rem; margin: 18px auto 26px; }
  .hero__product { width: min(94%, 460px); margin-top: 26px; }
  .header__cta { display: none; }
  .header__toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); box-shadow: 0 18px 30px rgba(0,48,84,.14);
    padding: 12px 24px 22px;
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { padding: 13px 16px; font-size: 1rem; }
  .section { padding: 72px 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure { aspect-ratio: 4 / 4.2; }
  .team { grid-template-columns: 1fr; margin-top: 44px; }
  .team__photo img { aspect-ratio: 16 / 9; }
  .team__text { padding: 28px 24px; }
  .sectors__photos { grid-template-columns: 1fr; }
  .sectors__photo img { aspect-ratio: 16 / 10; }
  .lines { padding: 108px 0 140px; }
  .quality { margin-bottom: 48px; }
  .quality__media img { height: 280px; }
  .quality__col { align-content: start; }
  .clients__track { --per: 3; }
  .clients__card { height: 96px; }
  .clients__card img { max-height: 64px; }
  .lines__stage {
    grid-template-columns: 1fr; gap: 28px;
    text-align: center; min-height: 0;
  }
  .lines__media img { max-height: 300px; }
  .lines__desc { margin-inline: auto; }
  .lines__chips { justify-content: center; }
  .lines__arrow { top: 190px; transform: none; width: 46px; height: 46px; }
  .lines__arrow--prev { left: 10px; }
  .lines__arrow--next { right: 10px; }
  .lines__counter { right: 24px; bottom: -64px; }
  .contact__cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .eco { grid-template-columns: 1fr; text-align: center; padding: 32px 26px; }
  .eco__content { flex-direction: column; align-items: center; }
}

@media (max-width: 520px) {
  .products, .steps, .steps--six, .sectors, .quality { grid-template-columns: 1fr; }
  .clients__track { --per: 2; }
  .clients__arrow { width: 38px; height: 38px; }
  .statband__inner { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .btn { padding: 12px 22px; }
}
