/* val-nav.css — navegación compartida de TODAS las páginas (mega menús + menú móvil) y
   estilos de salto a sección (anclas de políticas). La estructura la genera val-nav.js.
   Cada página conserva su CSS base de `nav` / `.navlinks` / `.cta`; aquí solo va lo común. */

.navlinks { position: relative; gap: 24px; }
.navlinks > a, .mm > a { white-space: nowrap; }
.navlinks > a.cur, .mm.cur > a { color: var(--orange, #f26b1d); }

/* ---------- mega menú ---------- */
.mm { position: static; display: inline-flex; align-items: center; }
.mm > a { padding: 12px 0; }
.mm > a::after { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: 0.75; transition: transform 0.25s; }
.mm:hover > a::after, .mm:focus-within > a::after { transform: translateY(2px) rotate(225deg); }
.mm-panel {
  position: absolute; top: 100%; right: 0; z-index: 70; width: 720px; max-width: calc(100vw - 40px);
  display: grid; grid-template-columns: 210px 1fr; gap: 14px; padding: 14px;
  background: #fff; border-radius: 16px; box-shadow: 0 22px 54px rgba(14, 42, 71, 0.22);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  text-shadow: none; letter-spacing: 0; font-weight: 400;
}
.mm-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }   /* puente: no se pierde el hover al bajar */
.mm:hover .mm-panel, .mm:focus-within .mm-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mm-feature { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #0e2a47; min-height: 200px; }
.mm-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.95; transition: transform 0.8s ease; }
.mm-feature:hover img { transform: scale(1.05); }
.mm-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 30, 52, 0) 35%, rgba(9, 30, 52, 0.82) 100%); }
.mm-feature span { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 13px; color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.45; }
.mm-feature b { display: block; font-size: 15px; font-weight: 800; letter-spacing: 0.06em; line-height: 1.15; margin-bottom: 7px; }
.mm-feature b em { display: block; font-style: normal; color: #f58a42; }
.mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; align-content: center; }
.mm-grid.one { grid-template-columns: 1fr; }
.mm-grid.cols { grid-template-columns: 1fr 1fr; gap: 0 14px; align-content: start; }
.mm-col { display: flex; flex-direction: column; gap: 2px; }
.mm-h, .nd-h { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.22em; color: #0e7fb8; padding: 6px 10px 4px; }
.mm-col + .mm-col { border-left: 1px solid rgba(14, 42, 71, 0.08); padding-left: 14px; }
.nd-h { padding: 10px 10px 2px; }
.mm-item { display: block; min-width: 0; }
.mm-grid > .mm-item > a, .mm-col > .mm-item > a { display: flex; gap: 11px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; color: #0e2a47; text-decoration: none; transition: background 0.2s; }
.mm-subs { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 10px 8px 10px; }
.mm-subs a { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: #0e7fb8; text-decoration: none; background: #eef6fb; border-radius: 999px; padding: 3px 8px; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.mm-subs a:hover { background: #0e7fb8; color: #fff; }
.nd-list .mm-subs { padding: 0 10px 10px 56px; }
.mm-item > a:hover { background: #f2f7fb; color: #0e2a47; }
.mm-item > a i, .nd-list .mm-item > a i { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: #fff1e8; color: #f26b1d; display: grid; place-items: center; transition: background 0.25s, color 0.25s; }
.mm-item > a i svg, .nd-list .mm-item > a i svg { width: 18px; height: 18px; }
.mm-item > a:hover i { background: #f26b1d; color: #fff; }
.mm-item > a b { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.09em; line-height: 1.3; }
.mm-item > a small { display: block; font-size: 11.5px; color: #6b7f95; margin-top: 2px; line-height: 1.35; }
.mm-item > a.on b { color: #f26b1d; }
.val-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ffb43a; margin-left: 6px; vertical-align: middle; }

/* ---------- hamburguesa + panel móvil ---------- */
.nav-burger { display: none; width: 42px; height: 42px; margin-left: 10px; border: 0; border-radius: 12px; background: transparent; color: var(--navy, #0e2a47); cursor: pointer; padding: 0; }
.nav-burger svg { width: 24px; height: 24px; display: block; margin: auto; }
.nav-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.nav-drawer .nd-shade { position: absolute; inset: 0; background: rgba(9, 30, 52, 0.5); opacity: 0; transition: opacity 0.3s; }
.nav-drawer .nd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(390px, 92vw); background: #fff; box-shadow: -20px 0 50px rgba(9, 30, 52, 0.25); transform: translateX(104%); transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; font-family: 'Outfit', sans-serif; }
body.nav-open { overflow: hidden; }
body.nav-open .nav-drawer { visibility: visible; }
body.nav-open .nav-drawer .nd-shade { opacity: 1; }
body.nav-open .nav-drawer .nd-panel { transform: none; }
.nd-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(14, 42, 71, 0.1); }
.nd-top img { height: 40px; }
.nd-close { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f2f7fb; color: #0e2a47; font-size: 22px; line-height: 1; cursor: pointer; }
.nd-body { flex: 1; overflow-y: auto; padding: 8px 12px 20px; -webkit-overflow-scrolling: touch; }
.nd-link, .nd-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: #0e2a47; text-decoration: none; border-bottom: 1px solid rgba(14, 42, 71, 0.08); cursor: pointer; list-style: none; }
.nd-group > summary::-webkit-details-marker { display: none; }
.nd-group > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid #f26b1d; border-bottom: 2px solid #f26b1d; transform: rotate(45deg); transition: transform 0.25s; margin-right: 4px; }
.nd-group[open] > summary::after { transform: rotate(225deg); }
.nd-group[open] > summary { color: #f26b1d; border-bottom-color: transparent; }
.nd-list { padding: 2px 0 10px; border-bottom: 1px solid rgba(14, 42, 71, 0.08); }
.nd-list .mm-item > a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; color: #0e2a47; text-decoration: none; }
.nd-list .mm-item > a b { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.nd-list .mm-item > a small { display: block; font-size: 12px; color: #6b7f95; line-height: 1.35; }
.nd-foot { padding: 14px 18px 20px; border-top: 1px solid rgba(14, 42, 71, 0.1); }
.nd-cta { display: block; text-align: center; background: #f26b1d; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; padding: 14px; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 26px rgba(242, 107, 29, 0.35); }

@media (max-width: 1120px) {
  .navlinks > a:not(.cta), .navlinks > .mm { display: none !important; }
  .nav-burger { display: block; }
}
@media (max-width: 420px) {
  .navlinks a.cta { padding: 9px 15px; font-size: 12px; }
}

/* ---------- saltos a sección: el título no queda bajo el nav fijo y se resalta un momento ---------- */
.policy [id], .ti-sec[id] { scroll-margin-top: 96px; }
.policy h2:target, .policy h3:target, .policy p:target { border-radius: 8px; animation: valTarget 2.8s ease 0.3s both; }
@keyframes valTarget {
  0%, 55% { background: rgba(255, 180, 58, 0.3); box-shadow: 0 0 0 10px rgba(255, 180, 58, 0.3); }
  100% { background: transparent; box-shadow: 0 0 0 10px transparent; }
}
@media (prefers-reduced-motion: reduce) { .policy h2:target, .policy h3:target, .policy p:target { animation: none; } }
