@media (max-width: 900px) {
  body:has(.reference-header) {
    --app-gutter: clamp(16px, 4.8vw, 28px);
    --app-section-space: clamp(38px, 10vw, 56px);
    --app-surface: #f1f5fb;
    --app-ink: #08182f;
    --app-dock-space: calc(92px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--app-dock-space);
    background: var(--app-surface);
  }

  html:has(.reference-header) { scroll-padding-bottom: var(--app-dock-space, 92px); }

  .page-wrap > .contact-strip,
  .reference-header .mobile-header-wa { display: none; }

  .reference-header,
  .reference-header .header-row { height: 64px; }

  .reference-header .header-row { width: calc(100% - 2 * var(--app-gutter)); }

  .reference-header .ref-menu-btn {
    width: 44px;
    height: 44px;
    margin-inline-start: auto;
  }

  .reference-header .reference-mobile-nav {
    top: 64px;
    max-height: calc(100dvh - 84px);
    overflow: auto;
    padding: 8px var(--app-gutter) 18px;
    border-radius: 0 0 22px 22px;
  }

  .page-wrap:has(.reference-home) > .reference-header {
    position: absolute;
    inset: 0 0 auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .page-wrap:has(.reference-home) .header-brand-mark__word :is(.header-brand-mark__garage, strong, small) {
    color: #fff;
    text-shadow: 0 1px 6px #071629d9;
  }

  .page-wrap:has(.reference-home) .ref-menu-btn {
    border-color: #ffffff55;
    background: #071629aa;
  }

  .page-wrap:has(.reference-home) .ref-menu-btn span { background: #fff; }

  .mobile-action-dock {
    position: fixed;
    z-index: 80;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
    padding: 6px;
    padding-left: max(6px, env(safe-area-inset-left, 0px));
    padding-right: max(6px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #fff;
    border-radius: 23px 23px 0 0;
    background: #f8fbfff5;
    box-shadow: 0 7px 28px #102b5340;
    backdrop-filter: blur(14px);
  }

  .mobile-action-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1.4vw, 8px);
    min-height: 50px;
    padding-inline: 3px;
    border-radius: 17px;
    color: var(--app-ink);
    font-size: .76rem;
    font-weight: 800;
  }

  .mobile-action-dock a > svg {
    width: 17px;
    height: 17px;
    flex: none;
    fill: none;
    stroke: #075be8;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-action-dock .mobile-action-dock__whatsapp {
    color: #fff;
    background: #087848;
  }

  .mobile-action-dock .mobile-action-dock__whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
  }

  .mobile-action-dock a:focus-visible,
  .mobile-hero a:focus-visible { outline: 2px solid #54b6ff; outline-offset: 3px; }

  .reference-home .ref-wrap,
  .ga-subpage .ref-wrap { width: min(680px, calc(100% - 2 * var(--app-gutter))); }

  .reference-home .ga-main-hero { display: block; background: var(--app-ink); }
  .reference-home .ga-main-hero > :not(.mobile-hero),
  .reference-home .ga-main-hero.is-campaign-slide > .ga-main-hero__campaign-copy.is-active { display: none; }

  .mobile-hero[hidden] {
    --hero-photo: url("assets/hero-vehiculo-marca.svg");
    /* Keep the car inside the frame before the picture fades into the copy. */
    --hero-photo-height: clamp(248px, 80vw, 500px);
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: #080e16;
  }

  .mobile-hero__photo {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
      linear-gradient(180deg, #080e162e 35%, #080e16c7 100%),
      var(--hero-photo) left bottom / auto 165% no-repeat;
  }

  .mobile-hero__photo::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--hero-photo-height);
    background:
      linear-gradient(180deg, #080e166b, transparent 24% 65%, #080e1670),
      var(--hero-photo) 71% center / auto 100% no-repeat;
    mask-image: linear-gradient(#000 87%, transparent);
  }

  .mobile-hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, #080e1624 53%, #080e16cf);
  }

  .mobile-hero__content {
    width: calc(100% - 2 * var(--app-gutter));
    margin-inline: auto;
    padding-block: calc(var(--hero-photo-height) - 38px) 55px;
  }

  .ga-main-hero .mobile-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(29px, 8.7vw, 48px);
    line-height: 1.04;
    font-style: normal;
    font-weight: 800;
    letter-spacing: -.045em;
    transform: none;
  }

  .mobile-hero h1 strong {
    display: block;
    color: #54b6ff;
    font-weight: inherit;
    white-space: nowrap;
  }

  .mobile-hero__actions {
    margin-top: 16px;
  }

  .mobile-hero__whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #0668e4;
    color: #fff;
    font-size: clamp(.95rem, 2.7vw, 1.1rem);
    font-weight: 600;
  }

  .mobile-hero__whatsapp img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
  }

  .reference-home .reference-services-v2 {
    position: relative;
    margin-top: -16px;
    padding: 34px 0 var(--app-section-space);
    border-radius: 20px 20px 0 0;
    background: #fff;
  }

  .reference-home .services-v2-head { display: block; margin-bottom: 18px; }
  .reference-home .services-v2-line { display: none; }
  .reference-home .services-v2-titlewrap { text-align: left; }
  .reference-home .services-v2-titlewrap h2 {
    font-size: clamp(26px, 7vw, 42px);
    line-height: 1.05;
  }

  .reference-home .services-v2-titlewrap p {
    max-width: 38ch;
    font-size: .87rem;
    line-height: 1.45;
    margin-top: 8px;
  }

  .reference-home .reference-services-v2 .services-v2-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 3px 0;
    overflow: visible;
  }

  .reference-home .reference-services-v2 .service-v2-card {
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    min-height: 103px;
    border-radius: 16px;
    background: #f4f7fb;
    box-shadow: none;
  }

  .reference-home .reference-services-v2 .service-v2-card.is-active {
    border-color: #7aafff;
    background: #eaf3ff;
  }

  .reference-home .reference-services-v2 .service-v2-card:hover { transform: none; }

  .reference-home .reference-services-v2 .service-v2-media {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .reference-home .service-v2-card .service-v2-media::before { display: none; }
  .reference-home .reference-services-v2 .service-v2-card .service-v2-icon { display: none !important; }

  .reference-home .reference-services-v2 .service-v2-body {
    align-self: center;
    min-height: 0;
    padding: 13px 12px;
  }

  .reference-home .reference-services-v2 .service-v2-card .service-v2-body h3 {
    margin: 0 0 4px;
    color: var(--app-ink);
    font-size: .95rem;
    line-height: 1.2;
    letter-spacing: -.025em;
  }

  .reference-home .reference-services-v2 .service-v2-card .service-v2-body p {
    color: #4a5b72;
    font-size: .76rem;
    line-height: 1.4;
  }

  .reference-home .service-spotlight { margin-top: 26px; scroll-margin-top: 14px; }
  .reference-home .spotlight-media { min-height: clamp(150px, 48vw, 250px); }

  .reference-home .paint-promo { padding-block: 0; }

  .reference-home .paint-promo__frame {
    display: grid;
    width: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    background: #edf4ff;
  }

  .reference-home .paint-promo__frame::before { display: none; }

  .reference-home .paint-promo__video {
    position: relative;
    inset: auto;
    z-index: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: 72% center;
  }

  .reference-home .paint-promo__copy {
    width: auto;
    display: grid;
    justify-items: start;
    gap: 6px;
    padding: 19px var(--app-gutter) 23px;
    border-bottom: 1px solid #d9e6fa;
    background: linear-gradient(108deg, #fff 15%, #edf4ff 80%, #e0ecff);
    text-shadow: none;
  }

  .reference-home .paint-promo__desktop-copy { display: none; }
  .reference-home .paint-promo__mobile-copy[hidden] { display: inline; }

  .reference-home .paint-promo__eyebrow {
    margin: 0;
    color: #0757c8;
    font-size: .65rem;
  }

  .reference-home .paint-promo__copy h2 {
    color: var(--app-ink);
    font-size: clamp(1.35rem, 5.9vw, 2rem);
    line-height: 1.1;
    letter-spacing: -.045em;
  }

  .reference-home .paint-promo__copy h2 strong { color: #0757c8; font-weight: inherit; }

  .reference-home .paint-promo__description {
    margin: 0;
    color: #354963;
    font-size: .875rem;
  }

  .reference-home .paint-promo__link {
    gap: 8px;
    margin-top: 8px;
    padding-inline: 14px;
    background: #0668e4;
    color: #fff;
    font-size: .8rem;
    text-align: center;
  }

  .reference-home .paint-promo__link .paint-promo__mobile-copy { flex: none; }

  .reference-home .paint-promo__link img {
    filter: brightness(0) invert(1);
  }

  .reference-home .paint-promo__link:hover { background: #0757c8; }
  .reference-home .paint-promo__link:focus-visible { outline-color: #0757c8; }

  @media (min-width: 640px) {
    .reference-home .paint-promo__copy {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      column-gap: 22px;
    }

    .reference-home .paint-promo__link {
      grid-column: 2;
      grid-row: 1 / 4;
      margin-top: 0;
    }
  }

  .reference-home .repair-story { padding-block: var(--app-section-space) 0; }
  .reference-home .repair-story__feature { gap: 22px; }
  .reference-home .repair-story__image { height: auto; aspect-ratio: 4 / 3; }

  .reference-home .repair-brands {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    margin-top: var(--app-section-space);
    padding: 0;
  }

  .reference-home .repair-brands__logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 21px 16px;
    padding: 5px 0 0;
  }

  .reference-home .repair-brands__logo {
    width: min(100%, 48px);
    height: 27px;
  }

  .reference-home .instagram-feed {
    margin-block: var(--app-section-space);
    padding-top: 26px;
  }
  .reference-home .instagram-feed__header { margin-bottom: 15px; }

  .reference-home .reference-cta-area { padding-bottom: var(--app-section-space); }

  .reference-home .reference-cta-banner {
    height: auto;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
  }

  .reference-home .reference-cta-title { height: auto; padding: 0; border: 0; gap: 11px; }
  .reference-home .reference-cta-title svg { width: 34px; height: 34px; }
  .reference-home .reference-cta-title h2 { width: auto; margin: 0; font-size: clamp(25px, 7vw, 35px); }
  .reference-home .reference-cta-copy { display: none; }
  .reference-home .reference-cta-banner .ref-white-cta { margin: 0; min-height: 44px; }

  :is(.reference-home, .ga-subpage) .quote-section { padding-block: var(--app-section-space); }
  :is(.reference-home, .ga-subpage) .quote-panel { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  :is(.reference-home, .ga-subpage) .quote-intro { max-width: none; border-radius: 18px 18px 0 0; }
  :is(.reference-home, .ga-subpage) .quote-intro > p:not(.quote-eyebrow) { margin: 11px 0 8px; }
  :is(.reference-home, .ga-subpage) .quote-form { padding: 18px 14px; border: 1px solid #dce5f1; border-radius: 0 0 18px 18px; }
  :is(.reference-home, .ga-subpage) .quote-form__grid,
  :is(.reference-home, .ga-subpage) .quote-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(.reference-home, .ga-subpage) .quote-field :is(input, select, textarea) { font-size: 1rem; }
  :is(.reference-home, .ga-subpage) .quote-field :is(input, select) { height: 44px; }
  :is(.reference-home, .ga-subpage) .quote-form__bottom { grid-template-columns: minmax(0, 1fr); }
  :is(.reference-home, .ga-subpage) .location-section { padding-bottom: var(--app-section-space); }
  :is(.reference-home, .ga-subpage) .location-section__inner { grid-template-columns: 1fr; gap: 18px; }
  :is(.reference-home, .ga-subpage) .location-map { min-height: 232px; }

  @media (min-width: 640px) {
    .reference-home .repair-brands__logos { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  }

  @media (max-width: 560px) {
    .reference-home .reference-cta-banner .ref-white-cta { width: 100%; }
    .reference-home .reference-cta-title h2 br { display: none; }
    .reference-home .reference-cta-title h2 em { display: block; }
  }
}
