/* =========================================================
   Grupo Metropolis Mudanzas — estilos
   Colores tomados del logo: azul #0009b3 y rojo #e40100
   ========================================================= */
:root {
  --azul: #0009b3;
  --azul-osc: #00067a;
  --azul-claro: #eef0ff;
  --rojo: #e40100;
  --rojo-osc: #b80000;
  --verde-wa: #25d366;
  --verde-wa-osc: #1da851;
  --texto: #14162b;
  --texto-suave: #5a5d78;
  --borde: #e3e5f0;
  --fondo: #ffffff;
  --fondo-suave: #f5f6fb;
  --radio: 18px;
  --sombra: 0 10px 30px rgba(0, 9, 179, .10);
  --sombra-fuerte: 0 24px 60px rgba(0, 6, 122, .28);
  --titulos: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cuerpo: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 17px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; font-style: italic; color: var(--azul); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 14px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rojo);
}
.eyebrow--light { color: #fff; background: var(--rojo); padding: 6px 12px; border-radius: 999px; letter-spacing: .08em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border: 0; border-radius: 999px;
  font: 700 16px/1.2 var(--cuerpo);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid #ffbf00; outline-offset: 3px; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--lg { padding: 18px 30px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--red { background: var(--rojo); color: #fff; box-shadow: 0 8px 20px rgba(228, 1, 0, .3); }
.btn--red:hover { background: var(--rojo-osc); }
.btn--whatsapp { background: var(--verde-wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--whatsapp:hover { background: var(--verde-wa-osc); }
.btn--white { background: #fff; color: var(--azul); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.header__logo img { height: 54px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--texto); }
.nav a:hover { color: var(--rojo); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--azul); text-decoration: none; white-space: nowrap;
}
.header__phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; margin: 5px 0; background: var(--azul); border-radius: 2px; transition: .2s; }

/* ---------- Portada ---------- */
.hero {
  --mx: 0; --my: 0; --sy: 0;            /* posición del ratón y del scroll (los pone main.js) */
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(600px, 84vh, 780px);
  display: flex; align-items: center;
  background: var(--azul-osc);
  color: #fff;
  padding: 72px 0 110px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);  /* corte diagonal como las franjas del logo */
}

/* Escena por capas: cada una se mueve a distinta velocidad = sensación de profundidad */
.hero__scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg {
  position: absolute; top: -4%; bottom: -4%; left: 30%; right: -3%;
  transform: translate3d(calc(var(--mx) * -16px), calc(var(--my) * -10px + var(--sy) * .18px), 0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 82% 62%;
  animation: hero-zoom 22s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.04);
}
@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--azul) 0%, var(--azul) 33%, rgba(0, 9, 179, .86) 42%, rgba(0, 9, 179, .35) 56%, rgba(0, 9, 179, 0) 72%),
    linear-gradient(0deg, rgba(0, 6, 122, .9) 0%, rgba(0, 6, 122, 0) 34%),
    linear-gradient(180deg, rgba(0, 6, 122, .45) 0%, rgba(0, 6, 122, 0) 22%);
}
.hero__stripes {
  position: absolute; top: -12%; left: 26%; height: 124%;
  display: flex; gap: 42px;
  transform: translate3d(calc(var(--mx) * 26px), calc(var(--my) * 14px), 0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.hero__stripes i {
  display: block; width: 74px; height: 100%; transform: skewX(-32deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02));
}
.hero__stripes i:nth-child(3) { background: linear-gradient(180deg, rgba(228, 1, 0, .55), rgba(228, 1, 0, .05)); }
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 8% 105%, rgba(228, 1, 0, .38), transparent 60%);
}

