/* ==============================================================
   +movinghouse.mx — Responsive refinement v5
   Fixes: exact full logo, stable reload position, hero + stats in
   the first responsive canvas, and uniform trust chips.
   ============================================================== */

:root { --mh-nav-h: 84px; }

/* Exact full logo supplied by the client. Never crop the artwork. */
.logo-link {
  width: 108px;
  height: 66px;
  padding: 0;
  background: #061d3d;
  border-radius: 11px;
  overflow: hidden;
  flex: 0 0 auto;
}
.logo-link img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}
.hero-vid-poster {
  object-fit: contain;
  object-position: center;
  background: #061d3d;
  padding: 0;
}

/* Home hero and stats are one responsive composition. */
.home-page #inicio {
  min-height: 100svh;
  padding-top: var(--mh-nav-h);
  box-sizing: border-box;
}
.home-page .hero-content {
  min-height: calc(100svh - var(--mh-nav-h));
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(390px, 1.04fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "hero-copy hero-media"
    "hero-stats hero-stats";
  align-items: center;
  column-gap: clamp(30px, 4vw, 58px);
  row-gap: clamp(16px, 2.4vh, 28px);
  padding-top: clamp(28px, 5vh, 58px);
  padding-bottom: clamp(18px, 3vh, 30px);
}
.home-page .hero-left { grid-area: hero-copy; min-width: 0; }
.home-page .hero-right { grid-area: hero-media; min-width: 0; }
.home-page .hero-content > .stats-strip {
  grid-area: hero-stats;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 5;
}
.home-page .hero-content > .stats-strip .stats-grid {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Equal visual weight for all three trust chips. */
.home-page .hero-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 455px);
  margin-bottom: 18px;
}
.home-page .chip {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #e1e8f0;
  box-shadow: 0 5px 16px rgba(6,29,61,.055);
  border-radius: 13px;
  font-size: 11px;
  line-height: 1.15;
  text-align: left;
}
.home-page .chip svg { flex: 0 0 auto; }
.home-page .chip-label {
  display: grid;
  grid-template-rows: repeat(2, auto);
  gap: 2px;
  min-width: 0;
}
.home-page .chip-label > span {
  display: block;
  white-space: nowrap;
}

/* Laptop-height tuning: keep nav, hero actions and the full stats strip visible. */
@media (min-width: 861px) and (max-height: 850px) {
  .home-page .hero-content {
    padding-top: 26px;
    padding-bottom: 18px;
    row-gap: 16px;
  }
  .home-page h1.hero-h1 {
    font-size: clamp(43px, 4.2vw, 56px);
    line-height: 1.01;
    margin-top: 0;
  }
  .home-page .hero-sub {
    font-size: 15.5px;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .home-page .hero-chips { margin-bottom: 13px; }
  .home-page .hero-ctas { margin-top: 0; }
  .home-page .hero-ctas .btn { min-height: 47px; padding-block: 10px; }
  .home-page .hero-vid-wrap {
    aspect-ratio: 16 / 10;
    max-height: 365px;
  }
  .home-page .stat-item { padding: 17px 16px; }
  .home-page .stat-item .sn { font-size: 23px; }
  .home-page .stat-item .sl { font-size: 10px; }
}

/* Compact desktop / common 14-inch laptop widths. */
@media (min-width: 861px) and (max-width: 1300px) {
  .home-page .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .94fr);
    column-gap: 30px;
  }
  .home-page h1.hero-h1 {
    font-size: clamp(43px, 4.55vw, 57px);
    letter-spacing: -1.7px;
  }
  .home-page .hero-sub { font-size: 15.5px; }
  .home-page .chip { font-size: 10px; padding-inline: 7px; }
}

/* Tablet/narrow browser: copy and stats come first; media follows below. */
@media (max-width: 860px) {
  :root { --mh-nav-h: 72px; }
  .logo-link { width: 96px; height: 56px; }
  .home-page #inicio { min-height: auto; padding-top: var(--mh-nav-h); }
  .home-page .hero-content {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "hero-copy"
      "hero-stats"
      "hero-media";
    gap: 18px;
    padding: 30px 20px 30px;
  }
  .home-page .hero-left { max-width: 720px; }
  .home-page .hero-right { width: 100%; max-width: 680px; margin: 0 auto; }
  .home-page .stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .home-page .stat-item {
    border-bottom: 0;
    border-right: 1px solid var(--mh-line);
    padding: 15px 8px;
  }
  .home-page .stat-item:nth-child(odd) { border-right: 1px solid var(--mh-line); }
  .home-page .stat-item:last-child { border-right: 0; }
  .home-page .stat-item .sn { font-size: 19px; }
  .home-page .stat-item .sl { font-size: 9px; }
}

