/* =========================================================
   GTI Autoingeniería · Hoja de estilos del sitio
   Colores y tipografías: bloque :root (al inicio).
   ========================================================= */
/* Dirección visual: fotografía a sangre sobre negro con textura de metal cepillado, acentos azules de la marca, tipografía blanca expandida, ritmo de la referencia. Diseño de un solo tema (oscuro). */
:root {
  /* Colores de la marca (logo Auto Ingeniería GTI) */
  --ink: #050506;
  /* fondo principal: negro intenso */
  --ink-2: #0d0e0f;
  /* superficies */
  --ink-3: #16181a;
  /* tarjetas */
  --line: #24272b;
  /* divisiones */
  --paper: #f4f6f9;
  /* blanco para texto */
  --mute: #a3a8ae;
  /* texto secundario (gris de la llave) */
  --brand: #0558a0;
  /* azul GTI */
  --brand-2: #5a8bc6;
  /* azul claro del indicador */
  --brand-3: #0b426c;
  /* azul profundo del indicador */
  --steel: #a3a5aa;
  /* gris de la llave */
  --dom: #3d9af0;
  /* azul brillante: domicilios y botones de acción */
  --wa: #25d366;
  /* solo para WhatsApp */
  --f-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --wrap: 1200px;
  color-scheme: dark;
}

* {
  box-sizing: border-box
}

main {
  overflow-x: clip
}

.about>*,
.car-bottom>*,
.faq-grid>*,
.exp>*,
.ba-grid>*,
.car-grid>*,
.car-wrap>* {
  min-width: 0
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
}

body {
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

img {
  display: block;
  max-width: 100%
}

a {
  color: inherit
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px)
}

.kicker {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 12px
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-stretch: 112%;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -.01em
}

h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  font-weight: 800
}

.lead {
  color: var(--mute);
  max-width: 58ch
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 2px;
  font: 700 14px/1 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--paper);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
  cursor: pointer
}

.btn:active {
  transform: scale(.97)
}

.btn-solid {
  background: var(--paper);
  color: var(--ink)
}

.btn-ghost {
  background: transparent;
  color: var(--paper)
}

.btn-wa {
  background: var(--dom);
  border-color: var(--dom);
  color: #071a30
}

@media (hover:hover) and (pointer:fine) {
  .btn-ghost:hover {
    background: var(--paper);
    color: var(--ink)
  }

  .btn-solid:hover {
    background: #fff
  }
}

.btn svg {
  width: 18px;
  height: 18px
}

/* barra superior */
.topbar {
  border-bottom: 1px solid var(--line);
  font: 400 12px/1 var(--f-mono);
  color: var(--mute)
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  flex-wrap: wrap
}

.topbar a {
  text-decoration: none
}

/* cabecera */
.hd {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  transition: background-color 250ms ease, border-color 250ms ease;
  border-bottom: 1px solid transparent
}

.hd.is-scrolled {
  background: rgba(5, 5, 6, .86);
  backdrop-filter: blur(12px);
  border-color: var(--line)
}

.hd .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none
}

.logo b {
  font: 900 26px/1 var(--f-display);
  font-stretch: 125%;
  letter-spacing: -.02em;
  border: 2px solid var(--paper);
  padding: 5px 8px 4px
}

.logo span {
  font: 600 11px/1.2 var(--f-mono);
  letter-spacing: .24em;
  text-transform: uppercase
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600
}

.nav a {
  text-decoration: none;
  color: var(--mute);
  transition: color 150ms ease
}

.nav a:hover {
  color: var(--paper)
}

.menu-t {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  width: 44px;
  height: 44px;
  border-radius: 2px
}

@media (max-width:920px) {
  .nav {
    position: absolute;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out)
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto
  }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px
  }

  .menu-t {
    display: grid;
    place-items: center
  }

  .hd .btn {
    display: none
  }
}

/* hero */
.hero {
  position: relative;
  height: clamp(640px, 90vh, 820px);
  margin-top: -72px;
  overflow: hidden;
  background: var(--ink);
  touch-action: pan-y
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms ease, visibility 0s 900ms
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms ease
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.85) contrast(1.12) brightness(.72);
  transform: scale(1.08);
  transition: transform 7000ms linear
}

.slide.is-active img {
  transform: scale(1)
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 6, .92) 0%, rgba(5, 5, 6, .55) 48%, rgba(5, 5, 6, .15) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 30%)
}

.slide .wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 96px /* espacio reservado para los controles del slider */
}

.slide .kicker {
  color: var(--paper)
}

.slide .slide-t {
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: .92;
  font-weight: 900;
  font-stretch: 118%;
  text-transform: uppercase;
  margin: 22px 0 22px;
  max-width: 12ch
}

.slide .slide-t em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--paper);
  color: transparent
}

.slide p {
  max-width: 46ch;
  color: #cfd3d6;
  font-size: 17px;
  margin: 0 0 30px
}

.slide .row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.slide .kicker,
.slide .slide-t,
.slide p,
.slide .row {
  transform: translateY(14px);
  opacity: 0;
  transition: transform 700ms var(--ease-out), opacity 700ms var(--ease-out)
}

.slide.is-active .kicker,
.slide.is-active .slide-t,
.slide.is-active p,
.slide.is-active .row {
  transform: none;
  opacity: 1
}

.slide.is-active .slide-t {
  transition-delay: 80ms
}

.slide.is-active p {
  transition-delay: 160ms
}

.slide.is-active .row {
  transition-delay: 240ms
}

.hero-ui {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 28px
}

.hero-ui .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px
}

.dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.dots button {
  background: none;
  border: 0;
  color: var(--mute);
  padding: 12px 0 0;
  min-width: 120px;
  text-align: left;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  border-top: 2px solid var(--line);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease
}

.dots button[aria-selected=true] {
  color: var(--paper);
  border-color: var(--paper)
}

.arrows {
  display: flex;
  gap: 8px;
  align-items: center
}

.arrows .count {
  font: 500 13px/1 var(--f-mono);
  color: var(--mute);
  margin-right: 12px;
  font-variant-numeric: tabular-nums
}

.arrows button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 6, .5);
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease
}

.arrows button:active {
  transform: scale(.94)
}

.arrows button:hover {
  border-color: var(--paper)
}

.progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--paper);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 6
}

@media (max-width:720px) {
  .dots button {
    min-width: 0;
    flex: 1
  }

  .dots span {
    display: none
  }

  .dots {
    flex: 1
  }

  .arrows .count {
    display: none
  }
}

section {
  padding-block: clamp(72px, 10vw, 128px)
}

/* nosotros */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center
}

.about-pics {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
  align-items: end
}

.about-pics img {
  width: 100%;
  height: auto; /* la proporción la define aspect-ratio, no el atributo height */
  object-fit: cover;
  filter: grayscale(.6) contrast(1.05)
}

.about-pics .p1 {
  aspect-ratio: 3/4
}

.about-pics .p2 {
  aspect-ratio: 3/4;
  margin-bottom: -48px
}

.about h2 {
  margin: 18px 0 20px
}

.about .lead {
  margin: 0 0 16px
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 10px
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: baseline
}

.checks li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--paper);
  transform: rotate(45deg) translateY(-1px)
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.stat {
  padding: 28px 20px;
  border-left: 1px solid var(--line)
}

.stat:first-child {
  border-left: 0
}

.stat b {
  display: block;
  font: 800 clamp(34px, 4vw, 52px)/1 var(--f-display);
  font-stretch: 118%;
  font-variant-numeric: tabular-nums
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--mute);
  font: 500 12px/1.3 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase
}

@media (max-width:860px) {
  .about {
    grid-template-columns: 1fr
  }

  .about-pics .p2 {
    margin-bottom: 0
  }

  .stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .stat:nth-child(3) {
    border-left: 0
  }

  .stat:nth-child(n+3) {
    border-top: 1px solid var(--line)
  }
}

