/* ==========================================================================
   BRERA RENTAL — Preloader · Nav · Hero
   ========================================================================== */

:root {
  /* Paleta oficial (manual de marca) */
  /* Fondos: un punto más claros que el azul profundo oficial (#052E37), pedido del cliente */
  --teal-800: #0B3A45;   /* azul profundo (aclarado) */
  --petrol:   #2B5567;   /* azul petróleo */
  --yellow:   #EDC862;   /* amarillo */
  --rust:     #BB5634;   /* óxido (acento, usar poco) */
  /* derivados */
  --teal-900: #072F38;
  --teal-700: #134A56;
  --yellow-600: #D9B24A;
  --ink: #EAF1F2;
  --muted: rgba(234, 241, 242, .62);
  --line: rgba(234, 241, 242, .12);

  --f-display: "Lexend Exa", system-ui, sans-serif;
  --f-label: "Lexend Zetta", system-ui, sans-serif;
  --f-body: "Lexend", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --pad: clamp(20px, 4.5vw, 72px);
  --max: 1440px;
  --nav-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--teal-800);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.is-loading body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--yellow); color: var(--teal-800); }

/* Barra de scroll de marca */
html { scrollbar-width: thin; scrollbar-color: var(--yellow) var(--teal-900); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--teal-900); }
::-webkit-scrollbar-thumb { background: var(--yellow); border: 3px solid var(--teal-900); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #fff; }
::-webkit-scrollbar-button { display: none; height: 0; }

.logo-svg { display: block; width: 100%; height: auto; fill: var(--yellow); overflow: visible; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 100%, var(--teal-700) 0%, var(--teal-800) 45%, var(--teal-900) 100%);
  overflow: hidden;
}
html:not(.js) .loader, .loader.is-done { display: none; }

.loader__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center bottom;
  mask-image: radial-gradient(70% 60% at 50% 70%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 70%, #000 0%, transparent 75%);
  opacity: .5;
}

.loader__stage {
  position: relative;
  height: min(58vh, 560px, 100vw);
  aspect-ratio: 800 / 1040;
  margin-top: 6vh;
}
.lift { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--yellow); }
.lift-arms line { stroke: var(--yellow); stroke-width: 26; stroke-linecap: square; }
.lift-wheels .wheel { transform-box: fill-box; transform-origin: center; }
.loader__shadow {
  position: absolute; left: 8%; right: 8%; bottom: -1.5%;
  height: 4%;
  background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent);
  filter: blur(4px);
}

/* Logo que aparece sobre la baranda de la plataforma */
.loader__logo-mask {
  position: absolute;
  left: -10%; right: -10%;
  bottom: 92.3%;              /* = borde superior de la baranda (y 229.5 del viewBox) */
  overflow: hidden;
  padding: 8% 0 5%;
}
.loader__logo { width: 100%; }
.loader__logo .ll, .loader__logo .lr { transform-box: fill-box; transform-origin: 50% 100%; }

.loader__meter {
  position: absolute; left: var(--pad); bottom: var(--pad);
  display: grid; gap: 6px;
  font-family: var(--f-display);
}
.loader__label { font-family: var(--f-label); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.loader__count {
  font-size: clamp(44px, 6vw, 84px); line-height: .9; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.loader__count small { font-size: .38em; margin-left: .15em; color: var(--yellow); font-weight: 700; }
.loader__ruler { position: relative; width: clamp(140px, 18vw, 240px); height: 2px; background: var(--line); margin-top: 8px; }
.loader__ruler-fill { position: absolute; inset: 0; background: var(--yellow); transform-origin: left; transform: scaleX(0); }

.loader__foot { font-family: var(--f-label);
  position: absolute; right: var(--pad); bottom: var(--pad);
  display: grid; justify-items: end; gap: 4px;
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}

/* Franja amarilla que queda detrás del panel en la salida */
.curtain { position: fixed; inset: 0; z-index: 99; background: var(--yellow); pointer-events: none; }
html:not(.js) .curtain, .curtain.is-done { display: none; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --h: 58px; --cut: 15px;
  --shape: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  position: relative; display: inline-flex; align-items: center; gap: 16px;
  height: var(--h); padding: 0 28px 0 30px;
  font-family: var(--f-body); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  clip-path: var(--shape);
  transition: color .55s var(--ease-io);
  isolation: isolate; overflow: hidden; cursor: pointer;
}
.btn--sm { --h: 46px; --cut: 11px; font-size: 14px; padding: 0 20px 0 22px; gap: 12px; }

/* Text roll (hover) */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.35; }
.roll__in { position: relative; display: inline-block; transition: transform .55s var(--ease-out); }
.roll__in::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
a:hover .roll__in, button:hover .roll__in { transform: translateY(-100%); }

.btn__icon { display: grid; place-items: center; }
.btn__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.btn:hover .btn__icon svg { transform: translateX(5px); }

/* Principal: amarillo; al hover entra el blanco en diagonal (ángulo del rayo de la B) */
.btn--primary { background: var(--yellow); color: var(--teal-800); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
  clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); transition: clip-path .7s var(--ease-io);
}
.btn--primary:hover::before { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); }

