/* Menú de la barra (opción A), hoja del celular y pie «Visítanos». Los monta js/chrome.js en todas las páginas. */

.nav__menu, .nav__burger { display: none; }
.nav .btn .sm { display: none; }
@media (max-width: 30rem) { .nav .btn .lg { display: none; } .nav .btn .sm { display: inline; } }
@media (max-width: 22rem) { .nav { gap: .5rem; padding-inline: 1rem; } } /* 320 px: marca + botón con logo de WhatsApp + ☰ */

/* celular y tableta: botón ☰ al final de la barra */
@media (max-width: 63.99rem) {
  .nav > .btn { margin-left: auto; }
  .nav__burger { display: grid; place-content: center; gap: 4px; flex: none; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; border: 1.5px solid var(--olive); background: var(--paper); cursor: pointer; }
  .nav__burger i { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: var(--olive); }
  .nav__burger:focus-visible, .navsheet__x:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
}

/* escritorio: enlaces y desplegable */
@media (min-width: 64rem) {
  .nav__menu { display: flex; align-items: center; gap: 1.7rem; margin: 0 .5rem 0 auto; }
  .nav__link { font: 500 .92rem/1 var(--font-body); color: var(--olive); text-decoration: none; background: none; border: 0; padding: .55rem 0; cursor: pointer; border-bottom: 1.5px solid transparent; }
  .nav__link:hover, .nav__link[aria-expanded="true"], .nav__link[aria-current="page"] { border-bottom-color: var(--olive); }
  .nav__link:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 4px; }
  .nav__dd { position: relative; }
  .dd {
    position: absolute; top: calc(100% + .7rem); left: 50%; transform: translateX(-50%); width: 18rem; padding: .8rem 1rem .9rem;
    background: var(--paper); border: 1.5px solid var(--olive); border-radius: 18px; box-shadow: 0 14px 36px rgb(46 51 34 / .22);
  }
  .dd[hidden] { display: none; }
  .dd h4 { margin: .75rem 0 .1rem; font: italic 500 1.05rem/1 var(--font-wm); color: var(--olive-soft); }
  .dd a { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; color: var(--olive); text-decoration: none; font: 500 .92rem/1.1 var(--font-body); }
  .dd a i { font-style: normal; color: var(--olive-soft); }
  .dd a i.p { color: var(--olive); font-weight: 700; }
  .dd a:hover { text-decoration: underline; text-underline-offset: .25em; }
  .dd a:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: 4px; }
  .dd .fav { font-weight: 700; }
  .dd .dd__todos { margin-top: .6rem; padding-top: .8rem; border-top: 1.5px solid rgb(46 51 34 / .25); font-weight: 700; }
}

/* hoja del menú en celular */
html.con-menu { overflow: hidden; }
.navsheet {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 1rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  background: var(--olive); color: var(--on-olive); overflow-y: auto; overscroll-behavior: contain;
}
.navsheet[open] { display: flex; flex-direction: column; animation: sube .32s cubic-bezier(.16, 1, .3, 1); }
.navsheet::backdrop { background: transparent; }
.navsheet a { color: var(--on-olive); text-decoration: none; }
.navsheet__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.navsheet .nav__brand .wm { color: #e9c6d2; }
.navsheet__x { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--on-olive); background: transparent; color: var(--on-olive); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.navsheet__big { display: block; font: 300 1.55rem/1.15 var(--font-head); text-transform: uppercase; padding: .35rem 0; }
.navsheet__big[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }
.navsheet h4 { margin: .8rem 0 .1rem; font: italic 500 1.05rem/1 var(--font-wm); color: #e9c6d2; }
.navsheet .svc { display: flex; justify-content: space-between; align-items: center; padding: .66rem 0; border: 0; border-bottom: 1px solid rgb(248 231 236 / .18); border-radius: 0; background: none; color: var(--on-olive); font: 500 .98rem/1 var(--font-body); }
.navsheet .svc i { font-style: normal; opacity: .7; }
.navsheet .svc i.p { opacity: 1; font-weight: 700; }
.navsheet .fav { font-weight: 700; }
.navsheet .navsheet__big + .svc { margin-top: .15rem; }
.navsheet .navsheet__big:not(:first-of-type) { margin-top: .1rem; }
.navsheet__pie { margin: auto 0 0; padding-top: 1.2rem; font-size: .82rem; line-height: 1.5; color: #e9c6d2; }

/* pie «Visítanos» */
.pie { position: relative; z-index: 1; padding: 2.6rem 1.4rem 2rem; border-top: 1.5px solid rgb(46 51 34 / .28); color: var(--olive); }
.pie__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.8rem; max-width: 64rem; margin: 0 auto; }
.pie h2 { margin: 0 0 .6rem; font: 300 1.15rem/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .01em; }
.pie p { margin: 0 0 .45rem; font: 400 .92rem/1.5 var(--font-body); color: var(--olive-soft); max-width: 24rem; }
.pie a { color: var(--olive); font-weight: 600; text-underline-offset: .2em; }
.pie__marca img { display: block; width: 10rem; height: auto; margin-bottom: .2rem; }
.pie__wa, .pie__ig { display: inline-flex; align-items: center; gap: .5em; }
.pie__wa img, .pie__ig img { width: 1.25rem; height: 1.25rem; }
.pie .pie__fin { max-width: 64rem; margin: 2rem auto 0; font-size: .8rem; opacity: .75; }