/* carro interactivo */
/* Fondo: textura de taller oscura + luz cenital + piso brillante */
.car-sec {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Fondo del taller como elemento propio para poder moverlo (parallax) */
.car-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  bottom: -12%;
  z-index: -2;
  background: url("../img/fotos/fondo-taller-torno.webp") center 45% / cover no-repeat;
  opacity: .62;
  will-change: transform;
  pointer-events: none;
}

.car-sec::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 50% 52%, rgba(225, 232, 240, .10) 0%, rgba(5, 5, 6, 0) 70%),
    radial-gradient(120% 75% at 50% 45%, rgba(5, 5, 6, .1) 0%, rgba(5, 5, 6, .75) 75%, var(--ink) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(5, 5, 6, .2) 20%, rgba(5, 5, 6, .25) 62%, var(--ink) 100%);
  pointer-events: none;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px
}

.sec-head h2 {
  margin-top: 16px;
  max-width: 18ch
}

.sec-head .lead {
  margin: 0;
  max-width: 44ch
}

/* Foto del carro: centrada, con reflejo en el piso y luz que se refracta en el negro */
.car-stage {
  position: relative;
  width: min(100%, 940px);
  margin: 0 auto 72px;
  padding-top: 8px;
}

/* luz cenital sobre el carro */
.car-stage::before {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  top: -18%;
  bottom: -30%;
  background:
    radial-gradient(34% 10% at 50% 82%, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(40% 32% at 50% 88%, rgba(40, 120, 210, .12) 0%, rgba(40, 120, 210, 0) 100%),
    radial-gradient(48% 44% at 50% 58%, rgba(5, 6, 7, .7) 0%, rgba(5, 6, 7, .35) 55%, rgba(5, 6, 7, 0) 100%),
    radial-gradient(46% 55% at 50% 35%, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* línea de piso brillante */
.car-stage::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: calc(var(--floor, 99%));
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 245, 242, 0) 0%, rgba(244, 245, 242, .28) 30%, rgba(244, 245, 242, .42) 50%, rgba(244, 245, 242, .28) 70%, rgba(244, 245, 242, 0) 100%);
  box-shadow: 0 0 18px 2px rgba(200, 220, 255, .10);
  pointer-events: none;
}

.car-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: saturate(.8) contrast(1.06) brightness(.9) drop-shadow(0 30px 38px rgba(0, 0, 0, .9)) drop-shadow(0 0 70px rgba(0, 0, 0, .75));
}

/* reflejo del carro en el piso */
.car-reflect {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: auto;
  transform: scaleY(-1);
  transform-origin: top;
  opacity: .36;
  filter: saturate(.6) brightness(.6) blur(1.5px);
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, 0) 32%);
  mask-image: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, 0) 32%);
  pointer-events: none;
  user-select: none;
}

/* Puntos de calor */
.hs {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hs-dot {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(5, 5, 6, .7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(244, 245, 242, .9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  display: grid;
  place-items: center;
  transition: transform 220ms var(--ease-out), background-color 200ms ease;
}

.hs-dot b {
  font: 500 10px/1 var(--f-mono);
  color: var(--paper);
  letter-spacing: .02em;
  transition: color 200ms ease;
}

.hs-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--paper);
  opacity: 0;
  animation: ping 2.6s var(--ease-out) infinite;
  animation-delay: var(--d, 0ms);
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: .8;
  }

  70%,
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.hs.is-active .hs-dot {
  background: var(--paper);
  transform: scale(1.18);
}

.hs.is-active .hs-dot b {
  color: var(--ink);
}

.hs-tag {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  width: max-content;
  max-width: 250px;
  text-align: left;
  transform: translate(-50%, 6px);
  transform-origin: bottom center;
  opacity: 0;
  pointer-events: none;
  background: rgba(244, 245, 242, .97);
  color: var(--ink);
  padding: 12px 14px 13px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
  transition: opacity 160ms ease, transform 200ms var(--ease-out);
}

.hs-t {
  display: block;
  font: 700 14px/1.2 var(--f-body);
  font-stretch: 108%;
  letter-spacing: 0;
}

.hs-tip {
  display: block;
  margin-top: 6px;
  font: 400 13px/1.45 var(--f-body);
  color: #3d4247;
  white-space: normal;
}

.hs-r .hs-tag {
  left: auto;
  right: -6px;
  transform: translate(0, 6px);
  transform-origin: bottom right;
}

.hs-l .hs-tag {
  left: -6px;
  transform: translate(0, 6px);
  transform-origin: bottom left;
}

.hs.is-active .hs-tag {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hs-r.is-active .hs-tag,
.hs-l.is-active .hs-tag {
  transform: none;
}

/* solo un tooltip visible a la vez: al pasar el mouse por otro punto, el activo se oculta */
.car-stage:hover .hs.is-active:not(:hover) .hs-tag {
  opacity: 0;
}

.hs:hover,
.hs:focus-visible {
  z-index: 5;
}

.hs.is-active {
  z-index: 4;
}

@media (hover:hover) and (pointer:fine) {
  .hs:hover .hs-tag {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .hs-r:hover .hs-tag,
  .hs-l:hover .hs-tag {
    transform: none;
  }

  .hs:hover .hs-dot {
    transform: scale(1.12);
  }
}

.hs:focus-visible .hs-tag {
  opacity: 1;
}

@media (prefers-reduced-motion:reduce) {
  .hs-dot::after {
    animation: none;
  }
}

/* Lista + ficha debajo de la foto */
.car-bottom {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.car-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  align-content: start;
}

.car-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  text-align: left;
  padding: 14px 0;
  font: 600 15px/1.2 var(--f-body);
  cursor: pointer;
  transition: color 150ms ease, transform 160ms var(--ease-out);
}

.car-list button:active {
  transform: scale(.98);
}

.car-list button .n {
  font: 500 11px/1 var(--f-mono);
  color: #5d6369;
  width: 22px;
}

.car-list button.is-active {
  color: var(--paper);
}

.car-list button.is-active .n {
  color: var(--paper);
}

@media (hover:hover) and (pointer:fine) {
  .car-list button:hover {
    color: var(--paper);
  }
}

.car-panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--paper);
  padding: 30px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.car-panel.is-swap>* {
  animation: swap 320ms var(--ease-out) both;
}

@keyframes swap {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.car-panel .cat {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
}

.car-panel h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  margin: 12px 0;
}

.car-panel p {
  color: #c3c7ca;
  margin: 0 0 18px;
  max-width: 56ch;
}

.car-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.car-panel li {
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-size: 13px;
}

.car-panel .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width:920px) {
  .car-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px) {
  .hs {
    width: 36px;
    height: 36px;
  }

  .hs-dot {
    width: 20px;
    height: 20px;
  }

  .hs-dot b {
    font-size: 8px;
  }

  /* En celular el nombre se lee en la lista y en la ficha */
  .hs.is-active .hs-tag {
    opacity: 0;
  }

  .car-list {
    grid-template-columns: 1fr;
  }

  .car-panel {
    padding: 22px;
  }
}

/* =========================================================
   SERVICIOS · tarjetas con desplazamiento horizontal
   ========================================================= */
.svc-head-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  max-width: 44ch;
}

.svc-head-r .lead {
  margin: 0;
}

.svc-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-track {
  width: 120px;
  height: 2px;
  background: var(--line);
  margin-right: 12px;
  overflow: hidden;
}

.svc-track span {
  display: block;
  height: 100%;
  background: var(--paper);
  transform-origin: left;
  transform: scaleX(.15);
  transition: transform 300ms var(--ease-out);
}

.svc-ctrl button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease, opacity 200ms ease;
}

.svc-ctrl button:active {
  transform: scale(.94);
}

.svc-ctrl button:disabled {
  opacity: .3;
  cursor: default;
}

@media (hover:hover) and (pointer:fine) {
  .svc-ctrl button:not(:disabled):hover {
    border-color: var(--paper);
  }
}

.svc-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  outline-offset: 6px;
}

.svc-row::-webkit-scrollbar {
  display: none;
}

.svc-card {
  scroll-snap-align: start;
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.svc-media {
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: var(--ink);
}

.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.78);
  transition: transform 700ms var(--ease-out), filter 400ms ease;
}

.svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--ink-2) 0%, rgba(13, 14, 15, .35) 38%, transparent 62%);
  pointer-events: none;
}

.svc-num {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 8px;
  font: 900 clamp(56px, 26cqi, 92px)/.8 var(--f-display);
  font-stretch: 118%;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 245, 242, .55);
  letter-spacing: -.02em;
}

.svc-tag {
  position: absolute;
  z-index: 2;
  left: 22px;
  top: 20px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  background: rgba(5, 5, 6, .72);
  backdrop-filter: blur(6px);
  padding: 8px 10px;
}

.svc-body {
  padding: 4px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Títulos: el tamaño se calcula con el ancho de la tarjeta (container query),
   así "ELECTRICIDAD" nunca se corta y todas las tarjetas quedan iguales */
.svc-card {
  container-type: inline-size;
}

.svc-body h3 {
  font-size: clamp(18px, 8.4cqi, 30px);
  line-height: 1.02;
  font-weight: 900;
  font-stretch: 100%;
  text-transform: uppercase;
  letter-spacing: -.01em;
  min-height: calc(3 * 1.02em);
  overflow-wrap: break-word;
  hyphens: manual;
}

.svc-body>p:not(.svc-count) {
  min-height: calc(4 * 1.55em);
  color: var(--mute);
  font-size: 15px;
  line-height: 1.55;
  margin: 14px 0 18px;
}

.svc-body>p.svc-count {
  margin: 0 0 6px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6b7176;
}

.svc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
}

.svc-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font: 600 13px/1.3 var(--f-body);
  font-stretch: 108%;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.svc-cta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font: 700 clamp(11px, 4.6cqi, 13px)/1 var(--f-body);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out);
}

.svc-cta i {
  font-style: normal;
  font-size: 18px;
  transition: transform 200ms var(--ease-out);
}

.svc-cta:active {
  transform: scale(.98);
}

@media (hover:hover) and (pointer:fine) {
  .svc-card:hover .svc-media img {
    transform: scale(1.04);
    filter: grayscale(1) contrast(1.15) brightness(.95);
  }

  .svc-cta:hover i {
    transform: translateX(4px);
  }
}

@media (max-width:1100px) {
  .svc-row {
    grid-auto-columns: calc((100% - 40px) / 3);
  }
}

@media (max-width:860px) {
  .svc-head-r {
    align-items: flex-start;
  }

  .svc-row {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width:560px) {
  .svc-row {
    grid-auto-columns: 85%;
  }

  .svc-track {
    width: 80px;
  }
}

/* marcas */
.brands {
  padding-block: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden
}

.brands-in {
  display: flex;
  align-items: center;
  gap: 32px
}

.brands-in .kicker {
  flex: none
}

.mq {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  flex: 1;
  min-width: 0
}

.mq-track {
  display: flex;
  gap: 56px;
  list-style: none;
  margin: 0;
  padding: 0 28px;
  flex: none;
  animation: mq 40s linear infinite
}

.mq-track li {
  font: 800 28px/1 var(--f-display);
  font-stretch: 118%;
  text-transform: uppercase;
  color: #c9ccc9;
  white-space: nowrap;
  letter-spacing: .02em
}

.mq-track li:nth-child(3n) {
  color: transparent;
  -webkit-text-stroke: 1px #8f959a
}

@keyframes mq {
  to {
    transform: translateX(-100%)
  }
}

@media (hover:hover) {
  .mq:hover .mq-track {
    animation-play-state: paused
  }
}

@media (prefers-reduced-motion:reduce) {
  .mq-track {
    animation: none;
    flex-wrap: wrap
  }

  .mq-track[aria-hidden] {
    display: none
  }
}

@media (max-width:720px) {
  .brands-in {
    flex-direction: column;
    align-items: flex-start
  }
}

/* antes y después */
.ba-sec {
  background: var(--ink-2)
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center
}

.ba-grid h2 {
  margin: 16px 0 18px
}

.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: s
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: s
}

.steps li::before {
  content: counter(s, decimal-leading-zero);
  font: 500 12px/1.6 var(--f-mono);
  color: var(--mute)
}

.ba {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  user-select: none;
  background: var(--ink);
  max-width: 100%
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.ba [data-ba-top] {
  z-index: 1
}

.ba-h {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--paper);
  z-index: 2;
  transform: translateX(-1px);
  pointer-events: none
}

.ba-h::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font: 700 16px/1 var(--f-body);
  letter-spacing: 4px
}

.ba input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
  margin: 0
}

.ba input:focus-visible~.ba-h::after {
  outline: 2px solid var(--paper);
  outline-offset: 4px
}

.ba-lab {
  position: absolute;
  top: 16px;
  z-index: 2;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  background: rgba(5, 5, 6, .75);
  padding: 8px 10px;
  pointer-events: none
}

.ba-lab.l {
  left: 16px
}

.ba-lab.r {
  right: 16px
}

.ba-note {
  margin-top: 12px;
  color: #6b7176;
  font: 400 12px/1.4 var(--f-mono)
}

@media (max-width:860px) {
  .ba-grid {
    grid-template-columns: 1fr
  }
}

/* testimonios */
.testis-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap
}

.testis-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, calc((100% - 40px)/3));
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px
}

.testis-track::-webkit-scrollbar {
  display: none
}

.testi {
  margin: 0;
  scroll-snap-align: start;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px
}

.testi .stars {
  letter-spacing: 4px;
  font-size: 14px
}

.testi blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #d6d9db;
  flex: 1
}

.testi figcaption {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px
}

.testi .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--f-body)
}

.testi b {
  display: block;
  font-size: 14px
}

.testi small {
  color: var(--mute);
  font: 400 12px/1.3 var(--f-mono)
}

.sample {
  font: 400 11px/1 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b7176;
  border: 1px dashed #3a3f44;
  padding: 6px 8px
}

@media (max-width:720px) {
  .testis-track {
    grid-auto-columns: 86%
  }
}

/* CTA */
.cta {
  background: var(--paper);
  color: var(--ink);
  padding-block: 56px
}

.cta .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap
}

.cta h2 {
  font-size: clamp(26px, 3.4vw, 40px)
}

.cta p {
  margin: 8px 0 0;
  color: #4a4f54
}

.cta .btn-solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink)
}

/* experiencia */
.exp-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px
}

.exp-head .kicker {
  justify-content: center
}

.exp-head .kicker::before {
  display: none
}

.exp-head h2 {
  margin: 16px 0 18px
}

.exp-head .lead {
  margin-inline: auto
}

.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line)
}

.why div {
  background: var(--ink);
  padding: 30px 26px
}

.why h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px
}

.why p {
  color: var(--mute);
  margin: 0;
  font-size: 15px
}

@media (max-width:860px) {
  .why {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:520px) {
  .why {
    grid-template-columns: 1fr
  }
}

.showcar {
  position: relative;
  height: clamp(380px, 56vw, 620px);
  overflow: hidden;
  padding: 0
}

.showcar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  filter: grayscale(1) contrast(1.15) brightness(.8)
}

.showcar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 30%, transparent 55%, var(--ink) 100%)
}

.showcar .cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 40px
}

.showcar .cap .big {
  font: 800 clamp(28px, 5vw, 64px)/1 var(--f-display);
  font-stretch: 122%;
  text-transform: uppercase;
  margin: 0;
  max-width: 16ch
}

/* faq */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 80px)
}

.faq-grid h2 {
  margin: 16px 0 18px
}

.qa {
  border-bottom: 1px solid var(--line)
}

.qa h3 {
  margin: 0;
  font-size: inherit;
  font-stretch: 100%
}

.qa button {
  width: 100%;
  background: none;
  border: 0;
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 22px 0;
  font: 600 17px/1.35 var(--f-body);
  cursor: pointer
}

.qa i {
  flex: none;
  width: 14px;
  height: 14px;
  position: relative
}

.qa i::before,
.qa i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  background: var(--paper);
  transition: transform 250ms var(--ease-out)
}

.qa i::after {
  transform: rotate(90deg)
}

