/* =========================================================
   MC ALENOR — Montajes industriales
   Marca: azul marino + amarillo de seguridad + rojo
   ========================================================= */

:root {
  --navy-950: #081333;
  --navy-900: #0d1b3e;
  --navy-800: #14295c;   /* azul de la marca */
  --navy-700: #1a3a7a;
  --navy-600: #1650a8;
  --yellow: #f2bf1a;     /* amarillo de la marca */
  --yellow-soft: #f8d564;
  --red: #d8202a;        /* rojo de la marca */
  --wa: #25d366;
  --wa-dark: #1da851;
  --ink: #0e1a3a;
  --text: #3a4766;
  --muted: #8d9bbd;
  --light: #f3f5f4;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -18px rgba(8, 19, 51, .45);
  --shadow-sm: 0 6px 18px -8px rgba(8, 19, 51, .35);
  --ff-head: "Archivo", "Arial Black", sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 80px;
  --tabbar-h: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--tabbar-h);
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
html.is-locked { overflow: hidden; }


img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--ff-head); font-variation-settings: "wdth" 110; font-weight: 800;
  color: var(--ink); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Utilidades ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-head); font-variation-settings: "wdth" 100; font-weight: 700; font-size: .9rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--red); }
.stripe {
  width: 34px; height: 10px; border-radius: 2px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 6px, var(--navy-900) 6px 12px);
}
.eyebrow--dark .stripe { background: repeating-linear-gradient(-45deg, var(--red) 0 6px, var(--navy-800) 6px 12px); }

.hl { color: var(--yellow); }
.hl-dark {
  background: linear-gradient(transparent 62%, rgba(242, 191, 26, .5) 62%);
  padding: 0 .1em;
}

.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); text-transform: uppercase; }
.section__title--light { color: var(--white); }
.section__sub { color: #b9c5e0; font-size: 1.08rem; max-width: 640px; }
.section__sub--dark { color: var(--text); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--lg svg { width: 24px; height: 24px; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.btn--wa:hover { background: var(--wa-dark); box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .9); }
.btn--cta { background: var(--yellow); color: var(--navy-900); box-shadow: 0 10px 24px -12px rgba(242, 191, 26, .9); }
.btn--cta:hover { background: var(--yellow-soft); box-shadow: 0 14px 30px -12px rgba(242, 191, 26, 1); }
.btn--cta svg { width: 22px; height: 22px; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--outline-dark { border-color: var(--navy-800); color: var(--navy-800); }
.btn--outline-dark:hover { background: var(--navy-800); color: var(--yellow); }
.btn--yellow { background: var(--yellow); color: var(--navy-900); }
.btn--yellow:hover { background: var(--yellow-soft); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-950); color: #c5d0ea; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar__links { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 16px; height: 16px; color: var(--yellow); }
a.topbar__item:hover { color: var(--yellow); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 27, 62, .9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(13, 27, 62, .97); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .6); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.logo__plate {
  background: #fff; border-radius: 12px; padding: 5px 10px; display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.logo:hover .logo__plate { transform: rotate(-2deg) scale(1.04); }
.logo__plate img { height: 52px; width: auto; }
.logo__text { font-family: var(--ff-head); font-variation-settings: "wdth" 115; font-weight: 800; font-size: 1.15rem; line-height: 1.05; }
.logo__text small { display: block; font-family: var(--ff-body); font-weight: 600; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) {
  color: #d8e0f2; font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 8px; position: relative;
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-current { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav__cta { margin-left: 10px; }
.nav__extra { display: none; }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(640px, calc(100svh - var(--header-h) - 40px - var(--tabbar-h)));
  display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-900);
  padding: 80px 0 150px;
}
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slides { will-change: transform; }
.hero__slide { overflow: hidden; visibility: hidden; z-index: 0; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slide.is-active { visibility: visible; z-index: 1; }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
.hero__slide:nth-child(even).is-active img { animation-name: kenburns-alt; }

/* Entrada: cortina que avanza con una franja amarilla en el borde */
.hero__slide.is-entering { z-index: 2; animation: wipe-in-next 1.25s var(--ease-io) forwards; }
.hero__slide.is-entering.from-prev { animation-name: wipe-in-prev; }
.hero__slide.is-entering img { animation: enter-zoom 1.25s var(--ease-io) forwards; }
/* Salida: se desplaza y se oscurece */
.hero__slide.is-leaving { visibility: visible; z-index: 1; animation: leave-next 1.25s var(--ease-io) forwards; }
.hero__slide.is-leaving.from-prev { animation-name: leave-prev; }

@keyframes wipe-in-next { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-in-prev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes enter-zoom { from { transform: scale(1.3) translateX(4%); } to { transform: scale(1.12); } }
@keyframes leave-next { to { transform: translateX(-18%); filter: brightness(.35); } }
@keyframes leave-prev { to { transform: translateX(18%); filter: brightness(.35); } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1) translate(-1.5%, -1%); } }
@keyframes kenburns-alt { from { transform: scale(1.12); } to { transform: scale(1.02) translate(1.5%, 1%); } }

.hero__wipe {
  position: absolute; top: 0; bottom: 0; left: 100%; width: 90px; z-index: 3; pointer-events: none;
  transform: translateX(-50%); opacity: 0;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--navy-900) 14px 28px);
  box-shadow: 0 0 60px 20px rgba(242, 191, 26, .25);
}
.hero__wipe.run-next { animation: wipe-bar-next 1.25s var(--ease-io) forwards; }
.hero__wipe.run-prev { animation: wipe-bar-prev 1.25s var(--ease-io) forwards; }
@keyframes wipe-bar-next {
  0% { left: 100%; opacity: 1; width: 90px; } 50% { width: 140px; }
  90% { opacity: 1; } 100% { left: 0%; opacity: 0; width: 20px; }
}
@keyframes wipe-bar-prev {
  0% { left: 0%; opacity: 1; width: 90px; } 50% { width: 140px; }
  90% { opacity: 1; } 100% { left: 100%; opacity: 0; width: 20px; }
}

.hero__overlay {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(13, 27, 62, .95) 0%, rgba(13, 27, 62, .78) 45%, rgba(13, 27, 62, .2) 100%),
    linear-gradient(0deg, rgba(13, 27, 62, .92) 0%, transparent 45%);
}
.hero__content { position: relative; z-index: 5; will-change: transform, opacity; }
.hero__title {
  font-size: clamp(2.4rem, 6.6vw, 5.3rem); text-transform: uppercase; color: #fff;
  max-width: 900px; line-height: .98; margin-bottom: 22px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .22em; margin-bottom: -.16em; }
.hero__title .line > span {
  display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left bottom;
  animation: line-up 1s var(--ease) var(--d, 0s) forwards;
}
@keyframes line-up { to { transform: none; } }
.hero__title .hl { position: relative; }
.hero__title .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.17em; height: clamp(5px, .09em, 9px);
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, transparent 10px 20px);
  transform: scaleX(0); transform-origin: left; animation: grow-x .9s var(--ease) 1.1s forwards;
}
@keyframes grow-x { to { transform: scaleX(1); } }
.hero__in { opacity: 0; transform: translateY(24px); filter: blur(6px); animation: hero-in .9s var(--ease) var(--d, 0s) forwards; }
@keyframes hero-in { to { opacity: 1; transform: none; filter: blur(0); } }

