/* Mr Blue Sky · landing
   Mundo: descenso por una fachada. Muro blanco frío, azul cielo aplicado como pintura,
   tinta azul noche, amarillo alta visibilidad solo para la acción principal y el chat. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #04acec;
  --sky-deep: #0287bc;
  --ink: #0b1f33;
  --ink-2: #2a3d50;
  --ink-soft: #a9bccb;
  --wall: #eef2f4;
  --paper: #f8fafb;
  --line: rgba(11, 31, 51, 0.14);
  --hivis: #d9f233;
  --hivis-press: #c8e21d;

  --gutter: 0px;
  --rope-x: 8px;
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(88px, 12vw, 168px);
  --radius: 4px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lift: 0 10px 24px -12px rgba(11, 31, 51, 0.45);
}

@media (min-width: 960px) {
  :root {
    --gutter: 112px;
    --rope-x: 38px;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-color: var(--sky) var(--wall);
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--wall);
  caret-color: var(--sky-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--hivis); color: var(--ink); }

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

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Tipografía de display ---------- */

h1, h2 {
  font-stretch: 72%;
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 0.94;
}

h2 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }

/* ---------- Iconos y botones ---------- */

.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ico--stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn--hivis { background: var(--hivis); color: var(--ink); box-shadow: var(--shadow-lift); }
.btn--hivis:hover { background: var(--hivis-press); transform: translateY(-1px); }

.btn--line { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, 0.35); }
.btn--line:hover { background: var(--ink); color: #fff; }

.btn--ink { background: var(--ink); color: #fff; box-shadow: var(--shadow-lift); }
.btn--ink:hover { background: #163552; transform: translateY(-1px); }

.btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }

/* ---------- Cuerda ---------- */

.rope {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--rope-x);
  z-index: 9;
  width: 4px;
  pointer-events: none;
}

.rope__line {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: repeating-linear-gradient(-58deg,
    var(--ink) 0 2.5px,
    #f4f7f8 2.5px 5px,
    var(--sky) 5px 7.5px,
    #f4f7f8 7.5px 10px);
  box-shadow: 0 0 0 1px rgba(11, 31, 51, 0.12);
}

/* ---------- Barra superior ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
  padding: 0 var(--pad) 0 calc(var(--gutter) + var(--pad));
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.topbar.is-scrolled {
  background: rgba(238, 242, 244, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-stretch: 80%;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand img { width: 52px; height: 52px; }

.topbar__nav {
  display: none;
  gap: 26px;
  padding: 0 22px;
  min-height: 44px;
  align-items: center;
  border-radius: 999px;
  background: rgba(238, 242, 244, 0.9);
  font-weight: 600;
  font-size: 0.9375rem;
}
.topbar.is-scrolled .topbar__nav { background: transparent; }
.topbar__nav a { text-decoration: none; padding: 6px 0; }
.topbar__nav a:hover { text-decoration: underline; text-decoration-color: var(--sky-deep); text-underline-offset: 8px; text-decoration-thickness: 2px; }

@media (min-width: 900px) {
  .topbar__nav { display: flex; }
}
@media (max-width: 599px) {
  .topbar .btn--sm span { display: none; }
  .topbar .btn--sm { padding: 0 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand { font-size: 1.125rem; }
}

/* ---------- Hero: el muro que se pinta ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100svh;
  background: var(--wall);
  overflow: hidden;
  isolation: isolate;
}

.hero__paint {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-size: 260px 260px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.12 0 0 0 0 0.2 0 0 0 0.42 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__wall {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 128px var(--pad) 56px calc(var(--gutter) + var(--pad));
}

.hero__copy { max-width: 640px; }

.hero h1 {
  font-size: clamp(3.1rem, 6.4vw, 6rem);
  max-width: 11ch;
}

.hero__lede {
  margin-top: 28px;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero__photo {
  position: relative;
  z-index: 0;
  margin: 0;
  min-height: 56svh;
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}
.hero__photo figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  max-width: 30ch;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(11, 31, 51, 0.86);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
}

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); }
  .hero__photo { min-height: 0; }
  .hero__photo figcaption { right: 24px; bottom: 24px; }
}

/* ---------- Servicios ---------- */

.services {
  position: relative;
  padding: var(--section-y) 0;
  padding-left: var(--gutter);
  background: var(--paper);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.services__head p {
  margin-top: 24px;
  max-width: 48ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.services__list { counter-reset: svc; }

.service {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  cursor: default;
}
.service:last-child { border-bottom: 1px solid var(--line); }

.service h3 {
  font-stretch: 74%;
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.35s var(--ease-out);
}
.service p {
  margin-top: 10px;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.service__img {
  margin-top: 20px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.services__stage { display: none; }

.services__also {
  font-size: 1rem;
  color: var(--ink-2);
}
.services__also a { font-weight: 700; color: var(--ink); }

@media (min-width: 960px) {
  .services__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(40px, 6vw, 96px);
    row-gap: 56px;
  }
  .services__head { grid-column: 1; }
  .services__list { grid-column: 1; }
  .services__also { grid-column: 1; }
  .services__stage {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 108px;
    align-self: start;
    display: block;
    margin: 0;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--wall);
  }
  .services__stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: opacity 0.5s var(--ease-out), clip-path 0.7s var(--ease-out);
  }
  .services__stage img.is-on { opacity: 1; clip-path: inset(0 0 0 0); }

  .service__img { display: none; }
  .service { padding: 30px 0 34px; }
  .service h3 { color: rgba(11, 31, 51, 0.5); }
  .service p { color: rgba(42, 61, 80, 0.72); transition: color 0.35s var(--ease-out); }
  .service.is-active h3 { color: var(--ink); }
  .service.is-active p { color: var(--ink-2); }
}

/* ---------- Método ---------- */

.method {
  position: relative;
  padding: var(--section-y) 0;
  padding-left: var(--gutter);
  background: var(--wall);
}

.method__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.annotated {
  position: relative;
  margin: 0;
  align-self: start;
}
.annotated img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.callout {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--hivis);
  box-shadow: 0 0 0 2px var(--ink), 0 4px 10px rgba(11, 31, 51, 0.45);
}
.callout span {
  position: absolute;
  top: 50%;
  right: calc(100% + 30px);
  transform: translateY(-50%);
  padding: 5px 9px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.callout span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 30px;
  height: 2px;
  background: var(--ink);
}
.callout--r span { right: auto; left: calc(100% + 30px); }
.callout--r span::after { left: auto; right: 100%; }

@media (max-width: 599px) {
  .callout span,
  .callout--r span {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(100% + 16px);
    transform: translateX(-50%);
    font-size: 0.6875rem;
    padding: 4px 7px;
  }
  .callout span::after,
  .callout--r span::after {
    top: 100%;
    left: 50%;
    right: auto;
    width: 2px;
    height: 16px;
  }
}

.method__lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 40px;
  margin-top: 48px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 22px 0 26px 48px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 22px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-stretch: 86%;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.15;
}
.steps p { margin-top: 6px; color: var(--ink-2); }

.brands {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.brands p { font-weight: 700; font-size: 0.9375rem; }
.brands ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
  margin-top: 18px;
}
.brands img { height: 40px; width: auto; opacity: 0.78; }
.brands li:nth-child(n+3) img { height: 28px; }

@media (min-width: 720px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .method__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 7vw, 112px);
  }
  .annotated { position: sticky; top: 108px; }
}