.qa button[aria-expanded=true] i::after {
  transform: rotate(0)
}

.qa-p {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease-out)
}

.qa-p>div {
  overflow: hidden
}

.qa-p p {
  margin: 0 0 22px;
  color: var(--mute);
  max-width: 62ch
}

.qa button[aria-expanded=true]+.qa-p,
.qa h3:has(button[aria-expanded=true])+.qa-p {
  grid-template-rows: 1fr
}

@media (max-width:860px) {
  .faq-grid {
    grid-template-columns: 1fr
  }
}

/* galería */
.gal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 8px
}

.gi {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--ink-2);
  overflow: hidden;
  cursor: zoom-in
}

.gi:nth-child(1),
.gi:nth-child(8) {
  grid-row: span 2
}

.gi:nth-child(5) {
  grid-column: span 2
}

.gi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: filter 400ms ease, transform 600ms var(--ease-out)
}

.gi span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(5, 5, 6, .8);
  padding: 7px 9px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out)
}

@media (hover:hover) and (pointer:fine) {
  .gi:hover img {
    filter: grayscale(0);
    transform: scale(1.03)
  }

  .gi:hover span {
    opacity: 1;
    transform: none
  }
}

@media (max-width:860px) {
  .gal {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px
  }

  .gi:nth-child(5) {
    grid-column: auto
  }
}

dialog.lb {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  width: 100%;
  color: var(--paper)
}

dialog.lb::backdrop {
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(4px)
}

dialog.lb[open] {
  animation: lbIn 240ms var(--ease-out)
}

@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(.97)
  }
}

.lb img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--ink)
}

.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  font: 400 12px/1 var(--f-mono)
}

.lb-bar div {
  display: flex;
  gap: 8px
}

.lb-bar button {
  background: none;
  border: 1px solid #444;
  color: var(--paper);
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  cursor: pointer
}

/* footer */
.ft {
  border-top: 1px solid var(--line);
  padding-block: 64px 32px;
  color: var(--mute);
  font-size: 15px
}

.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px
}

.ft h4 {
  color: var(--paper);
  font: 600 12px/1 var(--f-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 18px
}

.ft ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px
}

.ft a {
  text-decoration: none
}

.ft a:hover {
  color: var(--paper)
}

.ft-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 400 12px/1.4 var(--f-mono)
}

@media (max-width:860px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:520px) {
  .ft-grid {
    grid-template-columns: 1fr
  }
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform 160ms var(--ease-out)
}

.wa-float:active {
  transform: scale(.94)
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff
}

/* aparición */
[data-rv] {
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out)
}

.rv-pre {
  opacity: 0;
  transform: translateY(24px)
}

/* Enlaces hacia las páginas internas */
.row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.svc-all {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  font: 600 13px/1 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 200ms ease;
}

.svc-all i {
  font-style: normal;
  transition: transform 200ms var(--ease-out);
}

@media (hover:hover) and (pointer:fine) {
  .svc-all:hover {
    border-color: var(--paper);
  }

  .svc-all:hover i {
    transform: translateX(3px);
  }
}

@media (max-width:560px) {
  .svc-ctrl {
    flex-wrap: wrap;
  }

  .svc-all {
    width: 100%;
    margin: 0 0 8px;
    justify-content: flex-start;
  }
}

/* =========================================================
   EFECTOS (js/efectos.js)
   ========================================================= */

/* Grano de película en toda la página: textura cruda de taller */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Títulos: cada palabra sube desde abajo, una tras otra */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}

.split .wi {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 760ms cubic-bezier(.2, .9, .25, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.split.is-in .wi {
  transform: none;
}

/* Etiquetas: aparecen "a golpes", como un trinquete */
.kicker.k-anim {
  clip-path: inset(-.6em 100% -.6em 0);
}

.kicker.k-anim.is-in {
  clip-path: inset(-.6em -1em -.6em 0);
  transition: clip-path 640ms steps(9, end) 120ms;
}

/* Parallax: las fotos se agrandan un poco para no mostrar bordes al moverse */
.px {
  will-change: transform;
  transform: scale(var(--pxs, 1));
}

/* Engranajes que giran con el scroll */
.car-sec,
.has-gears,
.pg-hero {
  position: relative;
}

.has-gears {
  overflow: hidden;
}

.gears {
  position: absolute;
  z-index: 0;
  right: -70px;
  top: 40px;
  width: 420px;
  height: 420px;
  pointer-events: none;
  opacity: .5;
}

.gears-l {
  right: auto;
  left: -120px;
  top: auto;
  bottom: -60px;
  opacity: .35;
}

.pg-hero .gears {
  top: 50%;
  margin-top: -210px;
  right: -40px;
  opacity: .55;
}

.gear {
  position: absolute;
  display: block;
  will-change: transform;
}

.gear svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(244, 245, 242, .16);
  stroke-width: 1.4;
}

.g1 {
  width: 300px;
  height: 300px;
  right: 0;
  top: 0;
}

/* g2 y g3 encajan en los dientes de g1 */
.g2 {
  width: 172px;
  height: 172px;
  right: 252px;
  top: 214px;
}

.g3 {
  width: 116px;
  height: 116px;
  right: 20px;
  top: 282px;
}

.car-sec>.wrap,
.has-gears>.wrap,
.pg-hero>.wrap {
  position: relative;
  z-index: 1;
}

@media (max-width:860px) {
  .gears {
    width: 260px;
    height: 260px;
    right: -90px;
    opacity: .35;
    transform: scale(.62);
    transform-origin: top right;
  }
}

/* Tornillos en las esquinas */
.has-bolts {
  position: relative;
}

.bolt {
  position: absolute;
  z-index: 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a3a9ae 0%, #5b6166 45%, #24282b 100%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .55);
  pointer-events: none;
}

.bolt::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 50%;
  height: 1.5px;
  margin-top: -.75px;
  background: rgba(10, 11, 12, .9);
  transform: rotate(var(--r, 30deg));
  transition: transform 500ms var(--ease-out);
}

.bolt-tl {
  top: 8px;
  left: 8px;
}

.bolt-tr {
  top: 8px;
  right: 8px;
}

.bolt-bl {
  bottom: 8px;
  left: 8px;
}

.bolt-br {
  bottom: 8px;
  right: 8px;
}

/* al pasar el mouse por la tarjeta, los tornillos "se aprietan" */
@media (hover:hover) and (pointer:fine) {
  .has-bolts:hover .bolt::after {
    transform: rotate(calc(var(--r, 30deg) + 180deg));
  }
}

/* en la tarjeta de servicio los tornillos de arriba van sobre la foto */
.svc-card .bolt-tl {
  display: none;
}

@media (prefers-reduced-motion:reduce) {
  .split .wi {
    transform: none;
    transition: none;
  }

  .kicker.k-anim {
    clip-path: none;
  }
}

/* =========================================================
   MENÚ · submenú de Servicios (categorías y subservicios)
   Computador: panel horizontal bajo la cabecera.
   Celular: lista vertical desplegable dentro del menú.
   ========================================================= */
.nav {
  align-items: center;
}

.nav a[aria-current="page"] {
  color: var(--paper);
}

.nav-mega {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-mega-t {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mute);
  cursor: pointer;
  transition: color 150ms ease;
}

.nav-mega-t svg {
  transition: transform 220ms var(--ease-out);
}

.nav-mega.is-open .nav-mega-t,
.nav-mega.is-open .nav-mega-link {
  color: var(--paper);
}

.nav-mega.is-open .nav-mega-t svg {
  transform: rotate(180deg);
}

/* la cabecera se vuelve sólida mientras el submenú está abierto */
.hd:has(.nav-mega.is-open) {
  background: rgba(5, 5, 6, .97);
  border-color: var(--line);
}

.mega-acc {
  display: none;
}