@media (max-width: 600px) {
  :root { --mh-nav-h: 64px; }
  .logo-link { width: 86px; height: 50px; border-radius: 9px; }
  .home-page #inicio { padding-top: var(--mh-nav-h); }
  .home-page .hero-content {
    display: grid;
    grid-template-areas:
      "hero-copy"
      "hero-stats"
      "hero-media";
    gap: 13px;
    padding: 15px 14px 24px;
  }
  .home-page h1.hero-h1 { font-size: 33px; }
  .home-page .hero-chips {
    grid-template-columns: repeat(3, minmax(0,1fr));
    width: 100%;
    gap: 6px;
    margin-bottom: 10px;
  }
  .home-page .chip {
    min-height: 49px;
    padding: 6px 4px;
    gap: 4px;
    font-size: 9px;
    line-height: 1.05;
    text-align: center;
    flex-direction: column;
  }
  .home-page .chip-label { gap: 1px; }
  .home-page .hero-ctas { margin-top: 0; }
  .home-page .hero-content > .stats-strip { margin: 0; }
  .home-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-radius: 18px;
  }
  .home-page .stat-item {
    padding: 10px 6px;
    border-bottom: 1px solid var(--mh-line);
  }
  .home-page .stat-item:nth-child(2) { border-right: 0; }
  .home-page .stat-item:nth-child(3),
  .home-page .stat-item:nth-child(4) { border-bottom: 0; }
  .home-page .stat-item .sn { font-size: 17px; }
  .home-page .stat-item .sl { font-size: 8.5px; }
  .home-page .hero-vid-wrap {
    aspect-ratio: 16 / 8.5;
    max-height: 180px;
  }
}

@media (max-width: 380px) {
  .home-page .hero-chips { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .home-page .hero-chips .chip:last-child { grid-column: auto; min-height: 49px; }
  .home-page .chip { font-size: 8.3px; }
}

/* ==============================================================
   Focused refinement v6
   - Trust points read as information, not buttons.
   - Google rating moved from the navbar to testimonials.
   ============================================================== */

/* Option 1: icon + label row with subtle separators. */
.home-page .hero-chips {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: min(100%, 455px);
  margin-bottom: 18px;
}
.home-page .chip {
  position: relative;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 48px;
  padding: 5px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 10.5px;
  line-height: 1.18;
  text-align: left;
  cursor: default;
}
.home-page .chip:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  bottom: 6px;
  width: 1px;
  background: #ccd6e2;
}
.home-page .chip svg {
  width: 19px;
  height: 19px;
  color: var(--mh-orange, #ff7a2f);
  flex: 0 0 auto;
}
.home-page .chip-label {
  display: grid;
  grid-template-rows: repeat(2, auto);
  gap: 1px;
  min-width: 0;
}
.home-page .chip-label > span {
  display: block;
  white-space: nowrap;
}

/* Google score now belongs to the testimonial context. */
.testi-rating {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 18px;
  padding: 8px 14px;
  color: var(--mh-navy, #071f43);
  background: #fff8f2;
  border: 1px solid #ffd5b6;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(6,29,61,.05);
}
.testi-rating:hover { transform: translateY(-1px); }
.testi-rating .stars {
  color: var(--gold, #f5a623);
  font-size: 14px;
  letter-spacing: 1.5px;
}
.testi-rating-copy {
  display: grid;
  line-height: 1;
  padding-left: 1px;
}
.testi-rating-copy strong {
  font-family: var(--fh, "Poppins", sans-serif);
  font-size: 13px;
}
.testi-rating-copy small {
  margin-top: 3px;
  color: var(--mh-muted, #718096);
  font-size: 8.5px;
}
.testi-rating-label {
  padding-left: 9px;
  border-left: 1px solid #f1c5a5;
  color: var(--mh-muted, #5f7087);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .home-page .hero-chips {
    display: flex;
    width: 100%;
    gap: 0;
    margin: 2px 0 10px;
  }
  .home-page .chip {
    min-height: 55px;
    padding: 4px 7px;
    gap: 4px;
    flex-direction: column;
    font-size: 8.6px;
    line-height: 1.08;
    text-align: center;
  }
  .home-page .chip:not(:last-child)::after {
    top: 7px;
    bottom: 7px;
  }
  .home-page .chip svg {
    width: 18px;
    height: 18px;
  }
  .testi-rating {
    max-width: calc(100% - 28px);
    padding: 8px 12px;
    gap: 7px;
  }
  .testi-rating-label {
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .home-page .chip { font-size: 8px; padding-inline: 4px; }
  .testi-rating-label { display: none; }
}