.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; width: 100%; }
.hero__text { text-shadow: 0 2px 18px rgba(0, 6, 122, .35); }
.hero__text { container-type: inline-size; }
.hero h1 {
  /* El tamaño se ajusta al ancho de la columna para que cada frase quepa en una línea */
  font-size: clamp(32px, 11cqi, 72px);
  font-weight: 800; font-style: italic; text-transform: uppercase;
  line-height: 1; letter-spacing: -.01em; margin-bottom: 26px;
}
.hero h1 span { display: inline-block; white-space: nowrap; }
.hero__l1 { margin-bottom: .14em; }
.hero__l2 { color: #fff; background: var(--rojo); padding: .08em .22em .1em .16em; border-radius: 6px; transform: rotate(-1.5deg); }
.hero__lead { font-size: clamp(18px, 2vw, 21px); max-width: 30em; color: rgba(255, 255, 255, .9); margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.hero__checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: #fff; color: var(--azul); font-size: 13px; font-weight: 900; }
.hero__media { align-self: start; justify-self: end; margin-top: -8px; }
/* Tarjeta de cristal flotante sobre la foto */
.hero__badge {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 20px 40px rgba(0, 6, 122, .35);
  transform: translate3d(calc(var(--mx) * 34px), calc(var(--my) * 20px), 0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  text-shadow: none;
}
.hero__badge strong {
  display: grid; place-items: center; min-width: 76px; height: 64px; padding: 0 8px;
  border-radius: 14px; background: var(--rojo);
  font: 900 italic 38px/1 var(--titulos);
}
.hero__badge span { font-weight: 700; line-height: 1.2; font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Franja de confianza ---------- */
.trust { background: #fff; position: relative; z-index: 2; margin-top: -36px; }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radio); box-shadow: var(--sombra);
  border: 1px solid var(--borde);
}
.trust__grid > div { padding: 22px 20px; text-align: center; border-right: 1px solid var(--borde); }
.trust__grid > div:last-child { border-right: 0; }
.trust__grid strong { display: block; font: 800 italic 22px/1.2 var(--titulos); color: var(--azul); }
.trust__grid span { font-size: 15px; color: var(--texto-suave); }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--fondo-suave); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  display: flex; flex-direction: column;
  padding: 30px 28px; border-radius: var(--radio);
  background: #fff; border: 1px solid var(--borde);
  text-decoration: none; color: var(--texto);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: transparent; }
.service__icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px;
  border-radius: 16px; background: var(--azul-claro); color: var(--azul);
  transition: background .2s, color .2s;
}
.service:hover .service__icon { background: var(--azul); color: #fff; }
.service__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { color: var(--azul); }
.service p { color: var(--texto-suave); flex: 1; }
.service__cta { font-weight: 700; color: var(--rojo); }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.step { position: relative; padding: 34px 28px 28px; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); }
.step__num {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px;
  border-radius: 50%; background: var(--rojo); color: #fff;
  font: 900 italic 26px/1 var(--titulos);
}
.step p { color: var(--texto-suave); margin: 0; }

/* ---------- Opiniones ---------- */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review {
  margin: 0; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radio);
  background: var(--fondo-suave); border: 1px solid var(--borde);
}
.review__stars { color: #f5b400; letter-spacing: 2px; font-size: 18px; margin-bottom: 12px; }
.review blockquote { margin: 0 0 18px; flex: 1; font-size: 16px; }
.review figcaption { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--azul); }
.review__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 800; }

