/* Schibsted Grotesk (SIL OFL, ver assets/fonts/OFL.txt) alojada en local */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0B0B0B;
  --tile: #161616;
  --tile2: #1f1f1f;
  --ink: #F6F5F2;
  --ink70: #b9b7b2;
  --ink50: #85837f;
  --line: #262626;
  --red: #E4271D;
  --white: #F6F5F2;
  --maxw: 1400px;
  --pad: clamp(10px, 2vw, 24px);
  --g: clamp(8px, 1vw, 12px);
  --f: 'Schibsted Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--pad);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--g);
}

.t {
  position: relative;
  background: var(--tile);
  border-radius: 22px;
  padding: clamp(20px, 2.2vw, 32px);
  overflow: hidden;
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), background .3s;
  --mx: 50%;
  --my: 50%;
  --glow: rgba(255, 255, 255, .3);
}

.js .t:not(.in) {
  opacity: 0;
  transform: translateY(48px) scale(.97);
}

.t.sp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

.t.sp:hover::before {
  opacity: 1;
}

/* halo de borde que sigue al cursor; se enciende también en las tarjetas vecinas · --glow: color del halo */
.t:not(.foot)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx) var(--my), var(--glow), transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
}

.glow .t::after {
  opacity: 1;
}

.k {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink50);
}

.k.r {
  color: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.035em;
}

em {
  font-style: normal;
  color: var(--red);
}

/* top bar tile */
.top {
  grid-column: 1 / -1;
  position: sticky;
  top: var(--pad);
  margin: 0;
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), background .3s, margin .35s cubic-bezier(.2, .7, .2, 1);
  z-index: 50;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 18px;
  border-radius: 18px;
}

.logo {
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
}

.logo img {
  height: 26px;
  width: auto;
}

.top.scrolled {
  margin: 0 var(--pad);
  background: rgba(22, 22, 22, .68);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 10px 28px rgba(0, 0, 0, .45);
}

#servicios,
#viajes,
#contacto {
  scroll-margin-top: 110px;
}

.top nav {
  position: relative;
  display: flex;
  gap: 4px;
}

.top nav a {
  position: relative;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink70);
  transition: background .2s, color .2s;
}

.top nav a:hover,
.top nav a.cur {
  color: var(--ink);
}

html:not(.js) .top nav a:hover {
  background: var(--tile2);
}

/* píldora que se desliza entre enlaces + punto rojo bajo la sección visible (los coloca el script con --x/--w) */
.nav-pill,
.nav-dot {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
  pointer-events: none;
}

.top nav.ready .nav-pill,
.top nav.ready .nav-dot {
  transition: transform .55s cubic-bezier(.3, .8, .2, 1), width .55s cubic-bezier(.3, .8, .2, 1), opacity .3s;
}

.nav-pill {
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  opacity: 0;
}

.top nav:hover .nav-pill,
.top nav:focus-within .nav-pill {
  opacity: 1;
}

.nav-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--red);
}

/* autobús pixel-art de la barra superior · --s: tamaño del pixel (1 = 146×45px, usar enteros) · --dur: tiempo de ida y vuelta */
.bus-lane {
  --s: 1;
  --dur: 16s;
  position: relative;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: calc(45px * var(--s) + 4px);
  overflow: hidden;
  pointer-events: none;
  container-type: inline-size;
  align-self: center;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity .4s, clip-path .7s cubic-bezier(.7, 0, .2, 1);
}

.bus {
  position: absolute;
  bottom: 1px;
  left: 0;
  width: calc(146px * var(--s));
  height: calc(45px * var(--s));
  animation: bus-drive var(--dur) linear infinite;
}

.bus::before,
.bus::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../bus-sprite.png);
  background-size: calc(584px * var(--s)) calc(90px * var(--s));
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* fila 1 del sprite: hacia la derecha */
.bus::before {
  background-position-y: 0;
  animation: bus-wheels .4s steps(4) infinite, bus-go var(--dur) step-end infinite;
}