/* WhatsApp: verde reconocible + logo (mismas esquinas de marca) */
.btn--wa { background: #25D366; color: #05261a; }
.btn--wa::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
  clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); transition: clip-path .7s var(--ease-io);
}
.btn--wa:hover::before { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); }
.btn--wa .btn__icon svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.btn--wa:hover .btn__icon svg { transform: scale(1.12) rotate(-8deg); }

/* Cifras con "+" */
.figure dd .plus { font-size: .5em; margin: 0 2px 0 0; vertical-align: .55em; color: var(--yellow); }

/* Instagram con ícono */
.ig-link { display: inline-flex; align-items: center; gap: 10px; }
.ig-ic { width: 22px; height: 22px; fill: none; stroke: var(--yellow); stroke-width: 1.8; transition: transform .4s var(--ease-out); }
.ig-ic .ig-dot { fill: var(--yellow); stroke: none; }
.ig-link:hover .ig-ic { transform: scale(1.12); }

/* Secundario: borde fino con las mismas esquinas; al hover se llena de amarillo suave */
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(234,241,242,.28);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut),
    1px calc(var(--cut) + .4px), 1px calc(100% - 1px), calc(100% - var(--cut) - .4px) calc(100% - 1px), calc(100% - 1px) calc(100% - var(--cut) - .4px),
    calc(100% - 1px) 1px, calc(var(--cut) + .4px) 1px, 1px calc(var(--cut) + .4px), 0 var(--cut));
  transition: background-color .5s;
}
.btn--ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(237,200,98,.12); transform: translateX(-101%); transition: transform .7s var(--ease-io); }
.btn--ghost:hover { color: var(--yellow); }
.btn--ghost:hover::before { transform: none; }
.btn--ghost:hover::after { background: rgba(237,200,98,.6); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: transform .7s var(--ease-out), height .5s var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(7, 47, 56, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.nav.is-scrolled { --nav-h: 72px; }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
body.menu-open .nav { transform: none; }
body.menu-open .nav::before { opacity: 0; }

.nav__inner {
  position: relative; height: 100%;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav__logo { width: clamp(118px, 11vw, 150px); flex-shrink: 0; transition: width .5s var(--ease-out); }
.nav.is-scrolled .nav__logo { width: clamp(108px, 9.5vw, 130px); }

.nav__links {
  display: flex; gap: 6px;
  padding: 6px; border-radius: 999px;
  background: rgba(234,241,242,.04); border: 1px solid var(--line);
}
.nav__link {
  position: relative; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.nav__link .roll__in::after { color: var(--yellow); }
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { background: rgba(250,199,71,.1); color: var(--yellow); }

.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__phones { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.nav__phones svg { width: 16px; height: 16px; fill: var(--yellow); flex: none; }
.nav__phones span { display: grid; gap: 1px; }
.nav__phones a { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); transition: color .3s; }
.nav__phones a:hover { color: var(--yellow); }

.nav__burger {
  display: none; position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(234,241,242,.25); background: transparent; cursor: pointer;
}
.nav__burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink);
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 26px; }
body.menu-open .nav__burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 40px) var(--pad) var(--pad);
  background: var(--teal-900);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: grid; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--f-display);
  font-size: clamp(36px, 10vw, 64px); font-weight: 800; line-height: 1.1; text-transform: uppercase;
  transform: translateY(40px); opacity: 0;
  transition: transform .8s var(--ease-out), opacity .8s var(--ease-out), color .3s;
}
.menu__links a small { font-family: var(--f-body); font-size: 12px; color: var(--yellow); font-weight: 700; }
.menu__links a:hover { color: var(--yellow); }
body.menu-open .menu__links a { transform: none; opacity: 1; }
body.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; }
body.menu-open .menu__links a:nth-child(2) { transition-delay: .31s; }
body.menu-open .menu__links a:nth-child(3) { transition-delay: .37s; }
body.menu-open .menu__links a:nth-child(4) { transition-delay: .43s; }
.menu__foot { display: grid; gap: 6px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 24px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: linear-gradient(180deg, var(--teal-800) 0%, var(--teal-900) 100%);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
/* Patrón de marca: el corte de la B repetido (elemento complementario) */
.hero__pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='%232B5567'%3E%3Cpolygon points='38,20 52,20 40,35 26,35'/%3E%3Cpolygon points='40,36 54,36 42,51 28,51'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  mask-image: radial-gradient(55% 65% at 25% 45%, rgba(0,0,0,.9), transparent 80%);
  -webkit-mask-image: radial-gradient(55% 65% at 25% 45%, rgba(0,0,0,.9), transparent 80%);
  opacity: .2;
}
.hero__glow {
  position: absolute; width: 60vw; height: 60vw; right: -10vw; top: 10%;
  background: radial-gradient(closest-side, rgba(250,199,71,.16), transparent 70%);
  filter: blur(20px);
}
/* Rayo de marca */
.hero__rayo {
  position: absolute; top: -6%; height: 116%; width: auto;
  right: 2%;
  aspect-ratio: 4500 / 5325;
  fill: var(--yellow);
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%);
}
.hero__rayo--back { right: -18%; top: 4%; fill: var(--petrol); opacity: .55; }

