/* ============================================================
   ENTHALPY, C.A. — Sistema de diseño
   Paleta derivada del logo: navy / teal / cian / naranja
   Tipos: Archivo (display) · IBM Plex Sans (cuerpo) · IBM Plex Mono (datos)
   ============================================================ */

:root {
  /* Color */
  --navy-950: #0D1F33;
  --navy-900: #132C46;
  --navy-700: #1B3A5C;
  --ink: #17293D;
  --muted: #52657A;
  --teal-700: #0B7A90;
  --teal-600: #0E8FA8;
  --cyan-400: #2FB4CC;
  --orange-500: #F7941D;
  --ember-600: #E8611C;
  --surface: #F4F7F9;
  --line: #DDE5EB;
  --white: #FFFFFF;

  /* Gradiente térmico (frío → calor), ADN de la marca */
  --grad-thermal: linear-gradient(90deg, var(--teal-600), var(--cyan-400) 35%, var(--orange-500) 70%, var(--ember-600));
  --grad-cta: linear-gradient(135deg, var(--orange-500), var(--ember-600));

  /* Tipografía */
  --font-display: "Archivo", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Métrica */
  --container: 1180px;
  --radius: 14px;
  --nav-h: 76px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-700); }

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: #fff;
  padding: 10px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Utilidades tipográficas ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--grad-thermal);
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 2px;
}
.eyebrow--light { color: var(--cyan-400); }

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem);
  font-weight: 750;
  font-stretch: 115%;
  color: var(--navy-900);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 97, 28, 0.32);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: 0 10px 26px rgba(232, 97, 28, 0.42); transform: translateY(-2px); }
  .btn--primary:hover:active { transform: scale(0.97); }
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }
}
.btn--block { width: 100%; }
.btn--nav { padding: 10px 20px; min-height: 42px; font-size: 0.9rem; }

