/* Menú reutilizable de Electrolum. Se carga desde menu.html */
body.menu-open { overflow: hidden; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 3000;
  height: var(--header, 74px);
  background: rgba(4, 12, 53, .96);
  border-bottom: 1px solid transparent;
  transition: box-shadow .24s ease, border-color .24s ease, background .24s ease;
}
.site-header.scrolled {
  background: rgba(4, 10, 44, .985);
  border-color: rgba(118, 157, 229, .19);
  box-shadow: 0 16px 38px rgba(0, 3, 29, .36);
}
.site-header .container { width: var(--container, min(1180px, calc(100% - 32px))); margin-inline: auto; }
.nav-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { display: block; width: 178px; max-height: 50px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav a {
  position: relative;
  padding-block: 8px;
  color: #dce6fb;
  font-size: .93rem;
  font-weight: 760;
  text-decoration: none;
  transition: color .2s ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange, #ff9d00), var(--cyan, #16bfe9));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s ease;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: #fff; }
.desktop-nav a:hover::after,
.desktop-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.menu-cta,
.drawer-wa {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 15px;
  color: #091341;
  background: linear-gradient(135deg, var(--yellow, #ffe21c), var(--orange, #ff9d00));
  box-shadow: 0 12px 26px rgba(255,157,0,.2), inset 0 1px 0 rgba(255,255,255,.4);
  font-weight: 850;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.menu-cta:hover,
.drawer-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255,157,0,.28), inset 0 1px 0 rgba(255,255,255,.4); }
.menu-cta svg { width: 19px; height: 19px; flex: 0 0 auto; }

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  color: white;
  background: #0a205f;
  box-shadow: 6px 6px 14px rgba(0,3,27,.45), -4px -4px 12px rgba(36,78,157,.12);
}
.menu-lines { width: 20px; display: grid; gap: 4px; }
.menu-lines span { height: 2px; border-radius: 99px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] .menu-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-lines span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] .menu-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu-button:focus-visible,
.drawer-close:focus-visible,
.menu-cta:focus-visible,
.drawer-wa:focus-visible,
.drawer-nav a:focus-visible {
  outline: 3px solid rgba(255,226,28,.9);
  outline-offset: 3px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 3200;
  background: rgba(1,4,24,.76);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 3300;
  width: min(89vw, 398px);
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 100% 0, rgba(22,191,233,.12), transparent 18rem),
    linear-gradient(180deg, #0a205f 0, #061343 72%);
  border-left: 1px solid rgba(113,221,248,.14);
  box-shadow: -28px 0 60px rgba(0,3,25,.5);
  transform: translateX(102%);
  transition: transform .32s cubic-bezier(.22,.82,.22,1);
}
body.menu-open .drawer-overlay { opacity: 1; visibility: visible; }
body.menu-open .drawer { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.drawer-top img { display: block; width: 164px; }
.drawer-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: white;
  background: #0c2a74;
  cursor: pointer;
  box-shadow: 6px 6px 14px rgba(0,3,28,.4), -4px -4px 12px rgba(36,78,157,.14);
}
.drawer-welcome {
  padding: 18px;
  margin-bottom: 15px;
  border-radius: 20px;
  background: #071a52;
  box-shadow: inset 4px 4px 11px rgba(0,3,29,.38), inset -4px -4px 10px rgba(36,78,157,.12);
}
.drawer-kicker { display: block; margin-bottom: 5px; color: var(--yellow, #ffe21c); font-size: .69rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.drawer-welcome strong { display: block; color: white; font-size: 1.05rem; line-height: 1.25; }
.drawer-welcome p { margin: 7px 0 0; color: var(--muted, #a9b7d6); font-size: .86rem; line-height: 1.5; }
.drawer-nav { display: grid; gap: 9px; }
.drawer-nav a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px;
  border-radius: 17px;
  color: white;
  font-weight: 780;
  text-decoration: none;
  background: #0a205f;
  box-shadow: 7px 7px 16px rgba(0,3,29,.42), -5px -5px 14px rgba(36,78,157,.14);
  transition: transform .18s ease, background .18s ease;
}
.drawer-nav a:hover,
.drawer-nav a.active { transform: translateX(-3px); background: #0c2a74; }
.drawer-nav .link-left { display: flex; align-items: center; gap: 12px; }
.drawer-nav .icon-box {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #071a52;
  color: var(--cyan, #16bfe9);
  box-shadow: inset 3px 3px 8px rgba(0,3,29,.48), inset -3px -3px 8px rgba(36,78,157,.13);
}
.drawer-nav svg { width: 18px; height: 18px; }
.menu-arrow { color: #6f8dcc; font-size: 1.45rem; line-height: 1; }
.drawer-contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  background: #0c286f;
  box-shadow: 10px 10px 23px rgba(0,3,29,.44), -7px -7px 18px rgba(36,78,157,.13);
}
.drawer-contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--yellow, #ffe21c);
  background: #071a52;
  box-shadow: inset 3px 3px 8px rgba(0,3,29,.4), inset -3px -3px 8px rgba(36,78,157,.12);
}
.drawer-contact-icon svg { width: 22px; height: 22px; }
.drawer-contact strong { display: block; color: white; font-size: 1rem; line-height: 1.25; }
.drawer-contact p { margin: 5px 0 0; color: var(--muted, #a9b7d6); font-size: .82rem; line-height: 1.45; }
.drawer-contact .drawer-wa { grid-column: 1 / -1; width: 100%; min-height: 48px; margin-top: 2px; }

.menu-load-error {
  position: fixed;
  inset: 12px 12px auto;
  z-index: 5000;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  background: #8b1e2d;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  font-size: .86rem;
  text-align: center;
}

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .nav-actions > .menu-cta { display: none; }
  .menu-button { display: grid; }
}

@media (max-width: 760px) {
  .brand img { width: 150px; }
  .menu-button { width: 43px; height: 43px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer,
  .drawer-overlay,
  .drawer-nav a,
  .menu-button span { transition-duration: .01ms !important; }
}