@media (min-width:921px) {
  .mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(5, 5, 6, .97);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s 200ms;
  }

  .nav-mega.is-open .mega {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  }

  .mega-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    padding-block: 34px 26px;
  }

  .mega-col {
    min-width: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  }

  .nav-mega.is-open .mega-col {
    opacity: 1;
    transform: none;
  }

  .nav-mega.is-open .mega-col:nth-child(2) { transition-delay: 30ms; }
  .nav-mega.is-open .mega-col:nth-child(3) { transition-delay: 60ms; }
  .nav-mega.is-open .mega-col:nth-child(4) { transition-delay: 90ms; }
  .nav-mega.is-open .mega-col:nth-child(5) { transition-delay: 120ms; }

  .mega-cat {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 10px;
    min-height: 72px;
  }

  .nav .mega-cat a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--paper);
    font: 800 15px/1.2 var(--f-body);
    text-transform: uppercase;
    letter-spacing: .01em;
  }

  .mega-cat .n {
    font: 500 11px/1 var(--f-mono);
    letter-spacing: .14em;
    color: var(--mute);
  }

  .mega-subs ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav .mega-subs a {
    display: block;
    padding: 7px 0;
    font: 500 14px/1.35 var(--f-body);
    color: var(--mute);
    transition: color 150ms ease, transform 200ms var(--ease-out);
  }

  .nav .mega-subs a:hover {
    color: var(--paper);
    transform: translateX(3px);
  }

  .mega-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-block: 18px 22px;
  }

  .mega-foot p {
    margin: 0;
    color: var(--mute);
    font-size: 14px;
    font-weight: 400;
  }
}

.mega-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav .mega-all {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--paper);
  font: 600 13px/1 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mega-all i {
  font-style: normal;
}

.nav .mega-actions .btn {
  color: var(--ink);
  min-height: 42px;
  font-size: 12px;
  padding: 0 18px;
}

/* ---------- Celular: menú vertical con categorías y subcategorías ---------- */
@media (max-width:920px) {
  .nav {
    align-items: stretch;
    max-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-mega {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
  }

  .nav .nav-mega-link {
    flex: 1;
    border-bottom: 0;
  }

  .nav-mega-t {
    width: 44px;
    height: 44px;
    border-left: 1px solid var(--line);
    color: var(--paper);
  }

  .mega {
    flex-basis: 100%;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 260ms var(--ease-out);
  }

  .nav-mega.is-open .mega {
    grid-template-rows: 1fr;
  }

  .mega-in {
    overflow: hidden;
    min-height: 0;
    padding-inline: 0;
  }

  .mega-grid {
    border-top: 1px solid var(--line);
    padding-left: 12px;
  }

  .mega-col {
    border-bottom: 1px solid var(--line);
  }

  .mega-cat {
    display: flex;
    align-items: center;
  }

  .nav .mega-cat a {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: baseline;
    border: 0;
    padding: 13px 0;
    font-size: 15px;
    color: var(--paper);
  }

  .mega-cat .n {
    font: 500 11px/1 var(--f-mono);
    color: var(--mute);
  }

  .mega-acc {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .mega-acc i {
    position: relative;
    width: 12px;
    height: 12px;
  }

  .mega-acc i::before,
  .mega-acc i::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    height: 1.5px;
    background: var(--paper);
    transition: transform 220ms var(--ease-out);
  }

  .mega-acc i::after {
    transform: rotate(90deg);
  }

  .mega-col.is-open .mega-acc i::after {
    transform: rotate(0);
  }

  .mega-subs {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 240ms var(--ease-out);
  }

  .mega-col.is-open .mega-subs {
    grid-template-rows: 1fr;
  }

  .mega-subs ul {
    overflow: hidden;
    min-height: 0;
    list-style: none;
    margin: 0;
    padding: 0 0 0 23px;
  }

  .nav .mega-subs a {
    display: block;
    border: 0;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--mute);
  }

  .mega-subs li:last-child a {
    padding-bottom: 16px;
  }

  .mega-foot {
    padding: 16px 0 6px 12px;
  }

  .mega-foot p {
    margin: 0 0 12px;
    color: var(--mute);
    font-size: 13px;
    font-weight: 400;
  }

  .mega-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav .mega-all {
    border: 0;
    padding: 6px 0;
  }

  .nav .mega-actions .btn {
    display: inline-flex;
    justify-content: center;
    border-bottom: 1px solid var(--paper);
    padding: 0 18px;
  }
}

/* el contenedor del submenú no hereda el flex de la cabecera */
.hd .mega-in {
  display: block;
  min-height: 0;
}

/* enlaces dentro de las tarjetas de servicio */
.svc-body h3 a {
  color: inherit;
  text-decoration: none;
}

.svc-count a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.svc-count a:hover {
  border-color: var(--paper);
}


/* =========================================================
   PÁGINAS INTERNAS
   ========================================================= */
/* =========================================================
   GTI Autoingeniería · Nocturna
   Estilos de las páginas internas: nosotros.html y servicios.html
   (usan además css/propuesta-a-nocturna.css)
   ========================================================= */

/* ---------- Encabezado de página ---------- */
/* igual que en el inicio: la cabecera queda sobre el encabezado de la página */
.pg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -72px;
  padding-block: calc(72px + clamp(64px, 9vw, 116px)) clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/fotos/fondo-taller-torno.webp") center 45% / cover no-repeat;
  opacity: .5;
}

.pg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(5, 5, 6, .75) 50%, rgba(5, 5, 6, .4) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(5, 5, 6, 0) 40%);
}

.crumbs {
  display: flex;
  gap: 10px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .08em;
  color: var(--mute);
  margin-bottom: 28px;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--paper);
}

.crumbs [aria-current] {
  color: var(--paper);
}

.pg-hero h1 {
  font-size: clamp(38px, 6.2vw, 84px);
  line-height: .95;
  font-weight: 900;
  font-stretch: 112%;
  text-transform: uppercase;
  max-width: 16ch;
  margin: 20px 0 22px;
}

.pg-hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
}

.pg-hero .lead {
  font-size: 18px;
  margin: 0;
}

/* ---------- Nosotros ---------- */
.nos-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.nos-grid>* {
  min-width: 0;
}

.nos-grid h2 {
  margin: 18px 0 20px;
}

.nos-grid .lead {
  margin: 0 0 16px;
}

.nos-pic {
  position: relative;
}

.nos-pic img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  filter: grayscale(.7) contrast(1.06);
}

.nos-badge {
  position: absolute;
  right: -20px;
  bottom: -20px;
  background: var(--paper);
  color: var(--ink);
  padding: 22px 24px;
  min-width: 180px;
}

.nos-badge b {
  display: block;
  font: 900 56px/.9 var(--f-display);
  font-stretch: 118%;
}

.nos-badge span {
  font: 500 11px/1.3 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nos-stats {
  padding-block: 0;
}

.nos-stats .stats {
  margin-top: 0;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mv {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
}

.mv h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  margin: 16px 0 14px;
}

.mv p:last-child {
  color: var(--mute);
  margin: 0;
}

.nos-proc {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}

.proc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}

.proc li {
  padding: 26px 22px 6px 0;
  position: relative;
}

.proc li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--paper);
  transform: rotate(45deg);
}

.pn {
  font: 900 44px/1 var(--f-display);
  font-stretch: 118%;
  color: transparent;
  -webkit-text-stroke: 1px var(--mute);
}

.proc h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 14px 0 8px;
}

.proc p {
  color: var(--mute);
  margin: 0;
  font-size: 15px;
}

.inst {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
}

.inst figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}

.inst .i1 {
  grid-row: span 2;
}

.inst .i4 {
  grid-column: span 2;
}

.inst img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: transform 700ms var(--ease-out), filter 400ms ease;
}

.inst figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(5, 5, 6, .8);
  padding: 8px 10px;
}

@media (hover:hover) and (pointer:fine) {
  .inst figure:hover img {
    transform: scale(1.03);
    filter: grayscale(.2) contrast(1.05);
  }
}

@media (max-width:980px) {
  .proc {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
  }

  .proc li {
    border-top: 1px solid var(--line);
  }
}