.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #d5ddf0; max-width: 620px; margin-bottom: 32px; }
.hero__lead strong { color: var(--yellow); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px;
  border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 26px; gap: 20px;
}
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--ff-head); font-variation-settings: "wdth" 110; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--yellow); line-height: 1; }
.stats span { font-size: .85rem; color: #aebadb; margin-top: 6px; }

/* Controles del carrusel */
.hero__ui {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 34px;
  width: min(1200px, 100% - 32px); margin-inline: auto;
  display: flex; justify-content: flex-end; align-items: center; gap: 28px;
  opacity: 0; animation: hero-in .9s var(--ease) 1.2s forwards;
}
.hero__caption {
  display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 14px; border-radius: 14px;
  background: rgba(13, 27, 62, .6); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 260px; overflow: hidden;
}
.hero__count { font-family: var(--ff-head); font-size: 1rem; color: var(--muted); letter-spacing: .06em; border-right: 1px solid rgba(255, 255, 255, .15); padding-right: 14px; white-space: nowrap; }
.hero__count b { font-size: 1.9rem; color: var(--yellow); }
.hero__cap-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero__cap-text small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.hero__cap-text strong { font-family: var(--ff-head); font-size: 1.1rem; text-transform: uppercase; }
.hero__cap-text span { font-size: .8rem; color: #b9c5e0; }
.hero__cap-text.is-out { animation: cap-out .35s var(--ease-io) forwards; }
.hero__cap-text.is-in { animation: cap-in .5s var(--ease) forwards; }
@keyframes cap-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes cap-in { from { opacity: 0; transform: translateY(14px); } }

.hero__controls { display: flex; align-items: center; gap: 14px; }
.hero__arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: rgba(13, 27, 62, .35);
  display: grid; place-items: center; color: #fff;
  transition: background .25s, border-color .25s, transform .25s var(--ease), color .25s;
}
.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); transform: scale(1.08); }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button {
  width: 30px; height: 5px; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .28); padding: 0;
  position: relative; overflow: hidden; transition: width .4s var(--ease);
}
.hero__dots button::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.hero__dots button.is-active { width: 64px; }
.hero__dots button.is-active::after { animation: progress var(--hero-delay, 6.5s) linear forwards; }
.hero.is-paused .hero__dots button.is-active::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

@media (min-width: 1200px) {
  .hero { padding: 72px 0 84px; }
  .hero__ui { flex-direction: column; align-items: flex-end; top: calc(50% - 40px); bottom: auto; gap: 16px; }
  .hero__caption { min-width: 290px; }
}

/* ---------- Cinta ---------- */
.ticker { background: var(--yellow); overflow: hidden; padding: 16px 0; border-block: 4px solid var(--navy-900); }
.ticker__track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker__track span {
  font-family: var(--ff-head); font-variation-settings: "wdth" 110; font-weight: 800; font-size: 1.25rem; text-transform: uppercase; color: var(--navy-900);
  padding: 0 26px; display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
}
.ticker__track span::after { content: "✦"; font-size: 1rem; color: var(--red); margin-left: 26px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__media { position: relative; padding: 0 40px 60px 0; }
.about__img { border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 100%; aspect-ratio: 4 / 4.4; object-position: 50% 35%; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 50%; aspect-ratio: 4 / 4.4; border: 6px solid var(--white); }
.about__badge {
  position: absolute; left: -16px; top: 28px; background: var(--navy-800); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); max-width: 210px; box-shadow: var(--shadow);
  border-left: 5px solid var(--yellow);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-8px); } }
