/* ==========================================================
   Grupo Nabar del Norte — estilos
   Paleta oficial: #013466 #0154A5 #3A79B9 #87AFD5 #C9DAEC #C2CAD6 #000 #FFF
   ========================================================== */
:root {
  --navy: #013466;
  --navy-deep: #00264c;
  --blue: #0154A5;
  --blue-mid: #3A79B9;
  --blue-light: #87AFD5;
  --ice: #C9DAEC;
  --ice-soft: #EEF4FA;
  --steel: #C2CAD6;
  --ink: #0b1a2b;
  --text: #2b3a4d;
  --muted: #5d6c80;
  --white: #fff;
  --wa: #25D366;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px -12px rgba(1, 52, 102, .28);
  --shadow-lg: 0 24px 60px -20px rgba(1, 52, 102, .45);
  --max: 1200px;
  --font-head: "Fira Sans Condensed", "Myriad Pro Condensed", "Arial Narrow", sans-serif;
  --font-body: "M PLUS Rounded 1c", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --line: #d5e0eb;
  --steel-bg: #eef2f6;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--white); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--ice { background: var(--ice-soft); }
.section--navy { background: var(--navy); color: #d6e3f1; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--navy .eyebrow { color: var(--blue-light); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section--navy .section-head p { color: #b9cde3; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 12px 26px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem;
  letter-spacing: .04em; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(1, 84, 165, .8); }
.btn--primary:hover { background: #0a62bd; }
.btn--wa { background: var(--wa); color: #06331a; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 1rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out);
  background: linear-gradient(to bottom, rgba(0, 28, 56, .75), rgba(0, 28, 56, 0));
}
.header.is-solid { background: rgba(255, 255, 255, .97); box-shadow: 0 6px 24px -14px rgba(1, 52, 102, .45); backdrop-filter: blur(8px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.header__logo img { height: 40px; width: auto; }
.header__logo .logo-blue { display: none; }
.header.is-solid .logo-white { display: none; }
.header.is-solid .logo-blue { display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: var(--font-head); font-weight: 500; font-size: 1.08rem; letter-spacing: .04em; color: #fff; text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--blue-light); transition: right .25s var(--ease-out); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.header.is-solid .nav a { color: var(--navy); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__tel { font-family: var(--font-head); font-weight: 600; color: #fff; text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.header.is-solid .header__tel { color: var(--navy); }
.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .25s var(--ease-out), opacity .25s var(--ease-out); }
.header.is-solid .burger span { background: var(--navy); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header__tel { display: none; }
  .nav { gap: 18px; }
}
@media (max-width: 920px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 20px 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .3s var(--ease-out); max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { color: var(--navy) !important; padding: 14px 0; border-bottom: 1px solid var(--ice); font-size: 1.25rem; }
  .nav a::after { display: none; }
  .header__cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: var(--navy-deep);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .55; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0, 30, 62, .97) 0%, rgba(1, 52, 102, .86) 42%, rgba(1, 52, 102, .35) 100%),
    linear-gradient(to top, rgba(0, 24, 48, .9), transparent 40%);
}
/* Reflejo de acero que sigue al cursor */
.hero__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 30%), rgba(135, 175, 213, .28), transparent 60%);
  transition: background .1s linear;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(rgba(201, 218, 236, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 218, 236, .5) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to right, transparent, #000 60%);
}
.hero__content { position: relative; z-index: 2; padding: 130px 0 90px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .steel {
  background: linear-gradient(100deg, #ffffff 0%, #c9daec 30%, #ffffff 45%, #87afd5 60%, #ffffff 80%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: steelSweep 6s ease-in-out infinite;
}
@keyframes steelSweep { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #cfe0f2; max-width: 620px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(201, 218, 236, .3); font-size: .95rem; color: #dbe8f5;
}
.hero__badge img { height: 18px; width: auto; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: #9fbbd8; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; text-align: center; text-decoration: none; }
.hero__scroll span { display: block; width: 2px; height: 38px; margin: 8px auto 0; background: linear-gradient(#9fbbd8, transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Cifras ---------- */
.stats { background: var(--navy); color: #fff; position: relative; z-index: 3; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 22px; text-align: center; border-left: 1px solid rgba(201, 218, 236, .15); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1; color: #fff; }
.stat__label { color: var(--blue-light); font-size: .98rem; margin-top: 8px; }
.stat__logo { height: 42px; width: auto; margin: 4px auto 10px; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(201, 218, 236, .15); }
}

/* ---------- Soluciones ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sol {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); border: 1px solid #e3ebf4;
}
.sol:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sol__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: linear-gradient(160deg, #f4f8fc, #dfe8f2); }
.sol__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.sol__media img.is-product { object-fit: contain; padding: 18px; }
.sol:hover .sol__media img { transform: scale(1.05); }
.sol__num { position: absolute; top: 14px; left: 14px; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--navy); border-radius: 10px; padding: 2px 10px; font-size: .95rem; }
.sol__brand { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 4px 10px; font-size: .78rem; font-weight: 600; color: var(--navy); letter-spacing: .04em; }
.sol__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.sol__body p { color: var(--muted); font-size: 1rem; }
.sol__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; padding: 0; list-style: none; }
.sol__tags li { font-size: .8rem; background: var(--ice-soft); color: var(--navy); border-radius: 999px; padding: 3px 10px; }
.sol__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 980px) { .solutions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .solutions { grid-template-columns: 1fr; } }

/* Modal de productos */
.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 20, 40, .62); backdrop-filter: blur(4px); animation: fadeIn .25s var(--ease-out); }
.modal__panel {
  position: relative; margin: 4vh auto; width: min(1040px, calc(100% - 24px)); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: rise .3s var(--ease-out);
}
.modal__head { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 16px; border-bottom: 1px solid var(--ice); }
.modal__head h3 { font-size: 2rem; margin: 0; }
.modal__head p { margin: 4px 0 0; color: var(--muted); }
.modal__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ice); background: #fff; cursor: pointer; font-size: 1.6rem; color: var(--navy); line-height: 1; }
.modal__body { padding: 22px 26px 30px; }
.modal__panel { width: min(1120px, calc(100% - 24px)); }
.pgroup { font-size: 1.35rem; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; color: var(--navy); }
.pgroup:first-child { margin-top: 0; }
.pgroup small { font-family: var(--font-body); font-size: .78rem; font-weight: 600; background: var(--ice-soft); color: var(--blue); border-radius: 999px; padding: 2px 9px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product { all: unset; box-sizing: border-box; cursor: pointer; border: 1px solid #e3ebf4; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out); }
.product:hover, .product:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.product:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.product__img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #f7fafd, #e6eef6); overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s var(--ease-out); }
.product__img img.is-cover { object-fit: cover; padding: 0; }
.product:hover .product__img img { transform: scale(1.05); }
.product__ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(150deg, var(--navy), var(--blue)); }
.product__ph img { width: 54px !important; height: 54px !important; padding: 0 !important; opacity: .9; }
.product__info { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.product__info strong { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; line-height: 1.15; color: var(--navy); }
.product__info > span { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.product__info em { margin-top: auto; padding-top: 8px; font-style: normal; font-family: var(--font-head); font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; }
.product__info em svg { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.product:hover .product__info em svg { transform: translateX(4px); }
.products--mini { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
/* Detalle de producto */
.pback { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--blue); margin-bottom: 18px; font-size: 1.05rem; }
.pback svg { width: 18px; height: 18px; transform: rotate(180deg); }
.pback:hover { text-decoration: underline; }
.pdetail { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: start; animation: rise .3s var(--ease-out); }
.pdetail__gallery { position: sticky; top: 110px; }
.pdetail__main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 40%, #fff 0%, #e9f0f7 75%); display: grid; place-items: center; overflow: hidden; border: 1px solid #e3ebf4; }
.pdetail__main img { width: 100%; height: 100%; object-fit: contain; padding: 22px; animation: fadeIn .3s var(--ease-out); }
.pdetail__main.is-photo img { object-fit: cover; padding: 0; }
.pdetail__main .product__ph img { width: 90px !important; height: 90px !important; }
.pdetail__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pdetail__thumbs button { all: unset; cursor: pointer; width: 70px; height: 70px; border-radius: 12px; border: 2px solid #e3ebf4; background: #f4f8fc; overflow: hidden; }
.pdetail__thumbs button.is-active { border-color: var(--blue); }
.pdetail__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pdetail__lead { font-size: 1.08rem; color: var(--text); margin-top: 0; }
.pdetail h5, .pdetail__vh { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 20px 0 8px; }
.pdetail__vh { margin-top: 34px; }
.pdetail__info p { color: var(--muted); }
.pdetail__feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pdetail__feats li { position: relative; padding-left: 26px; }
.pdetail__feats li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pdetail__specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pdetail__specs th, .pdetail__specs td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #e3ebf4; vertical-align: top; }
.pdetail__specs th { color: var(--navy); font-weight: 600; width: 46%; background: var(--ice-soft); }
.pdetail__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pdetail__note { font-size: .8rem !important; margin-top: 12px; }
.pdetail__videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pdetail__videos .video .play { width: 60px; height: 60px; }
@media (max-width: 820px) { .pdetail { grid-template-columns: 1fr; } .pdetail__gallery { position: static; } .pdetail__main { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .modal__panel { margin: 0; width: 100%; max-height: 100vh; height: 100%; border-radius: 0; } .modal__head h3 { font-size: 1.6rem; } .modal__head, .modal__body { padding-left: 16px; padding-right: 16px; } .products { grid-template-columns: repeat(2, 1fr); gap: 10px; } .product__info strong { font-size: 1.05rem; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Recorrido de planta ---------- */
.container--wide { max-width: 1480px; }
.tour { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.tour__stage { position: relative; background: radial-gradient(ellipse at 45% 35%, #1660a8 0%, #0a4580 35%, #013466 65%, #00264c 100%); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(135, 175, 213, .25); }
.tour__stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .12), transparent 40%), radial-gradient(circle at 85% 90%, rgba(37, 211, 102, .08), transparent 45%); pointer-events: none; }
.tour__stage svg { display: block; width: 100%; height: auto; position: relative; }
.tour__stage:fullscreen { display: grid; place-items: center; border-radius: 0; }
.tour__stage:fullscreen svg { max-height: 100vh; width: auto; max-width: 100%; }
.tour__full { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(135, 175, 213, .4); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s var(--ease-out); }
.tour__full:hover { background: rgba(255, 255, 255, .2); }
.tour__full svg { width: 20px; height: 20px; }
.tour__hint { position: absolute; left: 16px; bottom: 14px; font-size: .85rem; color: #a9c3de; display: flex; align-items: center; gap: 8px; }
.tour__hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .25); }
.hotspot { cursor: pointer; outline: none; }
.hotspot .hs-dot { fill: #fff; stroke: var(--blue); stroke-width: 4; transition: r .2s var(--ease-out); }
.hotspot .hs-num { font-family: var(--font-head); font-weight: 700; font-size: 20px; fill: var(--navy); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.hotspot .hs-ring { fill: none; stroke: #fff; stroke-width: 2; opacity: .7; transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out infinite; }
.hotspot .hs-label { font-family: var(--font-head); font-weight: 600; font-size: 17px; fill: #fff; letter-spacing: .04em; paint-order: stroke; stroke: rgba(0, 30, 60, .85); stroke-width: 5px; pointer-events: none; }
.hotspot:hover .hs-dot, .hotspot:focus-visible .hs-dot, .hotspot.is-active .hs-dot { fill: var(--wa); stroke: #fff; }
.hotspot.is-active .hs-num { fill: #06331a; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.zone-glow { opacity: 0; transition: opacity .35s var(--ease-out); }
.zone-glow.is-active { opacity: 1; }
.tour__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { border: 1px solid rgba(135, 175, 213, .4); background: rgba(255, 255, 255, .06); color: #dbe8f5; border-radius: 999px; padding: 8px 14px; font-family: var(--font-head); font-size: 1.02rem; cursor: pointer; transition: background .2s var(--ease-out), color .2s var(--ease-out); }
.chip:hover { background: rgba(255, 255, 255, .14); }
.chip.is-active { background: #fff; color: var(--navy); border-color: #fff; }
.tour__panel { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); min-height: 100%; }
.tour__panel h3 { font-size: 2rem; margin-bottom: 6px; }
.tour__zone-tag { font-family: var(--font-head); color: var(--blue); letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; font-weight: 600; }
.tour__panel p { color: var(--muted); }
.tour__products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 22px; }
.tour__prod { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: var(--ice-soft); border: 1px solid transparent; transition: border-color .2s var(--ease-out), transform .2s var(--ease-out), background .2s var(--ease-out); }
.tour__prod:hover, .tour__prod:focus-visible { border-color: var(--blue-light); background: #fff; transform: translateY(-2px); }
.tour__prod img, .tour__noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 9px; padding: 4px; }
.tour__noimg { display: block; background: linear-gradient(150deg, var(--navy), var(--blue)); }
.tour__prod strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; line-height: 1.1; }
.tour__prod small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.tour__panel-anim { animation: rise .35s var(--ease-out); }
@media (max-width: 1100px) { .tour { grid-template-columns: 1fr; } .tour__products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tour__products { grid-template-columns: 1fr 1fr; } }

/* ---------- Guía de coladeras ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 30px; align-items: start; }
.guide__result { position: sticky; top: 96px; min-height: 560px; }
.options.options--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.opt--card { display: flex; flex-direction: column; gap: 8px; padding: 8px; text-align: left; line-height: 1.2; }
.opt--card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f4f8fc; border-radius: 8px; padding: 4px; }
.opt--card img.is-photo { object-fit: cover; padding: 0; }
.opt--card span { padding: 0 4px 4px; }
.opt--card small { display: block; font-weight: 500; opacity: .75; margin-top: 3px; }
.opt.is-selected img { background: rgba(255, 255, 255, .92); }
.opt em { font-style: normal; font-size: .78rem; font-weight: 600; background: #fff3cd; color: #7a5a00; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.opt.is-selected em { background: rgba(255, 255, 255, .25); color: #fff; }
.guide__visual { position: relative; margin: -6px -10px 6px; }
.guide__visual .drain-svg { width: 100%; height: auto; display: block; overflow: visible; }
.guide__visual.is-idle { opacity: .55; }
.guide__replay { position: absolute; right: 6px; top: 6px; z-index: 2; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 999px; padding: 6px 12px; font-family: var(--font-head); font-size: .95rem; cursor: pointer; }
.guide__replay:hover { background: rgba(255, 255, 255, .2); }
.drain-svg .xp-label { opacity: 0; }
.drain-svg .xp-label text { font-family: var(--font-head); font-weight: 600; font-size: 15px; fill: #fff; }
.drain-svg.is-anim .xp-lid { animation: xpLid 6s cubic-bezier(.6, 0, .3, 1) .3s infinite; }
.drain-svg.is-anim .xp-basket { animation: xpBasket 6s cubic-bezier(.6, 0, .3, 1) .3s infinite; }
.drain-svg.is-anim .xp-l-lid { animation: xpLabLid 6s ease .3s infinite; }
.drain-svg.is-anim .xp-l-basket { animation: xpLabBasket 6s ease .3s infinite; }
.drain-svg.is-anim .xp-l-body { animation: xpLab 6s ease .3s infinite; }
@keyframes xpLid { 0%, 12% { transform: translateY(0); } 38%, 78% { transform: translateY(-300px); } 96%, 100% { transform: translateY(0); } }
@keyframes xpBasket { 0%, 16% { transform: translateY(0); } 42%, 76% { transform: translateY(-160px); } 94%, 100% { transform: translateY(0); } }
@keyframes xpLabLid { 0%, 36% { opacity: 0; transform: translateY(-300px); } 44%, 74% { opacity: 1; transform: translateY(-300px); } 80%, 100% { opacity: 0; transform: translateY(-300px); } }
@keyframes xpLabBasket { 0%, 40% { opacity: 0; transform: translateY(-160px); } 48%, 74% { opacity: 1; transform: translateY(-160px); } 80%, 100% { opacity: 0; transform: translateY(-160px); } }
@keyframes xpLab { 0%, 44% { opacity: 0; } 52%, 74% { opacity: 1; } 80%, 100% { opacity: 0; } }
.guide__title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: #fff; margin: 6px 0 0; line-height: 1.15; }
.guide__photos { display: flex; gap: 8px; margin: 0 0 18px; position: relative; z-index: 1; }
.guide__photos button { all: unset; cursor: pointer; width: 64px; height: 64px; border-radius: 10px; background: #fff; overflow: hidden; border: 2px solid transparent; transition: border-color .2s var(--ease-out); }
.guide__photos button:hover { border-color: var(--wa); }
.guide__photos img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.guide__actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
@media (max-width: 960px) { .guide { grid-template-columns: 1fr; } .guide__result { position: static; min-height: 0; } }
.guide__card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px; border: 1px solid #e3ebf4; }
.guide__step { margin-bottom: 22px; }
.guide__step[hidden] { display: none; }
.guide__label { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.guide__label b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .95rem; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 2px solid var(--ice); background: #fff; border-radius: 12px; padding: 10px 16px; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: .98rem; color: var(--navy); transition: border-color .2s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out); }
.opt:hover { border-color: var(--blue-light); }
.opt.is-selected { border-color: var(--blue); background: var(--blue); color: #fff; }
.opt:disabled { opacity: .4; cursor: not-allowed; }
.guide__result { background: linear-gradient(150deg, var(--navy) 0%, #0b4d8f 100%); color: #fff; border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; overflow: hidden; }
.guide__result::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .05); }
.guide__code { font-family: var(--font-head); font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 700; line-height: 1; color: #fff; }
.guide__desc { color: #cfe0f2; margin: 8px 0 22px; }
.guide__empty { color: #a9c3de; font-size: 1.05rem; margin: auto 0; }

/* ---------- Industrias ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind { all: unset; box-sizing: border-box; cursor: pointer; position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; color: #fff; display: flex; align-items: flex-end; isolation: isolate; box-shadow: var(--shadow); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.ind:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s var(--ease-out); }
.ind::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 30, 62, .95) 0%, rgba(1, 52, 102, .55) 55%, rgba(1, 52, 102, .1) 100%); transition: background .3s var(--ease-out); }
.ind:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ind:hover img { transform: scale(1.06); }
.ind.is-active { box-shadow: 0 0 0 4px var(--wa), var(--shadow-lg); }
.ind.is-active::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 22px; height: 22px; background: var(--ice-soft); transform: translate(-50%, 50%) rotate(45deg); }
.ind__body { padding: 22px; display: block; }
.ind__body strong { display: block; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.75rem; line-height: 1.05; margin-bottom: 6px; }
.ind__body > span { display: block; color: #d6e3f1; font-size: .96rem; }
.ind__body em { margin-top: 12px; font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: #fff; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 5px 14px; transition: background .2s var(--ease-out); }
.ind__body em svg { width: 16px; height: 16px; }
.ind:hover .ind__body em, .ind.is-active .ind__body em { background: var(--wa); border-color: var(--wa); }
.ind-panel { margin-top: 22px; }
.ind-panel__in { background: var(--ice-soft); border-radius: var(--radius-lg); padding: 28px; border: 1px solid #dbe6f1; animation: rise .35s var(--ease-out); }
.ind-panel__head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.ind-panel__head h3 { font-size: 2.2rem; margin: 2px 0 6px; }
.ind-panel__head p { color: var(--muted); max-width: 760px; margin: 0; }
.ind-panel__foot { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-top: 26px; align-items: start; }
.ind-panel__foot.no-video { grid-template-columns: 1fr; }
.ind-panel__foot h5 { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.ind-clients { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.ind-clients li { background: #fff; border: 1px solid #dbe6f1; border-radius: 10px; padding: 10px 16px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); letter-spacing: .02em; }
.clients { margin-top: 46px; text-align: center; }
.clients__title { font-family: var(--font-head); font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.clients__marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.clients__track span { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: #8aa0b8; white-space: nowrap; letter-spacing: .02em; }
.clients__marquee:hover .clients__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .clients__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .clients__track span[aria-hidden] { display: none; } }
@media (max-width: 860px) { .ind-panel__foot { grid-template-columns: 1fr; } .ind-panel__in { padding: 20px 16px; } }
@media (max-width: 980px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .industries { grid-template-columns: 1fr; } .ind { min-height: 230px; } }

/* ---------- Por qué Nabar ---------- */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.why__img { position: relative; }
.why__img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.why__img .why__tag { position: absolute; right: -14px; bottom: 26px; background: var(--blue); color: #fff; padding: 14px 20px; border-radius: 16px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; box-shadow: var(--shadow); line-height: 1.1; }
.why__tag small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: #cfe0f2; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 10px; }
.why__item h3 { font-size: 1.35rem; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.why__item h3 svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.why__item p { font-size: .98rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .why__img .why__tag { right: 12px; } }
@media (max-width: 560px) { .why__list { grid-template-columns: 1fr; } }

/* ---------- Marcas ---------- */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.brand { background: #fff; border-radius: var(--radius); border: 1px solid #e3ebf4; display: grid; place-items: center; padding: 26px 20px; min-height: 140px; text-align: center; transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.brand:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.brand img { max-height: 70px; width: auto; }
.brand__word { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; color: #1450b8; letter-spacing: .01em; }
.brand small { display: block; margin-top: 10px; font-size: .82rem; color: var(--muted); }
@media (max-width: 820px) { .brands { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.video button:hover img { opacity: 1; transform: scale(1.03); }
.video .play { position: relative; width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s var(--ease-out); }
.video button:hover .play { transform: scale(1.08); }
.video .play svg { width: 30px; height: 30px; margin-left: 5px; color: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }

/* ---------- Catálogos ---------- */
.catalogs { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.catalog-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cover { border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #0b4d8f, #013466); color: #fff; padding: 24px 20px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lg); position: relative; }
.cover:nth-child(2) { transform: translateY(30px); background: linear-gradient(160deg, #3a79b9, #0154a5); }
.cover img.cover__logo { width: 92px; }
.cover img.cover__prod { position: absolute; right: -10px; bottom: 40px; width: 62%; opacity: .95; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.cover h3 { color: #fff; font-size: 1.6rem; margin: 0; position: relative; }
.cover span { font-size: .8rem; color: #cfe0f2; letter-spacing: .14em; text-transform: uppercase; position: relative; }
@media (max-width: 860px) { .catalogs { grid-template-columns: 1fr; } .catalog-covers { max-width: 460px; margin-bottom: 30px; } }

/* ---------- Formularios ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.field label .opt-tag { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #cfdbe8; border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1, 84, 165, .14); }
.field input[type="file"] { padding: 9px; background: var(--ice-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.hidden-field { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; background: #e8f8ee; color: #135c2f; font-weight: 600; }
.form-msg.is-visible { display: block; }
.form-msg.is-error { background: #fdecec; color: #8a1f1f; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid #e3ebf4; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post__body { padding: 20px 22px 24px; }
.post__cat { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.post h3 { font-size: 1.45rem; margin: 6px 0 8px; }
.post p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid #d9e4ef; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 46px 20px 0; position: relative; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--ice-soft); display: grid; place-items: center; font-size: 1.4rem; color: var(--blue); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact__info { display: grid; gap: 14px; }
.cinfo { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(135, 175, 213, .2); color: #d6e3f1; text-decoration: none; transition: background .2s var(--ease-out); }
a.cinfo:hover { background: rgba(255, 255, 255, .12); }
.cinfo svg { width: 26px; height: 26px; color: var(--blue-light); flex: none; margin-top: 2px; }
.cinfo strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; letter-spacing: .02em; }
.cinfo span { font-size: .95rem; }
.contact__form { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.contact__form h3 { font-size: 1.9rem; }
.map { margin-top: 18px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #0d3f74; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #cfe0f2; padding: 20px; background: linear-gradient(135deg, #0d4a86, #013466); }
.map button strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.3rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact__form, .guide__card, .guide__result, .tour__panel { padding: 22px 18px; } }

/* ---------- Footer ---------- */
.footer { background: #001d3a; color: #9fb7d1; padding: 60px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer img { height: 46px; width: auto; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #c9daec; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s var(--ease-out); }
.social a:hover { background: var(--blue); }
.social svg { width: 20px; height: 20px; color: #fff; }
.footer__bottom { border-top: 1px solid rgba(201, 218, 236, .12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .7); text-decoration: none;
  transition: transform .2s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; color: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s ease-out infinite; }
.wa-float__tip {
  position: absolute; right: 74px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 12px;
  font-size: .9rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.wa-float:hover .wa-float__tip, .wa-float.show-tip .wa-float__tip { opacity: 1; }
@media (max-width: 480px) { .wa-float__tip { display: none; } }

/* ---------- Cookies ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; max-width: 560px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 20px; display: none; border: 1px solid var(--ice); }
.cookies.is-visible { display: block; animation: rise .3s var(--ease-out); }
.cookies p { font-size: .9rem; margin-bottom: 12px; }
.cookies__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Páginas internas (blog, privacidad, gracias) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 140px 0 60px; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 900px; }
.page-hero p { color: #cfe0f2; max-width: 720px; font-size: 1.12rem; }
.article { max-width: 780px; margin: 0 auto; padding: 50px 20px 80px; }
.article h2 { font-size: 2rem; margin-top: 1.4em; }
.article img { border-radius: var(--radius); margin: 10px 0 24px; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: .5em; }
.article table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: .96rem; }
.article th, .article td { border: 1px solid #d9e4ef; padding: 10px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--ice-soft); color: var(--navy); }
.cta-box { background: linear-gradient(150deg, var(--navy), #0b4d8f); color: #fff; border-radius: var(--radius-lg); padding: 30px; margin-top: 40px; }
.cta-box h3 { color: #fff; font-size: 1.8rem; }
.cta-box p { color: #cfe0f2; }
.breadcrumbs { font-size: .9rem; color: #a9c3de; margin-bottom: 14px; }
.breadcrumbs a { color: #cfe0f2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.brands { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.brand__word--sumi { color: #0b2f8a; letter-spacing: .08em; font-size: 1.8rem; }
.brand__word--habit { color: #013466; font-style: italic; }
.map__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.map__actions .btn svg { width: 18px; height: 18px; }


/* ==========================================================
   Movimiento (criterios de Emil Kowalski: emil-design-eng / animate / choreograph)
   - Curvas propias; entradas y salidas con ease-out, salidas más rápidas
   - Todo lo que se presiona responde con scale(.97)
   - Movimiento en hover solo con mouse (@media hover/pointer)
   - Una sola entrada por contenedor; escalonado no uniforme
   - Reducir movimiento = fundidos suaves, no cero
   ========================================================== */
[data-count] { font-variant-numeric: tabular-nums; }

/* Presionar: retroalimentación inmediata (100–160ms) */
.btn { transition: transform .16s var(--ease-out), box-shadow .2s ease, background .2s ease, color .2s ease; }
.opt, .chip, .modal__close, .tour__full, .guide__replay, .guide__photos button, .pdetail__thumbs button, .pback {
  transition: transform .16s var(--ease-out), background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active, .opt:active, .chip:active, .modal__close:active, .tour__full:active, .guide__replay:active,
.guide__photos button:active, .pdetail__thumbs button:active, .pback:active, .social a:active { transform: scale(.97); }
.product:active, .tour__prod:active, .ind:active, .post:active { transform: scale(.98); transition-duration: .12s; }
.wa-float:active { transform: scale(.95); }
.hotspot:active .hs-dot { transform: scale(.9); transform-box: fill-box; transform-origin: center; }

/* Hover con movimiento solo en dispositivos con mouse: en celular el tap no deja la tarjeta "levantada" */
@media (hover: none), (pointer: coarse) {
  .btn:hover, .sol:hover, .product:hover, .ind:hover, .post:hover, .brand:hover, .tour__prod:hover, .wa-float:hover { transform: none; }
  .sol:hover .sol__media img, .product:hover .product__img img, .ind:hover img, .video button:hover img, .video button:hover .play { transform: none; }
  .product:hover .product__info em svg { transform: none; }
}

/* Aparición al hacer scroll (sitio de marketing, se ve una vez): más corta; el retraso escalonado lo pone JS */
.reveal { transform: translateY(16px); transition: opacity .55s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--d, 0ms); }

/* Entrada del hero, una vez por visita.
   Insignia = decoración (solo fundido) · Título = protagonista (recorre más) · Texto y botones = soporte (menos recorrido).
   Pasos que se acortan: 0 / 90 / 170 / 230 ms. */
.hero__content > * { animation: heroUp .6s var(--ease-out) both; }
.hero__badge { animation-name: fadeIn !important; animation-duration: .5s !important; }
.hero h1 { --y: 22px; animation-delay: .09s; }
.hero__lead { --y: 12px; animation-delay: .17s; }
.hero__actions { --y: 8px; animation-delay: .23s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(var(--y, 12px)); } }

/* Modal: entra 250ms, sale 180ms; ambos ease-out. Centrado (los modales no salen de un disparador). */
.modal__backdrop { animation: fadeIn .25s var(--ease-out); }
.modal__panel { animation: modalIn .25s var(--ease-out); transform-origin: center; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96); } }
.modal.is-closing .modal__backdrop { animation: fadeOut .18s var(--ease-out) forwards; }
.modal.is-closing .modal__panel { animation: modalOut .18s var(--ease-out) forwards; }
.modal.is-closing { pointer-events: none; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes modalOut { to { opacity: 0; transform: scale(.96); } }
@media (hover: hover) and (pointer: fine) { .modal__close:hover { background: var(--ice-soft); } }

/* En celular el modal es una hoja que sube desde abajo y sale por abajo */
@media (max-width: 640px) {
  .modal__panel { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; animation: sheetIn .45s var(--ease-drawer); }
  .modal__head { padding-top: 22px; }
  .modal__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 99px; background: var(--steel); }
  .modal.is-closing .modal__panel { animation: sheetOut .26s var(--ease-out) forwards; }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  @keyframes sheetOut { to { transform: translateY(100%); } }
}

/* Cambio de contenido dentro del modal ya abierto (línea ↔ producto): un solo fundido corto del cuerpo.
   No se escalonan tarjetas: el panel ya tuvo su entrada. */
.modal__body.is-swap { animation: swapIn .22s var(--ease-out); }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } }
.pdetail { animation: none; }
/* Cambio de foto en la galería: fundido con desenfoque leve para que no se vean dos imágenes */
.pdetail__main img { animation: imgIn .22s var(--ease-out); }
@keyframes imgIn { from { opacity: 0; filter: blur(3px); transform: scale(.98); } }

/* Guía: el paso nuevo entra suave; el resultado cambia muchas veces → un solo fundido corto */
.guide__step:not([hidden]) { animation: stepIn .24s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } }
.guide__result.is-swap > :not(.guide__visual) { animation: swapIn .22s var(--ease-out); }
.opt.is-selected { box-shadow: 0 8px 20px -10px rgba(1, 84, 165, .7); }

/* Paneles del recorrido y de industrias: entrada más corta y nítida */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.tour__panel-anim { animation-duration: .24s; }
.ind-panel__in { animation-duration: .3s; }

/* Menú móvil: curva de cajón */
@media (max-width: 960px) { .nav { transition: transform .4s var(--ease-drawer); } }

/* Globo de WhatsApp: sale del botón (origen a la derecha), 180ms */
.wa-float__tip { transform: translateY(-50%) scale(.96); transform-origin: right center; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out); }
.wa-float:hover .wa-float__tip, .wa-float.show-tip .wa-float__tip { transform: translateY(-50%); }

/* Reducir movimiento: se quitan desplazamientos y bucles, se conservan fundidos cortos */
@media (prefers-reduced-motion: reduce) {
  .hero__content > *, .modal__panel, .modal__backdrop, .modal__body.is-swap, .guide__step:not([hidden]),
  .tour__panel-anim, .ind-panel__in, .pdetail__main img, .cookies.is-visible { animation: fadeIn .2s ease both !important; }
  .modal.is-closing .modal__panel, .modal.is-closing .modal__backdrop { animation: fadeOut .15s ease forwards !important; }
  .reveal { transition: opacity .3s ease !important; transform: none; }
}

/* ==========================================================
   Rediseño v2 · "catálogo técnico"
   Tipografía: Fira Sans Condensed (títulos, pariente libre de Myriad Condensed),
   M PLUS Rounded 1c (texto, la misma familia de Rounded M+ 1p del catálogo impreso)
   e IBM Plex Mono (códigos de modelo y datos técnicos).
   Menos sombras y burbujas; líneas finas, códigos de modelo y fondos de acero.
   ========================================================== */
body { font-size: 16px; line-height: 1.7; letter-spacing: .005em; }
h1, h2, h3, h4 { letter-spacing: -.005em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .14em; }
.eyebrow::before { width: 20px; height: 1px; }
.btn { border-radius: 4px; letter-spacing: .03em; font-weight: 600; }
.btn--sm { font-size: .98rem; }
.hero__badge { border-radius: 4px; }
.hero h1 { font-weight: 700; letter-spacing: -.01em; }

/* ---------- Soluciones: fichas de línea con índice ---------- */
.solutions { gap: 20px; }
.sol { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; background: #fff; }
.sol:hover { transform: none; box-shadow: none; border-color: #9fb6cd; }
.sol__media { aspect-ratio: 16 / 10; background: var(--steel-bg); border-bottom: 1px solid var(--line); }
.sol__media img.is-product { padding: 22px; }
.sol__brand { position: static; background: none; padding: 0; border-radius: 0; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.sol__body { padding: 22px 22px 22px; }
.sol__body h3 { font-size: 1.65rem; margin-bottom: 8px; }
.sol__body p { font-size: .95rem; line-height: 1.6; margin-bottom: 14px; }
.sol__index { margin: 0 0 20px; border-top: 1px solid var(--line); }
.sol__index > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.sol__index dt { font-size: .88rem; color: var(--text); }
.sol__index dd { margin: 0; font-family: var(--font-mono); font-size: .76rem; color: var(--navy); text-align: right; white-space: nowrap; }
.sol__actions { align-items: center; gap: 18px; }
.sol__wa { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--navy); text-decoration: underline; text-decoration-color: var(--blue-light); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .sol__wa:hover { text-decoration-color: var(--blue); } .sol:hover .sol__media img { transform: scale(1.03); } }
.sol--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr 1fr; }
.sol--feature .sol__media { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.sol--feature .sol__media img.is-product { padding: 40px; }
.sol--feature .sol__body { padding: 34px 36px; justify-content: center; }
.sol--feature .sol__body h3 { font-size: 2.2rem; }
@media (max-width: 860px) { .sol--feature { grid-template-columns: 1fr; } .sol--feature .sol__media { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); } .sol--feature .sol__body { padding: 22px; } }

/* ---------- Tarjetas de producto: hoja de catálogo ---------- */
.products { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.product { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; transition: background .2s ease; }
.product:hover, .product:focus-visible { transform: none; box-shadow: none; background: #f7f9fb; }
.product:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.product__img { background: var(--steel-bg); aspect-ratio: 4 / 3; }
.product__img img { padding: 16px; mix-blend-mode: multiply; }
.product__img img.is-cover { mix-blend-mode: normal; }
.product__info { padding: 14px 16px 6px; gap: 3px; }
.product__info > .product__code { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--blue); letter-spacing: .04em; }
.product__info strong { font-size: 1.12rem; font-weight: 600; }
.product__info > span:last-child { font-size: .84rem; line-height: 1.45; }
.product__go { display: flex; align-items: center; gap: 6px; padding: 8px 16px 14px; margin-top: auto; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.product__go svg { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .product:hover .product__go svg { transform: translateX(3px); } .product:hover .product__img img { transform: scale(1.03); } }
.products--mini { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.pgroup { font-size: 1.25rem; margin: 30px 0 0; padding-bottom: 10px; justify-content: space-between; }
.pgroup small { background: none; padding: 0; border-radius: 0; font-family: var(--font-mono); font-size: .74rem; font-weight: 500; color: var(--muted); }
.pgroup small::after { content: " modelos"; }

/* ---------- Recorrido: tamaño que cabe en pantalla, zonas como índice ---------- */
.tour { align-items: start; }
.tour__stage { border-radius: var(--radius-lg); }
.tour__stage svg { max-height: min(68vh, 720px); width: 100%; margin: 0 auto; }
.tour__panel { border-radius: var(--radius-lg); box-shadow: none; max-height: calc(min(68vh, 720px) + 70px); overflow-y: auto; overscroll-behavior: contain; }
.tour__panel h3 { font-size: 1.7rem; }
.tour__zone-tag { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; }
.tour__products { grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tour__prod { border-radius: 0; background: #fff; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px; }
.tour__prod:hover, .tour__prod:focus-visible { background: #f7f9fb; transform: none; border-color: var(--line); }
.tour__prod img, .tour__noimg { background: var(--steel-bg); border-radius: 0; mix-blend-mode: multiply; }
.tour__prod strong { font-size: .98rem; }
.tour__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0; margin-top: 14px; border-top: 1px solid rgba(135, 175, 213, .3); border-left: 1px solid rgba(135, 175, 213, .3); }
.chip { border-radius: 0; border: 0; border-right: 1px solid rgba(135, 175, 213, .3); border-bottom: 1px solid rgba(135, 175, 213, .3); background: transparent; text-align: left; padding: 10px 12px; font-size: .98rem; display: flex; gap: 10px; align-items: baseline; }
.chip b { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; color: var(--blue-light); }
.chip.is-active { background: #fff; color: var(--navy); }
.chip.is-active b { color: var(--blue); }
@media (max-width: 1100px) { .tour__stage svg { max-height: none; } .tour__panel { max-height: none; } .tour__products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tour__products { grid-template-columns: 1fr 1fr; } }
/* Pantalla completa: plano + panel juntos */
.tour.is-full { position: fixed; inset: 0; z-index: 250; height: 100vh; height: 100dvh; }
.tour:fullscreen, .tour.is-full { background: var(--navy-deep); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: stretch; overflow: auto; }
.tour:fullscreen > div:first-child, .tour.is-full > div:first-child { display: flex; flex-direction: column; min-height: 0; }
.tour:fullscreen .tour__stage, .tour.is-full .tour__stage { flex: 1; display: grid; place-items: center; }
.tour:fullscreen .tour__stage svg, .tour.is-full .tour__stage svg { max-height: calc(100vh - 110px); width: 100%; }
.tour:fullscreen .tour__panel, .tour.is-full .tour__panel { max-height: calc(100vh - 36px); }
.tour::backdrop { background: var(--navy-deep); }
@media (max-width: 900px) { .tour:fullscreen, .tour.is-full { grid-template-columns: 1fr; } .tour:fullscreen .tour__stage svg, .tour.is-full .tour__stage svg { max-height: 55vh; } }
.tour__full.is-on svg { transform: rotate(180deg); }

/* ---------- Guía, industrias, opciones: esquinas y etiquetas sobrias ---------- */
.opt { border-width: 1px; border-color: var(--line); border-radius: var(--radius); }
.opt--card img { border-radius: 2px; background: var(--steel-bg); }
.opt em { border-radius: 2px; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; }
.guide__code { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.02em; }
.ind { border-radius: var(--radius); box-shadow: none; }
.ind__body em { border-radius: 4px; }
.ind-panel__in { border-radius: var(--radius); }
.ind-clients { display: block; border-top: 1px solid var(--line); margin-bottom: 20px; columns: 2; column-gap: 24px; }
.ind-clients li { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; font-size: 1.1rem; break-inside: avoid; }
.clients__title { font-family: var(--font-mono); font-size: .74rem; }
.clients__track { align-items: center; }
.clients__track span { font-size: 1.35rem; color: #7d93ab; }
.clients__track .has-logo img { height: 38px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; }
.brand { border-radius: var(--radius); }
.brand:hover { box-shadow: none; transform: none; border-color: #9fb6cd; }
.why__tag { border-radius: var(--radius); }
.pdetail__specs th, .pdetail__specs td { font-size: .9rem; }
.pdetail__specs td { font-family: var(--font-mono); font-size: .82rem; }

/* ---------- Video con imagen propia (sin miniatura de YouTube) ---------- */
.video--own button { background: radial-gradient(circle at 50% 45%, #fff 0%, var(--steel-bg) 70%); }
.video--own .video__poster { object-fit: contain; padding: 18px 18px 30px; opacity: 1; mix-blend-mode: multiply; }
.video--own::after { content: "Video"; position: absolute; left: 14px; bottom: 10px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); pointer-events: none; }

/* ---------- Mapa con la paleta de Nabar ---------- */
.map { aspect-ratio: 2 / 1; border-radius: var(--radius); background: #001e3e; }
.map__view { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.map__view img { width: 100%; height: 100%; object-fit: cover; }
.map__pin { position: absolute; left: 46.4%; top: 43.2%; width: 34px; height: 44px; transform: translate(-50%, -100%); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.map__pin svg { width: 100%; height: 100%; }
.map__pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 28px; height: 10px; margin-left: -14px; border-radius: 50%; border: 2px solid var(--wa); animation: pinPulse 2.4s var(--ease-out) infinite; }
@keyframes pinPulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.map__card { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 30, 62, .88); border: 1px solid rgba(135, 175, 213, .35); border-radius: 4px; padding: 10px 14px; max-width: calc(100% - 24px); backdrop-filter: blur(6px); }
.map__card strong { display: block; font-family: var(--font-head); font-size: 1.1rem; line-height: 1.2; }
.map__card span { display: block; font-size: .8rem; color: #b9cde3; }
.map__credit { position: absolute; right: 8px; bottom: 6px; font-size: .62rem; color: rgba(255, 255, 255, .6); }
@media (hover: hover) and (pointer: fine) { .map__view:hover img { filter: brightness(1.08); } }
@media (prefers-reduced-motion: reduce) { .map__pin::after { animation: none; opacity: 0; } }
.pdetail__main { background: var(--steel-bg); border-radius: var(--radius); }
.pdetail__main img { mix-blend-mode: multiply; }
.pdetail__main.is-photo img { mix-blend-mode: normal; }
.pdetail__thumbs button { border-radius: 4px; background: var(--steel-bg); }
/* El panel del recorrido mide lo mismo que el plano (no lo hace crecer) y se desplaza por dentro */
@media (min-width: 1101px) {
  .tour { align-items: stretch; }
  .tour__panel { contain: size; max-height: none; min-height: 0; }
  .tour:fullscreen .tour__panel, .tour.is-full .tour__panel { contain: size; max-height: none; }
}
.section--navy .tour__panel h3 { color: var(--navy); }

  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #eceef0 55%, #dcdfe3 100%); }

/* Franja de clientes con logos: misma altura y mismo gris que el texto; color al pasar el mouse */
.clients__track { gap: 56px; }
.clients__track .has-logo { display: flex; align-items: center; height: 34px; }
.clients__track .has-logo img { height: 30px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(1) contrast(.9); opacity: .55; transition: filter .25s ease, opacity .25s ease; }
@media (hover: hover) and (pointer: fine) { .clients__track .has-logo:hover img { filter: none; opacity: 1; } }
.clients__track .has-logo img[src*="grupo-modelo"], .clients__track .has-logo img[src*="del-valle"] { height: 40px; }
.clients__track > span:not(.has-logo) { font-size: 1.15rem; opacity: .85; }

/* ==========================================================
   Celular (≤ 640 px): formato más compacto. La versión de laptop no cambia.
   ========================================================== */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head p { font-size: 1rem; }
  h2 { font-size: 1.95rem; }
  .container { padding: 0 18px; }

  /* Portada */
  .hero__content { padding: 104px 0 70px; }
  .hero h1 { font-size: 2.35rem; margin-bottom: 16px; }
  .hero__lead { font-size: 1.02rem; margin-bottom: 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .hero__badge { font-size: .82rem; margin-bottom: 18px; }
  .hero__scroll { display: none; }

  /* Cifras */
  .stat { padding: 22px 12px; }
  .stat__num { font-size: 2.2rem; }

  /* Soluciones: tarjetas que se deslizan de lado */
  .solutions { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .solutions::-webkit-scrollbar { display: none; }
  .sol, .sol--feature { flex: 0 0 84%; scroll-snap-align: start; display: flex; flex-direction: column; grid-column: auto; }
  .sol--feature .sol__media { aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sol--feature .sol__media img.is-product, .sol__media img.is-product { padding: 16px; }
  .sol__body, .sol--feature .sol__body { padding: 18px; }
  .sol__body h3, .sol--feature .sol__body h3 { font-size: 1.45rem; }
  .sol__body p { font-size: .9rem; }
  .sol__index dt { font-size: .82rem; }
  .sol__actions { gap: 12px; }
  .swipe-hint { display: flex; }

  /* Recorrido */
  .tour__chips { grid-template-columns: 1fr 1fr; }
  .chip { padding: 9px 10px; font-size: .92rem; }
  .tour__panel { padding: 20px 16px; }
  .tour__panel h3 { font-size: 1.45rem; }

  /* Guía de coladeras */
  .guide__card, .guide__result { padding: 20px 16px; }
  .guide__code { font-size: 2.6rem; }
  .options.options--cards { grid-template-columns: 1fr 1fr; }

  /* Industrias: cuadrícula de 2 columnas, tarjetas más bajas */
  .industries { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ind { min-height: 150px; }
  .ind__body { padding: 14px 12px; }
  .ind__body strong { font-size: 1.2rem; line-height: 1.1; }
  .ind__body > span { display: none; }
  .ind__body em { margin-top: 8px; font-size: .85rem; padding: 3px 9px; }
  .ind-panel__in { padding: 20px 14px; }
  .ind-clients { columns: 1; }

  /* Fichas de productos: 2 por fila */
  .products, .products--mini { grid-template-columns: 1fr 1fr; }
  .product__info { padding: 10px 10px 4px; }
  .product__info strong { font-size: 1rem; }
  .product__info > span:last-child { font-size: .78rem; }
  .product__go { padding: 6px 10px 12px; font-size: .64rem; }
  .product__img img { padding: 10px; }
  .modal__head h3 { font-size: 1.5rem; }
  .modal__body { padding: 16px 14px 24px; }
  .pdetail { grid-template-columns: 1fr; gap: 18px; }

  /* Por qué Nabar */
  .why__list { grid-template-columns: 1fr 1fr; gap: 14px; }
  .why__item h3 { font-size: 1.05rem; }
  .why__item p { font-size: .86rem; }

  /* Marcas: 2 columnas compactas */
  .brands { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand { min-height: 104px; padding: 16px 10px; }
  .brand img { max-height: 44px; }
  .brand__word { font-size: 1.4rem !important; }
  .brand small { font-size: .72rem; margin-top: 6px; }

  /* Videos y blog */
  .videos { gap: 14px; }
  .posts { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 14px; max-width: none; scrollbar-width: none; }
  .posts::-webkit-scrollbar { display: none; }
  .post { flex: 0 0 82%; scroll-snap-align: start; }

  /* Contacto y pie de página */
  .map { aspect-ratio: 4 / 3; }
  .map__view img { object-position: 46.4% 43.2%; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
/* Indicador "desliza" para los carruseles del celular */
.swipe-hint { display: none; align-items: center; gap: 8px; margin: -10px 0 14px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.swipe-hint::after { content: "→"; animation: swipeNudge 1.6s var(--ease-in-out) infinite; }
@keyframes swipeNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .swipe-hint::after { animation: none; } }
.sol__division { font-family: var(--font-head); font-weight: 600; font-size: 1rem !important; line-height: 1.25 !important; color: var(--navy) !important; margin: 0 0 6px !important; padding-left: 10px; border-left: 3px solid var(--blue); }
.stat__label small { display: block; font-size: .72rem; opacity: .75; margin-top: 2px; } .stat[hidden] { display: none !important; }

/* ==========================================================
   Páginas internas SEO (líneas, productos, industrias)
   ========================================================== */
.subpage .header { position: sticky; top: 0; }
.sub-nav { display: flex; gap: 22px; }
.subpage .nav a { color: var(--navy); }
@media (max-width: 960px) { .sub-nav { display: none !important; } }
.sub-hero { padding: 54px 0 46px; }
.sub-hero h1 { color: #fff; max-width: 980px; }
.sub-hero .eyebrow { color: var(--blue-light); }
.sub-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
a.product { text-decoration: none; color: inherit; }
.pdetail__h { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 20px 0 8px; }
.pdetail__info .product__code { margin-bottom: 8px; }
.sub-tags { color: var(--muted); font-size: .95rem; margin-top: 14px; }
.sub-tags a { color: var(--blue); font-weight: 500; }
.sub-back { margin-top: 30px; }
.sub-back a { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.sub-form { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.sub-form .form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (max-width: 860px) { .sub-form { grid-template-columns: 1fr; gap: 20px; } .sub-hero { padding: 40px 0 34px; } }
@media (max-width: 640px) { .sub-hero__actions .btn { width: 100%; } .subpage .header__tel { display: none; } }
.sol__link { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .sol__link:hover { text-decoration: underline; text-decoration-color: var(--blue-light); text-underline-offset: 4px; } }
.pdetail__page { margin-top: 14px; }
.pdetail__page a { font-family: var(--font-head); font-weight: 600; color: var(--blue); }
.ind-panel__page { margin-left: 8px; }