/* ---------- Barra de progreso térmica ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: var(--grad-thermal);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Marquee cinético ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--white);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 120%;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: var(--grad-thermal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  transition: filter 300ms ease;
}
.marquee__track span:hover { filter: brightness(1.18) saturate(1.15); }
.marquee__track i {
  font-style: normal;
  font-size: 1.6rem;
  color: var(--orange-500);
  font-weight: 800;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(19, 44, 70, 0.07);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav__logo-tile {
  width: 46px; height: 46px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  box-shadow: inset 0 0 0 1px var(--line);
  background: #eef2f4;
}
.nav__logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.nav__logo-tile--lg { width: 52px; height: 52px; }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.nav__wordmark strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 120%;
  font-size: 1.18rem;
  color: var(--navy-900);
  letter-spacing: 0.04em;
}
.nav__wordmark small {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links > a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--grad-thermal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav__links > a:not(.btn):hover::after,
.nav__links > a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 220ms var(--ease-out), opacity 180ms ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-950);
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* Capa fría: la escena vista "sin diagnóstico" */
.hero__img--cool {
  filter: grayscale(0.9) brightness(0.58) contrast(1.02);
}
/* Capa cálida: revelada por la lente térmica */
.hero__img--warm {
  filter: saturate(1.25) brightness(0.92) contrast(1.05);
  -webkit-mask-image: radial-gradient(circle 230px at var(--lx, 72%) var(--ly, 38%), #000 0 52%, transparent 100%);
  mask-image: radial-gradient(circle 230px at var(--lx, 72%) var(--ly, 38%), #000 0 52%, transparent 100%);
}
/* Anillo de la lente */
.hero__lens {
  position: absolute;
  left: var(--lx, 72%);
  top: var(--ly, 38%);
  width: 460px; height: 460px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
}
.hero__lens::before,
.hero__lens::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
}
.hero__lens::before { left: 50%; top: -12px; width: 1px; height: 24px; transform: translateX(-50%); box-shadow: 0 484px 0 rgba(255,255,255,0.4); }
.hero__lens::after { top: 50%; left: -12px; height: 1px; width: 24px; transform: translateY(-50%); box-shadow: 484px 0 0 rgba(255,255,255,0.4); }
.hero__lens-tag {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
/* Oscurecido para legibilidad del texto */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 31, 51, 0.55) 0%, rgba(13, 31, 51, 0.15) 40%, rgba(13, 31, 51, 0.82) 100%),
    linear-gradient(100deg, rgba(13, 31, 51, 0.72) 0%, rgba(13, 31, 51, 0.25) 55%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 24px 96px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 4.4vw, 4.4rem);
  font-weight: 780;
  font-stretch: 118%;
  color: #fff;
  max-width: 15ch;
  margin-bottom: 0.45em;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-thermal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  max-width: 54ch;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero__data {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  margin: 0;
  max-width: 640px;
}
.hero__data span[aria-hidden] { color: var(--orange-500); }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section--tinted { background: var(--surface); }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px 64px;
  align-items: end;
  margin-bottom: 54px;
}
.section__head p { color: var(--muted); margin: 0; max-width: 46ch; }

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms ease;
}
.service__body { padding: 26px 28px 30px; }
.service__thumb {
  margin: 0;
  height: 185px;
  overflow: hidden;
  flex: none;
}
.service__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service:hover .service__thumb img { transform: scale(1.04); }
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-thermal);
  opacity: 0;
  transition: opacity 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .service:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(19, 44, 70, 0.10);
    border-color: transparent;
  }
  .service:hover::before { opacity: 1; }
}
.service--feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  padding: 0;
}
.service--feature .service__body { padding: 34px 32px; }
/* Tarjeta ancha de cierre (Suministros): texto + foto a lo largo de toda la fila */
.service--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  padding: 0;
}
.service--wide .service__body { padding: 34px 32px; }
.service--wide .service__media { min-height: 240px; }
.service__media { margin: 0; position: relative; min-height: 260px; }
.service__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service__icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 143, 168, 0.10), rgba(47, 180, 204, 0.16));
  color: var(--teal-700);
  margin-bottom: 18px;
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy-900);
}
.service p { color: var(--muted); font-size: 0.95rem; }
.service ul { margin-top: 14px; display: grid; gap: 8px; }
.service li {
  font-size: 0.9rem;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}
.service li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 12px; height: 2px;
  border-radius: 2px;
  background: var(--grad-thermal);
}