.about__badge strong { display: block; font-family: var(--ff-head); font-size: 1.9rem; line-height: 1; color: var(--yellow); }
.about__badge span { font-size: .82rem; color: #c7d2ea; line-height: 1.35; display: block; margin-top: 6px; }

.checks { display: grid; gap: 12px; margin: 26px 0 32px; }
.checks li { position: relative; padding-left: 36px; font-weight: 500; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1b3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Pilares ---------- */
.pillars { background: var(--light); }
.pillars__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pillar {
  position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 28px 22px 26px;
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s;
}
.pillar::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.pillar:nth-child(even)::before { background: var(--red); }
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__icon {
  width: 58px; height: 58px; border-radius: 16px; background: var(--navy-800); display: grid; place-items: center; margin-bottom: 18px;
  transition: transform .5s var(--ease), background .3s;
}
.pillar:hover .pillar__icon { transform: rotate(-8deg) scale(1.08); background: var(--navy-600); }
.pillar__icon svg { width: 34px; height: 34px; color: var(--yellow); }
.pillar h3 { font-size: 1.05rem; text-transform: uppercase; margin-bottom: 8px; }
.pillar p { font-size: .92rem; margin: 0; }

/* ---------- Servicios ---------- */
.services {
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(242, 191, 26, .12), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  overflow: hidden;
}
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.services .container { position: relative; }
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.svc {
  position: relative; padding: 30px 26px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1); color: #b9c5e0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--red)); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.svc:hover { transform: translateY(-6px); border-color: rgba(242, 191, 26, .45); background: linear-gradient(180deg, rgba(242, 191, 26, .1), rgba(255, 255, 255, .02)); }
.svc:hover::before { transform: scaleX(1); }
.svc h3 { color: #fff; font-size: 1.15rem; text-transform: uppercase; margin-bottom: 10px; }
.svc p { font-size: .94rem; flex: 1; }
.svc__icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(242, 191, 26, .14);
  transition: transform .5s var(--ease), background .3s;
}
.svc__icon svg { width: 38px; height: 38px; color: var(--yellow); }
.svc:hover .svc__icon { transform: rotate(-6deg) scale(1.1); background: rgba(242, 191, 26, .22); }
.svc__link { font-weight: 700; color: var(--yellow); display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; }
.svc__link span { transition: transform .25s var(--ease); }
.svc__link:hover span { transform: translateX(5px); }
.svc--accent { background: linear-gradient(160deg, var(--yellow), #f59e0b); border-color: transparent; color: var(--navy-900); }
.svc--accent h3, .svc--accent .svc__link { color: var(--navy-900); }
.svc--accent .svc__icon { background: rgba(13, 27, 62, .12); }
.svc--accent .svc__icon svg { color: var(--navy-900); }
.svc--accent:hover { background: linear-gradient(160deg, var(--yellow-soft), #f59e0b); }
.svc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 191, 26, .18), transparent 45%);
}
.svc:hover::after { opacity: 1; }
.svc--accent::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 45%); }

/* ---------- Ciclo de la grúa torre (escena) ---------- */
.cycle { background: var(--navy-950); color: #fff; overflow: clip; }
.cycle::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cycle__stage { position: relative; }
.cycle__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); column-gap: clamp(20px, 3vw, 48px); }
.cycle__copy { grid-column: 1 / -1; }
.cycle__copy .section__sub { margin-bottom: 0; }
.cycle__track { display: none; }
.cycle__draw { display: none; }
.cycle__steps { grid-column: 1 / -1; display: grid; gap: 48px; margin-top: 48px; }
.cstep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.cstep__tag { display: inline-block; font-family: var(--ff-head); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-900); background: var(--yellow); padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.cstep h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; }
.cstep p { color: #c3cde6; font-size: 1.02rem; }
.cstep ul { display: grid; gap: 8px; margin-top: 8px; }
.cstep li { position: relative; padding-left: 22px; color: #e3e9f6; font-size: .95rem; }
.cstep li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--yellow); border-radius: 2px; }
.cstep figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.cstep img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.cstep figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(13, 27, 62, .85); color: #fff; font-size: .8rem;
  padding: 6px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center;
}
.cstep figcaption svg { width: 15px; height: 15px; color: var(--yellow); }

