/* Social App Shell — miembro autenticado.
   Altura = barra del portal privado (44px). Prueba de unificación de chrome. */
body.is-calle-shell {
  --calle-shell-h: 44px;
  /* Columnas laterales iguales. No dependen del buscador abierto o cerrado. */
  --calle-side: clamp(15rem, 18vw, 20rem);
  --calle-gap: clamp(0.85rem, 1.35vw, 1.5rem);
  /* Un solo ancho de panel para toda la red: la columna izquierda del frame. */
  --calle-find-w: min(calc(var(--calle-side) + var(--calle-gap) * 2), calc(100vw - 2rem));
  --color-ember: rgba(118, 24, 18, 0.58);
  --color-ember-soft: rgba(98, 18, 16, 0.42);
  --pagina-vino: #4a1814;
  --pagina-vino-fill: linear-gradient(180deg, #5c1e18 0%, #4a1814 45%, #3e1412 100%);
  /* Como Facebook: el contenido empieza DEBAJO del header, no debajo/atrás */
  padding-top: var(--calle-shell-h);
  background-color: var(--pagina-vino);
  background-image: var(--pagina-vino-fill);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* El wrapper no intercepta clics; los recibe .calle-shell. */
body.is-calle-shell #site-header {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--calle-shell-h);
}

body.is-calle-shell .calle-shell {
  pointer-events: auto;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--calle-shell-h, 44px);
  z-index: 80;
  background: rgba(8, 7, 9, 0.94);
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.is-calle-shell #site-footer,
body.is-calle-shell .footer {
  display: none;
}

.calle-shell__inner {
  max-width: none;
  margin: 0 auto;
  height: 100%;
  padding: 0 0.85rem;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 0.65rem;
}

.calle-shell__left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: max-content;
  justify-self: start;
}

.calle-shell__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  flex-shrink: 0;
}

.calle-shell__brand img {
  width: 28px;
  height: auto;
  max-width: none;
  max-height: 28px;
  object-fit: contain;
  display: block;
}

.calle-shell__brand-name {
  font-family: Oswald, "Bebas Neue", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4f1ea;
  white-space: nowrap;
}

.calle-shell__brand-name em {
  font-style: normal;
  color: #e11d2e;
}

.calle-shell__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0.55rem;
  margin: 0;
}

.calle-shell__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  color: rgba(244, 241, 234, 0.72);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.calle-shell__nav .calle-shell__link span {
  display: none;
}

.calle-shell__nav .calle-shell__link {
  gap: 0;
  padding: 0.2rem 0.5rem;
}

.calle-shell__nav .calle-shell__link svg {
  width: 20px;
  height: 20px;
}

.calle-shell__link svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.calle-shell__link:hover,
.calle-shell__link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.calle-shell__link.is-active {
  color: #c9a227;
  box-shadow: inset 0 -2px 0 #c9a227;
  border-radius: 10px 10px 0 0;
  background: rgba(201, 162, 39, 0.08);
}

.calle-shell__link.is-active svg {
  opacity: 1;
}

.calle-shell__search {
  position: relative;
  flex: 0 0 10.5rem;
  width: 10.5rem;
  min-width: 10.5rem;
  max-width: 10.5rem;
  transition: flex-basis 0.18s ease, width 0.18s ease, max-width 0.18s ease;
  height: 1.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.28);
  color: rgba(244, 241, 234, 0.48);
  font-size: 0.78rem;
}

.calle-shell__search svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.calle-shell__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #f4f1ea;
  font: inherit;
  font-size: 0.78rem;
  outline: none;
}

.calle-shell__search input::placeholder {
  color: rgba(244, 241, 234, 0.48);
}

.calle-shell__back {
  display: none;
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f4f1ea;
  place-items: center;
  cursor: pointer;
}

.calle-shell__back:hover,
.calle-shell__back:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.calle-shell.is-finding .calle-shell__brand {
  display: none;
}

.calle-shell.is-finding .calle-shell__back {
  display: inline-grid;
}

.calle-shell.is-finding .calle-shell__left {
  gap: 0.35rem;
}

