/* Mangini 2026 · Encabezado de Rio vestido como la web nueva.
   Solo aplica donde el layout agrega body.mg-page (páginas con el diseño nuevo). */

body.mg-page header.head-main{position:fixed!important;top:0;left:0;right:0;z-index:1030;background:transparent!important;box-shadow:none;transition:background-color .3s,box-shadow .3s,backdrop-filter .3s}

/* Mismo margen lateral que el resto de la web */
body.mg-page header.head-main>.container-fluid{padding-left:clamp(16px,4vw,64px)!important;padding-right:clamp(16px,4vw,64px)!important}
body.mg-page header.head-main .row.no-gutters{min-height:72px}

/* Franja de avisos: bordó oscuro con texto oro, como el ticker */
body.mg-page header.head-main .section-adbar{background:#4C0B16!important;font-family:'Bricolage Grotesque',system-ui,sans-serif;font-weight:600;letter-spacing:.01em}
body.mg-page header.head-main .section-adbar,body.mg-page header.head-main .section-adbar *{color:#EBCF9A!important}
body.mg-page header.head-main .section-adbar svg,body.mg-page header.head-main .section-adbar svg *{fill:#EBCF9A!important}

body.mg-page header.head-main #logo{margin-right:clamp(16px,3vw,48px)}

/* Logo de la web nueva: crema sobre el bordó, oscuro al bajar (la imagen de Rio queda invisible para lectores) */
body.mg-page header.head-main #logo a{display:block;width:128px;height:45px;background:url(../img/mg/logo-crema.png) left center/contain no-repeat;transition:background-image .3s}
body.mg-page header.head-main #logo .logo-img{opacity:0!important;width:128px!important;height:45px!important;max-width:none!important;max-height:none!important;object-fit:contain}
body.mg-page header.head-main.mg-head-solid #logo a{background-image:url(../img/mg/logo.png)}

/* Links del menú principal (no los del desplegable) */
body.mg-page header.head-main .nav-main-item>a.nav-list-link,
body.mg-page header.head-main .nav-main-item>.nav-item-container>a.nav-list-link{font-family:'Hanken Grotesk',system-ui,sans-serif!important;font-weight:500!important;font-size:15px!important;letter-spacing:0!important;text-transform:none!important;color:#F6F0E6!important;opacity:.85;transition:opacity .2s,color .3s}
body.mg-page header.head-main .nav-main-item>a.nav-list-link:hover,
body.mg-page header.head-main .nav-main-item>.nav-item-container>a.nav-list-link:hover{opacity:1}
body.mg-page header.head-main .nav-main-item .nav-list-arrow svg,
body.mg-page header.head-main .nav-main-item .nav-list-arrow svg *{fill:currentColor!important}

/* Íconos (buscar, cuenta, menú en celular) */
body.mg-page header.head-main .col-utility a{color:#F6F0E6!important}
body.mg-page header.head-main .col-utility svg,
body.mg-page header.head-main .col-utility svg *{fill:currentColor!important}

/* Carrito como botón "Pedido" redondeado */
body.mg-page header.head-main #ajax-cart>a{display:inline-flex!important;align-items:center;gap:10px;background:#F6F0E6;color:#1F1513!important;border-radius:999px;padding:8px 8px 8px 16px;font:600 15px/1 'Hanken Grotesk',system-ui,sans-serif;text-decoration:none;transition:background-color .3s,color .3s}
body.mg-page header.head-main #ajax-cart>a::before{content:'Pedido'}
body.mg-page header.head-main #ajax-cart>a>svg{display:none!important}
body.mg-page header.head-main #ajax-cart .badge-amount{position:static!important;transform:none!important;display:inline-grid!important;place-items:center;min-width:24px;height:24px;padding:0 7px;margin:0!important;border-radius:999px;background:#7A1424!important;color:#fff!important;font:700 13px/1 'Hanken Grotesk',system-ui,sans-serif;top:auto;right:auto;left:auto}

/* Al bajar: fondo crema esmerilado, todo en tinta */
body.mg-page header.head-main.mg-head-solid{background:rgba(246,240,230,.94)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 1px 0 #E6DACA}
body.mg-page header.head-main.mg-head-solid .nav-main-item>a.nav-list-link,
body.mg-page header.head-main.mg-head-solid .nav-main-item>.nav-item-container>a.nav-list-link{color:#1F1513!important}
body.mg-page header.head-main.mg-head-solid .col-utility a{color:#1F1513!important}
body.mg-page header.head-main.mg-head-solid #ajax-cart>a{background:#1F1513;color:#F6F0E6!important}

/* El hero arranca detrás del encabezado */
body.mg-page .mg-hero{padding-top:calc(var(--mg-head-h,106px) + 40px)!important;min-height:100svh!important}

@media (max-width:767px){
  body.mg-page header.head-main #logo a,body.mg-page header.head-main #logo .logo-img{width:104px!important;height:37px!important}
  body.mg-page header.head-main #ajax-cart>a{padding:6px 6px 6px 12px;font-size:14px;gap:8px}
  body.mg-page .mg-hero{padding-top:calc(var(--mg-head-h,90px) + 20px)!important;min-height:auto!important}
}

/* ---------- Páginas internas (body.mg-inner): el mismo encabezado en su versión crema, sin el modo transparente del inicio ---------- */
body.mg-inner header.head-main{background:rgba(246,240,230,.96)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 1px 0 #E6DACA!important}
body.mg-inner header.head-main>.container-fluid{padding-left:clamp(16px,4vw,64px)!important;padding-right:clamp(16px,4vw,64px)!important}
body.mg-inner header.head-main .row.no-gutters{min-height:72px}
body.mg-inner header.head-main .section-adbar{background:#4C0B16!important;font-family:'Bricolage Grotesque',system-ui,sans-serif;font-weight:600;letter-spacing:.01em}
body.mg-inner header.head-main .section-adbar,body.mg-inner header.head-main .section-adbar *{color:#EBCF9A!important}
body.mg-inner header.head-main .section-adbar svg,body.mg-inner header.head-main .section-adbar svg *{fill:#EBCF9A!important}
body.mg-inner header.head-main #logo{margin-right:clamp(16px,3vw,48px)}
body.mg-inner header.head-main #logo a{display:block;width:128px;height:45px;background:url(../img/mg/logo.png) left center/contain no-repeat}
body.mg-inner header.head-main #logo .logo-img{opacity:0!important;width:128px!important;height:45px!important;max-width:none!important;max-height:none!important;object-fit:contain}
body.mg-inner header.head-main .nav-main-item>a.nav-list-link,
body.mg-inner header.head-main .nav-main-item>.nav-item-container>a.nav-list-link{font-family:'Hanken Grotesk',system-ui,sans-serif!important;font-weight:500!important;font-size:15px!important;letter-spacing:0!important;text-transform:none!important;color:#1F1513!important;opacity:.85;transition:opacity .2s}
body.mg-inner header.head-main .nav-main-item>a.nav-list-link:hover,
body.mg-inner header.head-main .nav-main-item>.nav-item-container>a.nav-list-link:hover{opacity:1}
body.mg-inner header.head-main .nav-main-item .nav-list-arrow svg,
body.mg-inner header.head-main .nav-main-item .nav-list-arrow svg *{fill:currentColor!important}
body.mg-inner header.head-main .col-utility a{color:#1F1513!important}
body.mg-inner header.head-main .col-utility svg,
body.mg-inner header.head-main .col-utility svg *{fill:currentColor!important}
body.mg-inner header.head-main #ajax-cart>a{display:inline-flex!important;align-items:center;gap:10px;background:#1F1513;color:#F6F0E6!important;border-radius:999px;padding:8px 8px 8px 16px;font:600 15px/1 'Hanken Grotesk',system-ui,sans-serif;text-decoration:none}
body.mg-inner header.head-main #ajax-cart>a::before{content:'Pedido'}
body.mg-inner header.head-main #ajax-cart>a>svg{display:none!important}
body.mg-inner header.head-main #ajax-cart .badge-amount{position:static!important;transform:none!important;display:inline-grid!important;place-items:center;min-width:24px;height:24px;padding:0 7px;margin:0!important;border-radius:999px;background:#7A1424!important;color:#fff!important;font:700 13px/1 'Hanken Grotesk',system-ui,sans-serif;top:auto;right:auto;left:auto}
@media (max-width:767px){
  body.mg-inner header.head-main #logo a,body.mg-inner header.head-main #logo .logo-img{width:104px!important;height:37px!important}
  body.mg-inner header.head-main #ajax-cart>a{padding:6px 6px 6px 12px;font-size:14px;gap:8px}
}
