/* Neutros zinc/acero + un solo acento: el azul del logo Borralbi.
   El bronce solo aparece en el engranaje chico, como material, no como color de interfaz. */
:root {
  --bg: #fafafa;
  --bg-gris: #f1f1f3;
  --tinta: #141417;
  --tinta-2: #4b4b55;
  --tinta-3: #74747f;
  --linea: #e2e2e6;
  --oscuro: #0c0d10;
  --oscuro-2: #15161a;
  --oscuro-linea: #2b2c33;
  --claro-2: #a5a5b0;
  --azul: #1d6fc0;
  --azul-hover: #175da3;
  --azul-claro: #5fa3ea;
  --wa: #1f9d55;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --ancho: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --suave: cubic-bezier(.2, .7, .2, 1);
  --s: 0; /* scroll en px, lo pone sitio.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tinta);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px;
  border-radius: 3px;
  font: 500 15px/1.2 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .12s;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform .25s var(--suave); }
.btn:hover svg { transform: translateX(3px); }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: var(--azul-hover); }
.btn-claro { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-claro:hover { background: #fff; color: var(--tinta); border-color: #fff; }
.btn-wa { background: var(--wa); color: #fff; padding: 10px 15px; }
.btn-wa:hover { background: #18834a; }
.btn-wa:hover svg { transform: none; }

/* ---------- Encabezado: logo protagonista sobre blanco, menú debajo ---------- */
.logo-banda {
  background: #fff; display: flex; justify-content: center;
  padding: 18px var(--gutter) 16px;
  border-bottom: 1px solid var(--linea);
}
.marca { display: block; line-height: 0; }
.marca img { height: clamp(64px, 8vw, 96px); width: auto; }
.menu {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 13, 16, .94);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.menu-in { display: flex; align-items: center; justify-content: center; gap: 34px; height: 58px; }
.menu a:not(.btn) {
  text-decoration: none; font-size: 15px; color: rgba(255, 255, 255, .78);
  position: relative; padding: 4px 0;
}
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--azul-claro); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--suave);
}
.menu a:not(.btn):hover, .menu a.activo { color: #fff; }
.menu a:not(.btn):hover::after, .menu a.activo::after { transform: scaleX(1); }
.menu-cta { margin-left: 8px; }

/* Barra inferior tipo aplicación: solo en celular */
.tabbar { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100dvh - 186px);
  background: var(--oscuro); color: #fff;
  display: flex; align-items: flex-end;
  padding: 96px 0 110px;
}
.hero-fondo { position: absolute; inset: 0; }
.hero-fondo img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
  transform-origin: 70% 40%;
}
.hero-fondo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 13, 16, .96) 0%, rgba(12, 13, 16, .82) 42%, rgba(12, 13, 16, .35) 100%),
    linear-gradient(0deg, rgba(12, 13, 16, .9) 0%, transparent 45%);
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); }
}

/* Tren de engranajes: tamaños y posiciones calculados para que los dientes encajen.
   Paso de diente igual en los tres; velocidades proporcionales al número de dientes. */
.tren {
  position: absolute; right: -300px; top: 50%;
  width: 870px; height: 600px;
  transform: translateY(-40%) scale(var(--tren-escala, .86));
  transform-origin: right center;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
  opacity: .85;
}
.engrane { position: absolute; will-change: transform; }
.e-grande { width: 520px; height: 520px; left: 340px; top: 60px; fill: url(#acero); --a: 5deg; animation: gira-h 48s linear infinite; }
.e-media { width: 353px; height: 353px; left: 41.5px; top: 4.5px; fill: url(#azul); --a: 8.75deg; animation: gira-a 32s linear infinite; }
.e-chica { width: 226px; height: 226px; left: 14px; top: 317px; fill: url(#bronce); --a: 2deg; animation: gira-h 20s linear infinite; }
@keyframes gira-h { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) + 360deg)); } }
@keyframes gira-a { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) - 360deg)); } }

