/* Cabecera común de magnaua.es: barra blanca con el logo original en rojo MAGNA. */
.mg-nav { position: sticky; top: 0; z-index: 60; background: #fff; color: #1c1c1c; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 24px -16px rgba(0,0,0,.35); font-family: 'Montserrat', Arial, Helvetica, sans-serif; }
.mg-nav-in { max-width: 72rem; margin: 0 auto; padding: 0 1rem; height: 68px; display: flex; align-items: center; gap: 1.25rem; }
.mg-brand { display: flex; align-items: center; flex: none; }
.mg-brand img { height: 40px; width: auto; display: block; }
.mg-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.mg-links a { position: relative; white-space: nowrap; color: #2a2a2a; font-weight: 700; font-size: .86rem; letter-spacing: .01em; padding: .55rem .7rem; border-radius: 10px; text-decoration: none; transition: color .15s, background .15s; }
.mg-links a:hover { color: #6D0D1D; background: #6d0d1d0d; }
.mg-links a[aria-current="page"] { color: #6D0D1D; }
.mg-links a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; border-radius: 2px; background: #6D0D1D; }
.mg-new { display: inline-block; margin-left: .35rem; font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; background: #FFD43B; color: #0E0E0E; border-radius: 20px; padding: .15rem .4rem; vertical-align: 2px; }
.mg-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.mg-btn { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; border-radius: 999px; padding: .55rem 1rem; font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.mg-btn-ghost { border: 2px solid #6D0D1D; color: #6D0D1D; background: transparent; }
.mg-btn-ghost:hover { background: #6D0D1D; color: #fff; }
.mg-btn-red { background: #6D0D1D; color: #fff; border: 2px solid #6D0D1D; }
.mg-btn-red:hover { background: #8A1328; border-color: #8A1328; }
.mg-nav :focus-visible { outline: 3px solid #FFD43B; outline-offset: 2px; }
/* Barra de apartados del móvil (siempre visible, deslizable) */
.mg-tabs { display: none; border-top: 1px solid #00000010; background: #fff; }
.mg-tabs-in { display: flex; gap: .35rem; overflow-x: auto; padding: .5rem .75rem .6rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mg-tabs-in::-webkit-scrollbar { display: none; }
.mg-tabs a { flex: none; display: inline-flex; align-items: center; white-space: nowrap; color: #2a2a2a; font-weight: 800; font-size: .8rem; padding: .5rem .85rem; border-radius: 999px; background: #f3eff0; text-decoration: none; }
.mg-tabs a[aria-current="page"] { background: #6D0D1D; color: #fff; }
.mg-tabs a[aria-current="page"] .mg-new { background: #FFD43B; }
@media (max-width: 1080px) {
  .mg-links { display: none; }
  .mg-tabs { display: block; }
  .mg-actions { margin-left: auto; }
  .mg-nav-in { height: 60px; }
}
@media (max-width: 560px) {
  .mg-btn-t { display: none; }
  .mg-btn-ghost { padding: .55rem .7rem; }
  .mg-brand img { height: 34px; }
}