/* Modo escena: la grúa se anima al elegir una etapa (no depende del scroll) */
.cycle.is-stage .cycle__stage { height: clamp(620px, 80vh, 760px); }
.cycle.is-stage .cycle__in { height: 100%; grid-template-rows: auto auto minmax(0, 1fr); row-gap: 18px; }
.cycle.is-stage .cycle__copy { grid-column: 1 / span 2; grid-row: 1; position: relative; z-index: 1; }
.cycle.is-stage .cycle__copy .section__title { margin-bottom: 10px; }
.cycle.is-stage .cycle__copy .section__sub { font-size: .98rem; max-width: 46ch; }
.cycle.is-stage .cycle__track {
  display: flex; gap: 8px; grid-column: 1 / span 2; grid-row: 2; position: relative; z-index: 1; flex-wrap: wrap;
}
.cycle__track button {
  font-family: var(--ff-head); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 9px 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .25); background: transparent; color: #c3cde6;
  cursor: pointer; transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.cycle__track button:hover { border-color: var(--yellow); color: #fff; transform: translateY(-2px); }
.cycle__track button:active { transform: scale(.96); }
.cycle__track button.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); transform: scale(1.05); }
.cycle__track .cycle__play { display: inline-flex; align-items: center; gap: 8px; border-color: var(--yellow); color: var(--yellow); }
.cycle__track .cycle__play svg { width: 16px; height: 16px; }
.cycle__track .cycle__play:hover { background: var(--yellow); color: var(--navy-900); }
.cycle.is-playing .cycle__play svg { animation: pulse-play 1s ease-in-out infinite; }
@keyframes pulse-play { 50% { transform: scale(1.3); } }
.cycle__hint { flex-basis: 100%; margin: 6px 0 0; font-size: .85rem; color: #8d9bbd; }
/* Las etapas ocupan toda la escena: que no tapen los botones */
.cycle.is-stage .cycle__steps { pointer-events: none; }
.cycle.is-stage .cycle__track { z-index: 3; }
.cycle.is-stage .cycle__draw { display: flex; flex-direction: column; grid-column: 2; grid-row: 3; min-height: 0; position: relative; }
.cycle.is-stage .cycle__draw svg { flex: 1; min-height: 0; }
.cycle__draw svg { width: 100%; height: 100%; overflow: visible; }
.cycle__meter {
  margin: 0 0 6px; font-family: var(--ff-head); font-weight: 800; color: var(--yellow); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; line-height: 1.2;
}
.cycle__meter b { display: block; font-size: 2.2rem; color: #fff; letter-spacing: 0; }
.cycle.is-stage .cycle__steps { grid-column: 1 / -1; grid-row: 1 / -1; margin: 0; display: grid; min-height: 0; gap: 0; }
.cycle.is-stage .cstep {
  grid-area: 1 / 1; min-height: 0; align-items: stretch;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); column-gap: clamp(20px, 3vw, 48px);
  grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
}
.cycle.is-stage .cstep.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.cycle.is-stage .cstep__text { grid-column: 1; grid-row: 2; align-self: end; transform: translateY(24px); transition: transform .7s var(--ease); }
.cycle.is-stage .cstep.is-on .cstep__text { transform: none; }
.cycle.is-stage .cstep figure { grid-column: 3; grid-row: 1 / -1; min-height: 0; transform: scale(.94); transition: transform .8s var(--ease); }
.cycle.is-stage .cstep.is-on figure { transform: none; }
.cycle.is-stage .cstep img { height: 100%; aspect-ratio: auto; }

/* Dibujo de la grúa */
.crane-mast line, .crane-mast rect { stroke: #ffffff; stroke-width: 3; fill: none; }
.crane-seg { opacity: 0; transform: translateY(-16px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.crane-seg.on { opacity: 1; transform: none; }
.crane-head { transition: transform .5s var(--ease), opacity .4s; }
.crane-head.off { opacity: 0; }
.crane-jib line, .crane-jib path { stroke: var(--yellow); stroke-width: 3; fill: none; stroke-linejoin: round; }
.crane-cab { fill: var(--yellow); }
.crane-weight { fill: #ffffff; }
.crane-cage { fill: none; stroke: var(--red); stroke-width: 4; opacity: 0; transition: opacity .3s; }
.crane-cage.on { opacity: 1; animation: cage-blink 1s ease-in-out infinite alternate; }
@keyframes cage-blink { to { stroke: var(--yellow); } }
.crane-base { fill: #8d9bbd; }
.crane-ground { stroke: #8d9bbd; stroke-width: 3; }
.crane-hook { animation: hook-sway 3s ease-in-out infinite; transform-box: view-box; transform-origin: 250px 500px; }
@keyframes hook-sway { 50% { transform: rotate(3deg); } }
.crane-hook path { stroke: var(--yellow); stroke-width: 3; fill: none; }
.crane-hook line { stroke: #ffffff; stroke-width: 2; }

/* ---------- Franja de llamado ---------- */
.callout {
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 26px, #e9b10c 26px 52px);
  padding: 44px 0;
}
.callout__inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--white); border-radius: var(--radius-lg); padding: 30px 34px; box-shadow: var(--shadow);
}
.callout__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--navy-800); display: grid; place-items: center; }
.callout__icon svg { width: 50px; height: 50px; color: var(--yellow); transform-origin: 50% 100%; animation: sway 3.2s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.callout h2 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); text-transform: uppercase; margin-bottom: 6px; }
.callout h2 span { color: var(--red); }
.callout p { margin: 0; }
.callout__actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Obras ---------- */
.projects { background: var(--light); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 2px solid #d3dae8; background: var(--white); color: var(--ink); font-weight: 600; font-size: .9rem;
  padding: 9px 18px; border-radius: 999px; transition: all .25s;
}
.filter:hover { border-color: var(--navy-800); }
.filter.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--yellow); }

.projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 340px; grid-auto-flow: dense; gap: 22px; }
.project {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900);
  cursor: zoom-in; box-shadow: var(--shadow-sm); border: 0; padding: 0; text-align: left; color: inherit;
  transition: transform .4s var(--ease), box-shadow .4s, opacity .35s;
}
.project.is-hidden { display: none; }
.project__cover { position: absolute; inset: 0; display: grid; gap: 3px; }
.project__cover--mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
.project__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(13, 27, 62, .97) 0%, rgba(13, 27, 62, .55) 42%, transparent 72%);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project:hover .project__cover img { transform: scale(1.08); }
.project__count {
  position: absolute; z-index: 2; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(13, 27, 62, .8); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}