/* Un solo rectángulo. El buscador vive dentro, con margen. Sin raya fija. */
.calle-shell__find {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--calle-find-w, min(22.5rem, calc(100vw - 2rem)));
  margin: 0;
  height: calc(100vh - 0.85rem);
  max-height: calc(100vh - 0.85rem);
  box-sizing: border-box;
  overflow: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #1c1e21;
  border: 0;
  border-radius: 0 0 12px 0;
  box-shadow: 8px 16px 32px rgba(0, 0, 0, 0.42);
  padding: 0;
}

.calle-shell__find-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.72rem 0.85rem 0.65rem 0.4rem;
}

.calle-shell__find-head .calle-shell__back {
  display: inline-grid;
}

.calle-shell__find-head .calle-shell__search {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  background: #3a3b3c;
  border-color: transparent;
  color: #e4e6eb;
}

.calle-shell__find-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.1rem 0 0.45rem;
  scrollbar-width: none;
}

.calle-shell__find-list.is-recents {
  min-height: 16rem;
}

.calle-shell__recent-label {
  margin: 0;
  padding: 0.35rem 0.85rem 0.2rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(244, 241, 234, 0.55);
}

.calle-shell__recent {
  display: flex;
  align-items: center;
}

.calle-shell__recent:hover {
  background: rgba(255, 255, 255, 0.06);
}

.calle-shell__recent-go {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.2rem 0.55rem 0.85rem;
  border: 0;
  background: transparent;
  color: #e4e6eb;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.calle-shell__recent-go svg {
  flex: 0 0 auto;
  opacity: 0.72;
}

.calle-shell__recent-go span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.calle-shell__recent-x {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin-right: 0.45rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(244, 241, 234, 0.55);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.calle-shell__recent-x:hover,
.calle-shell__recent-x:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.calle-shell__find-list:hover {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.38) transparent;
}

.calle-shell__find-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

.calle-shell__find-list:hover::-webkit-scrollbar {
  width: 8px;
}

.calle-shell__find-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.32);
  border-radius: 8px;
}

.calle-shell__find-list::-webkit-scrollbar-track {
  background: transparent;
}

.calle-shell__find[hidden] {
  display: none !important;
}

.calle-shell__find-empty {
  margin: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  color: rgba(244, 241, 234, 0.55);
}

.calle-shell__hit {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.calle-shell__hit:hover {
  background: rgba(255, 255, 255, 0.06);
}

.calle-shell__face {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #3a3b3c;
}

.calle-shell__face--empty {
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e4e6eb;
}

.calle-shell__hit-copy {
  min-width: 0;
  flex: 1;
}

.calle-shell__hit strong,
.calle-shell__hit span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.calle-shell__hit strong {
  font-size: 0.92rem;
  font-weight: 650;
  color: #e4e6eb;
}

.calle-shell__hit mark {
  background: transparent;
  color: inherit;
  font-weight: 800;
}

.calle-shell__hit span {
  margin-top: 0.05rem;
  font-size: 0.78rem;
  color: #b0b3b8;
}

.calle-shell__doors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.calle-shell__doors a {
  font-size: 0.68rem;
  font-weight: 650;
  color: #c9a227;
  text-decoration: none;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.calle-shell__doors a:hover {
  border-color: rgba(201, 162, 39, 0.7);
}

.calle-shell__tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: 0;
}

.calle-shell__icon-btn {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(244, 241, 234, 0.82);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.calle-shell__icon-btn:hover,
.calle-shell__icon-btn:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.calle-shell__icon-btn--static {
  cursor: default;
}

.calle-shell__badge {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: #e11d2e;
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
}

.calle-shell__avisos-panel {
  position: fixed;
  top: var(--calle-shell-h, 44px);
  right: 0;
  left: auto;
  width: var(--calle-find-w, min(22.5rem, calc(100vw - 2rem)));
  height: calc(100vh - var(--calle-shell-h, 44px) - 0.85rem);
  max-height: calc(100vh - var(--calle-shell-h, 44px) - 0.85rem);
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #1c1e21;
  border: 0;
  border-radius: 0 0 0 12px;
  box-shadow: -8px 16px 32px rgba(0, 0, 0, 0.42);
  padding: 0;
}

.calle-shell__avisos-panel[hidden] {
  display: none !important;
}

.calle-shell__notes-head {
  flex: 0 0 auto;
  padding: 0.85rem 0.9rem 0.45rem;
}

.calle-shell__notes-title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #e4e6eb;
}

.calle-shell__notes-tabs {
  display: flex;
  gap: 0.35rem;
}

.calle-shell__notes-tab {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: transparent;
  color: rgba(228, 230, 235, 0.72);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}

.calle-shell__notes-tab:hover {
  background: rgba(255, 255, 255, 0.06);
}

.calle-shell__notes-tab.is-on {
  color: #0a0a0a;
  background: #c9a227;
}

.calle-shell__notes-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.1rem 0 0.55rem;
  scrollbar-width: thin;
}