/* ---------- Obras ---------- */

.works {
  position: relative;
  padding: var(--section-y) 0;
  padding-left: var(--gutter);
  background: var(--ink);
  color: #fff;
}
.works :focus-visible { outline-color: var(--hivis); }

.works__feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.works__intro { grid-column: 1 / -1; }
.works__intro h3 {
  margin-top: 40px;
  font-stretch: 86%;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.3vw, 1.875rem);
  line-height: 1.15;
}
.works__intro p {
  margin-top: 12px;
  max-width: 44ch;
  color: var(--ink-soft);
}

.works__a,
.works__b {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 960px) {
  .works__feature {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
  .works__intro { grid-column: 1 / span 5; align-self: center; }
  .works__a { grid-column: 6 / span 4; }
  .works__b { grid-column: 10 / span 3; margin-top: 96px; }
}

.works__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 300px);
  gap: 20px;
  margin-top: clamp(64px, 8vw, 112px);
  padding-bottom: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--sky) rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
}
.works__strip li { scroll-snap-align: start; }
.works__strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.works__strip h3 {
  margin-top: 14px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
}
.works__strip p { margin-top: 2px; font-size: 0.9375rem; color: var(--ink-soft); }

.works__more { margin-top: 32px; }
.works__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--hivis);
  text-decoration: none;
}
.works__more a:hover { text-decoration: underline; }

/* ---------- Clientes ---------- */

.clients {
  position: relative;
  padding: var(--section-y) 0 calc(var(--section-y) * 0.8);
  padding-left: var(--gutter);
  background: var(--paper);
}

.clients__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 56px;
}

