/* Allowlist logo strip on /share/hiel (and ejemplo). Glass banner, logo-only. */

.hub__south {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  width: 100%;
}

.hub__south nav[aria-label="Hiel"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.32rem;
  row-gap: 0.16rem;
  margin-top: 0;
  width: 100%;
}

.hub__join {
  display: block;
  width: 100%;
  margin: 0.28rem 0 0;
  padding: 0.12rem 0.4rem 0.04rem;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245, 237, 229, 0.82);
  text-decoration: none;
  text-underline-offset: 0.16em;
}
.hub__join:hover,
.hub__join:focus-visible {
  color: #f5ede5;
  text-decoration: underline;
}
.hub__join:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}

.lugares {
  --lugares-strip: 6rem;
  --lugares-footer: 1.38rem; /* min-height 1.2rem + margin-top 0.18rem */
  width: 100%;
  margin: 0.62rem 0 0.06rem;
  flex: 0 0 auto;
  /* Keep mosaic still: glass + Mecenas row from first paint (GPS fills later). */
  min-height: calc(var(--lugares-strip) + var(--lugares-footer));
  opacity: 1;
}
.lugares.lugares--in {
  opacity: 1;
}
/* Never collapse the chrome with [hidden] — that was the jump. */
.lugares[hidden] {
  display: block !important;
}
.lugares--pending .carousel,
.lugares--empty .carousel {
  grid-template-columns: 1fr;
}
.lugares--pending .carousel__btn,
.lugares--empty .carousel__btn {
  display: none;
}
.lugar-site-maps {
  display: none !important;
}

/* Lookbook: above Boutique. Width = Boutique+Libro; taller than .row tiles. */
.hub__south > .boutique-lookbook-strip,
#hub-lookbook {
  /* ~1.8× .row (art 2.35rem + pad 0.14rem×2 + 1px border×2) */
  --hub-lookbook-h: calc((2.35rem + 0.28rem + 2px) * 1.8);
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  height: var(--hub-lookbook-h);
  /* Pause before Boutique (~22px); was 0.22rem */
  margin: 0 0 1.4rem;
  padding: 0;
  gap: 0;
  border: 1px solid rgba(245, 237, 229, 0.22);
  background: rgba(7, 16, 18, 0.42);
  border-radius: 0.55rem;
  overflow: hidden;
  text-decoration: none;
  color: #f5ede5;
  box-sizing: border-box;
}
.hub__south > .boutique-lookbook-strip:active,
#hub-lookbook:active {
  transform: scale(0.99);
}
.hub__south > .boutique-lookbook-strip:focus-visible,
#hub-lookbook:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}
.hub__south > .boutique-lookbook-strip .boutique-lookbook-strip__thumbs,
#hub-lookbook .boutique-lookbook-strip__thumbs {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: hidden;
}
.hub__south > .boutique-lookbook-strip .boutique-lookbook-strip__thumbs img,
#hub-lookbook .boutique-lookbook-strip__thumbs img {
  display: block;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  margin-left: 0;
  border: 0;
  border-right: 1px solid rgba(7, 12, 16, 0.32);
}
.hub__south > .boutique-lookbook-strip .boutique-lookbook-strip__thumbs img:last-child,
#hub-lookbook .boutique-lookbook-strip__thumbs img:last-child {
  border-right: 0;
}
.hub__south > .boutique-lookbook-strip .boutique-lookbook-strip__play,
#hub-lookbook .boutique-lookbook-strip__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse 42% 70% at 50% 50%, rgba(7, 12, 16, 0.38), transparent 72%);
  color: #f5ede5;
  pointer-events: none;
  box-shadow: none;
}
.hub__south > .boutique-lookbook-strip .boutique-lookbook-strip__play svg,
#hub-lookbook .boutique-lookbook-strip__play svg {
  width: 2.55rem;
  height: 2.55rem;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55));
}
.hub-lookbook__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hub__south > .boutique-lookbook-strip,
  .hub__south > .boutique-lookbook-strip:active,
  #hub-lookbook,
  #hub-lookbook:active {
    transform: none;
  }
}
/* Same slot as the mecenas glass (6rem pill), not a 16:9 player under the mosaic. */
.lugar-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: inherit;
  text-decoration: none;
  color: #f5ede5;
  background: rgba(7, 16, 18, 0.55);
  border: 0;
  box-shadow: none;
}
.lugar-video[hidden] { display: none !important; }
.lugar-video:active { transform: scale(0.99); }
.lugar-video:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}
.lugar-video__still {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.lugar-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(7, 12, 16, 0.18), transparent 70%);
}
.lugar-video__play svg {
  width: 1.85rem;
  height: 1.85rem;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}
