/* One-page landing: header clearance only via scroll-margin (avoid stacking with
   landing-refresh scroll-padding). No visual redesign of sections. */
html {
  scroll-behavior: smooth;
  /* Override landing-refresh padding so it does not stack with panel margins */
  scroll-padding-top: 0;
}

.onepage-panel,
#inicio[data-onepage-section] {
  scroll-margin-top: 88px;
}

.onepage-panel:focus {
  outline: none;
}

.onepage-panel:focus-visible {
  outline: 2px solid #00c853;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .onepage-panel,
  #inicio[data-onepage-section] { scroll-margin-top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Invite share — landing (comunidad close) */
.invite-share-public {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.invite-share-public-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}
.invite-share-alt-btn {
  background: none;
  border: 0;
  padding: 0.25rem 0.35rem;
  cursor: pointer;
  font: inherit;
}
.invite-share-status {
  min-height: 1.2em;
  margin: 0;
}


/* i18n locale selector — visible on mobile (outside .header-actions) and desktop */
.landing-locale.theme-selector {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  margin-right: 8px;
  flex-shrink: 0;
}
.landing-locale .theme-option {
  min-width: 2.25rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(16, 42, 67, 0.18);
  background: rgba(255,255,255,0.75);
  color: #102A43;
  cursor: pointer;
}
.landing-locale .theme-option.is-active {
  background: #102A43;
  color: #fff;
  border-color: #102A43;
}
.landing-locale--mobile-nav {
  margin: 0.35rem 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(16, 42, 67, 0.12);
}
@media (min-width: 900px) {
  /* Keep selector between desktop nav CTAs and brand without stealing mobile flex */
  .header-inner .landing-locale.theme-selector:not(.landing-locale--mobile-nav) {
    margin-left: 0;
    margin-right: 0.35rem;
  }
  .landing-locale--mobile-nav {
    display: none !important;
  }
}