.clients__names {
  font-stretch: 80%;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.clients__names li { display: inline; }
.clients__names li:not(:last-child)::after {
  content: " / ";
  color: var(--sky-deep);
  font-weight: 500;
}

.clients__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.clients__logos img { height: 34px; width: auto; opacity: 0.8; }

@media (min-width: 960px) {
  .clients__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .clients__logos { grid-column: 2; }
}

/* ---------- Contacto ---------- */

.contact {
  position: relative;
  padding: var(--section-y) 0;
  padding-left: var(--gutter);
  background: var(--sky);
  color: var(--ink);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact__head p {
  margin-top: 20px;
  max-width: 44ch;
  font-size: 1.1875rem;
  font-weight: 500;
}

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

.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend {
  padding: 0;
  font-weight: 700;
  font-size: 0.9375rem;
}
.field small { font-weight: 500; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid rgba(11, 31, 51, 0.28);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%230b1f33' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field ::placeholder { color: #5d6f80; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(11, 31, 51, 0.5); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--hivis);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chips label { position: relative; cursor: pointer; }
.chips input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid rgba(11, 31, 51, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.chips label:hover span { background: #fff; border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px var(--hivis); border-color: var(--ink); }

.quote__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 4px;
}
.quote__hint { font-size: 0.9375rem; font-weight: 500; }
.quote__hint.is-error { font-weight: 700; }

.direct { display: grid; align-content: start; }
.direct li { border-top: 1.5px solid rgba(11, 31, 51, 0.2); }
.direct li:last-child { border-bottom: 1.5px solid rgba(11, 31, 51, 0.2); }
.direct a,
.direct__static {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  text-decoration: none;
  font-stretch: 90%;
  font-weight: 800;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.2;
}
.direct a .ico, .direct__static .ico { width: 24px; height: 24px; }
.direct small {
  display: block;
  font-stretch: 100%;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.direct a:hover > span { text-decoration: underline; text-decoration-thickness: 2px; }
.direct__zone { padding: 18px 0; font-weight: 600; }

@media (min-width: 720px) {
  .quote { grid-template-columns: 1fr 1fr; }
  .field--chips,
  .field--wide,
  .quote__foot { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(48px, 6vw, 96px);
  }
  .contact__head { grid-column: 1 / -1; }
}

/* ---------- Pie ---------- */

.footer {
  padding: 40px 0 48px;
  padding-left: var(--gutter);
  background: var(--ink);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.footer :focus-visible { outline-color: var(--hivis); }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.brand--foot { color: #fff; margin-right: 0; font-size: 1.125rem; }
.brand--foot img { width: 44px; height: 44px; }
.footer p { margin-right: auto; }
.social { display: flex; gap: 8px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.social a:hover { background: var(--hivis); color: var(--ink); border-color: var(--hivis); }

/* ---------- Chat flotante de WhatsApp ---------- */

.wachat {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: calc(clamp(16px, 2.5vw, 32px) + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.wachat__fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hivis);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 14px 28px -10px rgba(11, 31, 51, 0.55), inset 0 0 0 1.5px rgba(11, 31, 51, 0.16);
  transition: transform 0.25s var(--ease-out), background-color 0.2s var(--ease-out);
}
.wachat__fab:hover { background: var(--hivis-press); transform: translateY(-2px); }
.wachat__fab .ico { grid-area: 1 / 1; width: 30px; height: 30px; transition: opacity 0.2s var(--ease-out), transform 0.3s var(--ease-out); }
.wachat__ico-x { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.wachat.is-open .wachat__ico-wa { opacity: 0; transform: rotate(90deg) scale(0.6); }
.wachat.is-open .wachat__ico-x { opacity: 1; transform: none; }

.wachat__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--ink);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.wachat.has-badge .wachat__badge { opacity: 1; transform: none; }
.wachat.is-open .wachat__badge { opacity: 0; transform: scale(0.4); }

.wachat__panel {
  width: min(340px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 24px 48px -16px rgba(11, 31, 51, 0.5), 0 0 0 1px var(--line);
  transform-origin: bottom right;
  animation: wachat-in 0.35s var(--ease-out);
}
.wachat__panel[hidden] { display: none; }

@keyframes wachat-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.wachat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  background: var(--sky);
}
.wachat__head img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.wachat__name { font-stretch: 80%; font-weight: 800; font-size: 1.125rem; line-height: 1.1; }
.wachat__status { font-size: 0.8125rem; font-weight: 600; }
.wachat__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.wachat__close:hover { background: rgba(255, 255, 255, 0.4); }

.wachat__body { padding: 18px 16px 6px; background: var(--wall); }
.wachat__bubble {
  position: relative;
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 2px 10px 10px 10px;
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.45;
  box-shadow: 0 2px 6px -3px rgba(11, 31, 51, 0.3);
}

.wachat__go {
  display: flex;
  width: calc(100% - 32px);
  margin: 14px 16px 16px;
  box-shadow: none;
}

@media (max-width: 959px) {
  .footer { padding-bottom: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
