:root {
  --local-bg: #121413;
  --local-panel: #191c1a;
  --local-text: #f2f2ed;
  --local-muted: #b9bcb6;
  --local-border: #373a37;
  --local-accent: #d8f238;
}

html {
  scroll-behavior: smooth;
}

#incorporacion,
#presencia {
  scroll-margin-top: 110px;
}

body {
  overflow-x: hidden;
}

.shared-site-header {
  height: 80px;
  background: #121413;
  color: var(--local-text);
}

.shared-site-header > div {
  width: 100%;
  height: 80px;
  min-height: 80px;
  padding: 0 5rem;
  box-sizing: border-box;
}

.shared-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--local-text);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.shared-site-brand::before {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  background: url("assets/brand/isotipo-blanco-transparente-v1.png") center / contain no-repeat;
  content: "";
}

.shared-site-nav a {
  display: inline-flex;
  color: var(--local-text);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.shared-site-nav {
  align-items: center;
  column-gap: 2rem !important;
}

.shared-site-nav > a + a {
  margin-left: 0 !important;
}

.shared-site-cta {
  flex-shrink: 0;
  color: #0a0a0a;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.shared-site-footer {
  background: #0d0f0e;
  color: var(--local-text);
}

.shared-site-footer > div {
  padding: 4rem 5rem;
}

.shared-site-footer .text-cement {
  color: #e7e7e5;
}

.shared-site-footer .text-on-surface-variant {
  color: #c4c7c7;
}

.shared-site-footer .text-outline {
  color: #8e9192;
}

a,
button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--local-accent);
  outline-offset: 3px;
}

.local-nav-link {
  border-bottom-color: transparent !important;
}

.local-nav-link:not(.local-active-nav) {
  color: var(--local-text) !important;
}

.local-active-nav {
  color: var(--local-accent) !important;
  border-bottom: 2px solid var(--local-accent) !important;
  padding-bottom: 0.25rem;
}

.local-brand-link {
  cursor: pointer;
}

.local-brand-link:focus-visible {
  outline: 2px solid var(--local-accent);
  outline-offset: 4px;
}

.local-mobile-trigger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--local-border);
  background: var(--local-bg);
  color: var(--local-text);
  font: 800 13px/1 Inter, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-mobile-menu {
  position: fixed;
  top: 72px;
  right: 16px;
  left: 16px;
  z-index: 10000;
  display: none;
  border: 1px solid var(--local-border);
  background: #0a0a0a;
  box-shadow: 0 18px 45px rgb(0 0 0 / 45%);
}

.local-mobile-menu.local-open {
  display: block;
}

.local-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--local-border);
  color: var(--local-text);
  font: 800 18px/1 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.local-mobile-menu a:last-child {
  border-bottom: 0;
  background: var(--local-accent);
  color: #0a0a0a;
}

.local-mobile-menu a[aria-current="page"] {
  color: var(--local-accent);
}

.local-mobile-menu a:last-child[aria-current="page"] {
  color: #0a0a0a;
}

.local-plan-selected {
  box-shadow: inset 4px 0 0 var(--local-accent);
}

.local-confirmation[hidden] {
  display: none !important;
}

.local-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 11000;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid var(--local-accent);
  background: #0a0a0a;
  color: var(--local-text);
  font: 600 14px/1.45 Inter, sans-serif;
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.local-toast.local-show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1199px) {
  .shared-site-nav {
    display: none !important;
  }

  .shared-site-cta {
    display: none;
  }

  .local-mobile-trigger {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .shared-site-header {
    height: 96px;
  }

  .shared-site-header > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    grid-template-rows: 32px 22px;
    align-content: center;
    height: 96px;
    min-height: 96px;
    gap: 6px 4px;
    padding: 8px 16px;
  }

  .shared-site-brand {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 100%;
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
  }

  .shared-site-brand::before {
    width: 1.625rem;
    height: 1.625rem;
  }

  .shared-site-nav {
    display: grid !important;
    grid-row: 2;
    grid-column: 1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    column-gap: 0 !important;
  }

  .shared-site-nav a {
    min-width: 0;
    justify-content: center;
    overflow: hidden;
    font-size: clamp(9.5px, 2.7vw, 11.5px);
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-overflow: clip;
  }

  .shared-site-cta {
    display: inline-flex;
    grid-row: 2;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
    padding: 0 3px;
    font-size: clamp(8.5px, 2.2vw, 10px);
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .local-mobile-trigger,
  .local-mobile-menu {
    display: none !important;
  }

  .shared-site-footer > div {
    padding: 3rem 1.5rem;
  }

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

  /*
   * Mobile editorial alignment:
   * center page content without altering the shared header navigation.
   */
  body[data-page] main,
  body[data-page] > header:not(.shared-site-header),
  body[data-page] > section {
    text-align: center;
  }

  body[data-page] main .text-left,
  body[data-page] main .text-right,
  body[data-page] > header:not(.shared-site-header) .text-left,
  body[data-page] > header:not(.shared-site-header) .text-right,
  body[data-page] > section .text-left,
  body[data-page] > section .text-right {
    text-align: center !important;
  }

  body[data-page] main .items-start,
  body[data-page] main .items-end,
  body[data-page] > header:not(.shared-site-header) .items-start,
  body[data-page] > header:not(.shared-site-header) .items-end,
  body[data-page] > section .items-start,
  body[data-page] > section .items-end {
    align-items: center !important;
  }

  body[data-page] main .justify-start,
  body[data-page] main .justify-end,
  body[data-page] > header:not(.shared-site-header) .justify-start,
  body[data-page] > header:not(.shared-site-header) .justify-end,
  body[data-page] > section .justify-start,
  body[data-page] > section .justify-end {
    justify-content: center !important;
  }

  body[data-page] main .flex:not(.flex-col),
  body[data-page] > header:not(.shared-site-header) .flex:not(.flex-col),
  body[data-page] > section .flex:not(.flex-col) {
    justify-content: center;
  }

  body[data-page] main :is(h1, h2, h3, h4, p)[class*="max-w-"],
  body[data-page] > header:not(.shared-site-header) :is(h1, h2, h3, h4, p)[class*="max-w-"],
  body[data-page] > section :is(h1, h2, h3, h4, p)[class*="max-w-"] {
    margin-right: auto;
    margin-left: auto;
  }

  /*
   * Icon-led benefit lists need a stable left edge. Centering each row
   * independently makes the icons jump horizontally as labels wrap.
   */
  body[data-page] main ul:has(> li.flex > .material-symbols-outlined),
  body[data-page] > header:not(.shared-site-header) ul:has(> li.flex > .material-symbols-outlined),
  body[data-page] > section ul:has(> li.flex > .material-symbols-outlined) {
    width: 100%;
    max-width: 20rem;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  body[data-page] main li.flex:has(> .material-symbols-outlined),
  body[data-page] > header:not(.shared-site-header) li.flex:has(> .material-symbols-outlined),
  body[data-page] > section li.flex:has(> .material-symbols-outlined) {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body[data-page] li.flex > .material-symbols-outlined {
    flex: 0 0 auto;
    margin-top: 0.0625rem;
  }
}

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

  .local-toast {
    transition: none;
  }
}
