/* Mobile drawer, with a visible strip of the page beside it. */
.mobile-nav-item, .mobile-drawer-top, .mobile-menu-backdrop { display:none; }
@media(max-width:800px) {
  html { scroll-padding-top:110px; }
  .site-header { min-height:96px; height:96px; padding:10px 6%; grid-template-columns:1fr auto 1fr; }
  .site-header .brand-mark { position:relative; left:0; top:auto; grid-column:2; justify-self:center; width:82px; height:62px; animation:brand-float 5s ease-in-out infinite; }
  .site-header .menu-toggle { display:flex; position:relative; width:44px; height:44px; gap:5px; padding:10px 11px 18px; }
  .menu-toggle::after { position:absolute; bottom:5px; left:0; width:100%; content:'Men\00fa'; text-align:center; font-size:8px; color:var(--cream); }
  html[lang="en"] .menu-toggle::after { content:'Menu'; }
  .site-header .header-cta { display:inline-flex; align-items:center; justify-self:end; padding:8px 10px; font-size:10px; }
  .site-header .header-cta span { margin-left:5px; }
  .mobile-menu-backdrop { display:block; position:fixed; inset:0; z-index:40; border:0; padding:0; background:rgba(0,0,0,.35); opacity:0; visibility:hidden; transition:opacity .3s,visibility .3s; }
  body.menu-open .mobile-menu-backdrop { opacity:1; visibility:visible; }
  .side-nav, .side-nav.is-open {
    position:fixed; z-index:41; inset:8px auto 8px 8px;
    display:flex; flex-direction:column; justify-content:flex-start;
    width:min(334px,calc(100vw - 56px)); height:calc(100dvh - 16px);
    padding:16px 14px 22px; margin:0; overflow-y:auto;
    background:#181718; background-image:radial-gradient(rgba(255,255,255,.025) .6px,transparent .7px); background-size:5px 5px;
    border:1px solid rgba(244,240,232,.22); border-radius:18px;
    box-shadow:12px 0 45px rgba(0,0,0,.35);
    transform:translateX(calc(-100% - 12px)); visibility:hidden;
    transition:transform .35s cubic-bezier(.22,1,.36,1),visibility .35s;
  }
  .side-nav.is-open { transform:translateX(0); visibility:visible; }
  .side-nav > .eyebrow { display:none; }
  .mobile-drawer-top { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; margin-bottom:24px; padding:0 8px; }
  .drawer-brand { display:block; width:78px; }
  .drawer-brand img { display:block; width:100%; height:auto; }
  .drawer-close { display:grid; place-items:center; width:44px; height:44px; padding:10px; border:0; background:transparent; color:var(--cream); cursor:pointer; }
  .drawer-close svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; }
  .side-nav .nav-link {
    display:flex; align-items:center; justify-content:flex-start; flex-shrink:0;
    gap:16px; min-height:58px; margin:0 0 5px; padding:12px 14px;
    border:1px solid transparent; border-radius:11px; color:var(--cream);
    font-size:13px; line-height:1.35; background:none;
  }
  .side-nav .nav-link > span:first-child { display:none; }
  .side-nav .nav-link::before { content:none; }
  .side-nav .nav-link .mobile-nav-item { display:flex; order:-1; flex-shrink:0; color:inherit; margin:0; }
  .mobile-nav-item svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
  .side-nav .mobile-nav-item > span { display:none; }
  .side-nav .nav-link[aria-current="page"] { color:var(--pink-light); background:rgba(229,170,191,.12); border-color:rgba(229,170,191,.1); }
  .side-nav .nav-link[aria-current="page"] svg { filter: none; }
  .side-nav .nav-contact { color:var(--pink-light); margin-top:5px; }
  .side-nav .nav-contact > span:not(.mobile-nav-item):last-of-type { display:inline; margin-left:auto; color:inherit; font-size:15px; }
  .side-nav .nav-note { display:block; margin: auto 10px 0; padding-top:28px; font-size:14px; color:#aaa2a1; }
}
@media(max-height:620px) and (max-width:800px) {
  .mobile-drawer-top { margin-bottom:8px; }
  .side-nav .nav-link { min-height:45px; margin-bottom:2px; padding-block:8px; }
  .side-nav .nav-note { padding-top:14px; }
}
@media(prefers-reduced-motion:reduce) {
  .side-nav,.mobile-menu-backdrop { transition:none; }
  .site-header .brand-mark { animation:none; }
}

/* Language choice replaces the navigation motto on every screen. */
.nav-language { margin-top:16px; }
.side-nav .nav-language .language-switcher { display:flex; flex-wrap:nowrap; justify-content:flex-start; gap:7px; margin:0; }
@media(max-width:800px) { .side-nav .nav-language { margin: 14px 8px 0; padding-top:0; flex-shrink:0; } }

/* Acentos de color sin brillo. */
@media(max-width:800px) {
  .site-header .menu-toggle {
    color:#ffb2d2; border-color:var(--pink);
    box-shadow: none;
    transition:background .25s,scale .25s;
  }
  .site-header .menu-toggle span {
    background:#ffc7de;
    box-shadow: none;
  }
  .site-header .menu-toggle::after {
    color:#ffc7de;
    text-shadow: none;
  }
  .site-header .menu-toggle:is(:hover,:focus-visible) { background:rgba(229,170,191,.12); scale:1.05; }
  .site-header .menu-toggle:active { scale:.96; }
}
@media(max-width:800px) and (prefers-reduced-motion:no-preference) {
  .site-header .menu-toggle { animation: none; }
}