.hero__inner {
  position: relative; flex: 1;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 4vh, 56px) var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
}

.hero__eyebrow { font-family: var(--f-label);
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(234,241,242,.04);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--rust); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }

.hero__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 4.3vw, 78px);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding: .14em 0 .04em; margin: -.14em 0 -.04em; } /* aire para la tilde de la Ó */
.hero__title-pre {
  font-size: .36em; letter-spacing: .08em; font-weight: 800;
  color: var(--muted); margin-bottom: .35em !important;
}
.hero__title .line__in { display: inline-block; }
.hero__title em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
  background: linear-gradient(90deg, var(--yellow) 0 var(--fill, 0%), transparent var(--fill, 0%));
  -webkit-background-clip: text; background-clip: text;
}
.hero__title-mark { color: var(--yellow); }

.hero__lead {
  max-width: 34em; margin: 32px 0 0;
  font-size: clamp(16px, 1.2vw, 18px); color: var(--muted);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__phones {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  list-style: none; margin: 32px 0 0; padding: 0;
  font-variant-numeric: tabular-nums;
}
.hero__phones a { font-weight: 700; font-size: 15px; transition: color .3s; }
.hero__phones a span { color: var(--yellow); font-weight: 600; margin-right: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hero__phones a:hover { color: var(--yellow); }

/* Visual */
.hero__visual { position: relative; align-self: stretch; display: grid; place-items: end center; min-height: 480px; }
.hero__img {
  position: relative; z-index: 1;
  width: min(100%, 620px); height: auto;
  margin-bottom: clamp(16px, 4vh, 48px);
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.45));
}
.hero__scale {
  position: absolute; left: 0; top: 12%; bottom: 10%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-left: 14px; border-left: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted);
}
.hero__scale span { position: relative; }
.hero__scale span::before { content: ""; position: absolute; left: -14px; top: 50%; width: 8px; height: 1px; background: var(--yellow); }

.hero__card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 16px; border-radius: 18px;
  background: rgba(7, 47, 56, .62);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(234,241,242,.14);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.hero__card strong {
  font-family: var(--f-display);
  font-size: 34px; line-height: 1; font-weight: 900; color: var(--yellow);
}
.hero__card strong small { font-size: .5em; margin-left: 2px; }
.hero__card span { font-size: 12px; line-height: 1.35; color: var(--muted); font-weight: 600; }
.hero__card--a { left: 6%; top: 20%; }
.hero__card--b { right: 12%; bottom: 0; }   /* debajo de las ruedas: no tapa la marca de las máquinas */