.calle-shell__notes-empty {
  margin: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  color: rgba(244, 241, 234, 0.55);
}

.calle-shell__notes-group {
  margin: 0;
}

.calle-shell__notes-label {
  margin: 0;
  padding: 0.45rem 0.9rem 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(201, 162, 39, 0.88);
}

.calle-shell__notes-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  color: #e4e6eb;
}

.calle-shell__notes-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.calle-shell__notes-row.is-unread {
  background: rgba(201, 162, 39, 0.08);
}

.calle-shell__notes-copy {
  min-width: 0;
}

.calle-shell__notes-copy strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
}

.calle-shell__notes-copy time {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.75rem;
  color: rgba(201, 162, 39, 0.9);
}

.calle-shell__notes-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #c9a227;
}

.calle-shell__notes-dot.is-off {
  visibility: hidden;
}

.calle-shell__me {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #f4f1ea;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 999px;
  padding: 0.1rem 0.5rem 0.1rem 0.12rem;
  background: rgba(255, 255, 255, 0.03);
  max-width: 9.5rem;
}

.calle-shell__me:hover {
  border-color: rgba(201, 162, 39, 0.55);
}

.calle-shell__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: #1c1c22;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #c9a227;
  flex-shrink: 0;
}

.calle-shell__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--jjp-avatar-focal, 50% 14%);
}