/* ---------- Galería / Proyectos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  min-height: 44px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.filter:active { transform: scale(0.96); }
.filter.is-active {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}
@media (hover: hover) and (pointer: fine) {
  .filter:not(.is-active):hover { border-color: var(--teal-600); color: var(--teal-700); }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  background: var(--navy-900);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease-out), opacity 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.045); }
}
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(13, 31, 51, 0.85));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile__cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
}
.tile__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  color: #fff;
}
.tile.is-hidden { display: none; }
.tile.is-entering { opacity: 0; transform: translateY(10px); }
.tile { transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out); }

/* ---------- Clientes / Showcase ---------- */
.showcase {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(14, 143, 168, 0.18), transparent 60%),
    var(--navy-950);
  padding: 104px 0 84px;
  overflow: hidden;
}
.showcase h2 { color: #fff; }
.section__head--light p { color: rgba(255, 255, 255, 0.62); }
.reel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px max(24px, calc((100vw - var(--container)) / 2 + 24px)) 26px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}
.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: -3px; }
.reel__item {
  margin: 0;
  position: relative;
  flex: 0 0 auto;
  width: min(380px, 78vw);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--navy-900);
  transition: transform 300ms var(--ease-out);
}
.reel__item img, .reel__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
@media (hover: hover) and (pointer: fine) {
  .reel__item:hover { transform: translateY(-6px); }
}
.reel__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(13, 31, 51, 0.92));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reel__client {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
}
.reel__job {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.3;
  color: #fff;
}
.reel__hint {
  margin: 10px auto 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.about__media {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  align-self: stretch;
  min-height: 420px;
}
.about__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.about__caption {
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13, 31, 51, 0.72);
  padding: 7px 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.about__text h2 { max-width: 22ch; }
.about__text > p { color: var(--muted); max-width: 58ch; }
.about__mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 30px 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__mv h3 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal-700);
  margin-bottom: 8px;
}
.about__mv p { font-size: 0.92rem; color: var(--ink); margin: 0; }
.values { display: flex; flex-wrap: wrap; gap: 10px; }
.values li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-700);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Banda diferenciales ---------- */
.band {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(14, 143, 168, 0.25), transparent 60%),
    var(--navy-900);
  color: #fff;
  padding: 96px 0;
}
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px 72px;
  align-items: start;
}
.band h2 { color: #fff; max-width: 16ch; }
.band__list { display: grid; gap: 0; }
.band__list li {
  display: grid;
  gap: 2px;
  padding: 20px 0 20px 34px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}
.band__list li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.band__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-thermal);
}
.band__list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: #fff;
}

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: start;
}
.contact__info h2 { max-width: 18ch; }
.contact__info > p { color: var(--muted); }
.contact__list { display: grid; gap: 22px; margin-top: 34px; }
.contact__list li { display: grid; gap: 3px; }
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__list a {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.12rem;
  text-decoration: none;
  width: fit-content;
}
.contact__list a:hover { color: var(--teal-700); }
.contact__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.contact__card h3 { font-size: 1.3rem; color: var(--navy-900); }
.contact__card > p { color: var(--muted); font-size: 0.93rem; }
.contact__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.chip:active { transform: scale(0.96); }
.chip.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.contact__alt {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 14px 0 0;
}
.contact__alt a { color: var(--teal-700); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  padding: 60px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 1.05rem;
}
.footer__brand p { margin: 2px 0 0; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; }
.footer__nav, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__contact a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
  width: fit-content;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--cyan-400); }
.footer__contact span { font-size: 0.92rem; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55); }
}
.wa-float:active { transform: scale(0.94); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  width: auto;
}
.lightbox::backdrop {
  background: rgba(13, 31, 51, 0.88);
  backdrop-filter: blur(6px);
}
.lightbox figure { margin: 0; }
.lightbox img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
}
.lightbox figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding-top: 14px;
}
.lightbox__close, .lightbox__nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close:active, .lightbox__nav:active { transform: scale(0.94); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:active { transform: translateY(-50%) scale(0.94); }
.lightbox__nav--next:active { transform: translateY(-50%) scale(0.94); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), filter 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Parallax del héroe (JS actualiza la variable) */
.hero__media { will-change: transform; transform: translate3d(0, var(--parallax, 0px), 0) scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service--feature { grid-column: span 2; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .band__grid, .contact { gap: 44px; }
}

@media (max-width: 820px) {
  :root { --nav-h: 66px; }
  .nav__wordmark small { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(19, 44, 70, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--surface); }
  .nav__links > .btn { margin-top: 14px; }
  .section { padding: 72px 0; }
  .section__head { grid-template-columns: 1fr; align-items: start; margin-bottom: 38px; }
  .hero__content { padding-bottom: 72px; }
  /* En táctil la lente deriva sola: sin anillo ni etiqueta para no chocar con el texto */
  .hero__lens { display: none; }
  .hero__img--warm {
    -webkit-mask-image: radial-gradient(circle 150px at var(--lx, 72%) var(--ly, 38%), #000 0 52%, transparent 100%);
    mask-image: radial-gradient(circle 150px at var(--lx, 72%) var(--ly, 38%), #000 0 52%, transparent 100%);
  }
  .services { grid-template-columns: 1fr; }
  .service--feature, .service--wide { grid-column: auto; grid-template-columns: 1fr; }
  .service__media { min-height: 220px; }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .about__media { min-height: 300px; }
  .about__mv { grid-template-columns: 1fr; }
  .band__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__card { position: static; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__data { font-size: 0.72rem; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile img, .service, .filter, .chip, .wa-float { transition: none; }
  .hero__img--warm {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.55;
  }
  .hero__lens { display: none; }
}