.project__count svg { width: 16px; height: 16px; color: var(--yellow); }
.project__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 22px 20px; transition: transform .5s var(--ease); }
.project:hover .project__body { transform: translateY(-6px); }
.project__tag {
  display: inline-block; background: var(--yellow); color: var(--navy-900); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px;
  transition: transform .5s var(--ease);
}
.project:hover .project__tag { transform: translateX(4px); }
.project h3 { color: #fff; font-size: 1.25rem; text-transform: uppercase; margin-bottom: 4px; }
.project p { color: #b9c5e0; font-size: .88rem; margin: 0; display: flex; align-items: center; gap: 6px; }
.project p svg { width: 15px; height: 15px; color: var(--yellow); flex-shrink: 0; }
.project--featured { grid-column: span 2; }
.project__shine {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .2), transparent 45%);
}
.project:hover .project__shine { opacity: 1; }
.project.is-leaving-filter { animation: card-out .3s var(--ease-io) forwards; pointer-events: none; }
.project.is-entering-filter { animation: card-in .7s var(--ease) both; animation-delay: var(--i, 0s); }
@keyframes card-out { to { opacity: 0; transform: scale(.9) translateY(20px); } }
@keyframes card-in { from { opacity: 0; transform: perspective(1000px) translateY(50px) rotateX(-14deg) scale(.94); } }

