/* Portada y módulos públicos externos. Estas superficies no tienen header. */

body[data-portada="externa"] {
  background: #0a0a0b;
  --header-height: 0px;
}

body[data-portada="externa"] .footer {
  background: #080809;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-portada="externa"] .perfil-hub-hero {
  padding-top: clamp(1.25rem, 4vw, 2.5rem);
}

body[data-portada="externa"][data-seo-page="acceso"] > .section,
body[data-portada="externa"][data-seo-page="solicitud-membresia"] .page-header {
  padding-top: clamp(1rem, 3vw, 2rem);
}

/* Hero: foto a sangre. Bloque de marca a la izquierda, a media altura. */
.portada-ext {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.portada-ext__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.portada-ext__media img,
.portada-ext__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  display: block;
}

.portada-ext__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.3) 34%, rgba(0, 0, 0, 0.08) 58%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.32) 100%);
}

/* Permanent decorative layers: independent of the editable hero media. */
.portada-ext__veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(124deg, rgba(177, 12, 17, .48) 0%, rgba(133, 8, 12, .3) 7%, transparent 7.1%, transparent 11%, rgba(155, 10, 15, .16) 11.1%, rgba(155, 10, 15, .16) 13%, transparent 13.1%),
    linear-gradient(124deg, transparent 87%, rgba(172, 12, 18, .22) 87.1%, rgba(172, 12, 18, .22) 91%, transparent 91.1%),
    radial-gradient(ellipse at 0% 100%, rgba(153, 9, 15, .23), transparent 42%);
}
.portada-ext__veil::after {
  content: "JIU-JITSU";
  position: absolute;
  top: 3%;
  left: 3.5%;
  max-width: 92%;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 15vw, 17rem);
  line-height: 1;
  letter-spacing: .025em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .17);
  opacity: .8;
}
@media (max-width: 720px) {
  .portada-ext__veil::after {
    top: 5%;
    font-size: clamp(4rem, 20vw, 8rem);
    -webkit-text-stroke-color: rgba(255, 255, 255, .13);
  }
}

.portada-ext__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  margin: 0;
  padding:
    clamp(1.5rem, 4vh, 2.5rem)
    clamp(1.15rem, 4vw, 2.6rem)
    clamp(1.5rem, 4vh, 2.5rem);
}

.portada-ext__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  margin: 0 0 0.85rem;
  text-decoration: none;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}

.portada-ext__brand img:first-child {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.portada-ext__brand img:last-child {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.portada-ext__lead {
  margin: 0 0 1.05rem;
  max-width: none;
  white-space: nowrap;
  color: rgba(245, 245, 245, 0.94);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.portada-doors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.portada-door {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.32);
  background: rgba(30, 12, 10, 0.82);
  color: #f3ebe4;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.portada-door--gold {
  border-color: rgba(201, 162, 39, 0.55);
  background: linear-gradient(180deg, #f8ecc0 0%, #e8c96a 28%, #c9a227 58%, #a88620 100%);
  color: #14110a;
  box-shadow:
    0 4px 18px rgba(201, 162, 39, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.portada-door:hover {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(42, 18, 16, 0.92);
  color: #fff;
  box-shadow:
    0 0 18px rgba(201, 162, 39, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.portada-door--gold:hover {
  border-color: rgba(232, 197, 71, 0.7);
  background: linear-gradient(180deg, #fff3c8 0%, #f0d878 28%, #d4af37 58%, #b8942e 100%);
  color: #0f0d08;
  box-shadow:
    0 0 22px rgba(201, 162, 39, 0.28),
    0 6px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@media (max-width: 720px) {
  .portada-ext__media img,
  .portada-ext__media video {
    object-position: 72% center;
  }

  .portada-ext__brand img:first-child {
    width: 46px;
    height: 46px;
  }

  .portada-ext__brand img:last-child {
    height: 32px;
  }

  .portada-ext__lead {
    white-space: normal;
    max-width: 34ch;
    font-size: clamp(0.98rem, 3.6vw, 1.1rem);
  }

  .portada-door {
    min-height: 2.75rem;
    font-size: 0.72rem;
  }
}

/* Reserva el mismo hueco negro bajo la portada; vacío por ahora, © abajo */
body[data-portada="externa"] .footer--door-min {
  padding: 4rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050506;
}

body[data-seo-page="home"] .footer--door-min .footer__stage {
  min-height: clamp(11rem, 24vh, 16rem);
  margin-bottom: 2.5rem;
}

body[data-portada="externa"]:not([data-seo-page="home"]) .footer--door-min .footer__stage {
  display: none;
  min-height: 0;
  margin: 0;
}

body[data-portada="externa"] .footer--door-min .footer__bottom--solo {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: rgba(243, 235, 228, 0.55);
}

body[data-portada="externa"] .footer--door-min .footer__bottom--solo a {
  color: var(--jjp-oro, #c9a227);
  text-decoration: none;
}

body[data-portada="externa"] .footer--door-min .footer__bottom--solo a:hover {
  text-decoration: underline;
}
/* Home-only community closing. No hero or profile layout changes. */
body[data-seo-page="home"] .home-community { text-align:center; position:relative; padding:0 1rem 1rem; }
body[data-seo-page="home"] .home-community__eyebrow { display:block; font-size:.65rem; letter-spacing:.25em; color:#b79b56; margin-bottom:1.25rem; font-weight:600; }
body[data-seo-page="home"] .home-community h2 { margin:0; color:#eee6da; font-family:'Bebas Neue',sans-serif; font-size:clamp(2.5rem,4.2vw,4.5rem); font-weight:400; line-height:1.08; letter-spacing:.035em; }
body[data-seo-page="home"] .home-community h2 span { color:#d0ad52; }
body[data-seo-page="home"] .home-community p { margin:1.25rem auto 1.6rem; max-width:42ch; font-size:clamp(.85rem,1.1vw,1rem); line-height:1.7; color:#aaa39a; }
body[data-seo-page="home"] .home-community__social { display:flex; justify-content:center; gap:.75rem; }
body[data-seo-page="home"] .home-community__social a { display:flex; align-items:center; justify-content:center; width:44px; height:44px; color:#c9ae70; border:1px solid #8f743b55; border-radius:50%; background:#11100e; transition:background .2s,color .2s; }
body[data-seo-page="home"] .home-community__social a:hover,body[data-seo-page="home"] .home-community__social a:focus-visible { color:#ffe4a0; background:#241d10; outline:1px solid #b99a50; outline-offset:3px; }
body[data-seo-page="home"] .home-community__social svg { width:18px; height:18px; }
body[data-seo-page="home"] .footer--door-min .footer__bottom--solo { justify-content:center; text-align:center; }
