html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  padding-bottom: 0;
}

#seo-navbar {
  padding: 12px 0;
}

#seo-navbar .container {
  width: min(100% - 32px, 1200px);
  padding: 0;
}

#seo-navbar .logo {
  gap: 12px;
  min-width: 0;
  font-size: clamp(0.85rem, 2.5vw, 1.25rem);
}

#seo-navbar .logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

#seo-navbar .nav-links {
  display: flex;
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  flex-direction: row;
  justify-content: flex-start;
  gap: clamp(12px, 2.3vw, 30px);
  background: transparent;
  text-align: left;
  z-index: auto;
}

#seo-navbar .nav-links li a {
  white-space: nowrap;
}

#seo-navbar .hamburger {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-icon {
  display: block;
  width: 22px;
  height: 16px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-icon::after {
  display: block;
  margin-top: 5px;
  border-top: 2px solid currentColor;
  content: "";
}

.seo-main {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding-top: 104px;
  padding-bottom: 64px;
}

.seo-hero {
  min-height: 390px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 6vw, 64px);
  border-radius: 18px;
  color: var(--text-light, #f0f0f0);
  background: linear-gradient(135deg, #1a1a1a, #333);
}

.seo-hero h1 {
  max-width: 850px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
}

.seo-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.seo-hero .btn-whatsapp,
.seo-main .btn-whatsapp {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 14px 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
}

.seo-section {
  margin-top: 48px;
}

.seo-section h2 {
  margin-bottom: 16px;
  color: var(--secondary-color, #1a1a1a);
}

.breadcrumb {
  margin: 0 0 18px;
  color: #555;
  font-size: 0.86rem;
  line-height: 1.5;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}

.breadcrumb li + li::before {
  color: var(--primary-dark, #a38243);
  content: "/";
  font-weight: 600;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--secondary-color, #1a1a1a);
  text-decoration: underline;
}

.breadcrumb a:focus-visible {
  outline: 2px solid var(--primary-dark, #a38243);
  outline-offset: 3px;
  border-radius: 2px;
}

.breadcrumb [aria-current="page"] {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--secondary-color, #1a1a1a);
  background: rgba(197, 160, 89, 0.16);
  font-weight: 600;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.neighborhood-card,
.faq-item,
.native-banner {
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.project-gallery__note {
  max-width: 760px;
  margin: -4px 0 18px;
  color: #555;
}

.project-gallery__viewer {
  width: min(100%, 900px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.project-gallery__image {
  display: grid;
  width: 100%;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #f1efeb;
  cursor: zoom-in;
}

.project-gallery__image:focus-visible {
  outline: 3px solid var(--primary-dark, #a38243);
  outline-offset: -3px;
}

.project-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 680px);
  object-fit: contain;
}

.project-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 4px;
}

.project-gallery__controls button {
  min-height: 44px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--secondary-color, #1a1a1a);
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.project-gallery__controls button:hover:not(:disabled) {
  border-color: var(--primary-dark, #a38243);
  background: rgba(197, 160, 89, 0.12);
}

.project-gallery__controls button:focus-visible {
  outline: 2px solid var(--primary-dark, #a38243);
  outline-offset: 2px;
}

.project-gallery__controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.project-gallery__controls span {
  color: #555;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.project-gallery__caption {
  min-height: 3.2em;
  margin: 0;
  padding: 8px 18px 18px;
  color: #444;
  text-align: center;
}

.stories-rail {
  display: grid;
  grid-auto-columns: minmax(150px, 190px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
}

.story-card {
  position: relative;
  display: flex;
  min-width: 0;
  aspect-ratio: 9 / 16;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 16px;
  border: 2px solid var(--primary-color, #c5a059);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(155deg, #49443a, #171717 70%);
  text-decoration: none;
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
}

.story-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.78));
  content: "";
}

.story-card > .story-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card > * {
  position: relative;
}

.story-card__count {
  align-self: flex-start;
  margin-bottom: auto;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.8rem;
}

.story-card__title {
  font: 700 1rem/1.3 Montserrat, sans-serif;
}

.story-viewer {
  width: min(100vw, 480px);
  max-width: 100%;
  height: min(100dvh, 850px);
  max-height: 100%;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: #111;
}

.story-viewer::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.story-viewer__stage {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(160deg, #49443a, #171717 70%);
  touch-action: pan-y;
}

.story-viewer__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-viewer__caption,
.story-viewer__actions,
.story-progress,
.story-viewer__close,
.story-viewer__step {
  position: relative;
  z-index: 1;
}

.story-progress {
  position: absolute;
  top: 14px;
  right: 16px;
  left: 16px;
  display: flex;
  gap: 4px;
}

.story-progress span {
  height: 3px;
  flex: 1;
  background: rgba(255, 255, 255, 0.4);
}

.story-progress span[aria-current="step"] {
  background: var(--primary-color, #c5a059);
}

.story-viewer__close {
  position: absolute;
  top: 28px;
  right: 16px;
  border: 0;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.story-viewer__step {
  position: absolute;
  top: 50%;
  border: 0;
  padding: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform: translateY(-50%);
}

.story-viewer__step--previous {
  left: 8px;
}

.story-viewer__step--next {
  right: 8px;
}

.story-viewer__caption {
  margin-bottom: 18px;
  text-shadow: 0 1px 5px #000;
}

.story-viewer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.story-viewer__actions a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.native-banner {
  margin: 28px 0;
  border-color: rgba(197, 160, 89, 0.6);
  background: #fffdf8;
}

.native-banner h2,
.native-banner h3 {
  margin-bottom: 8px;
}

.seo-footer .footer-content {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.seo-footer address {
  font-style: normal;
}

.seo-footer .footer-col p,
.seo-footer .footer-col address {
  overflow-wrap: anywhere;
}

.cookie-banner {
  position: fixed;
  z-index: 2000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  width: min(100% - 32px, 680px);
  gap: 12px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #fff;
  background: #1a1a1a;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner a {
  color: #f0d7a1;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner button {
  min-height: 44px;
  border: 1px solid var(--primary-color, #c5a059);
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.cookie-banner button[data-consent-accept] {
  color: #1a1a1a;
  background: var(--primary-color, #c5a059);
}

.fixed-whatsapp {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #fff;
  background: #168a4b;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 768px) {
  #seo-navbar .container {
    width: calc(100% - 28px);
  }

  #seo-navbar .nav-container {
    gap: 12px;
  }

  #seo-navbar .logo {
    max-width: calc(100% - 56px);
  }

  #seo-navbar .logo img {
    width: 36px;
    height: 36px;
  }

  #seo-navbar .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    left: auto;
    display: none;
    width: min(86vw, 340px);
    height: calc(100dvh - 68px);
    padding: 24px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    background: rgba(26, 26, 26, 0.99);
    text-align: left;
    z-index: 1002;
  }

  #seo-navbar .nav-links.is-open {
    display: flex;
  }

  #seo-navbar .hamburger {
    display: block;
    position: relative;
    z-index: 1003;
    color: #fff;
    font-size: 1.35rem;
  }

  .seo-main {
    width: calc(100% - 28px);
    padding-top: 86px;
    padding-bottom: 88px;
  }

  .seo-hero {
    min-height: 0;
    gap: 14px;
    padding: 24px 20px;
  }

  .breadcrumb {
    margin-bottom: 14px;
    font-size: 0.8rem;
  }

  .breadcrumb ol {
    gap: 3px 6px;
  }

  .breadcrumb li {
    gap: 6px;
  }

  .seo-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .seo-hero .btn-whatsapp,
  .seo-main .btn-whatsapp {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .seo-section {
    margin-top: 36px;
  }

  .project-gallery__viewer {
    border-radius: 12px;
  }

  .project-gallery__image {
    min-height: 180px;
  }

  .project-gallery__image img {
    max-height: 62vh;
  }

  .project-gallery__controls {
    gap: 8px;
    padding: 12px 10px 4px;
  }

  .project-gallery__controls button {
    padding-right: 14px;
    padding-left: 14px;
  }

  .project-gallery__caption {
    padding: 8px 12px 14px;
    font-size: 0.9rem;
  }

  .fixed-whatsapp {
    display: flex;
  }

  .seo-footer {
    padding-bottom: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
