/* OCCHIUZZI V28 · ajustes responsive solicitados en agosto de 2026. */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body.oc28-menu-open { overflow: hidden; }

/* Los filtros permanecen arriba del catálogo y nunca se fijan a la pantalla. */
.oc19-featured--catalog + .catalog-content .filter-shell,
.catalog-content .filter-shell {
  position: relative !important;
  top: auto !important;
  transform: none !important;
  z-index: 10 !important;
}

/* Los tres accesos del hero comparten la misma jerarquía. */
.hero-actions a,
.hero-actions .hero-action-primary {
  padding-bottom: 8px !important;
  border-bottom-width: 2px !important;
  font-size: clamp(14px, 1vw, 17px) !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
}

/* Cierre visible y accesible para el menú superpuesto. */
.oc28-menu-close {
  position: fixed;
  z-index: 4;
  top: 26px;
  right: 30px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(7, 21, 37, .72);
  color: #fff;
  font: 300 34px/1 Arial, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.oc28-menu-close:hover,
.oc28-menu-close:focus-visible {
  border-color: #fff;
  outline: 2px solid #9ecfff;
  outline-offset: 3px;
}

/* Agrupación compacta de teléfonos. */
.oc28-fixed-phones,
.oc28-mobile-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
}

.oc28-mobile-phones {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(7, 21, 37, .12);
}

.oc28-mobile-phones strong {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .menu-overlay {
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .menu-overlay__inner {
    display: block !important;
    min-height: 100dvh;
    height: auto !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .menu-overlay__primary {
    padding: 108px 28px 22px !important;
    border-right: 0 !important;
  }

  .menu-overlay__primary nav {
    margin-top: 20px !important;
  }

  .menu-overlay__primary nav a {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    padding: 11px 0 !important;
  }

  .menu-overlay__primary nav b {
    font-size: clamp(27px, 7vw, 40px) !important;
    line-height: 1.04;
  }

  .mobile-menu__bottom {
    position: static !important;
    display: grid !important;
    gap: 9px !important;
    margin: 8px 28px 0;
    padding: 22px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  .oc28-menu-close {
    top: 18px;
    right: 18px;
  }
}

@media (max-width: 700px) {
  .site-rail {
    height: 72px !important;
    padding-inline: 12px !important;
  }

  .rail-brand { width: 82px !important; }
  .menu-toggle { width: 76px !important; }
  .site-rail .rail-section { min-width: 0; }

  .home-hero {
    min-height: 680px;
    height: 100svh;
  }

  .home-hero__copy {
    left: 20px !important;
    right: 20px !important;
    bottom: 42px !important;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: clamp(49px, 15vw, 66px) !important;
    line-height: .9 !important;
    overflow-wrap: anywhere;
  }

  .home-hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 15px !important;
    justify-items: start;
  }

  .hero-actions a,
  .hero-actions .hero-action-primary {
    width: fit-content;
    font-size: 15px !important;
  }

  .catalog-hero {
    height: auto !important;
    min-height: 600px !important;
  }

  .catalog-hero__copy {
    left: 20px !important;
    right: 20px !important;
    bottom: 44px !important;
  }

  .catalog-hero h1,
  .oc19-featured__head h2 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(43px, 13vw, 58px) !important;
    line-height: .92 !important;
    letter-spacing: -.055em !important;
    overflow-wrap: anywhere !important;
    text-wrap: balance;
  }

  .catalog-hero p { font-size: 15px; }

  .catalog-hero__copy > div {
    flex-wrap: wrap;
    gap: 8px 16px !important;
  }

  .oc19-featured,
  .page-main > .oc19-featured,
  .catalog-main > .oc19-featured {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .oc19-featured__head { gap: 20px; }

  .catalog-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .catalog-content .filter-shell {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    margin: 0 0 34px !important;
    overflow: visible !important;
  }

  .filterbar {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .filter-more.open {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .filterbar input,
  .filterbar select,
  .filterbar button,
  .filter-more input,
  .filter-more select,
  .filter-more button {
    min-height: 46px;
  }

  .catalog-grid { overflow: visible !important; }

  .property-card,
  .property-card figure {
    min-width: 0;
    max-width: 100%;
  }

  .property-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-head h2 {
    font-size: clamp(36px, 11vw, 52px) !important;
    line-height: .96;
  }

  .oc28-fixed-phones,
  .oc28-mobile-phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oc28-contact-phones a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .oc28-footer-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px 14px !important;
  }

  .oc28-footer-contact > h3,
  .oc28-footer-contact > p,
  .oc28-footer-contact > a[href^="mailto:"] {
    grid-column: 1 / -1;
  }

  .oc28-footer-contact > a[href^="tel:"] {
    grid-column: auto;
    overflow-wrap: anywhere;
  }

  .oc26-form-hero__copy h1 {
    font-size: clamp(48px, 14vw, 66px) !important;
    overflow-wrap: anywhere;
  }

  .oc26-form button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .menu-overlay__primary { padding-inline: 20px !important; }
  .menu-overlay__primary nav b { font-size: 26px !important; }
  .mobile-menu__bottom { margin-inline: 20px; }
  .catalog-hero h1,
  .oc19-featured__head h2 { font-size: 42px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-overlay { transition: none !important; }
}