/* Bottom bar */
.hero__bottom {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  border-top: 1px solid var(--line);
  background: rgba(7, 47, 56, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding: 22px 0;
  animation: marquee 38s linear infinite;
  font-family: var(--f-display);
  font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(234,241,242,.75);
}
.marquee__track i { width: 7px; height: 7px; background: var(--yellow); transform: skewX(-30deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

.hero__scroll { font-family: var(--f-label);
  display: flex; align-items: center; gap: 12px;
  padding: 0 calc(var(--pad) + 76px) 0 32px; align-self: stretch;
  border-left: 1px solid var(--line);
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { position: relative; width: 1px; height: 36px; background: var(--line); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--yellow); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Estado inicial para la entrada animada (sólo con JS) */
html.js .hero__title .line__in { transform: translateY(110%); }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .hero__img, html.js .hero__card, html.js .hero__scale, html.js .hero__bottom { opacity: 0; }
html.js .hero__rayo { clip-path: inset(100% 0 0 0); }


/* WhatsApp */
.wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; box-shadow: 0 12px 30px rgba(0,0,0,.3);
  transition: transform .5s var(--ease-out);
}
.wa svg { width: 28px; height: 28px; fill: #fff; }
.wa:hover { transform: scale(1.08) rotate(-6deg); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__phones { display: none; }
}
@media (max-width: 960px) {
  :root { --nav-h: 76px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__actions { gap: 10px; }

  .hero__inner { grid-template-columns: 1fr; padding-top: 32px; }
  .hero__visual { min-height: 0; margin-top: 8px; }
  .hero__img { width: min(82%, 460px); }
  .hero__rayo { top: auto; bottom: -6%; height: 46%; right: -26%; }
  .hero__rayo--back { display: none; }
  .hero__scale { display: none; }
  .hero__card--a { left: 0; top: 10%; }
  .hero__card--b { right: 0; bottom: -4px; }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .nav .btn--sm { display: none; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero__cta .btn--ghost { justify-content: center; }
  .hero__card { padding: 10px 14px 10px 12px; }
  .hero__card strong { font-size: 26px; }
  .loader__foot { display: none; }
  .loader__stage { height: min(50vh, 420px, 100vw); }
  .hero__eyebrow { font-size: 9px; letter-spacing: .02em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   HOME — secciones (usan componentes de equipos.css: .sec, .kicker, .steps…)
   ========================================================================== */

/* Quiénes somos — la regla de altura sube con el scroll */
.about { position: relative; overflow: clip; padding: clamp(96px, 13vw, 200px) 0 clamp(80px, 10vw, 160px); border-top: 1px solid var(--line); }
.about__rayo { position: absolute; right: -12%; top: 6%; height: 92%; width: auto; aspect-ratio: 4500/5325; fill: var(--petrol); opacity: .22; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 55%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 95%); }
.about__grid { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); }

.about__meter { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; height: min(62vh, 560px); display: grid; grid-template-rows: auto auto 1fr; gap: 6px; }
.about__meter-label { font-family: var(--f-label); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.about__meter-val { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.about__meter-val small { font-size: .42em; margin-left: 3px; }
.about__meter-track { position: relative; width: 4px; margin: 18px 0 0 2px; border-radius: 4px; background: var(--line); }
.about__meter-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 0) * 100%); border-radius: inherit; background: linear-gradient(0deg, var(--yellow-600), var(--yellow)); }
.about__meter-fill::after { content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; border-radius: 50%; transform: translateX(-50%); background: var(--yellow); box-shadow: 0 0 0 6px rgba(237,200,98,.15); }
.about__meter-track i { position: absolute; left: 10px; bottom: calc(var(--y) * 100%); width: 10px; height: 1px; background: var(--muted); opacity: .5; }

.about__statement {
  margin: 18px 0 0; max-width: 22em;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3.3vw, 52px); line-height: 1.18; letter-spacing: -.015em;
}
.about__statement em { font-style: normal; }
.about__statement .w { color: rgba(234,241,242,.16); transition: color .5s var(--ease-out); }
.about__statement .w.is-lit { color: var(--ink); }
.about__statement em .w.is-lit { color: var(--yellow); }
html:not(.js) .about__statement .w, .about__statement:not([data-scrub]) .w { color: var(--ink); }

/* Fotos + pilares */
.about__split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(64px, 9vw, 128px); }
.about__media { position: relative; margin: 0 12% 12% 0; }
.about__ph { border-radius: 26px; overflow: hidden; background: var(--teal-900); }
.about__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__ph--main { aspect-ratio: 4 / 5; }
.about__ph--main img { transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
.about__ph--main.is-in img { transform: scale(1); }
.about__ph--sub {
  position: absolute; right: -10%; bottom: -12%; width: 40%; aspect-ratio: 2 / 3;
  border: 6px solid var(--teal-800); border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
.about__mark { position: absolute; left: -9%; top: 58%; width: 22%; height: auto; fill: var(--yellow); z-index: 2; pointer-events: none; }
.about__media::after { content: "Fotos: Haulotte"; position: absolute; left: 0; top: calc(100% + 12px); font-size: 11px; color: var(--muted); opacity: .7; }

/* Revelado "elevándose": la foto aparece de abajo hacia arriba */
html.js .reveal-rise { clip-path: inset(100% 0 0 0 round 26px); transition: clip-path 1.4s var(--ease-io); }
html.js .reveal-rise.is-in { clip-path: inset(0 0 0 0 round 26px); }
html.js .about__ph--sub.reveal-rise { transition-delay: .35s; }

.pillars { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pillar {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 20px; align-items: baseline;
  padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line);
}
.pillar::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__n { font-family: var(--f-display); font-size: 14px; font-weight: 700; color: var(--yellow); }
.pillar__t { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2vw, 30px); line-height: 1.1; transition: transform .6s var(--ease-out), color .4s; }
.pillar:hover .pillar__t { transform: translateX(8px); color: var(--yellow); }
.pillar__d { grid-column: 2; margin: 0; color: var(--muted); font-size: 15px; max-width: 32em; }

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin: clamp(64px, 9vw, 120px) 0 0; }
.figure { display: flex; flex-direction: column; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.figure dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 7.5vw, 120px); line-height: .9; letter-spacing: -.03em; color: var(--ink); }
.figure dd small { font-size: .32em; margin-left: 6px; color: var(--yellow); letter-spacing: 0; }
.figure:first-child dd { color: var(--yellow); }
.figure dt { color: var(--muted); font-size: 14px; max-width: 16em; }

@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__meter { display: none; }
  .about__split { grid-template-columns: 1fr; }
  .about__media { margin: 0 12% 16% 0; }
  .figures { grid-template-columns: 1fr; }
}

/* Equipos (paneles por categoría) */
.catps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.catp {
  display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: 26px; border: 1px solid var(--line);
  background: radial-gradient(80% 60% at 100% 0%, rgba(43,85,103,.45), transparent 70%), var(--teal-900);
}
.catp__head { display: flex; justify-content: space-between; gap: 16px; }
.catp__count { margin: 0; font-family: var(--f-label); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.catp__title { margin: 12px 0 10px; font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); text-transform: uppercase; line-height: 1; }
.catp__intro { margin: 0; max-width: 26em; color: var(--muted); font-size: 15px; }
.catp__img { width: 120px; height: auto; margin-top: -8px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); }
.catp__list { margin: 24px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.catp__list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(60px, 140px) 76px; align-items: center; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--line); transition: background-color .3s, padding .4s var(--ease-out);
}
.catp__list a:hover { background: rgba(237,200,98,.06); padding-left: 12px; }
.catp__name { font-weight: 600; }
.catp__en { font-size: 12px; color: var(--muted); }
.catp__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.catp__bar i { display: block; height: 100%; width: calc(var(--h) * 100%); background: var(--yellow); border-radius: inherit; }
.catp__h { white-space: nowrap; text-align: right; font-family: var(--f-display); font-weight: 700; color: var(--yellow); }
.catp .link-arrow { margin-top: auto; }

