/* Mobile stability layer for the Works page */
@media (max-width: 991px) {
  body[data-page="obras"] {
    width: 100%;
    overflow-x: hidden;
  }

  .works-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    color: #001b4d;
    background: #fff;
  }

  .works-page *,
  .works-page *::before,
  .works-page *::after {
    box-sizing: border-box;
  }

  .works-page .container {
    width: 100%;
    max-width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .works-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 120px 0 80px;
    color: #fff;
    background:
      radial-gradient(circle at 82% 10%, rgba(255, 204, 0, .18), transparent 30%),
      linear-gradient(145deg, #001b4d, #003596);
  }

  .works-hero__inner {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .works-hero h1 {
    max-width: 100%;
    margin: 20px 0;
    color: #fff;
    font-size: clamp(3.5rem, 17vw, 5.3rem);
    line-height: .92;
    overflow-wrap: normal;
    word-break: normal;
  }

  .works-hero h1 em {
    color: #ffcc00;
  }

  .works-hero__inner > div:first-child > p {
    max-width: 100%;
    color: rgba(255, 255, 255, .84);
    font-size: .94rem;
    line-height: 1.7;
  }

  .works-hero__summary {
    width: 100%;
    max-width: 360px;
    padding: 25px;
    border-radius: 20px;
  }

  .works-map-section,
  .works-list-section {
    width: 100%;
    padding: 78px 0;
  }

  .works-map-heading {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 36px;
  }

  .works-map-heading h2,
  .works-list-heading h2 {
    max-width: 100%;
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  .works-map-tools {
    display: flex;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border: 1px solid #dce3ee;
    border-radius: 18px;
    background: #fff;
  }

  .works-map-select {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .works-map-select select {
    width: 100%;
    min-height: 48px;
  }

  .works-map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 0 0;
    border: 0;
    border-top: 1px solid #e3e8f0;
  }

  .works-map-stats {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
  }

  .works-map-layout {
    overflow: visible;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid #dce3ee;
    border-radius: 20px;
    background: #fff;
  }

  .works-map {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 540px;
    border: 0;
    border-bottom: 1px solid #dce3ee;
    border-radius: 20px 20px 0 0;
    background: #f4f8fe;
  }

  .works-map__topbar {
    top: 14px;
    right: 14px;
    left: 14px;
    padding: 11px 12px;
  }

  .works-map__shape {
    position: absolute;
    inset: 74px -70px 0;
    width: calc(100% + 140px);
    height: calc(100% - 74px);
  }

  .works-map-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%);
  }

  .works-map-pin > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50% 50% 50% 8px;
    background: #ffcc00;
    box-shadow: 0 9px 22px rgba(0, 27, 77, .24);
    transform: rotate(-45deg);
  }

  .works-map-pin > span img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    transform: rotate(45deg);
  }

  .works-map-pin > small {
    display: none;
  }

  .works-map-pin.is-active > span {
    border-color: #003596;
    box-shadow: 0 0 0 6px rgba(255, 204, 0, .2), 0 10px 24px rgba(0, 27, 77, .25);
    transform: rotate(-45deg) scale(1.1);
  }

  .works-map__notice {
    left: 14px;
    bottom: 12px;
  }

  .works-detail {
    display: block;
    width: 100%;
    min-width: 0;
    border-radius: 0 0 20px 20px;
    background: #fff;
  }

  .works-detail__photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 330px;
    min-height: 0;
  }

  .works-detail__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .works-detail__content {
    width: 100%;
    padding: 27px 22px;
  }

  .works-detail h3 {
    max-width: 100%;
    font-size: 1.55rem;
    overflow-wrap: normal;
    word-break: normal;
  }

  .works-detail__actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .works-detail__actions a {
    width: 100%;
  }

  .works-list {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .works-list button {
    width: 100%;
    min-width: 0;
  }
}
