/* CAME — navegación compartida de la prueba 8. */
:root { --came-header-height: 90px; }
html { scroll-padding-top: calc(var(--came-header-height) + 16px); }
.came-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  height: var(--came-header-height);
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #e4e6e9;
  box-shadow: 0 4px 20px rgb(25 32 42 / 5%);
}
.came-site-header *, .came-site-header *::before, .came-site-header *::after { box-sizing: border-box; }
.came-navigation {
  width: calc(100% - 48px);
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.came-menu-brand { display: inline-flex; flex-shrink: 0; align-items: center; border-radius: 6px; }
.came-menu-brand img { display: block; width: 144px; height: auto; }
.came-menu-panel { min-width: 0; margin-left: auto; }
.came-menu-list, .came-menu-extra { list-style: none; margin: 0; padding: 0; }
.came-menu-list {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: #f5f6f8;
  border: 1px solid #e4e6e9;
  border-radius: 12px;
}
.came-menu-list > li { margin: 0; padding: 0; }
.came-site-header .came-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #333b46;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.came-site-header .came-menu-link:hover { background: #fff; color: #bd0010; border-color: #dde1e6; }
.came-site-header .came-menu-link.is-current,
.came-site-header .came-menu-link.is-current:hover { color: #fff; background: #e30613; border-color: #e30613; }
.came-site-header .came-menu-link.is-current-section { color: #bd0010; background: #fff0f1; border-color: #efc5c8; }
.came-site-header a:focus-visible,
.came-site-header button:focus-visible,
.came-site-header summary:focus-visible { outline: 3px solid #492f7b; outline-offset: 3px; }
.came-menu-more { position: relative; }
.came-menu-more > summary { list-style: none; }
.came-menu-more > summary::-webkit-details-marker { display: none; }
.came-menu-chevron { width: 16px; height: 16px; flex-shrink: 0; transition: transform .15s ease; }
.came-menu-more[open] > summary .came-menu-chevron { transform: rotate(180deg); }
.came-menu-extra {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2;
  width: 244px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e1e4e9;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(25 32 42 / 12%);
}
.came-menu-extra li + li { margin-top: 4px; }
.came-menu-extra .came-menu-link { justify-content: flex-start; }
.came-menu-extra .came-menu-link:hover { background: #f5f6f8; }
.came-menu-toggle { display: none; }
.came-site-header [hidden] { display: none !important; }
.came-site-header + .sec-main,
.came-site-header + .bg-pagos { margin-top: var(--came-header-height) !important; }

@media (max-width: 1199.98px) {
  :root { --came-header-height: 82px; }
  .came-navigation { width: calc(100% - 32px); gap: 16px; }
  .came-menu-brand img { width: 124px; }
  .came-site-header .came-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #bfc5ce;
    border-radius: 9px;
    background: #fff;
    color: #333b46;
    font: 600 15px/22px 'Jost', Arial, sans-serif;
    cursor: pointer;
  }
  .came-site-header .came-menu-toggle:hover { border-color: #e30613; color: #bd0010; }
  .came-site-header .came-menu-toggle.is-open { background: #fff0f1; border-color: #e30613; color: #bd0010; }
  .came-menu-toggle svg { width: 20px; height: 20px; }
  .came-menu-close-icon, .came-menu-toggle.is-open .came-menu-open-icon { display: none; }
  .came-menu-toggle.is-open .came-menu-close-icon { display: block; }
  .came-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    max-height: calc(100vh - 106px);
    max-height: calc(100dvh - 106px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 12px 12px;
    margin: 0;
    background: #fff;
    border: 1px solid #e1e4e9;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgb(25 32 42 / 14%);
  }
  .came-menu-list { display: grid; gap: 6px; border: 0; padding: 0; background: transparent; }
  .came-site-header .came-menu-link {
    justify-content: flex-start;
    min-height: 46px;
    padding: 11px 14px;
    background: #f8f9fa;
    border-color: #e3e6ea;
    font-size: 16px;
    white-space: normal;
  }
  .came-menu-more > summary .came-menu-chevron { margin-left: auto; }
  .came-menu-extra {
    position: static;
    width: auto;
    margin: 6px 0 0 12px;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
    border-left: 2px solid #e4e6e9;
    border-radius: 0;
    box-shadow: none;
  }
  .came-menu-extra li + li { margin-top: 6px; }
  /* Sin JavaScript, todos los enlaces siguen siendo accesibles. */
  .came-site-header:not(.came-menu-ready) { position: relative; height: auto; }
  .came-site-header:not(.came-menu-ready) .came-navigation { flex-wrap: wrap; min-height: 82px; }
  .came-site-header:not(.came-menu-ready) .came-menu-panel { position: static; width: 100%; max-height: none; box-shadow: none; }
  .came-site-header:not(.came-menu-ready) + .sec-main,
  .came-site-header:not(.came-menu-ready) + .bg-pagos { margin-top: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .came-site-header .came-menu-link, .came-menu-chevron { transition: none; }
}