/* Cómo alquilar */
.how { position: relative; overflow: hidden; }
.how__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 96px); }
.how__title { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4vw, 64px); line-height: 1; letter-spacing: -.02em; }
.how__title em { font-style: normal; color: var(--yellow); }

.hsteps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.hsteps__track { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.hsteps__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--yellow-600), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-io); }
.hsteps.is-in .hsteps__fill { transform: scaleX(1); }

.hstep { position: relative; padding: 0 clamp(20px, 3vw, 48px) 0 0; }
.hstep + .hstep { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--line); }
.hstep__dot {
  position: relative; z-index: 1; display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-900); border: 2px solid var(--line); transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.hstep + .hstep .hstep__dot { margin-left: calc(-1 * clamp(20px, 3vw, 48px) - 8px); }
.hsteps.is-in .hstep__dot { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 6px rgba(237,200,98,.14); }
.hsteps.is-in .hstep:nth-of-type(1) .hstep__dot { transition-delay: .1s; }
.hsteps.is-in .hstep:nth-of-type(2) .hstep__dot { transition-delay: .9s; }
.hsteps.is-in .hstep:nth-of-type(3) .hstep__dot { transition-delay: 1.7s; }

.hstep__n {
  display: block; margin: clamp(28px, 4vw, 48px) 0 18px;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(64px, 8vw, 128px); line-height: .85; letter-spacing: -.04em;
  color: rgba(237,200,98,.16); transition: color .5s var(--ease-out);
}
.hstep:hover .hstep__n { color: var(--yellow); }
.hstep__t { margin: 0 0 12px; font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.15; }
.hstep__d { margin: 0; max-width: 24em; color: var(--muted); font-size: 15px; }