/* ---------- Franja CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--rojo); color: #fff; padding: 72px 0; text-align: center; }
.hero__stripes--band { left: -4%; right: auto; }
.cta-band__inner { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 19px; margin-bottom: 26px; }
.cta-band__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__lead { font-size: 19px; color: var(--texto-suave); }
.contact__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__list a {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--borde); text-decoration: none; font-weight: 700;
  transition: border-color .15s, box-shadow .15s;
  word-break: break-word;
}
.contact__list a:hover { border-color: var(--azul); box-shadow: var(--sombra); }
.contact__list small { display: block; font-weight: 500; color: var(--texto-suave); font-size: 13px; }
.contact__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--azul-claro); color: var(--azul); }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.contact__icon--wa { background: var(--verde-wa); color: #fff; }
.contact__icon--wa svg { fill: currentColor; stroke: none; width: 26px; height: 26px; }

.form {
  padding: 36px; border-radius: 24px;
  background: #fff; box-shadow: var(--sombra-fuerte);
  border-top: 6px solid var(--azul);
}
.form__row { margin-bottom: 18px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 700; font-size: 15px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 14px 16px; border-radius: 12px;
  border: 2px solid var(--borde); background: var(--fondo-suave);
  font: 400 16px/1.4 var(--cuerpo); color: var(--texto);
  transition: border-color .15s, background .15s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--azul); background: #fff; }
.form .is-invalid { border-color: var(--rojo) !important; }
.check { display: flex !important; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-weight: 400 !important; font-size: 14px !important; color: var(--texto-suave); }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--azul); }
.check a { color: var(--azul); font-weight: 600; }
.check.is-invalid span { color: var(--rojo); }
.form .btn { margin-top: 8px; }
.form__status { margin: 14px 0 0; font-weight: 700; min-height: 1.4em; }
.form__status.ok { color: #0a8a3a; }
.form__status.error { color: var(--rojo); }
.form__legal { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--texto-suave); }
.form__legal a { color: var(--azul); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */
.footer { background: var(--azul-osc); color: rgba(255, 255, 255, .85); padding: 64px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__logo { display: inline-block; padding: 14px 18px; background: #fff; border-radius: 14px; margin-bottom: 16px; }
.footer__logo img { height: 56px; width: auto; }
.footer h3 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; }
.footer__col a { display: block; margin-bottom: 10px; text-decoration: none; word-break: break-word; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 48px; padding: 22px 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; }
.footer__bottom p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 999px;
  background: var(--verde-wa); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float svg { width: 36px; height: 36px; fill: currentColor; }
.wa-float__label { padding-right: 8px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 28px rgba(0,0,0,.25), 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 10px 28px rgba(0,0,0,.25), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 28px rgba(0,0,0,.25), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.mobile-bar { display: none; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
  .hero__bg img { animation: none; }
  .hero__bg, .hero__stripes, .hero__badge { transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .reviews { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--borde); box-shadow: var(--sombra);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--borde); }
  .nav-toggle { display: block; }
  .header__inner { gap: 12px; }
  .header__actions { margin-left: auto; }
  .hero__inner, .contact { grid-template-columns: 1fr; }
  /* En pantallas estrechas la flota queda abajo, bajo el texto */
  .hero { display: block; min-height: 0; padding: 44px 0 calc(58vw + 30px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%); }
  .hero__bg { top: auto; bottom: 0; left: 0; right: 0; height: 66vw; transform: none; }
  .hero__bg img { object-position: 50% 75%; animation-duration: 30s; }
  .hero__shade {
    background:
      linear-gradient(180deg, var(--azul) 0%, var(--azul) calc(100% - 66vw), rgba(0, 9, 179, .45) calc(100% - 56vw), rgba(0, 9, 179, 0) calc(100% - 44vw));
  }
  .hero__stripes { left: auto; right: -30%; height: calc(100% - 60vw); }
  .hero__media { display: none; }  /* en móvil los "+10 años" ya están en la franja de confianza */
  .services, .steps { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid > div:nth-child(2) { border-right: 0; }
  .trust__grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--borde); }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .container { padding: 0 16px; }
  .header__inner { height: 64px; }
  .nav { inset: 64px 0 auto 0; }
  .header__logo img { height: 44px; }
  .header__phone, .header__actions .btn { display: none; }
  .hero__ctas .btn { width: 100%; }
  .hero__badge { padding: 10px 14px 10px 10px; gap: 10px; }
  .hero__badge strong { min-width: 58px; height: 48px; font-size: 28px; }
  .hero__badge span { font-size: 14px; }
  .section { padding: 72px 0; }
  .services, .steps, .reviews { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .form__row--2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .wa-float { bottom: 78px; right: 14px; }
  .wa-float__label { display: none; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff; border-top: 1px solid var(--borde);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
  }
  .mobile-bar a { padding: 18px 6px; text-align: center; font-weight: 800; text-decoration: none; color: var(--azul); }
  .mobile-bar__wa { background: var(--verde-wa); color: #fff !important; }
  .mobile-bar__cta { background: var(--rojo); color: #fff !important; }
}