@media(prefers-reduced-motion:reduce) {
  .site-header .menu-toggle { animation:none; transition:none; }
  .site-header .menu-toggle:is(:hover,:focus-visible,:active) { scale:1; }
}

/* Acentos de color sin brillo. */
.site-header .header-cta {
  color:#ffc7de;
  border-color:var(--pink);
  text-shadow: none;
  box-shadow: none;
  transition:background .25s,color .25s,scale .25s;
}
.site-header .header-cta span { color:inherit; }
.site-header .header-cta:is(:hover,:focus-visible) {
  background:rgba(229,170,191,.12); color:#ffdeec; scale:1.04;
}
.site-header .header-cta:active { scale:.97; }
@media(prefers-reduced-motion:no-preference) {
  .site-header .header-cta { animation: none; }
}
@media(prefers-reduced-motion:reduce) {
  .site-header .header-cta { animation:none; transition:none; }
  .site-header .header-cta:is(:hover,:focus-visible,:active) { scale:1; }
}

/* Gentle motion inside the open drawer. */
@media(max-width:800px) and (prefers-reduced-motion:no-preference) {
  .side-nav .nav-link {
    opacity:0; translate:-12px 0;
    transition:opacity .4s ease,translate .4s ease,background .25s,color .25s;
  }
  .side-nav.is-open .nav-link { opacity:1; translate:0 0; }
  .side-nav.is-open .nav-link:nth-of-type(1) { transition-delay:.07s; }
  .side-nav.is-open .nav-link:nth-of-type(2) { transition-delay:.11s; }
  .side-nav.is-open .nav-link:nth-of-type(3) { transition-delay:.15s; }
  .side-nav.is-open .nav-link:nth-of-type(4) { transition-delay:.19s; }
  .side-nav.is-open .nav-link:nth-of-type(5) { transition-delay:.23s; }
  .side-nav.is-open .nav-link:nth-of-type(6) { transition-delay:.27s; }
  .side-nav.is-open .drawer-brand { animation:drawer-logo-float 4.5s ease-in-out infinite; }
  .side-nav .nav-language { opacity:0; translate:0 8px; transition:opacity .4s ease,translate .4s ease; }
  .side-nav.is-open .nav-language { opacity:1; translate:0 0; transition-delay:.3s; }
  .side-nav .nav-link:is(:hover,:focus-visible) { background:rgba(229,170,191,.1); color:var(--pink-light); }
  .drawer-close { transition:rotate .25s,color .25s; }
  .drawer-close:is(:hover,:focus-visible) { rotate:90deg; color:var(--pink-light); }
}
@keyframes drawer-logo-float {
  0%,100% { transform:translateY(0) rotate(-1.5deg); }
  50% { transform:translateY(-4px) rotate(1.5deg); }
}
@media(prefers-reduced-motion:reduce) {
  .side-nav .nav-link,.side-nav .nav-language { opacity:1; translate:none; transition:none; }
  .side-nav .drawer-brand { animation:none; }
}

/* Acentos de color sin brillo. */
@media(min-width:801px) {
  .side-nav .nav-link[aria-current="page"] { color:var(--pink-light); text-shadow: none; }
  .side-nav .nav-link[aria-current="page"] > span:first-child { color:var(--pink); }
  .side-nav .nav-link[aria-current="page"]::before { box-shadow: none; }
}

/* Reserve pink in navigation for the current page. */
.side-nav .nav-link.nav-contact:not([aria-current="page"]),
.side-nav .nav-link.nav-contact:not([aria-current="page"]) span { color:var(--cream); text-shadow: none; }

@media(max-width:800px) {
  .side-nav { padding-bottom:max(22px,env(safe-area-inset-bottom)); }
  .mobile-menu-backdrop { -webkit-tap-highlight-color:transparent; }
}

/* Lift the desktop rail and centre the home logo in the full viewport. */
@media(min-width:801px) {
 body.page-home .side-nav {
  top:max(24px,calc(50vh - 230px));
  transform:none;
 }
 body.page-home .site-header {
  padding-inline:4.2%;
  grid-template-columns:var(--rail-width) minmax(0,1fr) var(--rail-width);
 }
 body.page-home .site-header .brand-mark {
  grid-column:2;
  justify-self:center;
  left:0;
 }
}

/* A top-anchored navigation panel stays visually whole across colour blocks. */
@media(min-width:801px) {
 body.page-home .side-nav {
  position:fixed;
  top:24px;
  bottom:auto;
  left:16px;
  width:196px;
  max-height:calc(100dvh - 48px);
  padding:16px 12px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  transform:none;
  background:#262526;
  border:1px solid rgba(244,240,232,.2);
  border-radius:12px;
  box-shadow:0 8px 28px rgba(0,0,0,.12);
  --nav-ink:#f4f0e8;
  --nav-line:rgba(244,240,232,.2);
 }
 body.page-home .side-nav .nav-link { flex-shrink:0; min-height:44px; gap:10px; }
 body.page-home .side-nav .nav-link.is-active { color:#e5aabf !important; }
 body.page-home .side-nav .nav-link.is-active::before { left:-7px; background:#e5aabf; }
 body.page-home .side-nav .nav-link:is(:hover,:focus-visible) { color:#e5aabf !important; }
 body.page-home .side-nav .nav-language { margin-top:20px; }
 body.page-home .side-nav .language-switcher { gap:5px; }
 body.page-home .side-nav .language-switcher a { padding:5px 6px; font-size:9px; }
 body.page-home .side-nav .language-switcher a[aria-current] { border-color:#e5aabf; }
}