/* ---------- Seguridad ---------- */
.safety__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.safety__media { position: relative; padding: 0 0 60px 40px; }
.safety__img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.safety__stamp {
  position: absolute; left: 0; bottom: 0; width: 168px; height: 168px; border-radius: 50%;
  background: var(--yellow); color: var(--navy-900); display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow); border: 6px solid var(--white);
}
.safety__stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.safety__stamp text { font-family: var(--ff-head); font-weight: 800; font-size: 12.5px; letter-spacing: 2.2px; fill: var(--navy-900); }
.safety__stamp strong { font-family: var(--ff-head); font-weight: 800; font-size: 1.05rem; line-height: 1.05; position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
.norms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.norm {
  background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 18px 16px;
  transition: transform .35s var(--ease), background .3s;
}
.norm:hover { transform: translateY(-6px) rotate(-1deg); background: var(--navy-700); }
.norm strong { display: block; font-family: var(--ff-head); font-weight: 800; font-size: 1.2rem; color: var(--yellow); line-height: 1.1; }
.norm span { display: block; margin-top: 6px; font-size: .86rem; color: #c7d2ea; line-height: 1.4; }

/* ---------- Proceso ---------- */
.process { background: var(--navy-900); overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 44px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(242, 191, 26, .6) 0 10px, transparent 10px 20px);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step__n {
  display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--navy-800); border: 2px solid var(--yellow); font-family: var(--ff-head); font-weight: 800; font-size: 1.8rem; color: var(--yellow);
  position: relative; transition: background .3s, color .3s, transform .3s var(--ease);
}
.step:hover .step__n { background: var(--yellow); color: var(--navy-900); transform: scale(1.08) rotate(-6deg); }
.step h3 { color: #fff; font-size: 1.1rem; text-transform: uppercase; }
.step p { color: #a8b5d6; font-size: .94rem; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; background: #dde3ee; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3rem; font-weight: 300; color: #fff; background: rgba(13, 27, 62, .45); opacity: 0; transition: opacity .3s;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--light); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__list { display: grid; gap: 12px; }
.qa { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .3s; }
.qa[open] { box-shadow: var(--shadow); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--light); position: relative;
  transition: background .3s, transform .4s var(--ease);
}
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--navy-800); border-radius: 2px; transition: transform .4s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--yellow); transform: rotate(180deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa__body { padding: 0 22px 20px; }
.qa__body p { margin: 0; }
.qa[open] .qa__body { animation: qa-in .45s var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Contacto y solicitud de izaje ---------- */
.quote { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 18px; margin-top: 34px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; color: #e3e9f6; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-list a:hover { color: var(--yellow); }
.contact-list__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(242, 191, 26, .12); border: 1px solid rgba(242, 191, 26, .3); }
.contact-list__icon svg { width: 24px; height: 24px; color: var(--yellow); }

.quote__form {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 38px); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6);
  border-top: 6px solid var(--yellow);
}
.quote__form h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 6px; }
.quote__form.is-highlight { animation: form-glow 1.4s var(--ease); }
@keyframes form-glow { 0%, 100% { box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); } 30% { box-shadow: 0 0 0 6px rgba(242, 191, 26, .55), 0 30px 60px -25px rgba(0, 0, 0, .6); } }
.quote__form > p { font-size: .92rem; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label, .field > span { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 2px solid #dde3ee; border-radius: 10px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fbfcfd; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(242, 191, 26, .2); background: #fff; }
.field .is-invalid, .field [aria-invalid="true"] { border-color: var(--red); }
.unit { position: relative; display: block; }
.unit input { padding-right: 40px; }
.unit i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--muted); }
.form-error { color: var(--red); font-weight: 600; font-size: .9rem; }
.form-note { display: block; text-align: center; color: #7a87a6; margin-top: 12px; font-size: .8rem; }

/* Resumen en vivo de la solicitud */
.sheet { margin: 4px 0 18px; border-radius: var(--radius); background: var(--light); padding: 16px 18px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.sheet__head strong { font-family: var(--ff-head); font-size: .95rem; text-transform: uppercase; color: var(--ink); }
.sheet__status { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e3e8f2; color: var(--text); transition: background .3s, color .3s; }
.sheet__status.is-ready { background: var(--wa); color: #fff; }
.sheet dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .88rem; }
.sheet dt { color: var(--muted); font-weight: 600; }
.sheet dd { margin: 0; color: var(--ink); font-weight: 600; }
.sheet dd.is-empty { color: #a3adc6; font-weight: 500; }
.sheet dd.is-new { animation: flash .7s var(--ease); }
@keyframes flash { from { background: rgba(242, 191, 26, .55); } to { background: transparent; } }

/* ---------- Mapa ---------- */
.map {
  position: relative; margin-top: clamp(48px, 6vw, 72px); border-radius: var(--radius-lg); overflow: hidden; height: 440px;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__pulse { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.map__pulse span {
  position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid var(--red); background: rgba(216, 32, 42, .14);
  animation: map-pulse 2.4s var(--ease) infinite;
}
.map__pulse span + span { animation-delay: 1.2s; }
@keyframes map-pulse { from { transform: scale(.15); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.map__card {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; width: min(360px, calc(100% - 36px));
  background: rgba(13, 27, 62, .94);
  border: 1px solid rgba(242, 191, 26, .35); border-left: 5px solid var(--yellow); border-radius: var(--radius);
  padding: 18px; color: #fff; box-shadow: var(--shadow);
}
.map__card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.map__card-head .logo__plate img { height: 38px; }
.map__card-head strong { display: block; font-family: var(--ff-head); font-size: 1.05rem; text-transform: uppercase; line-height: 1.1; }
.map__card-head span { font-size: .85rem; color: #b9c5e0; }
.map__card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.map__card-actions .btn { padding: 10px 16px; font-size: .88rem; flex: 1; }
.map__card-actions .btn svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #a8b5d6; padding: 70px 0 0; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--yellow); }
.footer__about { margin-top: 18px; max-width: 340px; }
.footer__motto { font-family: var(--ff-head); font-weight: 800; color: var(--yellow); text-transform: uppercase; font-size: 1rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .85rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal button { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; text-decoration: underline; }
.footer__legal button:hover { color: var(--yellow); }

/* ---------- WhatsApp flotante (escritorio) ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 12px; }
.wa-float__btn {
  width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--navy-900); display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(13, 27, 62, .6); position: relative; transition: transform .3s var(--ease);
}
.wa-float__btn::before, .wa-float__btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--yellow); animation: ring 2.4s infinite;
}
.wa-float__btn::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.wa-float__btn svg { width: 34px; height: 34px; }
.wa-float:hover .wa-float__btn { transform: scale(1.08); }
.wa-float__tip {
  background: var(--white); color: var(--ink); font-size: .88rem; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-sm);
  white-space: nowrap; position: relative; opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.wa-float__tip::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 0; border-left-color: var(--white); }
.wa-float__tip b { color: var(--red); }
.wa-float.show-tip .wa-float__tip, .wa-float:hover .wa-float__tip { opacity: 1; transform: none; }

/* ---------- Barra inferior (celular) ---------- */
.tabbar { display: none; }

/* ---------- Visor de fotos ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 10, 26, .95); display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fade .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: #dbe3f2; margin-top: 14px; font-size: .95rem; }
.lightbox figcaption b { color: var(--yellow); margin-right: 8px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: var(--yellow); color: var(--navy-900); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Aviso de cookies ---------- */
.consent {
  position: fixed; left: 16px; bottom: calc(16px + var(--tabbar-h)); z-index: 90; max-width: 540px; margin-right: 16px;
  background: var(--white); color: var(--ink); padding: 20px 22px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .95rem;
  border-top: 5px solid var(--yellow); animation: hero-in .5s var(--ease);
}
.consent[hidden] { display: none; }
.consent a { font-weight: 700; text-decoration: underline; }
.consent p { margin: 0; }
.consent__actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn--ghost { border-color: #c9d1e2; color: var(--ink); background: transparent; }

/* ---------- Animaciones de aparición ---------- */
.reveal {
  opacity: 0; transform: translateY(40px); filter: blur(4px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
.reveal--left { transform: translateX(-70px); }
.reveal--right { transform: translateX(70px); }
.reveal--zoom { transform: scale(.9); }
.reveal--card { transform: perspective(1000px) translateY(70px) rotateX(-18deg) scale(.96); transform-origin: 50% 0; filter: none; }
.reveal--title { transform: none; filter: none; opacity: 1; }
.reveal--title .title-inner {
  display: block; transform: translateY(40%); clip-path: inset(0 0 100% 0);
  transition: transform 1s var(--ease), clip-path 1s var(--ease-io); transition-delay: var(--rd, 0ms);
}
.reveal--title.is-visible .title-inner { transform: none; clip-path: inset(-10% -5% -20% -5%); }
.reveal--mask { transform: none; filter: none; opacity: 1; }
.reveal--mask img { clip-path: inset(100% 0 0 0); transform: scale(1.35); transition: clip-path 1.1s var(--ease-io), transform 1.4s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal--line { filter: none; transform: none; opacity: 1; }
.reveal--line::before { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-io) .3s; }

.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.reveal--mask.is-visible img { transform: none; clip-path: inset(0); }
.reveal--line.is-visible::before { transform: none; }

.hl-dark { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 1s var(--ease) .6s; }
.hl-dark.is-drawn { background-size: 100% 100%; }
.eyebrow.reveal .stripe { width: 0; transition: width .8s var(--ease) .3s; }
.eyebrow.reveal.is-visible .stripe { width: 34px; }

.no-js .reveal { opacity: 1; transform: none; filter: none; clip-path: none; }
.no-js .hl-dark { background-size: 100% 100%; }

/* Barra de progreso de lectura */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  transform: scaleX(var(--p, 0)); transform-origin: left;
}

/* Movimiento reducido: se mantienen fundidos y elevaciones suaves, sin zooms ni barridos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal--left, .reveal--right, .reveal--zoom, .reveal--card {
    transform: translateY(16px); filter: none; transition: opacity .8s ease, transform .8s ease;
  }
  .reveal--title .title-inner { transform: none; clip-path: none; opacity: 0; transition: opacity .8s ease; }
  .reveal--title.is-visible .title-inner { opacity: 1; }
  .reveal--mask { opacity: 0; transition: opacity .8s ease; }
  .reveal--mask img { transform: none; clip-path: none; }
  .reveal--mask.is-visible { opacity: 1; }
  .reveal.is-visible { opacity: 1; transform: none; }
  .hero__slide img, .hero__slide.is-active img, .hero__slide.is-entering img { animation: none; transform: none; }
  .hero__slide.is-entering, .hero__slide.is-entering.from-prev { animation: soft-fade .9s ease forwards; }
  .hero__slide.is-leaving, .hero__slide.is-leaving.from-prev { animation: none; }
  .hero__wipe { display: none; }
  .hero__title .line > span { transform: none; opacity: 0; animation: soft-fade .9s ease var(--d, 0s) forwards; }
  .hero__in { transform: none; filter: none; animation-name: soft-fade; }
  .ticker__track { animation-duration: 90s; }
  .project.is-leaving-filter { animation: soft-fade-out .25s ease forwards; }
  .project.is-entering-filter { animation: soft-fade .5s ease both; }
}
@keyframes soft-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes soft-fade-out { to { opacity: 0; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .pillars__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a:not(.btn) { padding: 8px 9px; font-size: .9rem; }
  .logo__text { display: none; }
}

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout__inner { grid-template-columns: auto 1fr; }
  .callout__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .norms { grid-template-columns: minmax(0, 1fr); }
  .norm { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: baseline; }
  .norm span { margin-top: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; --tabbar-h: 68px; }
  .logo__plate img { height: 44px; }
  /* Sin desenfoque: así el menú fijo se ubica respecto a la pantalla */
  .header, .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy-900); }
  .burger { display: block; }
  .nav__cta { display: none; }

  /* Menú a pantalla completa */
  .nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 70; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 12px 20px calc(24px + var(--tabbar-h)); overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease-io), visibility 0s .5s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease-io); }
  .nav a:not(.btn) {
    padding: 16px 4px; font-family: var(--ff-head); font-weight: 800; font-size: 1.4rem; text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; align-items: center;
    opacity: 0; transform: translateY(20px); transition: opacity .4s var(--ease), transform .5s var(--ease), color .2s;
  }
  .nav a:not(.btn)::after { content: "→"; position: static; height: auto; background: none; transform: none; color: var(--yellow); font-size: 1.2rem; }
  .nav.is-open a:not(.btn) { opacity: 1; transform: none; transition-delay: calc(var(--k, 0) * 50ms + 150ms); }
  .nav__extra { display: grid; gap: 10px; margin-top: 24px; opacity: 0; transition: opacity .4s .45s; }
  .nav.is-open .nav__extra { opacity: 1; }
  .nav__extra .btn { width: 100%; }

  /* Barra inferior tipo app */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: var(--tabbar-h);
    background: rgba(13, 27, 62, .97); border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 0 6px env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-bottom: 2px;
    color: #a8b5d6; font-size: .68rem; font-weight: 600; transition: color .2s;
  }
  .tabbar a svg { width: 26px; height: 26px; transition: transform .3s var(--ease); }
  .tabbar a.is-current { color: var(--yellow); }
  .tabbar a.is-current svg { transform: translateY(-2px); }
  .tabbar a:active svg { transform: scale(.9); }
  .tabbar .tabbar__wa { justify-content: flex-end; padding-bottom: 8px; color: #fff; }
  .tabbar__wa span {
    width: 58px; height: 58px; margin-top: -24px; border-radius: 50%; background: var(--yellow); color: var(--navy-900); display: grid; place-items: center;
    box-shadow: 0 10px 22px -8px rgba(242, 191, 26, .8); border: 4px solid var(--navy-900); position: relative;
  }
  .tabbar__wa span::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--yellow); animation: ring 2.4s infinite; }
  .tabbar__wa span svg { width: 28px; height: 28px; }
  .wa-float { display: none; }

  .about__grid, .quote__grid, .safety__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__aside { position: static; }
  .about__media, .safety__media { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__caption { min-width: 0; }
  .cstep { grid-template-columns: minmax(0, 1fr); }

  /* Escena en tablet y celular: grúa a la izquierda, texto y foto a la derecha */
  .cycle.is-stage .cycle__stage { height: auto; }
  .cycle.is-stage .cycle__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); column-gap: 14px; grid-template-rows: auto auto auto; }
  .cycle.is-stage .cstep img { height: auto; aspect-ratio: 4 / 3.6; }
  .cycle.is-stage .cycle__draw { align-self: end; }
  .cycle.is-stage .cycle__copy { grid-column: 1 / -1; }
  .cycle.is-stage .cycle__copy .section__sub { display: none; }
  .cycle.is-stage .cycle__track { grid-column: 1 / -1; }
  .cycle.is-stage .cycle__draw { grid-column: 1; grid-row: 3; }
  .cycle.is-stage .cycle__steps { grid-column: 2; grid-row: 3; }
  .cycle.is-stage .cstep { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); row-gap: 12px; }
  .cycle.is-stage .cstep__text { grid-column: 1; grid-row: 1; align-self: start; }
  .cycle.is-stage .cstep__text ul { display: none; }
  .cycle.is-stage .cstep__tag { margin-bottom: 6px; }
  .cycle.is-stage .cstep h3 { font-size: 1.3rem; margin-bottom: 6px; }
  .cycle.is-stage .cstep p { font-size: .9rem; margin-bottom: 0; }
  .cycle.is-stage .cstep figure { grid-column: 1; grid-row: 2; }
  .cycle__meter b { font-size: 1.6rem; }
}

@media (max-width: 640px) {
  .topbar__inner > .topbar__item { display: none; }
  .topbar__links { width: 100%; justify-content: space-between; gap: 12px; }
  .topbar { font-size: .78rem; }

  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .hero { padding: 48px 0 190px; min-height: 0; }
  .eyebrow { letter-spacing: .1em; font-size: .78rem; }
  .hero__title { font-size: clamp(2.1rem, 9.6vw, 2.6rem); }
  .hero__actions .btn { width: 100%; }
  .hero__actions { margin-bottom: 40px; }
  .hero__ui { flex-direction: column; align-items: stretch; gap: 12px; bottom: 20px; }
  .hero__controls { justify-content: space-between; }
  .hero__arrow { width: 44px; height: 44px; }

  .pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pillar { padding: 22px 16px; }
  .pillar:last-child { grid-column: 1 / -1; }
  .services__grid, .projects__grid { grid-template-columns: minmax(0, 1fr); }
  .projects__grid { grid-auto-rows: 300px; }
  .project--featured { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .gallery__item--wide { grid-column: span 2; }

  .about__media { padding: 0 20px 44px 0; }
  .about__badge { left: -6px; top: 16px; padding: 12px 16px; max-width: 170px; }
  .about__badge strong { font-size: 1.5rem; }
  .safety__media { padding: 0 0 48px 20px; }
  .safety__stamp { width: 132px; height: 132px; }
  .safety__stamp text { font-size: 10px; letter-spacing: 1.5px; }
  .safety__stamp strong { font-size: .85rem; }
  .norm { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .callout__inner { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 26px 20px; }
  .callout__icon { margin: 0 auto; }
  .callout__actions .btn { width: 100%; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .map { height: 480px; }
  .map__card { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter { flex-shrink: 0; }
  .lightbox { padding: 12px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* =========================================================
   Páginas legales
   ========================================================= */
.doc { padding: clamp(48px, 7vw, 96px) 0; background: var(--light); }
.doc__in { max-width: 820px; margin-inline: auto; background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }
.doc__date { color: var(--muted); font-size: .9rem; }
.doc h2 { font-size: 1.15rem; text-transform: uppercase; margin-top: 36px; margin-bottom: 10px; }
.doc p, .doc li { margin-top: 10px; }
.doc ul { list-style: square; padding-left: 22px; }
.doc a { font-weight: 600; color: var(--navy-600); text-decoration: underline; }
.doc .pending { background: var(--yellow); padding: 0 6px; border-radius: 4px; font-weight: 700; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid #e3e8f2; }
.doc th { width: 34%; color: var(--muted); font-weight: 600; }
.doc fieldset { border: 0; padding: 0; margin: 24px 0 0; }
.doc legend { font-family: var(--ff-head); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; }
.doc .radio { display: flex; gap: 24px; font-weight: 600; }
.doc .radio label { display: flex; align-items: center; gap: 8px; }
.doc .radio input { width: 20px; height: 20px; accent-color: var(--navy-800); }
.doc .done { margin-top: 24px; padding: 18px; background: #fff7d9; border-left: 5px solid var(--yellow); border-radius: 10px; font-weight: 600; }
.doc .btn--yellow { margin-top: 8px; }