/* fila 2: hacia la izquierda */
.bus::after {
  background-position-y: calc(-45px * var(--s));
  animation: bus-wheels .4s steps(4) infinite, bus-back var(--dur) step-end infinite;
}

@keyframes bus-wheels {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: calc(-584px * var(--s));
  }
}

@keyframes bus-go {
  0% {
    visibility: visible;
  }
  50% {
    visibility: hidden;
  }
}

@keyframes bus-back {
  0% {
    visibility: hidden;
  }
  50% {
    visibility: visible;
  }
}

@keyframes bus-drive {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(calc(100cqw - 146px * var(--s)));
  }
  100% {
    transform: translateX(0);
  }
}

.bus-lane .bus,
.bus-lane .bus::before,
.bus-lane .bus::after {
  animation-play-state: paused;
}

.top.bus-on .bus-lane {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.top.bus-on .bus,
.top.bus-on .bus::before,
.top.bus-on .bus::after {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .bus,
  .bus::before,
  .bus::after {
    animation: none;
  }

  .bus {
    left: 50%;
    transform: translateX(-50%);
  }

  .bus::after {
    visibility: hidden;
  }
}

button.logo {
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform .2s, box-shadow .2s;
}

button.logo:hover {
  transform: translateY(-1px);
}

/* logo con el autobús en marcha: borde arcoíris girando con brillo
   capas dentro del botón: brillo difuminado (.logo-fx) < aro de color (::after) < fondo blanco (::before) < logo · --ra: ángulo del degradado */
@property --ra {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}

button.logo {
  position: relative;
  isolation: isolate;
  background: transparent;
}

button.logo::before,
button.logo::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

button.logo::before {
  inset: 0;
  border-radius: 12px;
  background: #fff;
  z-index: -1;
}

button.logo::after,
.logo-fx {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: conic-gradient(from var(--ra), #ff5a5a, #ffa53b, #ffe14d, #5fe07c, #46c7ff, #7b8cff, #d97bff, #ff5a5a);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

button.logo::after {
  z-index: -2;
}

.logo-fx {
  z-index: -3;
  filter: blur(9px);
}

.top.bus-on button.logo {
  animation: logo-spin 1.4s linear infinite;
}

.top.bus-on button.logo::after {
  opacity: 1;
}

.top.bus-on .logo-fx {
  opacity: .9;
}

@keyframes logo-spin {
  to {
    --ra: 360deg;
  }
}

/* hero */
.hero {
  grid-column: span 8;
  grid-row: span 2;
  min-height: clamp(380px, 48vw, 600px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  color: var(--bg);
  --glow: rgba(228, 39, 29, .85);
}

.hero .k {
  color: #6d6b67;
}

.hero-in {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* luz y cuadrícula de puntos (tipo mapa) alrededor del cursor; los puntos más cercanos se vuelven rojos */
.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), #fff, transparent 70%);
  opacity: 0;
  transition: opacity .6s;
}

.hero-fx::before,
.hero-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--c) 1.1px, transparent 1.7px) 50% 50% / 22px 22px;
  -webkit-mask: radial-gradient(var(--r) circle at var(--mx) var(--my), #000, transparent);
  mask: radial-gradient(var(--r) circle at var(--mx) var(--my), #000, transparent);
}

.hero-fx::before {
  --c: #c6c1b7;
  --r: 260px;
}

.hero-fx::after {
  --c: var(--red);
  --r: 84px;
}

.hero:hover .hero-fx {
  opacity: 1;
}

.hero h1 {
  font-size: clamp(40px, 7.4vw, 115px);
  line-height: .88;
  overflow-wrap: break-word;
}

.hero h1 .w {
  display: inline-block;
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes rise {
  from {
    transform: translateY(40%);
    opacity: 0;
  }
}

.hero .row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}

.hero p {
  margin: 0;
  max-width: 48ch;
  font-size: 19px;
  line-height: 1.5;
  color: #3c3b38;
}

.yr {
  grid-column: span 4;
  background: var(--red);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  --glow: rgba(255, 255, 255, .75);
}

.yr .k {
  color: #ffd6d2;
}

.yr .n {
  font-size: clamp(72px, 12vw, 171px);
  text-align: left;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .8;
}

.cta {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
}

.cta .k {
  margin-bottom: auto;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  transition: background .25s, color .25s, transform .25s;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform .3s;
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

.btn-a {
  background: var(--ink);
  color: var(--bg);
}

.btn-a:hover {
  background: var(--red);
  color: #fff;
}

.btn-b {
  background: var(--tile2);
}

.btn-b:hover {
  background: #25D366;
  color: #0a0a0a;
}

/* services */
.svh {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.svh h2 {
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: .95;
}

.fl {
  grid-column: span 4;
  padding: 0;
  background: transparent;
  perspective: 1100px;
  min-height: 220px;
  cursor: pointer;
}

.fl.w2 {
  grid-column: span 4;
}

.fl .in2 {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.3, .7, .2, 1);
}

.fl:hover .in2,
.fl.on .in2 {
  transform: rotateY(180deg);
}

.fl .fa,
.fl .ba {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: clamp(20px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.fl .fa {
  background: var(--tile);
  justify-content: flex-end;
}

.fl .ba {
  background: var(--white);
  color: var(--bg);
  justify-content: flex-end;
  transform: rotateY(180deg);
}

.fl .fa h3 {
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1;
}

/* flecha que indica que la tarjeta se puede girar; da dos toques a la derecha al aparecer la tarjeta */
.fl .go {
  position: absolute;
  top: clamp(20px, 2.2vw, 28px);
  right: clamp(20px, 2.2vw, 28px);
  width: 22px;
  height: 22px;
  color: var(--ink70);
}

.fl.in .go {
  animation: nudge 1.5s cubic-bezier(.3, .7, .2, 1) 1.1s both;
}

@keyframes nudge {
  0%, 45%, 90% {
    translate: 0;
  }
  20%, 65% {
    translate: 5px 0;
  }
}

.fl .ba p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.fl .ba h3 {
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--red);
}

/* viajes */
.vh {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
  align-items: end;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.vh h2 {
  font-size: clamp(32px, 4.4vw, 66px);
  line-height: .95;
  margin-top: 14px;
}

.vh p {
  margin: 0;
  color: var(--ink70);
  font-size: 17px;
  line-height: 1.55;
}

.wa {
  grid-column: span 7;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  background: #0f2a1b;
  perspective: 600px;
}

.wa .scan {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  width: clamp(150px, 15vw, 200px);
  transition: rotate .6s cubic-bezier(.2, .7, .2, 1), scale .6s cubic-bezier(.2, .7, .2, 1);
}

/* el giro hacia el ratón lo pone el script, como en el anillo */
.wa:hover .scan {
  scale: 1.05;
}

.wa .scan::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 3px;
  border-radius: 3px;
  background: #25D366;
  box-shadow: 0 0 16px 2px #25D366;
  animation: sc 2.2s ease-in-out infinite alternate;
}

@keyframes sc {
  to {
    top: calc(100% - 11px);
  }
}

.wa .body,
.fb .body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa .k {
  color: #6ee29a;
}

.fb .k {
  color: #8ab8ff;
}

.wa h3,
.fb h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
}

.wa p,
.fb p {
  margin: 0;
  color: #cfd8d2;
  line-height: 1.5;
}

.wa .hint {
  font-weight: 700;
  color: #fff;
}

.wa .btn {
  background: #25D366;
  color: #0a0a0a;
  align-self: flex-start;
  gap: 20px;
}

.wa .btn:hover {
  background: #fff;
  color: #0a0a0a;
}

.fb {
  grid-column: span 5;
  background: #0e1a2e;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fb p {
  color: #cdd6e4;
}

.posts {
  display: grid;
  gap: 6px;
}

.post {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, transform .2s;
}

.post:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateX(4px);
}

.post i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.post i img {
  width: 78%;
}

.fb .btn {
  background: #1877F2;
  color: #fff;
  margin-top: auto;
  gap: 20px;
}

.fb .btn:hover {
  background: #fff;
  color: #0e1a2e;
}

/* trato */
.trato {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 320px;
}

.trato h2 {
  font-size: clamp(32px, 4vw, 60px);
  line-height: .95;
}

.trato p {
  margin: 0;
  color: var(--ink70);
  font-size: 17px;
  line-height: 1.6;
}

.hand {
  grid-column: span 5;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 320px;
  --glow: rgba(255, 255, 255, .75);
  perspective: 600px;
}

.hand .ring {
  width: min(260px, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .6);
  display: grid;
  place-items: center;
  animation: rot 24s linear infinite;
  transition: rotate .6s cubic-bezier(.2, .7, .2, 1), scale .6s cubic-bezier(.2, .7, .2, 1);
}

/* el giro hacia el ratón lo pone el script (rotate) */
.hand:hover .ring {
  scale: 1.05;
}

.hand .ring > div {
  animation: rot 24s linear infinite reverse;
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: .95;
  letter-spacing: -.03em;
}

@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}

/* contact */
.ch-h {
  grid-column: span 12;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}

.ch-h h2 {
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: .9;
  margin-top: 12px;
}

.ch {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 180px;
  transition: background .3s, color .3s;
  container-type: inline-size;
}

.ch:hover {
  background: var(--red);
  color: #fff;
}

.ch:hover .k {
  color: #ffd6d2;
}

.ch strong {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

/* se encoge con el tile para que el email quepa en una línea */
.ch strong.mail {
  font-size: min(clamp(20px, 2vw, 28px), 7.6cqi);
}

.ch .top2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ch svg {
  width: 20px;
  height: 20px;
}

.side {
  grid-column: span 3;
  background: var(--white);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  --glow: rgba(228, 39, 29, .85);
}

.side h3 {
  font-size: 24px;
  line-height: 1.05;
}

.side p {
  margin: 0;
  color: #3c3b38;
  line-height: 1.5;
}

.side address {
  margin-top: auto;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.foot {
  grid-column: span 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: transparent;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink50);
}

/* «© Autocares García»: arcoíris en bucle mientras el ratón está encima (el script separa las letras) */
.rb {
  cursor: default;
}

.rb:hover span {
  animation: rainbow 1.8s linear infinite;
  animation-delay: calc(var(--i) * 70ms);
}

@keyframes rainbow {
  0%, 100% {
    color: #ff5a5a;
  }
  14% {
    color: #ffa53b;
  }
  28% {
    color: #ffe14d;
  }
  42% {
    color: #5fe07c;
  }
  57% {
    color: #46c7ff;
  }
  71% {
    color: #7b8cff;
  }
  85% {
    color: #d97bff;
  }
}

.soc {
  display: flex;
  gap: 8px;
}

.soc a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tile);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all .2s;
}

