/* Capa de mejora visual para el sitio de Grúas Tlatelolco */
:root {
  --brand-red: #e4271c;
  --brand-red-dark: #b81e15;
  --brand-ink: #101722;
  --brand-green: #19a65a;
  --motion-smooth: cubic-bezier(.2,.8,.2,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { overflow-x: clip; }
:focus-visible { outline: 3px solid #f6b73c; outline-offset: 4px; }
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 100; width: 100%; height: 3px;
  background: linear-gradient(90deg, #ff675d, var(--brand-red), #ffb84d);
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
  box-shadow: 0 1px 10px rgba(228,39,28,.45);
}

/* Navegación clara en escritorio; menú compacto en móvil */
header { z-index: 50; }
header .nav { gap: clamp(12px, 2vw, 32px); }
.desktop-nav { display: none; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); }
.desktop-nav a {
  color: rgba(255,255,255,.92); text-decoration: none; font-size: .93rem; font-weight: 500;
  position: relative; padding: 8px 0; transition: color .2s ease;
}
.desktop-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px;
  background: #ff5a50; transition: right .25s var(--motion-smooth);
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
header.is-scrolled .desktop-nav a { color: var(--brand-ink); }
header .nav-tel { display: none; }

/* Portada con contraste, mensaje local y acciones visibles */
.hero { isolation: isolate; }
.hero-media::after {
  background:
    linear-gradient(90deg, rgba(9,15,24,.77) 0%, rgba(9,15,24,.48) 43%, rgba(9,15,24,.08) 100%),
    linear-gradient(0deg, rgba(9,15,24,.67) 0%, rgba(9,15,24,.02) 67%);
}
.hero-heading {
  width: min(820px, calc(100% - 64px)); align-self: flex-start;
  margin: 0 0 0 clamp(20px, 5vw, 72px); padding-bottom: clamp(54px, 8vh, 100px);
  animation: hero-rise .72s var(--motion-smooth) both;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; width: fit-content; margin-bottom: 14px;
  color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: #ff4a40; }
.hero-heading h1 {
  max-width: 15ch; margin: 0 0 10px; color: #fff; font-size: clamp(2.7rem, 5.6vw, 5.25rem);
  font-weight: 700; line-height: .99; letter-spacing: -.045em; text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.hero-subtitle {
  max-width: 40ch; margin: 0; color: rgba(255,255,255,.92); font-size: clamp(1.08rem, 1.55vw, 1.38rem);
  font-weight: 400; line-height: 1.48; text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.hero-cta {
  display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px;
  color: #fff; text-decoration: none; font-weight: 700; line-height: 1.15;
  box-shadow: 0 12px 28px rgba(0,0,0,.2); transition: transform .22s var(--motion-smooth), box-shadow .22s ease, background .22s ease;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.32); }
.hero-cta-call { background: linear-gradient(135deg, #f1392e, #c51e16); }
.hero-cta-call:hover { background: linear-gradient(135deg, #ff5146, #d82319); }
.hero-cta-whatsapp { background: #148c4c; border-color: rgba(255,255,255,.24); }
.hero-cta-whatsapp:hover { background: #0f7c41; }
.hero-cta .cta-number { font-size: .88rem; font-weight: 500; opacity: .92; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: #fff; font-size: .89rem; font-weight: 600; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; text-shadow: 0 2px 12px rgba(0,0,0,.42); }
.hero-proof span::before { content: "✓"; display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: rgba(228,39,28,.95); font-size: .75rem; }
.hero-disclaimer { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: .76rem; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.hero-heading .hero-link { margin: 16px 0 0; }

/* Microinteracciones, movimiento suave y mayor jerarquía de tarjetas */
.service-card {
  position: relative; overflow: hidden; border-radius: 15px;
  transition: transform .28s var(--motion-smooth), box-shadow .28s ease, border-color .28s ease, background .28s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--brand-red), #ff9e43); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--motion-smooth);
}
.service-card:hover, .service-card:focus-within {
  transform: translateY(-7px); border-color: rgba(228,39,28,.42);
  box-shadow: 0 22px 46px -25px rgba(19,25,34,.42); background: #fff;
}
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-icon { transition: transform .28s var(--motion-smooth), box-shadow .28s ease; }
.service-card:hover .service-icon { transform: translateY(-2px) rotate(-4deg) scale(1.06); box-shadow: 0 8px 20px rgba(228,39,28,.13); }
.btn, .btn-wa-submit { transition: transform .2s var(--motion-smooth), box-shadow .2s ease, background-color .2s ease; }
.btn:hover, .btn-wa-submit:hover { transform: translateY(-2px); }
.about-photo, .photo-banner-img {
  transition: transform .55s var(--motion-smooth), box-shadow .35s ease, filter .35s ease;
}
.about-left:hover .about-photo, .photo-banner .container:hover .photo-banner-img {
  transform: scale(1.018); box-shadow: 0 24px 55px -30px rgba(20,24,31,.55); filter: saturate(1.07);
}
#testimonios article, #testimonios blockquote, .faq-item {
  transition: transform .24s var(--motion-smooth), box-shadow .24s ease, border-color .24s ease;
}
#testimonios article:hover, #testimonios blockquote:hover, .faq-item:hover {
  transform: translateY(-3px); box-shadow: 0 16px 34px -28px rgba(20,24,31,.55);
}

/* Cobertura local y anclajes cómodos */
#cobertura, #servicios, #nosotros, #testimonios, #contacto { scroll-margin-top: 86px; }
#cobertura .zones-left > p { max-width: 62ch; line-height: 1.75; }
.zone-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.zone-tags span {
  padding: 7px 11px; border: 1px solid rgba(20,24,31,.1); border-radius: 999px;
  background: rgba(255,255,255,.75); color: #3d4550; font-size: .82rem; font-weight: 600;
}
#contacto h2 { text-wrap: balance; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .desktop-nav { display: flex; }
  header .nav-tel { display: inline-flex; }
  .menu-btn { display: none !important; }
  .hero-heading { padding-bottom: clamp(68px, 11vh, 132px); }
}
@media (max-width: 899px) {
  .desktop-nav { display: none; }
  .hero-heading { width: calc(100% - 40px); margin-left: 20px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 68px; }
  .hero { min-height: 680px; height: 100svh; }
  .hero-media::after {
    background: linear-gradient(0deg, rgba(8,13,21,.9) 0%, rgba(8,13,21,.5) 48%, rgba(8,13,21,.16) 100%);
  }
  .hero-heading { width: 100%; margin: 0; padding-bottom: 108px; }
  .hero-heading h1 { max-width: 12ch; font-size: clamp(2.45rem, 10.5vw, 3.25rem); line-height: 1.02; }
  .hero-subtitle { max-width: 33ch; font-size: 1.05rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
  .hero-cta { width: 100%; min-height: 50px; justify-content: center; }
  .hero-proof { gap: 8px 12px; margin-top: 15px; font-size: .8rem; }
  .hero-proof span { text-shadow: 0 2px 10px rgba(0,0,0,.8); }
  .hero-disclaimer { max-width: 42ch; font-size: .7rem; }
  .hero-heading .hero-link { margin-top: 12px; }
  .zone-tags { gap: 6px; }
  .zone-tags span { padding: 6px 9px; font-size: .76rem; }
}
@media (max-width: 380px) {
  .hero { min-height: 720px; }
  .hero-proof { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (hover: none) {
  .service-card:active, .btn:active, .hero-cta:active { transform: scale(.985); }
  .about-left:hover .about-photo, .photo-banner .container:hover .photo-banner-img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
