/* Marco común del área de socio (páginas aparte) */
.sm-skip { position: absolute; left: -9999px; top: 8px; z-index: 3000; background: #fff; color: var(--primary-dark); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.sm-skip:focus { left: 12px; }
body.sm { background: #faf6ea; }
body.sm a:focus-visible, body.sm button:focus-visible, body.sm input:focus-visible, body.sm select:focus-visible, body.sm textarea:focus-visible { outline: 3px solid #e0b800; outline-offset: 2px; border-radius: 8px; }
.sm-top { position: sticky; top: 0; z-index: 1500; display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: #fff; box-shadow: 0 1px 0 #efe6cf; }
.sm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.sm-brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(46,70,8,.15); }
.sm-brand b { display: block; font-family: var(--font-display); color: var(--primary-dark); font-size: 1.1rem; line-height: 1.1; }
.sm-brand small { display: block; color: var(--text-muted); font-size: .76rem; }
.sm-dnav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.sm-dl { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; color: #2f3a1c; font: 600 .92rem var(--font); text-decoration: none; }
.sm-dl i { color: var(--primary); }
.sm-dl:hover { background: #f1f5e6; }
.sm-dl.on { background: #e9f2d3; color: var(--primary-dark); }
.sm-ic { display: flex; align-items: center; gap: 10px; flex: none; }
.sm-ic a { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--primary-dark); font-size: 1.1rem; text-decoration: none; }
.sm-ic .sm-av { background: #e9f2d3; color: var(--primary); }
.sm-back { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 14px; border-radius: 99px; background: #fff; color: var(--primary-dark); font: 600 .88rem var(--font); text-decoration: none; box-shadow: 0 1px 6px rgba(70,60,20,.1); }
.sm-tabbar { display: none; }

@media (max-width: 1024px) { .sm-dl span { display: none; } .sm-dl { padding: 10px; } }
@media (max-width: 768px) {
  .sm-top { padding: 8px 14px; height: 56px; }
  .sm-brand img { width: 36px; height: 36px; }
  .sm-brand small, .sm-dnav, .sm-ic a:first-child { display: none; }
  .sm-ic { margin-left: auto; }
  body.sm { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sm-back { margin: 10px 14px 0; }
  .sm-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; background: #fffdf8; border-top: 1px solid #efe4cc; box-shadow: 0 -6px 20px rgba(46,70,8,.08); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .sm-tl { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px; color: var(--text-muted); font: 600 .7rem var(--font); text-decoration: none; min-height: 48px; justify-content: center; }
  .sm-tl i { font-size: 1.2rem; }
  .sm-tl.on { color: var(--primary-dark); background: rgba(165,202,47,.22); }
}
/* Las páginas aparte ya no necesitan su propio hueco para la cabecera fija antigua */
body.sm .cb-hero, body.sm .tb-hero { padding-top: 34px; }
.sm-back { margin: 12px 24px 0; }
@media (max-width: 768px) { .sm-back { margin: 10px 14px 0; } }
body.sm .cb-hero, body.sm .tb-hero { margin-top: 12px; }