.calle-shell__me-label {
  font-size: 0.72rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calle-shell__menu {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(244, 241, 234, 0.82);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  padding: 0;
}

.calle-shell__drawer {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(12, 12, 14, 0.98);
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  padding: 0.5rem 1rem 0.85rem;
}

.calle-shell.is-open .calle-shell__drawer {
  display: grid;
  gap: 0.25rem;
}

.calle-shell__drawer a {
  color: rgba(244, 241, 234, 0.8);
  text-decoration: none;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.calle-shell__drawer a.is-active {
  color: #c9a227;
}

@media (max-width: 1360px) {
  .calle-shell__inner {
    column-gap: 0.55rem;
  }
  .calle-shell__nav {
    gap: 0.7rem;
  }
  .calle-shell__nav .calle-shell__link {
    padding: 0.35rem 0.45rem;
    gap: 0;
  }
}

@media (max-width: 1100px) {
  .calle-shell__nav .calle-shell__link {
    padding: 0.4rem 0.5rem;
  }
}

@media (max-width: 820px) {
  .calle-shell__nav,
  .calle-shell__me-label {
    display: none;
  }
  .calle-shell__search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 14rem;
  }
  .calle-shell__menu {
    display: inline-grid;
  }
  .calle-shell__me {
    padding: 0.15rem;
    border: none;
    background: transparent;
  }
}

/* Módulos del header: título con slash. Compacto bajo el chrome de miembro. */
body.is-calle-shell .listing-hero {
  padding-top: 1.25rem;
  padding-bottom: 0.35rem;
}

/* La Calle, Dojos, perfil interno e interior de dojo no llevan título de catálogo. */
body.is-calle-shell[data-seo-page="calle"] .listing-hero,
body.is-calle-shell[data-seo-page="dojos"] .listing-hero,
body.is-calle-shell[data-seo-page="open-mat"] .listing-hero,
body.is-calle-shell.profile-detail-page .listing-hero,
body.is-calle-shell.om-inside-house .listing-hero,
body.is-calle-shell .om-page.is-inside-house .listing-hero {
  display: none !important;
}

/* En La Calle: sin pestañas de catálogo legado */
body.is-calle-shell .listing-tabs,
body.is-calle-shell .tabs.listing-tabs {
  display: none !important;
}

/* Lobby de categorías: solo en modo lobby (no pisar [hidden] en el listado) */
body.is-calle-shell.is-atletas-lobby .atletas-lobby,
body.is-calle-shell.is-professores-lobby .professores-lobby {
  display: block;
}

body.is-calle-shell.is-atletas-listing .atletas-lobby,
body.is-calle-shell.is-professores-listing .professores-lobby,
.atletas-lobby[hidden],
.professores-lobby[hidden] {
  display: none !important;
}

/* En La Calle: sin panel de catálogo. El buscador vive en el header, ancho fijo. */
body.is-calle-shell[data-seo-page="atletas"].is-atletas-listing .listing-filters,
body.is-calle-shell[data-seo-page="professores"].is-professores-listing .listing-filters,
body.is-calle-shell[data-seo-page="academias"] .listing-filters {
  display: none !important;
}

/* Página vino liso (rojo Perú parejo y oscuro, sin manchas negras) */
body.is-calle-shell[data-seo-page="atletas"],
body.is-calle-shell[data-seo-page="academias"],
body.is-calle-shell[data-seo-page="professores"],
body.is-calle-shell[data-seo-page="leyendas"],
body.is-calle-shell[data-seo-page="dojos"],
body.is-calle-shell[data-seo-page="open-mat"],
body.is-calle-shell[data-seo-page="tablon"],
body.is-calle-shell[data-seo-page="calle"],
body.is-calle-shell[data-seo-page="atleta"],
body.is-calle-shell[data-seo-page="professor"],
body.is-calle-shell[data-seo-page="academia"],
body.is-calle-shell[data-seo-page="leyenda"] {
  background-color: var(--pagina-vino, #4a1814);
  background-image: var(--pagina-vino-fill);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body.is-calle-shell .listing-page__bg {
  opacity: 1;
  visibility: visible;
}

body.is-calle-shell .listing-page__bg-vignette {
  background: radial-gradient(ellipse 100% 80% at 50% 18%, rgba(118, 24, 18, 0.16), transparent 74%);
}
body.is-calle-shell .listing-page__bg-glow {
  background: none;
}

body.is-calle-shell .listing-section {
  padding-top: 1.35rem;
}

body.is-calle-shell[data-seo-page="atletas"] .cta-section,
body.is-calle-shell[data-seo-page="professores"] .cta-section,
body.is-calle-shell[data-seo-page="academias"] .cta-section {
  display: none;
}

body.is-calle-shell .listing-hero__divider {
  display: none;
}



body.is-calle-shell:not(.profile-detail-page) .calle-stage .container {
  max-width: none;
  padding-inline: 0;
}

/* Listados Calle: respetar grillas de listings-premium (ficha / cine / póster). */
body.is-calle-shell[data-seo-page="atletas"] .listing-grid,
body.is-calle-shell[data-seo-page="professores"] .listing-grid,
body.is-calle-shell[data-seo-page="academias"] .listing-grid,
body.is-calle-shell[data-seo-page="leyendas"] .listing-grid,
body.is-calle-shell #leyendas-grid {
  justify-content: stretch;
  border: none;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: none;
  margin: 0;
}

body.is-calle-shell[data-seo-page="atletas"] .listing-grid,
body.is-calle-shell[data-seo-page="professores"] .listing-grid,
body.is-calle-shell[data-seo-page="academias"] .listing-grid,
body.is-calle-shell[data-seo-page="leyendas"] .listing-grid,
body.is-calle-shell #leyendas-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: none;
  margin: 0;
}

/* Lista: 3 columnas + cara cuadrada siempre (no depende del shell).
   El base .social-card es 64px/2 col y NO debe ganar a la lista. */
.social-card.social-card--lista {
  grid-template-columns: 8.2rem minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem;
}
.social-card.social-card--lista > .social-card__face {
  width: 8.2rem;
  height: 8.2rem;
  max-width: 8.2rem;
  max-height: 8.2rem;
  flex: 0 0 8.2rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.social-card.social-card--lista > .social-card__face,
.social-card.social-card--lista > .social-card__body,
.social-card.social-card--lista > .social-card__actions {
  grid-column: auto;
  grid-row: auto;
}
.social-card.social-card--lista .social-card__face {
  width: 8.2rem;
  height: 8.2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 0;
}
.social-card.social-card--lista .social-card__face img,
.social-card.social-card--lista .social-card__face picture,
.social-card.social-card--lista .social-card__face picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
.social-card.social-card--lista .social-card__face img.is-card-faced,
.social-card.social-card--lista .social-card__face picture img.is-card-faced {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: center center;
  transform-origin: center center;
}
.social-card.social-card--lista .social-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}
.social-card.social-card--lista .social-card__nick {
  margin: 0;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #f6f1e8;
}
.social-card.social-card--lista .social-card__nick a {
  color: inherit;
  text-decoration: none;
}
.social-card.social-card--lista a.social-card__face {
  display: block;
}
.social-card.social-card--lista .social-card__legal {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  line-height: 1.25;
  white-space: normal;
  color: rgba(246, 241, 232, 0.92);
}
.social-card.social-card--lista .social-card__belt {
  width: 12.5rem;
  margin: 0.4rem 0 0.2rem;
}
.social-card.social-card--lista .social-card__belt .jjp-belt-mark,
.social-card.social-card--lista .social-card__belt .jjp-belt-mark--pro {
  width: 12.5rem;
  max-width: none;
  margin: 0;
}
.social-card.social-card--lista .social-card__belt .jjp-belt-pro {
  height: 1.2rem;
  filter: none;
}
.social-card.social-card--lista .social-card__place {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: rgba(246, 241, 232, 0.9);
}
.social-card.social-card--lista .social-card__school {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: rgba(246, 241, 232, 0.88);
}
.social-card.social-card--lista .social-card__school span {
  display: block;
  margin-bottom: 0.05rem;
  color: #c9a45b;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.social-card.social-card--lista .social-card__actions {
  grid-column: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-top: 0;
  gap: 0.45rem;
}
.social-card--lista .social-card__ask {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 0.45rem 1rem;
  background: linear-gradient(180deg, #f6ecd0 0%, #e4cc8e 52%, #c9a45b 100%);
  color: #14110c;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 0.86rem;
  cursor: pointer;
}

/* Professores: tarjetas premium (no fila social). */
body.is-calle-shell[data-seo-page="professores"] .social-card:not(.social-card--lista) {
  grid-template-columns: minmax(14rem, 1.15fr) 3.5rem minmax(0, 0.9fr);
  grid-template-rows: auto 1fr auto;
  align-items: center;
}
body.is-calle-shell[data-seo-page="professores"] .social-card:not(.social-card--lista) .social-card__shot {
  grid-column: 1;
  grid-row: 1 / span 3;
  max-height: none;
  aspect-ratio: 16 / 10;
  min-height: 11.5rem;
  height: 100%;
}
body.is-calle-shell[data-seo-page="professores"] .social-card:not(.social-card--lista) .social-card__avatar {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}
body.is-calle-shell[data-seo-page="professores"] .social-card:not(.social-card--lista) .social-card__body {
  grid-column: 3;
  grid-row: 1 / span 2;
}
body.is-calle-shell[data-seo-page="professores"] .social-card__nick {
  margin: 0;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #f6f1e8;
}
body.is-calle-shell[data-seo-page="professores"] .social-card__legal,
body.is-calle-shell[data-seo-page="leyendas"] .leyenda-poster__legal {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 1rem;
  line-height: 1.25;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(246, 241, 232, 0.92);
}
body.is-calle-shell[data-seo-page="professores"] .social-card__belt {
  width: 12.5rem;
  margin: 0.35rem 0 0.15rem;
}
body.is-calle-shell[data-seo-page="professores"] .social-card__belt .jjp-belt-mark,
body.is-calle-shell[data-seo-page="professores"] .social-card__belt .jjp-belt-mark--pro {
  width: 12.5rem;
  max-width: none;
  margin: 0;
}
body.is-calle-shell[data-seo-page="professores"] .social-card__place,
body.is-calle-shell[data-seo-page="leyendas"] .leyenda-poster__meta {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: rgba(246, 241, 232, 0.9);
}
body.is-calle-shell[data-seo-page="professores"] .social-card__school,
body.is-calle-shell[data-seo-page="leyendas"] .leyenda-poster__school {
  display: block;
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: rgba(246, 241, 232, 0.88);
}
body.is-calle-shell[data-seo-page="professores"] .social-card__school span,
body.is-calle-shell[data-seo-page="leyendas"] .leyenda-poster__school span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 164, 74, 0.9);
}
body.is-calle-shell[data-seo-page="professores"] .social-card:not(.social-card--lista) .social-card__actions {
  grid-column: 2 / -1;
  grid-row: 3;
}