.soc a svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.soc a.fbl:hover {
  background: #1877F2;
  color: #fff;
}

.soc a.wal:hover {
  background: #25D366;
  color: #0a0a0a;
}

@media (max-width: 1100px) {
  .hero {
    grid-column: span 12;
    grid-row: auto;
  }

  .yr,
  .cta {
    grid-column: span 6;
  }

  .svh,
  .fl,
  .fl.w2 {
    grid-column: span 6;
  }

  .wa,
  .fb,
  .trato,
  .hand {
    grid-column: span 12;
  }

  .ch,
  .side {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .top nav {
    display: none;
  }

  .yr,
  .cta,
  .svh,
  .fl,
  .fl.w2,
  .ch,
  .side {
    grid-column: span 12;
  }

  .vh {
    grid-template-columns: minmax(0, 1fr);
  }

  .wa {
    grid-template-columns: minmax(0, 1fr);
  }

  .wa .scan {
    width: 180px;
  }

  .wa .btn,
  .fb .btn {
    align-self: stretch;
  }

  .hand {
    min-height: 240px;
  }

  .trato {
    min-height: 0;
  }

  .ch {
    min-height: 0;
    gap: 18px;
  }

  .foot {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .js .t:not(.in) {
    opacity: 1;
    transform: none;
  }
}
