/* Grúas Evolution — colores de marca: rojo y negro */
:root {
  --red: #e10600;
  --red-dark: #b00500;
  --black: #0b0b0c;
  --ink: #141416;
  --ink-2: #1d1d20;
  --line: #2a2a2e;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --wa: #25d366;
  --radius: 14px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0; letter-spacing: .01em; }
p { margin: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .nav a:focus-visible, .nav-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(225, 6, 0, .7); }
.btn--red:hover { background: var(--red-dark); }
.btn--whatsapp { background: var(--wa); color: #06270f; }
.btn--whatsapp:hover { background: #1fbe5a; }
.btn--light { background: #fff; color: var(--black); }
.btn--outline { background: rgba(11,11,12,.45); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn--outline:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,.08); }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.js-location.is-loading { opacity: .75; pointer-events: none; }
.js-location.is-loading .icon { animation: bob .8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-3px) } }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--red); color: #fff;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px;
  font-size: .88rem; font-weight: 500; padding: 7px 16px; text-align: center;
}
.topbar__phone {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--red); border-radius: 999px;
  padding: 4px 14px 4px 10px; margin-left: 4px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; letter-spacing: .04em; line-height: 1.2;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  animation: ring-glow 2s infinite;
  transition: transform .15s;
}
.topbar__phone:hover { transform: scale(1.05); }
.topbar__phone .icon { width: 1em; height: 1em; animation: ring 2s infinite; }
@keyframes ring-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7) } 60% { box-shadow: 0 0 0 7px rgba(255,255,255,0) } }
@keyframes ring { 0%,50%,100% { transform: rotate(0) } 10%,30% { transform: rotate(-15deg) } 20%,40% { transform: rotate(15deg) } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--red); color: #fff; border-radius: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em;
  transform: skewX(-8deg);
}
.brand__text { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.brand__text strong { color: var(--red); font-weight: 800; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav a:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.82) 45%, rgba(11,11,12,.35) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 30%);
}
.hero__content { padding-top: 72px; padding-bottom: 88px; }
.eyebrow {
  display: inline-block; color: var(--red); font-weight: 700; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px;
}
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; text-transform: uppercase; max-width: 16ch; }
.hero__title em { white-space: nowrap; }
.hero__title span { display: block; }
.hero__title span + span { font-size: .62em; color: #d4d4d8; margin-top: .25em; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__lead { color: #d4d4d8; font-size: 1.1rem; max-width: 52ch; margin-top: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__ctas--center { justify-content: center; }
.hero__phone {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 26px;
  padding: 10px 22px 10px 10px; border-radius: 16px;
  background: rgba(11,11,12,.55); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .15s, transform .15s;
}
.hero__phone:hover { border-color: var(--red); transform: translateY(-2px); }
.hero__phone-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--red); color: #fff; animation: ring-glow-red 2s infinite;
}
.hero__phone-icon .icon { width: 26px; height: 26px; animation: ring 2s infinite; }
.hero__phone small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero__phone strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.05; letter-spacing: .03em; color: #fff; }
@keyframes ring-glow-red { 0%,100% { box-shadow: 0 0 0 0 rgba(225,6,0,.7) } 60% { box-shadow: 0 0 0 10px rgba(225,6,0,0) } }

/* ---------- Ventajas ---------- */
.perks { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 28px 22px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk .icon { width: 30px; height: 30px; color: var(--red); margin-top: 2px; }
.perk h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 4px; }
.perk p { color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--dark { background: var(--ink); }
.section__title { font-size: clamp(2.1rem, 5vw, 3.2rem); text-transform: uppercase; font-weight: 800; margin-bottom: 44px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service {
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  border-top: 4px solid var(--red);
}
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 62%; }
.service__body { padding: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.service h3 { font-size: 2rem; text-transform: uppercase; }
.service p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; flex: 1; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step__n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--red); font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 8px; }
.step p { color: var(--muted); }

.step__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  color: #fff; font-weight: 600; font-size: .95rem;
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.step__link .icon { color: var(--red); width: 1.1em; height: 1.1em; }
.step__link:hover { color: var(--red); }

/* Vehículos */
.section--tight { padding-bottom: 72px; }
.vehicles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.vehicle {
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; transition: border-color .15s, transform .15s;
}
.vehicle:hover { border-color: var(--red); transform: translateY(-3px); }
.vehicle__icon { width: 84px; height: 49px; color: var(--red); margin: 0 auto 14px; display: block; }
.vehicle h3 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 6px; }
.vehicle p { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.vehicle--featured { background: linear-gradient(160deg, #2a0908 0%, var(--ink) 70%); border-color: rgba(225,6,0,.5); }

/* Aviso flotante */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 70; transform: translate(-50%, 20px);
  background: #fff; color: var(--black); font-weight: 600; font-size: .95rem;
  padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px); width: max-content; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery__featured { grid-column: span 2; grid-row: span 2; }
.gallery__featured img { height: 100%; aspect-ratio: auto; object-position: center 55%; }
@media (max-width: 820px) {
  .gallery__featured { grid-row: auto; }
  .gallery__featured img, .gallery figure:last-child img { aspect-ratio: 4 / 3; }
  .gallery figure:last-child { grid-column: span 2; }
}

/* CTA final */
.cta {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.12), transparent 50%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 88px 0; text-align: center;
}
.cta h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); text-transform: uppercase; font-weight: 800; }
.cta p { font-size: 1.1rem; margin-top: 10px; color: #ffe4e3; }
.cta__phone {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(3rem, 12vw, 5.5rem); letter-spacing: .03em; margin-top: 12px; line-height: 1.1;
}
.cta .btn--whatsapp { box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .brand__text { color: var(--text); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.6);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 32px; height: 32px; }

/* Barra móvil */
.mobilebar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .vehicles { grid-template-columns: repeat(3, 1fr); }
  .vehicle--featured { grid-column: span 2; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; }
  .step__n { grid-row: span 3; margin: 0; }
  .step__link { justify-self: start; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
  .nav-toggle { display: block; }
  .header__call { margin-left: auto; }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { padding-bottom: 68px; }
  .container { padding: 0 16px; }
  .topbar { font-size: .8rem; }
  .brand__text { font-size: 1.25rem; }
  .header__call { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero { min-height: auto; }
  .hero__content { padding-top: 56px; padding-bottom: 64px; }
  .hero__ctas .btn { width: 100%; }
  .hero::after { background: linear-gradient(0deg, var(--black) 5%, rgba(11,11,12,.78) 60%, rgba(11,11,12,.55) 100%); }
  .perks__grid { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
  .perk { padding: 20px 4px; }
  .section { padding: 68px 0; }
  .section__title { margin-bottom: 30px; }
  .service__body { padding: 22px; }
  .gallery { gap: 10px; }
  .vehicles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .vehicle { padding: 20px 14px; }
  .vehicle__icon { width: 68px; height: 40px; }
  .vehicle h3 { font-size: 1.15rem; }
  .vehicle--featured { grid-column: 1 / -1; }
  .footer__inner { flex-direction: column; text-align: center; }

  .wa-float { display: none; }
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -6px 20px rgba(0,0,0,.5);
  }
  .mobilebar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 60px; font-weight: 700; font-size: 1.05rem;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobilebar__call { background: var(--red); color: #fff; }
  .mobilebar__wa { background: var(--wa); color: #06270f; }
}

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