/* entrada escalonada */
html.js .hstep__n, html.js .hstep__t, html.js .hstep__d { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), color .5s var(--ease-out), -webkit-text-stroke-color .5s; }
html.js .hsteps.is-in .hstep__n, html.js .hsteps.is-in .hstep__t, html.js .hsteps.is-in .hstep__d { opacity: 1; transform: none; }
html.js .hsteps.is-in .hstep:nth-of-type(2) > * { transition-delay: .8s; }
html.js .hsteps.is-in .hstep:nth-of-type(3) > * { transition-delay: 1.6s; }
html.js .hsteps.is-settled .hstep > * { transition-delay: 0s !important; }

@media (max-width: 960px) {
  .hsteps { grid-template-columns: 1fr; gap: 40px; padding-left: 28px; }
  .hsteps__track { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .hsteps__fill { transform: scaleY(0); transform-origin: top; }
  .hsteps.is-in .hsteps__fill { transform: scaleY(1); }
  .hstep, .hstep + .hstep { padding: 0; border-left: 0; }
  .hstep__dot, .hstep + .hstep .hstep__dot { position: absolute; left: -28px; top: 4px; margin: 0; }
  .hstep__n { margin-top: 0; }
}

/* Clientes */
.clients { overflow: hidden; border-top: 1px solid var(--line); }
.clients__title { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4vw, 64px); line-height: 1; letter-spacing: -.02em; }
.clients__title em { font-style: normal; color: var(--yellow); }
.logos { display: grid; gap: 14px; }
.logos__row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos__track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 0; list-style: none; animation: logos 60s linear infinite; }
.logos__row--b .logos__track { animation-direction: reverse; animation-duration: 70s; }
.logos__row:hover .logos__track { animation-play-state: paused; }
.logos__track li { display: grid; place-items: center; width: 200px; height: 104px; border-radius: 18px; background: #fff; }
.logos__track img { width: 150px; height: auto; }
@keyframes logos { to { transform: translateX(calc(-50% - 7px)); } }

/* Contacto */
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__title { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 54px); line-height: 1.02; letter-spacing: -.02em; }
.contact__title em { font-style: normal; color: var(--yellow); }
.contact__lead { margin: 20px 0 32px; color: var(--muted); max-width: 30em; }
.contact__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.contact__list span { font-family: var(--f-label); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); align-self: center; }
.contact__list a { transition: color .3s; }
.contact__list a:hover { color: var(--yellow); }