@media (max-width:860px) {
  .nos-grid,
  .mv-grid {
    grid-template-columns: 1fr;
  }

  .nos-badge {
    right: 12px;
    bottom: 12px;
  }

  .inst {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 160px 160px;
  }

  .inst .i1 {
    grid-row: auto;
    grid-column: span 2;
  }

  .inst .i4 {
    grid-column: span 2;
  }
}

@media (max-width:520px) {
  .proc {
    grid-template-columns: 1fr;
  }
}

/* ---------- Servicios ---------- */
.sp-nav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 72px);
  z-index: 40;
  background: rgba(5, 5, 6, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.sp-nav .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sp-nav .wrap::-webkit-scrollbar {
  display: none;
}

.sp-nav a {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  text-decoration: none;
  color: var(--mute);
  font: 600 14px/1 var(--f-body);
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.sp-nav a .n {
  font: 500 11px/1 var(--f-mono);
  color: #5d6369;
}

.sp-nav a.is-active {
  color: var(--paper);
  border-color: var(--paper);
}

.sp-nav a:hover {
  color: var(--paper);
}

.sp-cat {
  padding-block: clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 140px;
}

.sp-cat:last-child {
  border-bottom: 0;
}

.sp-head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: 48px;
}

.sp-head>* {
  min-width: 0;
}

.sp-cat:nth-child(even) .sp-media {
  order: 2;
}

.sp-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.sp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.8);
}

.sp-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 6, .85) 0%, rgba(5, 5, 6, 0) 55%);
}

.sp-num {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 10px;
  font: 900 clamp(72px, 9vw, 128px)/.8 var(--f-display);
  font-stretch: 118%;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 245, 242, .6);
}

.sp-intro h2 {
  margin: 16px 0 18px;
  text-transform: uppercase;
  font-stretch: 105%;
  font-size: clamp(30px, 4vw, 50px);
  overflow-wrap: break-word;
}

.sp-intro .lead {
  margin: 0 0 22px;
}

.sp-sint {
  margin: 0 0 26px;
}

.sp-sint-t {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 12px;
}

.sp-sint ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-sint li {
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-size: 13px;
}

.sp-subs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
  border-top: 1px solid var(--line);
}

.sp-sub {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.sp-sub>* {
  min-width: 0;
}

.sp-subn {
  font: 500 12px/1.6 var(--f-mono);
  color: var(--mute);
}

.sp-sub h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
}

.sp-sub p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.55;
}

.sp-wa {
  align-self: center;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font: 600 12px/1 var(--f-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 10px 12px;
  white-space: nowrap;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}

.sp-wa i {
  font-style: normal;
}

.sp-wa:active {
  transform: scale(.97);
}

@media (hover:hover) and (pointer:fine) {
  .sp-wa:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
  }
}

@media (max-width:920px) {
  .sp-head {
    grid-template-columns: 1fr;
  }

  .sp-cat:nth-child(even) .sp-media {
    order: 0;
  }

  .sp-subs {
    grid-template-columns: 1fr;
  }
}

@media (max-width:520px) {
  .sp-sub {
    grid-template-columns: 40px 1fr;
  }

  .sp-wa {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }
}

/* al llegar desde el submenú, el subservicio queda visible bajo la cabecera y la barra de categorías */
.sp-sub {
  scroll-margin-top: 150px;
}

.sp-sub h3 a {
  color: inherit;
  text-decoration: none;
}

.sp-sub h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   PÁGINAS DE CATEGORÍA (servicio-*.html)
   ========================================================= */

/* Encabezado con la foto de la categoría */
.cat-hero::before {
  display: none;
}

.cat-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cat-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.5);
}

.cat-hero h1 {
  max-width: 14ch;
}

.cat-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* Síntomas */
.cat-sint {
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.cat-sint-in {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cat-sint .kicker {
  margin: 0;
}

.cat-sint ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-sint li {
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 14px;
}

/* Índice fijo de subservicios */
.cat-index {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 72px);
  z-index: 40;
  background: rgba(5, 5, 6, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.cat-index .wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-index .wrap::-webkit-scrollbar {
  display: none;
}

.cat-index-t {
  flex: none;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-right: 14px;
}

.cat-index a {
  flex: none;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 17px 12px;
  text-decoration: none;
  color: var(--mute);
  font: 600 14px/1 var(--f-body);
  transition: color 150ms ease;
}

.cat-index a .n {
  font: 500 11px/1 var(--f-mono);
  color: #5d6369;
}

.cat-index a:hover {
  color: var(--paper);
}

/* Cada subservicio */
.cs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 130px;
}

.cs>* {
  min-width: 0;
}

.cs:nth-child(even) .cs-media {
  order: 2;
}

.cs-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.cs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.82);
  transition: transform 800ms var(--ease-out), filter 400ms ease;
}

.cs-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 6, .8) 0%, rgba(5, 5, 6, 0) 50%);
  pointer-events: none;
}

.cs-code {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 12px;
  font: 900 clamp(56px, 7vw, 96px)/.8 var(--f-display);
  font-stretch: 118%;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 245, 242, .65);
}

/* sin foto: placa de taller con el número */
.cs-media-num {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background:
    repeating-linear-gradient(135deg, rgba(244, 245, 242, .035) 0 2px, transparent 2px 14px),
    var(--ink-2);
  border: 1px solid var(--line);
}

.cs-media-num::after {
  display: none;
}

.cs-big {
  font: 900 clamp(80px, 11vw, 150px)/.8 var(--f-display);
  font-stretch: 118%;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 245, 242, .5);
  order: 2;
  align-self: flex-end;
}

.cs-cat {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
}

.cs-body h2 {
  margin: 16px 0 18px;
  font-size: clamp(28px, 3.6vw, 46px);
  text-transform: uppercase;
  font-stretch: 105%;
  overflow-wrap: break-word;
}

.cs-desc {
  color: #c3c7ca;
  font-size: 17px;
  margin: 0 0 20px;
  max-width: 54ch;
}

.cs-extra {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-left: 2px solid var(--paper);
  background: var(--ink-2);
  color: var(--mute);
  font-size: 15px;
  max-width: 54ch;
}

.cs-extra span {
  display: block;
  margin-bottom: 6px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
}

.cs-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--paper);
  text-decoration: none;
  font: 700 13px/1 var(--f-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}

.cs-wa i {
  font-style: normal;
  transition: transform 200ms var(--ease-out);
}

.cs-wa:active {
  transform: scale(.97);
}

@media (hover:hover) and (pointer:fine) {
  .cs-wa:hover {
    background: var(--paper);
    color: var(--ink);
  }

  .cs-wa:hover i {
    transform: translateX(3px);
  }

  .cs-photo:hover .cs-media img {
    transform: scale(1.03);
    filter: grayscale(.4) contrast(1.08) brightness(.9);
  }
}

/* Otras especialidades */
.cat-others .sec-head {
  align-items: flex-end;
}

.co-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.co {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}

.co-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.co-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.7);
  transition: transform 700ms var(--ease-out);
}

.co-n {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font: 900 54px/.8 var(--f-display);
  font-stretch: 118%;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 245, 242, .6);
}

.co-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.co-body b {
  font: 800 17px/1.2 var(--f-body);
  text-transform: uppercase;
}