.lugares--video .carousel__btn {
  visibility: hidden;
  pointer-events: none;
}
.lugares--video .carousel__dots,
.lugares--video .carousel__track {
  display: none;
}
.lugares--maps-only .carousel,
.lugares--maps-only .carousel__footer {
  display: none;
}
.carousel {
  display: grid;
  grid-template-columns: 1.55rem 1fr 1.55rem;
  align-items: center;
  gap: 0.08rem;
}
.lugares--solo .carousel {
  grid-template-columns: 1fr;
}
.carousel__btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  color: rgba(245, 237, 229, 0.5);
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.lugares--solo .carousel__btn { display: none; }
.carousel__btn:hover { color: rgba(245, 237, 229, 0.88); }
.carousel__btn:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}
.carousel__viewport {
  --n: 1;
  --i: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: var(--lugares-strip, 6rem);
  border-radius: 999px;
  background: rgba(245, 237, 229, 0.06);
  border: 1px solid rgba(245, 237, 229, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  touch-action: pan-y;
  transition: opacity 0.28s ease;
}
.carousel__viewport.is-fade { opacity: 0; }
.carousel__track {
  display: flex;
  width: calc(var(--n) * 100%);
  transform: translateX(calc(var(--i) * -100% / var(--n)));
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel__slide {
  flex: 0 0 calc(100% / var(--n));
  width: calc(100% / var(--n));
  height: var(--lugares-strip, 6rem);
  min-height: var(--lugares-strip, 6rem);
  max-height: var(--lugares-strip, 6rem);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.28rem 0.55rem;
  background: transparent;
}
.lugar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1.15;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  background: transparent;
}
.lugar__link:active { transform: scale(0.985); }
.lugar__link:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}
.lugar__logo {
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 86%;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  display: block;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: normal;
  filter:
    drop-shadow(0 0 0.45px rgba(245, 237, 229, 0.95))
    drop-shadow(0 0 7px rgba(245, 237, 229, 0.32))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  -webkit-user-drag: none;
}
.lugar__name {
  display: block;
  max-width: 100%;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.carousel__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2rem;
  margin-top: 0.18rem;
  padding: 0;
}
.carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.32rem;
  margin: 0;
  position: relative;
  z-index: 1;
}
.lugares--solo .carousel__dots { display: none; }
.carousel__dot {
  appearance: none;
  -webkit-appearance: none;
  width: 0.38rem;
  height: 0.38rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 237, 229, 0.22);
  cursor: pointer;
}
.carousel__dot[aria-current="true"] {
  background: rgba(245, 237, 229, 0.72);
}
.carousel__dot:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .lugares.lugares--in,
  .carousel__viewport,
  .carousel__track {
    transition: none;
  }
}

.lugares__mecenas {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0.08rem 0.22rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(245, 237, 229, 0.42);
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.lugares__mecenas:hover,
.lugares__mecenas:focus-visible {
  background: transparent;
  color: rgba(245, 237, 229, 0.78);
  border-color: transparent;
}
.lugares__mecenas:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}

.lugares__city {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-block;
  max-width: min(30ch, calc(50% - 2.4rem));
  width: auto;
  margin: 0;
  padding: 0.08rem 0.22rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(245, 237, 229, 0.42);
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lugares__city[hidden] { display: none !important; }
.lugares__city:hover,
.lugares__city:focus-visible {
  background: transparent;
  color: rgba(245, 237, 229, 0.78);
}
.lugares__city:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}

.lugares-mecenas__link.is-selected {
  border-color: rgba(245, 237, 229, 0.72);
  background: rgba(245, 237, 229, 0.16);
  box-shadow: 0 0 0 1px rgba(245, 237, 229, 0.35);
}
.lugares-mecenas__picked {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 237, 229, 0.72);
}
.lugares-mecenas__hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(245, 237, 229, 0.62);
}