.form { display: grid; gap: 16px; padding: clamp(24px, 3.4vw, 44px); border-radius: 26px; border: 1px solid var(--line); background: var(--teal-900); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(234,241,242,.16); background-color: rgba(234,241,242,.04); color: var(--ink);
  font: 400 15px var(--f-body); transition: border-color .3s, background-color .3s;
}
.field select {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23EDC862' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select option, .field select optgroup { background: var(--teal-900); color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); background-color: rgba(237,200,98,.05); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--rust); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form__foot .btn { border: 0; }
.form__msg { margin: 0; font-size: 14px; color: var(--muted); }
.form__msg.is-ok { color: var(--yellow); }
.form__msg.is-error { color: #F0A58C; }
.form__msg a { color: var(--yellow); text-decoration: underline; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }

@media (max-width: 960px) {
  .contact__grid, .catps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .catp__list a { grid-template-columns: minmax(0, 1fr) 76px; }
  .catp__en, .catp__bar { display: none; }
  .catp__img { width: 84px; }
  .logos__track li { width: 150px; height: 84px; }
  .logos__track img { width: 112px; }
}

/* Cobertura — mapa interactivo de localidades */
.cov { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cov__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cov__title { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4vw, 64px); line-height: 1; letter-spacing: -.02em; }
.cov__title em { font-style: normal; color: var(--yellow); }
.cov__lead { margin: 20px 0 28px; max-width: 30em; color: var(--muted); }
.cov__list { columns: 2; column-gap: 28px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cov__list li { break-inside: avoid; }
.cov__list a {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 4px;
  border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500;
  transition: color .3s, padding .4s var(--ease-out), background-color .3s;
}
.cov__list a span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; align-self: center; }
.cov__list a:hover, .cov__list a.is-hot { color: var(--yellow); padding-left: 10px; background: rgba(237,200,98,.06); }

.cov__map { position: relative; }
.cov__svg { display: block; width: 100%; height: auto; overflow: visible; }
.cov__bg { fill: rgba(7,47,56,.55); stroke: var(--line); stroke-width: 2; }
.cov__ring { fill: none; stroke: rgba(234,241,242,.14); stroke-width: 1.5; stroke-dasharray: 6 8; }
.cov__ring-t { fill: rgba(234,241,242,.45); font-family: var(--f-label); font-size: 15px; letter-spacing: .08em; }
.cov__route { stroke: rgba(237,200,98,.35); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; fill: none; transition: stroke .3s, stroke-width .3s; }
.cov.is-in .cov__route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-io) var(--d), stroke .3s, stroke-width .3s; }
.cov__route.is-hot { stroke: var(--yellow); stroke-width: 3.5; }

.cov__pt { cursor: pointer; outline: none; }
.cov__hit { fill: transparent; }
.cov__dot { fill: var(--yellow); stroke: var(--teal-800); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease-out); }
.cov.is-in .cov__dot { transform: scale(1); transition: transform .7s cubic-bezier(.34,1.56,.64,1) var(--d); }
.cov__halo { fill: rgba(237,200,98,.18); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .4s var(--ease-out); }
.cov__pt:hover .cov__halo, .cov__pt:focus-visible .cov__halo, .cov__pt.is-hot .cov__halo { transform: scale(1.4); }
.cov.is-in .cov__pt:hover .cov__dot, .cov.is-in .cov__pt.is-hot .cov__dot { transform: scale(1.35); transition-delay: 0s; }

.cov__base rect { fill: #fff; }
.cov__base text { fill: var(--ink); font-family: var(--f-display); font-size: 30px; font-weight: 700; paint-order: stroke; stroke: #0B3A45; stroke-width: 10px; stroke-linejoin: round; }
.cov__base .cov__base-sub { fill: var(--yellow); font-family: var(--f-body); font-size: 19px; font-weight: 500; }
.cov__pulse { fill: rgba(255,255,255,.25); transform-box: fill-box; transform-origin: center; animation: covPulse 2.4s var(--ease-out) infinite; }
@keyframes covPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

.cov__tip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px;
  background: var(--teal-900); border: 1px solid rgba(237,200,98,.4); box-shadow: 0 16px 32px rgba(0,0,0,.35);
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(.96); transition: opacity .25s, transform .25s var(--ease-out);
  white-space: nowrap;
}
.cov__tip.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 18px)); }
.cov__tip strong { font-family: var(--f-display); font-size: 15px; }
.cov__tip span { font-size: 12px; color: var(--muted); }

.cov__locator { position: absolute; right: 20px; top: 20px; width: clamp(70px, 9vw, 120px); height: auto; }
.cov__locator polygon { fill: rgba(234,241,242,.06); stroke: rgba(234,241,242,.35); stroke-width: 1.2; }
.cov__locator rect { fill: rgba(237,200,98,.12); stroke: var(--yellow); stroke-width: 1.2; stroke-dasharray: 3 2; }
.cov__note { margin: 10px 0 0; font-size: 11px; color: var(--muted); text-align: right; }

@media (max-width: 960px) {
  .cov__grid { grid-template-columns: 1fr; }
  .cov__locator { width: 64px; right: 12px; top: 12px; }
}
@media (max-width: 560px) {
  .cov__list { column-gap: 16px; }
  .cov__list a { font-size: 14px; }
}
