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

img,
picture {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
}

.header-container {
  position: relative;
}

.main-nav,
.header-actions {
  display: none;
}

.mobile-menu-toggle {
  display: block;
  position: absolute;
  opacity: 0;
  pointer-events: auto;
}

.mobile-menu-button {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  background: #ffffff;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  background: #111111;
  border-radius: 999px;
}

.mobile-menu{
  position: absolute;
  right: 16px;
  top: calc(100% + 10px);
  width: min(320px, 90vw);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.15);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.mobile-menu a:not(.btn) {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

.mobile-menu__actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.mobile-menu-toggle:checked ~ .mobile-menu {
  display: flex;
}

.hero {
  padding: 40px 0 32px;
}

.hero__container {
  grid-template-columns: 1fr;
  gap: 20px;
}

.hero__visual {
  margin-top: 0;
}

.hero__title {
  font-size: clamp(1.9rem, 6.5vw, 2.4rem);
}

.hero__lead {
  font-size: 1rem;
  margin-bottom: 16px;
}

.hero__title br,
.hero__lead br {
  display: none;
}

.hero__actions {
  align-items: stretch;
}

.hero__actions [data-publish-entry] {
  width: 100%;
  text-align: center;
}

.hero__text-panel::after {
  display: block;
  top: 0;
  left: 0;
}

.hero__note {
  margin-left: 0;
  margin-top: 4px;
}

.card-stack {
  max-width: 300px;
  height: auto;
  margin-top: 4px;
}

.card-stack .visual-card {
  position: relative;
}

.card--back {
  display: none;
  top: 12px;
  left: 12px;
}

.card--front {
  padding: 20px;
}

.card-header {
  margin-bottom: 16px;
}

.card-body .card-title {
  font-size: 1rem;
}

.offer-row {
  font-size: 0.9rem;
}

.btn-mini {
  font-size: 0.8rem;
}

.section-padding {
  padding: 56px 0;
}

.property-carousel__wrapper {
  width: 100%;
  max-width: none;
  padding: 0 16px;
}

.property-carousel {
  padding: 10px 0;
  padding-inline: 0;
}

.property-carousel__frame {
  padding: 8px;
  touch-action: pan-y;
}

.carousel-nav {
  display: none;
}

.carousel-nav--prev {
  left: 12px;
}

.carousel-nav--next {
  right: 12px;
}

.property-slide {
  grid-template-columns: 1fr;
  gap: 10px;
}

.property-slide__media {
  height: auto;
  padding: 0;
}

.property-gallery {
  display: block;
  height: auto;
}

.property-gallery__thumb {
  display: none;
}

.property-gallery__main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

.property-slide__details {
  padding: 12px;
}

.property-stats-inline {
  font-size: 0.75rem;
  gap: 6px 10px;
}

.property-info-grid {
  grid-template-columns: 1fr;
}

.property-tags-inline--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.property-map-preview {
  min-height: 120px;
}

.steps-grid {
  flex-direction: column;
  gap: 20px;
}

.step-item {
  padding: 0;
}

.step-number {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.step-connector {
  display: none;
}

.step-item h3 {
  font-size: 1.1rem;
}

.step-item p {
  font-size: 0.9rem;
}

.split-layout {
  grid-template-columns: 1fr;
  gap: 14px;
}

#perfiles .role-card {
  padding: 18px 18px 12px;
}

#perfiles .role-card__note {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 20px;
}

#perfiles .role-card--owner .role-card__note,
#perfiles .role-card--agency .role-card__note {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
}

#perfiles .role-card > p:not(.role-card__hint):not(.role-card__note) {
  min-height: 0;
  margin-bottom: 14px;
}

.role-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.role-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.role-card__hint {
  min-height: 0;
  line-height: 1.4;
}

#perfiles .role-card__cta {
  margin-top: 10px;
  margin-bottom: 16px;
}

.cta-section {
  padding: 56px 0;
}

.cta-box {
  padding: 32px 20px;
  gap: 18px;
}

.cta-content h2 {
  font-size: 1.6rem;
}

.cta-content p {
  font-size: 0.95rem;
}

.cta-buttons .btn {
  width: 100%;
}

#contacto .container {
  padding: 0 16px;
}

#contacto .contact-card,
.contact-section .role-card {
  padding: 14px;
}

#contacto .form-grid--two {
  display: flex;
  flex-direction: column;
}

#contacto .form-grid--two > label:nth-child(1) {
  order: 1;
}

#contacto .form-grid--two > label:nth-child(2) {
  order: 3;
}

#contacto .form-grid--two > label:nth-child(3) {
  order: 2;
}

#contacto .form-grid--two > label:nth-child(4) {
  order: 4;
}

.contact-form__actions {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.contact-form__status {
  min-height: 0;
  margin: 0;
  flex: 0 0 auto;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
}

.checkbox-row {
  flex-direction: column;
  gap: 6px;
}

#contacto .form-feedback,
#contacto .contact-form__status {
  min-height: 0;
  margin-top: 6px;
  margin-bottom: 0;
}

#contacto .form-feedback:empty,
#contacto .contact-form__status:empty {
  display: none;
}

.contact-role-row {
  margin-bottom: 4px;
}

.site-footer {
  padding: 48px 0;
}

.footer-contact-inline {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-contact-inline__logo {
  width: 100%;
  height: auto;
  margin-right: 0;
}

.footer-contact-inline__logo img {
  height: auto;
}

.footer-bottom {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-terms {
  text-align: center;
}

.footer-nav {
  gap: 12px;
}

/* Mobile footer alignment overrides */
.footer-contact-inline {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-terms {
  text-align: center;
}

.footer-terms.footer-terms--split {
  text-align: center;
}

.footer-terms.footer-terms--split a {
  white-space: nowrap;
  display: inline;
}

.footer-terms.footer-terms--split a:first-of-type::before {
  content: '\A';
  white-space: pre;
}
.footer-nav {
  justify-content: center;
}

/* Mobile footer alignment overrides v2 */
.footer-contact-inline {
  justify-content: center;
}

.footer-contact-inline > div {
  text-align: center;
  width: 100%;
}

.footer-terms {
  width: 100%;
  text-align: center;
}

/* Mobile footer contact centering */
.footer-contact-inline {
  align-items: center;
}

.footer-contact-inline > div {
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

/* Mobile footer contact titles center */
.footer-contact-inline {
  justify-content: center;
  text-align: center;
}

.footer-contact-title {
  justify-content: center;
}

/* Mobile notifications panel positioning */
.notifications-panel {
  right: 16px;
  left: 16px;
  width: auto;
  max-width: calc(100% - 32px);
}

.mobile-menu-button{position:relative;z-index:40}
.mobile-menu{z-index:50}
.mobile-menu.is-open{display:flex}
.mobile-menu.is-open{display:flex;position:fixed;top:72px;right:16px;left:auto;width:min(320px,90vw);z-index:9999}
.site-header, .header-container{overflow:visible}