.co-body span {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

.co-body i {
  font-style: normal;
}

@media (hover:hover) and (pointer:fine) {
  .co:hover {
    border-color: var(--paper);
    transform: translateY(-3px);
  }

  .co:hover .co-media img {
    transform: scale(1.04);
  }
}

@media (max-width:980px) {
  .co-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:860px) {
  .cs {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cs:nth-child(even) .cs-media {
    order: 0;
  }

  .cs-media-num {
    aspect-ratio: auto;
    min-height: 150px;
    padding: 20px;
  }

  .cs-big {
    font-size: 84px;
  }
}

@media (max-width:520px) {
  .co-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .co-n {
    font-size: 38px;
  }

  .co-body {
    padding: 12px;
  }

  .co-body b {
    font-size: 13px;
  }
}

.cat-others .mega-all {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
  font: 600 13px/1 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.cat-others .mega-all:hover {
  border-color: var(--paper);
}

/* =========================================================
   ACCESIBILIDAD Y PÁGINA 404
   ========================================================= */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
  font: 700 14px/1 var(--f-body);
  text-decoration: none;
  transition: top 160ms var(--ease-out);
}

.skip:focus {
  top: 12px;
}

.nf {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.nf>.wrap {
  width: 100%;
}

/* =========================================================
   PRUEBA: fotos a color en el inicio
   Se activa con class="fotos-color" en el <body> de index.html.
   Para volver a blanco y negro: quitar esa clase (este bloque puede quedarse).
   Se conserva el oscurecido para que los textos sobre fotos se lean.
   ========================================================= */
.fotos-color .slide img { filter: contrast(1.05) brightness(.62) }
.fotos-color .about-pics img { filter: none }
.fotos-color .svc-media img { filter: brightness(.85) }
.fotos-color .showcar img { filter: brightness(.85) }
.fotos-color .gi img { filter: none }
@media (hover:hover) and (pointer:fine) {
  .fotos-color .svc-card:hover .svc-media img { filter: brightness(1) }
  .fotos-color .gi:hover img { filter: none }
}


.cat-faq { border-top: 1px solid var(--line) }

/* foto horizontal del taller: más sombra abajo a la izquierda para leer el título */
.showcar::after {
  background:
    linear-gradient(180deg, var(--ink) 0%, transparent 28%, transparent 45%, rgba(5, 5, 6, .82) 85%, var(--ink) 100%),
    linear-gradient(90deg, rgba(5, 5, 6, .65) 0%, rgba(5, 5, 6, 0) 60%);
}

/* =========================================================
   DOMICILIOS (servicio a domicilio en Bogotá y alrededores)
   Barra superior, enlace y botón en la cabecera, diapositiva,
   banner del inicio, franja en las demás páginas y etiqueta
   del botón flotante. Usa el azul brillante de la marca (--dom).
   ========================================================= */
.ico-wa { fill: currentColor; flex: none }

/* barra superior */
.tb-dom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  cursor: pointer;
}
.tb-dom b {
  background: var(--dom);
  color: #071a30;
  padding: 5px 8px;
  border-radius: 2px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}
.tb-dom i { font-style: normal; transition: transform 200ms var(--ease-out) }
@media (hover:hover) and (pointer:fine) {
  .tb-dom:hover i { transform: translateX(4px) }
  .tb-dom:hover span { text-decoration: underline; text-underline-offset: 3px }
}

/* cabecera: enlace y botón */
.nav .nav-dom { color: var(--paper); font-weight: 700 }
.nav .nav-dom::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--dom);
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(61, 154, 240, .6);
  animation: domPulse 2.2s ease-out infinite;
}
.btn-dom {
  background: var(--dom);
  border-color: var(--dom);
  color: #071a30;
  margin-right: 10px;
}
@media (hover:hover) and (pointer:fine) {
  .btn-dom:hover, .btn-wa:hover { filter: brightness(1.08) }
}

@keyframes domPulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 154, 240, .55) }
  70% { box-shadow: 0 0 0 8px rgba(61, 154, 240, 0) }
  100% { box-shadow: 0 0 0 0 rgba(61, 154, 240, 0) }
}

/* diapositiva del slider */
.dom-pill {
  background: var(--dom);
  color: #071a30;
  padding: 6px 9px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-right: 4px;
}
.slide-dom .kicker::before { display: none }

/* etiqueta común */
.dom-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 var(--f-mono);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dom);
  margin: 0;
}
.dom-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dom);
  animation: domPulse 2.2s ease-out infinite;
}

/* banner del inicio */
.dom {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 0 clamp(72px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.dom-media {
  position: relative;
  height: clamp(260px, 38vw, 520px);
}
.dom-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: contrast(1.05) brightness(.8);
}
.dom-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(5, 5, 6, 0) 25%, rgba(5, 5, 6, .1) 60%, var(--ink) 100%);
}
.dom-stamp {
  position: absolute;
  z-index: 2;
  right: max(16px, calc((100vw - var(--wrap)) / 2));
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  border: 2px solid var(--dom);
  color: var(--dom);
  padding: 14px 18px;
  font: 700 clamp(14px, 1.6vw, 20px)/1.15 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  background: rgba(5, 5, 6, .7);
  backdrop-filter: blur(4px);
}
.dom-in {
  position: relative;
  z-index: 2;
  margin-top: clamp(-120px, -9vw, -48px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.dom-in > * { min-width: 0 }
.dom-head h2 {
  margin: 18px 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
}
.dom-head h2 em { font-style: normal; color: var(--dom) }
.dom-head .lead { margin: 0 0 28px }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 15px }
.dom-steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
  counter-reset: none;
}
.dom-steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--mute);
}
.dom-steps li span {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--paper);
  font: 600 12px/1 var(--f-mono);
  transform: translateY(8px);
}
.dom-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-self: end;
}
.dom-list li {
  background: var(--ink-2);
  padding: 22px 20px;
  display: grid;
  gap: 8px;
}
.dom-list li b { font-size: 16px; color: var(--paper) }
.dom-list li b::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border: 1.5px solid var(--dom);
  transform: rotate(45deg) translateY(-2px);
}
.dom-list li span { color: var(--mute); font-size: 14px; line-height: 1.5 }

/* franja en las demás páginas */
.dom-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.dom-band > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(.7);
}
.dom-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 5, 6, .95) 0%, rgba(5, 5, 6, .75) 55%, rgba(5, 5, 6, .35) 100%);
}
.dom-band-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.dom-band-in > div { max-width: 640px }
.dom-band h2 { margin: 16px 0 12px; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.04 }
.dom-band h2 em { font-style: normal; color: var(--dom) }
.dom-band p:not(.dom-tag) { color: var(--mute); margin: 0 }

/* botón flotante con etiqueta */
.wa-tag {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink);
  font: 700 12px/1 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

@media (max-width:860px) {
  .dom-in { grid-template-columns: 1fr; margin-top: -40px }
  .dom-list { grid-template-columns: 1fr }
  .dom-stamp { top: 24px; transform: rotate(-6deg) }
  .tb-dom span { display: none }
}
@media (max-width:1100px) {
  .hd .btn-dom { display: inline-flex; min-height: 40px; padding: 0 12px; font-size: 12px; margin-right: 8px }
  .hd .btn-dom + .btn { display: none }
}
@media (max-width:560px) {
  .wa-tag { display: none }
}
@media (prefers-reduced-motion: reduce) {
  .nav .nav-dom::before, .dom-tag .dot { animation: none }
}

/* ajustes de cabecera con el botón de domicilios */
.hd .btn { white-space: nowrap }
.slide-dom .kicker { flex-wrap: wrap; row-gap: 10px }
.dom-pill { white-space: nowrap; letter-spacing: .1em }
@media (min-width:921px) {
  .nav .nav-dom { display: none } /* en escritorio ya está el botón verde */
}
@media (max-width:1280px) {
  .hd .btn-dom + .btn { display: none }
}
@media (max-width:560px) {
  .hd .btn-dom { min-height: 36px; padding: 0 10px; gap: 6px; font-size: 11px; letter-spacing: .04em; margin-right: 6px }
  .hd .btn-dom svg { width: 15px; height: 15px }
}
@media (max-width:420px) {
  .hd .btn-dom { padding: 0 8px; margin-right: 2px; letter-spacing: .02em }
  .hd .wrap { gap: 10px }
}
.nav > a, .nav-mega-link { white-space: nowrap }
.hd .btn-dom { margin-right: 0 }

/* Nosotros: la foto respeta su proporción y no supera el alto de la pantalla */
.nos-pic img {
  height: auto;
  max-height: min(78vh, 620px);
}

/* botones de la cabecera más compactos (Domicilios y Agendar cita) */
@media (min-width:561px) {
  .hd .btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
    letter-spacing: .05em;
    gap: 7px;
  }
  .hd .btn svg { width: 15px; height: 15px }
  .hd .btn-dom { margin-right: 8px }
}
/* los dos botones de la cabecera van juntos, a la derecha */
@media (min-width:921px) {
  .hd .wrap { justify-content: flex-start }
  .hd .nav { margin-left: auto; margin-right: 8px }
  .hd .btn-dom { margin-right: -14px }
}
@media (max-width:920px) {
  .hd .btn-dom { margin-left: auto }
}