/* Academias: mismo molde lista que atletas (1 columna). */
body.is-calle-shell[data-seo-page="academias"] .listing-grid {
  align-items: stretch;
}

/* Leyendas: grid 1 columna (mismo molde lista). */

@media (max-width: 760px) {
  body.is-calle-shell #leyendas-grid,
  body.is-calle-shell[data-seo-page="atletas"] .listing-grid,
  body.is-calle-shell[data-seo-page="professores"] .listing-grid,
  body.is-calle-shell[data-seo-page="academias"] .listing-grid,
  body.is-calle-shell[data-seo-page="leyendas"] .listing-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  body.is-calle-shell[data-seo-page="leyendas"] .listing-grid > .leyenda-poster {
    grid-row: auto;
    min-height: 16rem;
  }
}

.social-card {
  display: grid;
  gap: 0.75rem 0.9rem;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(165, 32, 32, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(16, 16, 20, 0.88);
  border: 1px solid rgba(201, 162, 39, 0.16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: premiumCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.social-card:not(.social-card--lista) {
  grid-template-columns: 64px 1fr;
}

.social-card:hover {
  border-color: rgba(201, 162, 39, 0.28);
}

.social-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #16161a;
  display: block;
}

.social-card__avatar--square {
  border-radius: 12px;
}

.social-card__avatar img,
.social-card__avatar .card-img,
.social-card__avatar picture,
.social-card__avatar picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-card__body {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.social-card__who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.social-card__name {
  margin: 0;
  font-family: Oswald, "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.social-card__name a {
  color: #f4f1ea;
  text-decoration: none;
}

.social-card__name a:hover {
  color: #c9a227;
}

.social-card__role {
  color: rgba(201, 162, 39, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
}

.social-card__meta {
  margin: 0;
  color: rgba(244, 241, 234, 0.55);
  font-size: 0.86rem;
}

.social-card__shot {
  grid-column: 1 / -1;
  border-radius: 12px;
  overflow: hidden;
  background: #101014;
  aspect-ratio: 16 / 10;
  max-height: 280px;
}

.social-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-card:not(.social-card--lista) > .social-card__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.social-card__follow {
  appearance: none;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: transparent;
  color: #c9a227;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.social-card__follow.is-following {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(244, 241, 234, 0.7);
}

.social-card__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #c9a227;
  color: #111;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #c9a227;
}

.social-card__open:hover {
  filter: brightness(1.06);
  color: #111;
}

/* Perfil visitado: piezas sociales */
.perfil-social-post {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(18, 18, 22, 0.9);
  overflow: hidden;
  margin-bottom: 1rem;
}

.perfil-social-post__media {
  position: relative;
  background: #0d0d10;
  min-height: 180px;
}

.perfil-social-post__media img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.perfil-social-post__label {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111;
  background: #c9a227;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}

.perfil-social-post__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(244, 241, 234, 0.7);
  font-size: 0.85rem;
}

.perfil-social-post__thread {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.perfil-social-post__thread[hidden] {
  display: none;
}

/* Tres zonas con margen propio. El header no entra aquí. */
.calle-frame {
  display: grid;
  grid-template-columns: var(--calle-side) minmax(0, 1fr) var(--calle-side);
  column-gap: var(--calle-gap);
  align-items: start;
  width: 100%;
  min-height: calc(100vh - var(--calle-shell-h));
  padding: 0 var(--calle-gap);
  box-sizing: border-box;
}

.calle-rail {
  position: sticky;
  top: var(--calle-shell-h);
  align-self: start;
  min-width: 0;
  min-height: calc(100vh - var(--calle-shell-h));
  padding-top: 1rem;
  box-sizing: border-box;
}

.calle-rail--right {
  pointer-events: none;
}

.calle-stage {
  container-type: inline-size;
  container-name: calle;
  min-width: 0;
  width: 100%;
  padding: 1rem 0.35rem 1.75rem;
  box-sizing: border-box;
}

/* Perfil interno: tamaño original. El modal puede tapar la portada. */
body.is-calle-shell.profile-detail-page .calle-frame {
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
  padding-inline: 0;
}

body.is-calle-shell.profile-detail-page .calle-rail {
  display: none;
}

body.is-calle-shell.profile-detail-page .calle-stage {
  padding: 0;
  container-type: normal;
}

body.is-calle-shell.profile-detail-page--vitrina .calle-frame {
  grid-template-columns: var(--calle-side) minmax(0, 1fr) var(--calle-side);
  column-gap: var(--calle-gap);
  padding-inline: var(--calle-gap);
}
body.is-calle-shell.profile-detail-page--vitrina .calle-rail {
  display: block;
}
body.is-calle-shell.profile-detail-page--vitrina .calle-stage {
  padding: 1rem 0.35rem 1.75rem;
  container-type: inline-size;
}

.calle-stage > .listing-page,
.calle-stage > .calle-page,
.calle-stage > #academia-content,
.calle-stage > #atleta-content,
.calle-stage > #professor-content,
.calle-stage > #leyenda-content {
  width: 100%;
  min-width: 0;
}

/* Tamaño adaptado al centro, con margen. La proporción se conserva: no se aplasta. */
body.is-calle-shell .calle-stage .om-tablon-board,
body.is-calle-shell .calle-stage .atletas-lobby__grid,
body.is-calle-shell .calle-stage .professores-lobby__grid {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
}

/* Open Mat pabellón B: una casa por fila, todo el ancho del escenario (como tarjetas de atletas). */
body.is-calle-shell[data-seo-page="dojos"] .calle-stage .om-street,
body.is-calle-shell[data-seo-page="open-mat"] .calle-stage .om-street {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  justify-content: stretch;
  column-gap: 0;
  row-gap: 1.15rem;
  grid-template-columns: minmax(0, 1fr);
}

body.is-calle-shell[data-seo-page="dojos"] .calle-stage .om-dojo,
body.is-calle-shell[data-seo-page="open-mat"] .calle-stage .om-dojo,
body.is-calle-shell[data-seo-page="dojos"] .calle-stage .om-dojo--pavilion,
body.is-calle-shell[data-seo-page="open-mat"] .calle-stage .om-dojo--pavilion {
  width: 100%;
  max-width: none;
}

body.is-calle-shell .calle-stage .om-ficha {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 15 / 21.75;
}

body.is-calle-shell .calle-stage .om-tablon-board {
  gap: 1.15rem 0.85rem;
  grid-template-columns: repeat(4, 10.25rem);
}

body.is-calle-shell[data-seo-page="atletas"] .calle-stage .atletas-lobby__grid,
body.is-calle-shell[data-seo-page="professores"] .calle-stage .professores-lobby__grid {
  width: 100%;
  max-width: none;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
body.is-calle-shell[data-seo-page="atletas"] .atletas-lobby__card,
body.is-calle-shell[data-seo-page="professores"] .atletas-lobby__card {
  min-height: 11.6rem;
  padding: 0;
  border-radius: 18px;
  background: #0c0b0a;
  border-color: rgba(201, 164, 91, 0.35);
}
body.is-calle-shell[data-seo-page="atletas"] .atletas-lobby__media,
body.is-calle-shell[data-seo-page="professores"] .atletas-lobby__media {
  inset: 0 auto 0 0;
  width: 68%;
  transform: none;
  filter: none;
}
body.is-calle-shell[data-seo-page="atletas"] .atletas-lobby__media::after,
body.is-calle-shell[data-seo-page="professores"] .atletas-lobby__media::after {
  background: linear-gradient(90deg, transparent 38%, #0c0b0a 92%);
}
body.is-calle-shell[data-seo-page="atletas"] .atletas-lobby__entrar,
body.is-calle-shell[data-seo-page="professores"] .atletas-lobby__entrar {
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.35rem 0 56%;
  font-size: inherit;
  line-height: 1.2;
  color: #f6f1e8;
}
body.is-calle-shell[data-seo-page="atletas"] .atletas-lobby__entrar::after,
body.is-calle-shell[data-seo-page="atletas"] .atletas-lobby__entrar::before,
body.is-calle-shell[data-seo-page="professores"] .atletas-lobby__entrar::after,
body.is-calle-shell[data-seo-page="professores"] .atletas-lobby__entrar::before {
  content: none;
  display: none;
}
body.is-calle-shell[data-seo-page="atletas"] .professores-lobby__copy,
body.is-calle-shell[data-seo-page="professores"] .professores-lobby__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.42rem;
}
body.is-calle-shell[data-seo-page="atletas"] .professores-lobby__kicker,
body.is-calle-shell[data-seo-page="professores"] .professores-lobby__kicker {
  letter-spacing: 0.2em;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: #c9a45b;
}
body.is-calle-shell[data-seo-page="atletas"] .professores-lobby__name,
body.is-calle-shell[data-seo-page="professores"] .professores-lobby__name {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.05;
  color: #f6f1e8;
}
body.is-calle-shell[data-seo-page="atletas"] .professores-lobby__go,
body.is-calle-shell[data-seo-page="professores"] .professores-lobby__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.4rem;
  margin-top: 0.15rem;
  padding: 0.42rem 1.15rem;
  border-radius: 9px;
  background: linear-gradient(180deg, #f6ecd0 0%, #e4cc8e 52%, #c9a45b 100%);
  color: #14110c;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 0.88rem;
}
body.is-calle-shell[data-seo-page="atletas"] .atletas-lobby__card:hover .professores-lobby__go,
body.is-calle-shell[data-seo-page="professores"] .atletas-lobby__card:hover .professores-lobby__go {
  filter: brightness(1.04);
}

@container calle (min-width: 48rem) {
  body.is-calle-shell .calle-stage .om-tablon-board {
    grid-template-columns: repeat(4, 10.25rem);
  }
}

@container calle (min-width: 56rem) {
  body.is-calle-shell .calle-stage .om-tablon-board {
    grid-template-columns: repeat(5, 10.25rem);
  }
}

body.is-calle-shell[data-seo-page="dojos"] .om-toolbar,
body.is-calle-shell[data-seo-page="open-mat"] .om-toolbar {
  width: 100%;
  max-width: none;
}

@media (max-width: 1179px) {
  .calle-frame {
    grid-template-columns: minmax(0, 1fr);
  }
  .calle-rail--right {
    display: none;
  }
  .calle-rail--left {
    display: none;
  }
  body.is-calle-shell.profile-detail-page--vitrina .calle-frame {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    padding-inline: 0;
  }
  body.is-calle-shell.profile-detail-page--vitrina .calle-rail {
    display: none;
  }
  body.is-calle-shell .calle-stage .om-tablon-board {
    grid-template-columns: repeat(4, 10.25rem);
  }
}

@media (max-width: 760px) {
  body.is-calle-shell .calle-stage .om-tablon-board,
  body.is-calle-shell .calle-stage .atletas-lobby__grid,
  body.is-calle-shell .calle-stage .professores-lobby__grid {
    grid-template-columns: minmax(0, 20rem);
  }
  body.is-calle-shell[data-seo-page="dojos"] .calle-stage .om-street,
  body.is-calle-shell[data-seo-page="open-mat"] .calle-stage .om-street {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  body.is-calle-shell[data-seo-page="dojos"] .calle-stage .om-dojo,
  body.is-calle-shell[data-seo-page="open-mat"] .calle-stage .om-dojo {
    width: 100%;
    max-width: none;
  }
  body.is-calle-shell .calle-stage .om-ficha {
    width: 100%;
    max-width: 16rem;
    aspect-ratio: 15 / 21.75;
  }
}