.lugares-mecenas {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding:
    max(1.1rem, env(safe-area-inset-top, 0px))
    max(0.85rem, env(safe-area-inset-right, 0px))
    max(0.85rem, env(safe-area-inset-bottom, 0px))
    max(0.85rem, env(safe-area-inset-left, 0px));
  background:
    linear-gradient(180deg, rgba(7,12,16,0.92) 0%, rgba(7,16,18,0.94) 100%);
  overflow: auto;
}
.lugares-mecenas[hidden] { display: none !important; }
.lugares-mecenas__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  flex: 0 0 auto;
}
.lugares-mecenas__title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lugares-mecenas__close {
  appearance: none;
  margin: 0;
  padding: 0.2rem 0.15rem;
  border: 0;
  background: transparent;
  color: rgba(245, 237, 229, 0.78);
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.lugares-mecenas__close:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}
.lugares-mecenas__grid {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.65rem;
}
.lugares-mecenas__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  padding: 0.55rem 0.4rem 0.45rem;
  border-radius: 14px;
  background: rgba(245, 237, 229, 0.08);
  border: 1px solid rgba(245, 237, 229, 0.12);
}
.lugares-mecenas__link:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}
.lugares-mecenas__logo {
  width: auto;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  filter:
    drop-shadow(0 0 0.45px rgba(245, 237, 229, 0.95))
    drop-shadow(0 0 6px rgba(245, 237, 229, 0.28))
    drop-shadow(0 1px 8px rgba(0, 0, 0, 0.5));
}
.lugares-mecenas__name {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
}

.lugar-menu {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding:
    max(0.6rem, env(safe-area-inset-top, 0px))
    max(0.7rem, env(safe-area-inset-right, 0px))
    max(0.7rem, env(safe-area-inset-bottom, 0px))
    max(0.7rem, env(safe-area-inset-left, 0px));
  background: rgba(7, 12, 16, 0.42);
}
.lugar-menu[hidden] { display: none !important; }
.lugar-menu__sheet {
  width: min(20.5rem, 100%);
  margin: 0 0 5.4rem;
  padding: 0.85rem 0.9rem 0.75rem;
  border-radius: 16px;
  background: rgba(18, 24, 28, 0.94);
  border: 1px solid rgba(245, 237, 229, 0.14);
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
}
.lugar-menu__title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 237, 229, 0.62);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lugar-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.lugar-menu__link {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 2.65rem;
  padding: 0.42rem 0.72rem;
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
  color: #f5ede5;
  background: rgba(245, 237, 229, 0.08);
  border: 1px solid rgba(245, 237, 229, 0.12);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.lugar-menu__link:hover,
.lugar-menu__link:active {
  background: rgba(245, 237, 229, 0.14);
}
.lugar-menu__link:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}
.lugar-menu__ico {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lugar-menu__ico svg,
.lugar-menu__ico img {
  width: 1.42rem;
  height: 1.42rem;
  display: block;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.55));
}
.lugar-menu__label {
  min-width: 0;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lugar-menu__fact {
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.36rem 0.72rem;
  border-radius: 10px;
  color: rgba(245, 237, 229, 0.82);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lugar-menu__close {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0.55rem 0 0;
  padding: 0.28rem 0.2rem;
  border: 0;
  background: transparent;
  color: rgba(245, 237, 229, 0.62);
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.lugar-menu__close:focus-visible {
  outline: 2px solid #f5ede5;
  outline-offset: 2px;
}

@media (orientation: landscape) and (max-height: 520px) {
  .hub__south > .boutique-lookbook-strip,
  #hub-lookbook {
    --hub-lookbook-h: calc((1.95rem + 0.28rem + 2px) * 1.55);
    margin-bottom: 0.7rem;
  }
  .hub__south > .boutique-lookbook-strip .boutique-lookbook-strip__play svg,
  #hub-lookbook .boutique-lookbook-strip__play svg {
    width: 2rem;
    height: 2rem;
  }
  .lugares {
    margin-top: 0.28rem;
    --lugares-strip: 4.5rem;
  }
  .carousel__viewport { height: var(--lugares-strip); }
  .carousel__slide {
    height: var(--lugares-strip);
    min-height: var(--lugares-strip);
    max-height: var(--lugares-strip);
    padding: 0.22rem 0.45rem;
    background: transparent;
  }
  .lugar__logo { width: auto; height: auto; max-width: 92%; max-height: 86%; }
  .lugar__name { font-size: 0.95rem; }
  .lugares-mecenas__logo { height: 40px; }
}