/* =========================================================
   COLORES DE MARCA: acentos azules del logo sobre fondo azul oscuro
   ========================================================= */
.logo img { display: block; height: 44px; width: auto }
.logo-ft img { height: 56px }
.kicker { color: var(--brand-2) }
.kicker::before { background: var(--brand-2) }
.btn-solid { background: var(--brand); color: #fff; border-color: var(--brand) }
@media (hover:hover) and (pointer:fine) {
  .btn-solid:hover { background: #0a6bc0; border-color: #0a6bc0; color: #fff }
  .btn-ghost:hover { background: var(--paper); color: var(--brand-3) }
}
.topbar { background: var(--brand-3); border-bottom-color: rgba(90, 139, 198, .35); color: #cdd8e6 }
.checks li::before { border-color: var(--brand-2) }
.stat b { color: var(--paper) }
.stat span { color: var(--brand-2) }
.cta { background: var(--brand); color: #fff }
.cta p { color: rgba(255, 255, 255, .82) }
.cta .btn-solid { background: #fff; color: var(--brand-3); border-color: #fff }
.dom-list li { background: var(--ink-2) }
.dom-steps li span { border-color: var(--brand-2); color: var(--paper) }
@media (max-width:560px) { .logo img { height: 34px } }
.hd .logo img { height: 50px } @media (max-width:560px) { .hd .logo img { height: 36px } }


/* =========================================================
   FONDO: negro intenso con textura muy tenue de metal rayado
   Imagen: assets/img/fotos/textura-metal.webp (se repite).
   Para hacerla más o menos visible cambie la opacidad (.07).
   ========================================================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(255, 255, 255, .35), transparent 65%),
    url("../img/fotos/textura-metal.webp") 0 0 / 900px 900px repeat;
  opacity: .07;
}
/* secciones que tapaban el fondo: ahora dejan ver la textura */
.car-sec, .dom { background: transparent }
@media (hover:hover) and (pointer:fine) { .btn-dom:hover, .btn-wa:hover { filter: none; background: #63b0f5; border-color: #63b0f5 } }

/* =========================================================
   CONTACTO (/contacto/)
   ========================================================= */
.ct-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.ct-grid > * { min-width: 0 }
.ct-info h2, .ct-form h2 { margin: 16px 0 28px; font-size: clamp(28px, 3.4vw, 40px) }
.ct-list { list-style: none; padding: 0; margin: 0 0 32px; border-top: 1px solid var(--line) }
.ct-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.ct-k { font: 500 11px/1.4 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brand-2) }
.ct-list a { color: var(--paper); text-decoration: none; font-weight: 600; cursor: pointer }
.ct-list a:hover { color: var(--dom) }
.ct-form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 40px);
}
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.fld { display: grid; gap: 8px; margin-bottom: 16px }
.fld span { font: 500 12px/1.2 var(--f-mono); letter-spacing: .08em; color: var(--mute) }
.fld input, .fld select, .fld textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--paper);
  font: 400 16px/1.4 var(--f-body);
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.fld textarea { resize: vertical; min-height: 130px }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: none;
  border-color: var(--dom);
  box-shadow: 0 0 0 3px rgba(61, 154, 240, .25);
}
.fld input:user-invalid, .fld textarea:user-invalid { border-color: #e5484d }
.fld-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.chk { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; color: var(--mute); font-size: 14px; line-height: 1.5; cursor: pointer }
.chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--dom); flex: none }
.ct-form .row-btns { flex-wrap: wrap }
.ct-form button.btn { cursor: pointer; font-family: var(--f-body) }
.ct-note { margin: 16px 0 0; font-size: 13px; color: var(--mute) }
.ct-msg {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--dom);
  background: rgba(61, 154, 240, .1);
  color: var(--paper);
}
.ct-msg.is-bad { border-color: #e5484d; background: rgba(229, 72, 77, .1) }
.ct-map { border-top: 1px solid var(--line) }
.ct-dir { color: var(--dom); text-decoration: none; font-weight: 600 }
.ct-map-frame {
  position: relative;
  border: 1px solid var(--line);
  height: clamp(320px, 45vw, 520px);
  background: var(--ink-2);
}
.ct-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(.35) contrast(1.05);
}
.ft-contact a { cursor: pointer }
@media (max-width:860px) {
  .ct-grid { grid-template-columns: 1fr }
  .ct-row { grid-template-columns: 1fr }
  .ct-list li { grid-template-columns: 1fr; gap: 4px }
}

/* =========================================================
   VIDEO DE FONDO · sección Experiencia del inicio
   Capas: video en gris azulado + velo oscuro + viñeta + líneas finas
   (las líneas disimulan la resolución del video en pantallas grandes).
   ========================================================= */
.exp-video { isolation: isolate; border-block: 1px solid var(--line) }
.exp-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--ink);
}
.exp-bg img, .exp-bg .bgv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: grayscale(.35) contrast(1.1) brightness(.78) saturate(.85);
  transform: scale(1.04);
}
.exp-bg .bgv { opacity: 0; transition: opacity 1.2s ease }
.exp-bg .bgv.is-on { opacity: 1 }
.exp-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px),
    radial-gradient(120% 95% at 50% 40%, rgba(5, 5, 6, .15) 0%, rgba(5, 5, 6, .6) 75%, var(--ink) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(5, 5, 6, .35) 16%, rgba(11, 66, 108, .22) 55%, rgba(5, 5, 6, .55) 86%, var(--ink) 100%);
  mix-blend-mode: normal;
}
.exp-video .why div { background: rgba(13, 14, 15, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px) }
.exp-video .exp-head .lead { color: #c3c9d0 }
.exp-video .exp-head h2, .exp-video .exp-head .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .65) }

/* =========================================================
   VIDEO EN VITRINA (rines): marco propio, sin texto encima,
   con capa oscura que lo funde con el fondo de la página.
   ========================================================= */
.vshow { margin-top: clamp(56px, 7vw, 96px) }
.cat-video .vshow { margin-top: 0 }
.vshow-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.vshow-head h2, .vshow-head h3 { margin: 14px 0 0; font-size: clamp(28px, 3.6vw, 44px) }
.vshow-head .lead { max-width: 46ch; margin: 0 }
.vshow-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.vshow-frame img, .vshow-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.12) brightness(.82) saturate(.9);
}
.vshow-frame video { opacity: 0; transition: opacity .9s ease }
.vshow-frame.is-playing video { opacity: 1 }
/* capa oscura: viñeta + degradado inferior + toque azul de marca */
.vshow-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 45%, transparent 45%, rgba(5, 5, 6, .55) 80%, rgba(5, 5, 6, .9) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, .25) 0%, transparent 25%, transparent 65%, rgba(5, 5, 6, .75) 100%),
    linear-gradient(135deg, rgba(5, 88, 160, .18), transparent 55%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .6);
}
.vshow-frame figcaption {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 16px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(244, 246, 249, .8);
}
.vshow-btn {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(5, 5, 6, .55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms var(--ease-out);
}
.vshow-btn:active { transform: scale(.94) }
.vshow-btn span { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff }
.vshow-btn.is-paused span { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px }
@media (hover:hover) and (pointer:fine) { .vshow-btn:hover { background: var(--brand) } }
.cat-video { padding-block: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 48px) }
@media (max-width:560px) {
  .vshow-frame figcaption { left: 14px; bottom: 14px; font-size: 10px; letter-spacing: .14em }
}
@media (max-width:560px) { .vshow-frame figcaption { display: none } }

/* video de fondo en la diapositiva "Motores" del slider */
.slide > .bgv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  filter: grayscale(.4) contrast(1.1) brightness(.62);
}
.fotos-color .slide > .bgv { filter: contrast(1.08) brightness(.6) saturate(.9) }
.slide > .bgv.is-on { opacity: 1 }