.hero-in { position: relative; z-index: 2; width: 100%; }
.kicker {
  display: flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--mono);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--claro-2);
  margin-bottom: 30px;
}
.kicker span { width: 36px; height: 2px; background: var(--azul-claro); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.7rem); line-height: 1.02; max-width: 11.5em; font-weight: 500; }
.hero-in > * { max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--azul-claro); }
.lead { margin-top: 28px; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #c9c9d1; max-width: 34em; font-weight: 300; }
.acciones { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.datos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 200px));
  margin: 64px 0 0; border-top: 1px solid rgba(255, 255, 255, .18);
}
.datos div { padding: 20px 24px 0 0; }
.datos div + div { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 24px; }
.datos dt { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--claro-2); }
.datos dd { margin: 8px 0 0; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Cremallera: fila de dientes que se desplaza con el scroll, como si la empujara el engranaje */
.cremallera {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12px; z-index: 3;
  background:
    linear-gradient(90deg, var(--bg) 0 14px, transparent 14px 28px) 0 0 / 28px 12px repeat-x;
  background-position-x: calc(var(--s) * -0.35px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.hero .cremallera { background-image: linear-gradient(90deg, var(--azul) 0 14px, transparent 14px 28px); }
.cremallera-arriba { top: 0; bottom: auto; background-image: linear-gradient(90deg, var(--bg) 0 14px, transparent 14px 28px); background-position-x: calc(var(--s) * 0.35px); }

/* ---------- Cinta corrida ---------- */
.cinta { background: var(--azul); color: #fff; overflow: hidden; padding: 16px 0; }
.cinta-pista { display: flex; align-items: center; gap: 28px; width: max-content; animation: corre 38s linear infinite; }
.cinta span { font: 500 15px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap; }
.cinta svg { width: 20px; height: 20px; fill: rgba(255, 255, 255, .55); animation: gira-h 6s linear infinite; --a: 0deg; flex: none; }
@keyframes corre { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.sec-gris { background: var(--bg-gris); }
.sec-oscura { background: var(--oscuro); color: #ededf0; overflow: hidden; }
.num { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--azul); margin-bottom: 22px; }
.sec-oscura .num { color: var(--azul-claro); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.02; }
.sec-head { margin-bottom: clamp(44px, 6vw, 72px); max-width: 760px; }
.sec-intro { margin-top: 22px; max-width: 36em; color: var(--tinta-2); font-size: 1.1rem; }
.sec-oscura .sec-intro { color: var(--claro-2); }

/* Engranaje decorativo que gira con el scroll */
.engrane-scroll {
  fill: none; stroke: currentColor; stroke-width: 1.2px;
  transform: rotate(calc(var(--s) * 0.12deg));
  will-change: transform;
}
.engrane-scroll.inverso { transform: rotate(calc(var(--s) * -0.18deg)); }

/* ---------- Servicios ---------- */
.servicios-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px clamp(40px, 6vw, 96px); }
.pegado { position: sticky; top: 120px; }
.sec-lado .engrane-scroll { width: 220px; height: 220px; color: #d4d4da; margin-top: 56px; }
.servicios { counter-reset: s; }
.srv {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 20px clamp(24px, 3.5vw, 48px);
  padding: 40px 0;
  border-top: 1px solid var(--linea);
  align-items: center;
}
.srv:last-child { border-bottom: 1px solid var(--linea); }
.srv figure { overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 3; background: #e4e4e7; }
.srv figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--suave), filter .6s; }
.srv:hover figure img { transform: scale(1.06); }
.srv-n { font: 500 12px/1 var(--mono); color: var(--azul); letter-spacing: .12em; }
.srv h3 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); line-height: 1.1; margin-top: 12px; }
.srv h3 + p { margin-top: 10px; color: var(--tinta-2); }
.srv ul { margin-top: 18px; }
.srv ul li { padding: 9px 0 9px 24px; border-top: 1px solid var(--linea); position: relative; font-size: 15.5px; }
.srv ul li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 10px; height: 10px; border: 2px solid var(--azul); border-radius: 50%;
}

/* Revelado de imagen: una cortina se abre de izquierda a derecha y la foto se asienta */
.js .revela { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--suave); }
.js .revela img { transform: scale(1.25); transition: transform 1.6s var(--suave); }
.js .revela.visto { clip-path: inset(0 0 0 0); }
.js .revela.visto img { transform: scale(1); }
.js .srv:hover .revela.visto img { transform: scale(1.06); }

/* Aparición general */
.js .aparece { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--suave), transform .9s var(--suave); }
.js .aparece.visto { opacity: 1; transform: none; }

