/* ============================================================
   STUDIO B - HEADER & FOOTER
   Estilos portados desde el prototipo Studio B Web.html.
   Reutilizan los design tokens definidos en style.css.
   ============================================================ */

/* === HEADER === */
header.studiob-site-header{
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

/* Top nav: invertido sobre INK warm */
.studiob-nav{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 36px;
  gap: 24px;
  background: var(--ink);
  color: var(--paper);
}
.studiob-nav .logo{ color: var(--paper); font-size: 30px; }
.studiob-nav .nav-link{
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper); opacity: .9; cursor: pointer;
  background: none; border: none; padding: 0;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.studiob-nav .nav-link:hover{ opacity: 1; color: var(--paper); }
.studiob-nav .nav-left, .studiob-nav .nav-right{ display: flex; align-items: center; gap: 26px; }
.studiob-nav .nav-right{ justify-content: flex-end; }
.studiob-nav .nav-center{ display: flex; justify-content: center; }
.studiob-nav .cart-count{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--paper); color: var(--ink);
  font-size: 9px; letter-spacing: .05em; font-weight: 500;
}

/* Subnav (Hombre / Mujer / Marcas / Outlet) */
.studiob-subnav{
  display: flex; align-items: center; justify-content: center; gap: 36px;
  padding: 14px 36px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  position: relative;
  background: var(--paper);
}
.studiob-subnav > a,
.studiob-subnav > a:hover{ opacity: 1; }
.studiob-subnav a.featured{ color: var(--sale); }
.studiob-subnav .divider{ width: 1px; height: 14px; background: var(--line-strong); }
/* === FOOTER === */
footer.studiob-site-footer{
  padding: 80px 36px 40px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.studiob-foot-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  max-width: 1480px; margin-left: auto; margin-right: auto;
}
.studiob-foot-grid .col h4{
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .26em; text-transform: uppercase;
  margin: 0 0 22px; opacity: .55;
}
.studiob-foot-grid .col ul{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.studiob-foot-grid .col a{
  font-family: var(--font-body); font-weight: 400;
  font-size: 14px; opacity: .85; color: var(--ink); text-decoration: none;
}
.studiob-foot-grid .col a:hover{ opacity: 1; }
.studiob-foot-grid .col.about .logo{ font-size: 38px; margin-bottom: 18px; display: block; }
.studiob-foot-grid .col.about p{
  font-family: var(--font-body); font-weight: 300; font-size: 14px;
  line-height: 1.7; opacity: .75; max-width: 38ch; margin: 0;
}
.studiob-foot-bottom{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 30px; border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 14px;
  max-width: 1480px; margin: 0 auto;
}
.studiob-foot-bottom,
.studiob-foot-bottom a{
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; opacity: .55;
  color: var(--ink); text-decoration: none;
}
.studiob-foot-bottom .pay{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.studiob-foot-bottom .pay .pill{
  border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 4px;
  font-size: 9px; letter-spacing: .18em;
}

/* === MOBILE === */
@media (max-width: 900px){
  .studiob-nav{ padding: 14px 20px; grid-template-columns: auto 1fr auto; gap: 14px; }
  .studiob-nav .nav-left{ gap: 14px; }
  .studiob-nav .nav-right{ gap: 14px; }
  .studiob-nav .nav-left .search-text,
  .studiob-nav .nav-right .acct-text{ display: none; }
  .studiob-nav .nav-center{ justify-self: center; }
  .studiob-nav .nav-center .logo{ font-size: 22px; }
  .studiob-subnav{ flex-direction: column; gap: 0; padding: 0; }
  .studiob-subnav > a{ width: 100%; padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .studiob-subnav .divider{ display: none; }
  footer.studiob-site-footer{ padding: 60px 18px 32px; }
  .studiob-foot-grid{ grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}



/* === SUBNAV: has-mega items === */
.studiob-subnav .has-mega{
  padding: 6px 0;
}
.studiob-subnav .has-mega > a{
  position: relative; opacity: .85;
  color: var(--ink); text-decoration: none;
}
.studiob-subnav .has-mega:hover > a{ opacity: 1; }
.studiob-subnav .has-mega > a::after{
  content: '';
  position: absolute; left: 0; right: 0; bottom: -15px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
.studiob-subnav .has-mega:hover > a::after{ transform: scaleX(1); }

/* === MEGA-WRAP: panel desplegable full-width === */
.mega-wrap{
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 30px -20px rgba(20,10,0,.18);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 100;
}
.studiob-subnav .has-mega:hover .mega-wrap,
.mega-wrap:hover{
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}

/* Grid del mega: 4 columnas de texto + 1 columna featured */
.mega{
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 40px;
  padding: 48px max(36px, 4vw) 56px;
  max-width: none;
  margin: 0;
}
.studiob-subnav .mega .col h5,
.studiob-subnav .studiob-subnav .mega .col h5 a,
.studiob-subnav .studiob-subnav .mega .col h5 a:hover,
.studiob-subnav .mega .col ul{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.mega .col a{
  font-family: var(--font-body); font-weight: 400;
  font-size: 13px; letter-spacing: .01em; text-transform: none;
  color: var(--ink); opacity: .78;
  display: inline-flex; align-items: center;
  text-decoration: none;
  transition: opacity .15s ease, transform .15s ease;
}
.mega .col a:hover{ opacity: 1; transform: translateX(3px); }
.mega .col a.view-all{
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .24em; text-transform: uppercase;
  opacity: .55; margin-top: 8px;
}
.mega .col a.view-all::after{ content: ' →'; margin-left: 6px; }

/* Columna featured (visual editorial) */
.mega .feat{
  display: block;
  background: var(--paper-2);
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  text-decoration: none;
}
.mega .feat .ph{
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #d9c9a7 0%, #a48562 100%);
  display: flex; align-items: flex-end; padding: 24px;
  color: var(--paper);
}
.mega .feat .ph.b{ background: linear-gradient(160deg, #5a3a20 0%, #2a1b0e 100%); }
.mega .feat .ph .copy{ display: flex; flex-direction: column; gap: 8px; }
.mega .feat .ph .lbl{
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .28em; text-transform: uppercase; opacity: .8;
}
.mega .feat .ph .ttl{
  font-family: var(--font-display); font-size: 32px; line-height: 1;
  letter-spacing: .06em; text-transform: uppercase;
}
.mega .feat .ph .ttl em{ font-style: italic; opacity: .85; }
.mega .feat .ph .arr{
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .24em; text-transform: uppercase;
}


/* === Megamenu: grupos dentro de cada columna === */
.mega .col{ display: flex; flex-direction: column; gap: 28px; }
.mega .col .col-group ul{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.mega .col .col-group ul a{
  font-family: var(--font-body); font-weight: 400;
  font-size: 13px; letter-spacing: .01em; text-transform: none;
  color: var(--ink); opacity: .72;
  text-decoration: none;
  display: inline-block;
  transition: opacity .15s ease, transform .15s ease;
}
.mega .col .col-group ul a:hover{ opacity: 1; transform: translateX(3px); }

/* === MOBILE: megamenu colapsa a lista vertical === */
@media (max-width: 900px){
  .studiob-subnav{
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0;
    justify-content: flex-start;
  }
  .studiob-subnav .has-mega{
    padding: 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .studiob-subnav .has-mega > a{
    display: block;
    padding: 14px 20px;
    font-weight: 500;
  }
  .studiob-subnav .has-mega > a::after{ display: none; }
  .mega-wrap{
    position: static;
    transform: none;
    opacity: 1; pointer-events: auto;
    background: var(--paper-2);
    border: none;
    box-shadow: none;
  }
  .mega{
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 28px 24px;
  }
    .mega .col ul{ gap: 6px; }
  .mega .col a{ font-size: 12px; padding: 2px 0; }
  .mega .feat{ display: none; }
  .studiob-subnav > a.featured{
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
  }
  .studiob-subnav .divider{ display: none; }
}


/* === MEGAMENU: headers (h5) en negrita Italiana uppercase (override Blocksy) === */
.studiob-subnav .mega .col h5{
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  margin: 0 0 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink) !important;
  line-height: 1.3 !important;
}
.studiob-subnav .mega .col h5 a{
  color: inherit !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: .22em !important;
  transition: opacity .15s;
}
.studiob-subnav .mega .col h5 a:hover{ opacity: .7 !important; }