/* ---------- Trabajos ---------- */
.piezas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 5vw, 64px); }
.piezas li {
  padding: 9px 16px; border: 1px solid var(--oscuro-linea); border-radius: 3px;
  font-size: 15px; color: #d9d9de; transition: border-color .25s, color .25s;
}
.piezas li:hover { border-color: var(--azul-claro); color: #fff; }

.galeria {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 12px;
}
.galeria figure {
  position: relative; overflow: hidden; border-radius: 3px; cursor: zoom-in;
  background: var(--oscuro-2);
}
.galeria .g-alta { grid-row: span 2; }
.galeria .g-ancha { grid-column: span 2; }
.galeria img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.55) brightness(.82);
  transition: transform 1s var(--suave), filter .6s;
}
.galeria figure:hover img { transform: scale(1.08); filter: none; }
.galeria figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(8, 8, 10, .88));
  font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  transform: translateY(8px); opacity: .85;
  transition: transform .5s var(--suave), opacity .5s;
}
.galeria figcaption::before {
  content: ""; display: block; width: 0; height: 2px; background: var(--azul-claro); margin-bottom: 10px;
  transition: width .5s var(--suave);
}
.galeria figure:hover figcaption { transform: none; opacity: 1; }
.galeria figcaption strong { display: block; font-weight: 500; }
/* La descripción se asoma al pasar el mouse; en el celular se lee al tocar la foto (visor) */
.galeria figcaption span {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font: 400 13px/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: #d4d4d8;
  max-height: 0; opacity: 0; margin-top: 0; transition: max-height .5s var(--suave), opacity .4s, margin-top .4s;
}
.galeria figure:hover figcaption span { max-height: 5.6em; opacity: 1; margin-top: 6px; }
.visor p strong { display: block; font-weight: 500; }
.visor p span { display: block; max-width: 640px; margin: 8px auto 0; font: 400 15px/1.5 var(--sans); text-transform: none; letter-spacing: 0; color: #c7c7cf; }
.galeria figure:hover figcaption::before { width: 32px; }
.js .galeria figure { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .8s var(--suave), transform .8s var(--suave); transition-delay: var(--d, 0s); }
.js .galeria figure.visto { opacity: 1; transform: none; }
.nota { margin-top: 48px; color: var(--claro-2); max-width: 40em; border-left: 2px solid var(--azul-claro); padding-left: 20px; }

/* ---------- Nosotros ---------- */
.nosotros { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px clamp(40px, 6vw, 100px); align-items: center; }
.nos-foto { position: relative; }
.paralaje { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 5; }
.paralaje img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--p, 0px), 0); will-change: transform; }
.nos-foto .engrane-scroll { position: absolute; width: 190px; height: 190px; right: -70px; top: -60px; color: var(--azul); stroke-width: 1.6px; }
.nos-foto figcaption {
  position: absolute; left: -1px; bottom: 28px;
  background: var(--azul); color: #fff; padding: 14px 20px;
  font-size: 1.15rem; letter-spacing: -0.01em;
}
.nos-foto figcaption span { display: block; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; opacity: .75; margin-bottom: 6px; }
.nos-txt h2 { margin-bottom: 28px; }
.grande { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.35; letter-spacing: -0.015em; }
.nos-txt > p + p { margin-top: 18px; color: var(--tinta-2); }
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.mv div { border-top: 2px solid var(--tinta); padding-top: 18px; }
.mv h3 { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--azul); margin-bottom: 14px; }
.mv p { color: var(--tinta-2); font-size: 15.5px; }

/* ---------- Clientes ---------- */
.clientes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--linea); border: 1px solid var(--linea); }
.clientes li {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px;
  padding: 36px 20px 22px; background: #fff;
  transition: background-color .3s;
}
.clientes img { height: 80px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .7; transition: filter .45s, opacity .45s, transform .45s var(--suave); }
.clientes li:hover img { filter: none; opacity: 1; transform: scale(1.05); }
.clientes span { font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--tinta-3); text-align: center; }
.js .clientes li.aparece:nth-child(2) { transition-delay: .08s; }
.js .clientes li.aparece:nth-child(3) { transition-delay: .16s; }
.js .clientes li.aparece:nth-child(4) { transition-delay: .24s; }
.js .clientes li.aparece:nth-child(5) { transition-delay: .32s; }
.js .clientes li.aparece:nth-child(6) { transition-delay: .4s; }

/* ---------- Llamado ---------- */
.llamado { position: relative; overflow: hidden; background: var(--oscuro); color: #fff; padding: clamp(90px, 12vw, 160px) 0; }
.llamado-fondo { position: absolute; inset: -10% 0; }
.llamado-fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.3); transform: translate3d(0, var(--p, 0px), 0); }
.llamado-engrane { position: absolute; width: 520px; height: 520px; right: -140px; top: 50%; margin-top: -260px; color: rgba(95, 163, 234, .35); }
.llamado-in { position: relative; }
.llamado-in > * { max-width: 760px; }
.llamado h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.llamado p { margin: 22px 0 36px; color: #cfcfd6; font-size: 1.15rem; font-weight: 300; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(40px, 5vw, 80px); align-items: stretch; }
.datos-contacto { margin: 40px 0 0; }
.datos-contacto div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--oscuro-linea); }
.datos-contacto dt { font: 500 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--claro-2); }
.datos-contacto dd { margin: 0; overflow-wrap: anywhere; }
.datos-contacto a { text-decoration: none; background: linear-gradient(var(--azul-claro), var(--azul-claro)) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--suave), color .2s; padding-bottom: 2px; }
.datos-contacto a:hover { color: var(--azul-claro); }
.despedida { margin-top: 32px; color: var(--claro-2); font-style: italic; }
/* Un iframe no se estira en un grid: va envuelto en un div con alto propio */
.mapa { position: relative; min-height: 420px; border-radius: 3px; overflow: hidden; background: var(--oscuro-2); filter: grayscale(.4) contrast(1.05); transition: filter .5s; }
.mapa:hover { filter: none; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Pie ---------- */
.pie { background: #060608; color: #6b6b75; font-size: 14px; border-top: 1px solid var(--oscuro-linea); }
.pie-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
/* Crédito del diseñador: discreto, centrado y al final de todo */
.pie-credito {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  padding-top: 12px; padding-bottom: 14px; border-top: 1px solid #1c1c21;
  font-size: 11.5px; color: #52525b; text-align: center;
}
.pie-credito a { color: #63636e; text-decoration: none; transition: color .2s; }
.pie-credito a:hover { color: #a1a1aa; }
.pie-credito .sep { color: #3f3f46; }

/* ---------- Visor ---------- */
.visor { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; color: #fff; }
.visor::backdrop { background: rgba(6, 6, 8, .93); backdrop-filter: blur(4px); }
.visor[open] img { animation: visor-entra .45s var(--suave); }
@keyframes visor-entra { from { opacity: 0; transform: scale(.96); } }
.visor img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 3px; }
.visor p { text-align: center; margin-top: 14px; font: 500 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #d4d4d8; }
.v-btn {
  position: absolute; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 3px;
  background: rgba(12, 13, 16, .6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.v-btn:hover { background: var(--azul); border-color: var(--azul); }
.cerrar { top: -54px; right: 0; }
.ant { left: -64px; top: 50%; margin-top: -40px; }
.sig { right: -64px; top: 50%; margin-top: -40px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .tren { --tren-escala: .7; right: -330px; opacity: .35; }
}
@media (max-width: 960px) {
  .menu-in { gap: 22px; }
  .servicios-grid, .nosotros, .contacto { grid-template-columns: minmax(0, 1fr); }
  .pegado { position: static; }
  .sec-lado .engrane-scroll { display: none; }
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 190px; }
  .nos-foto { max-width: 560px; }
  .nos-foto .engrane-scroll { right: -30px; width: 140px; height: 140px; }
  .ant { left: 8px; } .sig { right: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 0; }
  /* 64px de barra + 26px que sobresale el círculo de WhatsApp */
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .logo-banda { padding: 12px 16px 10px; }
  .marca img { height: 58px; }
  .menu { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--linea);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .06);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; color: var(--tinta-3); font: 500 10.5px/1 var(--sans); letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent; transition: color .2s;
  }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar .tab-engrane { fill: currentColor; transition: transform .6s var(--suave); }
  .tabbar a.activo { color: var(--azul); }
  .tabbar a.activo .tab-engrane { transform: rotate(90deg); }
  .tabbar a:active { transform: scale(.94); }
  .tab-wa { color: var(--tinta) !important; }
  .tab-wa-circulo {
    width: 50px; height: 50px; margin-top: -26px; border-radius: 50%;
    background: var(--wa); color: #fff; display: grid; place-items: center;
    border: 4px solid #fff; box-shadow: 0 6px 16px rgba(31, 157, 85, .35);
  }
  .tab-wa-circulo svg { width: 24px; height: 24px; fill: currentColor; }
  .hero { min-height: calc(100dvh - 81px - 64px); padding: 64px 0 72px; }
  .tren { --tren-escala: .52; right: -260px; top: 30%; opacity: .32; }
  .acciones .btn { width: 100%; justify-content: center; }
  .datos { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
  .datos div { padding-right: 10px; }
  .datos div + div { padding-left: 12px; }
  .datos dt { font-size: 10.5px; letter-spacing: .08em; }
  .datos dd { font-size: clamp(1.1rem, 5.6vw, 1.4rem); white-space: nowrap; }
  .srv { grid-template-columns: minmax(0, 1fr); padding: 32px 0; }
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 8px; }
  .galeria .g-ancha { grid-column: span 2; }
  .galeria img { filter: none; }
  .galeria figcaption { font-size: 10.5px; padding: 28px 10px 10px; transform: none; }
  .mv { grid-template-columns: minmax(0, 1fr); }
  .nos-foto .engrane-scroll { display: none; }
  .clientes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clientes img { height: 60px; filter: none; opacity: 1; }
  .llamado-engrane { width: 300px; height: 300px; margin-top: -150px; right: -120px; }
  .datos-contacto div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mapa { min-height: 320px; }
  .btn-ruta { padding: 10px 12px; gap: 9px; font-size: 15px; }
  .btn-ruta small { font-size: 9.5px; letter-spacing: .04em; white-space: nowrap; }

  /* Una sola línea aunque el celular sea angosto */
  .kicker { font-size: clamp(9.5px, 3vw, 11.5px); letter-spacing: .1em; gap: 10px; white-space: nowrap; margin-bottom: 22px; }
  .kicker span { width: 22px; flex: none; }
  .btn-ruta svg { width: 24px; height: 24px; }
  .v-btn.ant, .v-btn.sig { top: auto; bottom: -60px; margin: 0; }
  .ant { left: calc(50% - 52px); } .sig { right: calc(50% - 52px); }
}

@media (hover: none) {
  .galeria figcaption span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .engrane-scroll, .paralaje img, .llamado-fondo img { transform: none !important; }
  .js .revela, .js .revela img, .js .aparece, .js .galeria figure { clip-path: none; opacity: 1; transform: none; }
}

/* ---------- Videos ---------- */
.sub { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--azul-claro); margin: 56px 0 22px; }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--oscuro-2); border-radius: 3px; overflow: hidden; }
.video.vertical { aspect-ratio: 9 / 16; max-height: 560px; justify-self: center; width: 100%; max-width: 320px; }
.video button {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: var(--oscuro-2) center / cover no-repeat; color: #fff;
}
.video button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(8, 8, 10, .85)); transition: background-color .3s; }
.video button:hover::before { background-color: rgba(29, 111, 192, .18); }
.video .play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--azul); display: grid; place-items: center;
  transition: transform .3s var(--suave);
}
.video button:hover .play { transform: scale(1.1); }
.video .play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.video-tarjeta { display: flex; flex-direction: column; gap: 14px; }
.video-tarjeta.vertical { align-items: center; }
.video-info h4 { margin: 0; font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; color: #fff; }
.video-info p { margin-top: 6px; color: var(--claro-2); font-size: 15px; line-height: 1.5; }
.video-info .credito { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #7c7c87; margin-top: 10px; }
.video .v-titulo { position: absolute; left: 14px; right: 14px; bottom: 12px; text-align: left; font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Redes ---------- */
.redes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.redes a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid var(--oscuro-linea); border-radius: 3px; text-decoration: none; font-size: 14px; color: #e4e4e7;
  transition: border-color .2s, background-color .2s, color .2s;
}
.redes a:hover { border-color: var(--azul-claro); color: #fff; background: rgba(95, 163, 234, .08); }
.redes svg { width: 18px; height: 18px; fill: currentColor; }
.redes-pie { margin: 0; gap: 6px; }
.redes-pie a { padding: 7px; border-color: transparent; }
.redes-pie a span { display: none; }

/* ---------- Mapa y acceso ---------- */
.mapa-col { display: flex; flex-direction: column; gap: 14px; }
.mapa-col .mapa { flex: 1; }
/* Botones "Cómo llegar": abren la app de navegación en el celular */
.como-llegar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn-ruta {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px;
  border-radius: 4px; text-decoration: none; font: 600 16px/1.15 var(--sans);
  transition: transform .12s, filter .2s, background-color .2s;
}
.btn-ruta:hover { filter: brightness(1.06); }
.btn-ruta:active { transform: scale(.98); }
.btn-ruta svg { width: 28px; height: 28px; flex: none; }
.btn-ruta small { display: block; font: 500 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: 3px; }
.ruta-gmaps { background: #fff; color: #18181b; }
.ruta-waze { background: #33ccff; color: #0c0d10; }
.acceso {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; padding: 9px 14px; border: 1px solid var(--oscuro-linea); border-radius: 3px;
  color: var(--claro-2); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; text-decoration: none;
  transition: color .2s, border-color .2s;
}
.acceso:hover { color: #fff; border-color: var(--azul-claro); }
.acceso svg { width: 16px; height: 16px; }
.nos-txt .historia { margin-top: 18px; }
.historia p { color: var(--tinta-2); }
.historia p + p { margin-top: 18px; }
/* Reseña en Google: aparece solo cuando el panel tiene el enlace */
.resena {
  margin-top: 36px; padding: 28px clamp(20px, 3vw, 36px);
  background: #fff; border: 1px solid var(--linea); border-left: 3px solid #fbbc05;
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
}
.resena-estrellas { color: #fbbc05; font-size: 20px; letter-spacing: 3px; line-height: 1; margin-bottom: 10px; }
.resena h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.15; }
.resena h3 + p { margin-top: 8px; color: var(--tinta-2); max-width: 34em; }
.btn-google { background: #fff; color: var(--tinta); border-color: #d4d4d8; }
.btn-google:hover { border-color: var(--tinta); }
.btn-google svg { width: 20px; height: 20px; }
.btn-google:hover svg { transform: none; }
@media (max-width: 640px) { .btn-google { width: 100%; justify-content: center; } }
.cliente-sin-logo { height: 80px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 500; color: var(--tinta-2); text-align: center; }

/* En celulares angostos, lado a lado no caben: uno debajo del otro, a todo lo ancho.
   Va al final porque la regla base de .como-llegar está más abajo que los otros @media. */
@media (max-width: 440px) {
  .como-llegar { grid-template-columns: minmax(0, 1fr); }
  .btn-ruta { padding: 10px 16px; gap: 12px; }
  .btn-ruta small { font-size: 10px; letter-spacing: .08em; }
}

/* ---------- Contacto: cada dato es un botón que invita a tocar ---------- */
.contacto-acciones { display: grid; gap: 10px; margin-top: 32px; }
.c-accion {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--oscuro-linea); border-radius: 4px;
  background: rgba(255, 255, 255, .02); color: #ededf0; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .12s;
}
a.c-accion:hover { border-color: var(--azul-claro); background: rgba(95, 163, 234, .07); }
a.c-accion:active { transform: scale(.99); }
.c-icono { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #1d1e24; color: var(--azul-claro); }
.c-icono svg { width: 22px; height: 22px; fill: currentColor; }
.c-icono svg [fill="none"] { fill: none; }
.c-wa .c-icono { background: var(--wa); color: #fff; }
.c-texto { min-width: 0; }
.c-texto small { display: block; font: 500 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--claro-2); margin-bottom: 4px; }
.c-texto strong { display: block; font-weight: 500; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.c-ir { font-size: 13.5px; font-weight: 500; color: var(--azul-claro); white-space: nowrap; }
.c-wa .c-ir { color: #4ade80; }
.c-ir b { display: inline-block; font-weight: 500; transition: transform .25s var(--suave); }
a.c-accion:hover .c-ir b { transform: translateX(4px); }
@media (max-width: 640px) {
  .c-accion { grid-template-columns: 42px minmax(0, 1fr); row-gap: 8px; padding: 13px 14px; }
  .c-icono { width: 42px; height: 42px; }
  .c-ir { grid-column: 2; font-size: 13px; }
}
