/* Scoped glass hero: transforms are owned by its GSAP controller. */
.hp-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 16px);
  display: grid;
  place-items: center;
  margin: 0;
  padding: 150px 30px 96px;
  overflow: visible;
  color: #f4eafa;
}
/* The measured layer spans the viewport, while the hero content stays constrained. */
.hp-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -16px;
  bottom: 0;
  left: var(--hp-background-left, 0px);
  width: var(--hp-viewport-width, 100%);
  background: radial-gradient(ellipse at 16% 24%, #482559b3, transparent 65%), radial-gradient(ellipse at 90% 72%, #52307c99, transparent 65%), #0b0a10;
}
.hp-nav {
  position: absolute;
  z-index: 8;
  top: clamp(30px, 8svh, 76px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(400px, calc(100% - 40px));
  height: 68px;
  padding: 5px;
  border: 1px solid #bd8ef480;
  border-radius: 25px;
  background: linear-gradient(135deg, #33233d73, #0c0a12df 50%, #22142f99);
  box-shadow: inset 0 1px 3px #ecc9ff55, inset 0 -2px 7px #8a3ed533, 0 0 17px #964dd52a, 0 12px 30px #0005;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hp-nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  min-width: 0;
  border-radius: 20px;
  color: #b3a0c4;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.hp-nav-item:hover, .hp-nav-item.is-active { color: #f7f0ff; background: #ad80dd19; }
.hp-nav-item:focus-visible { outline: 2px solid #d5f881; outline-offset: -3px; }
.hp-nav-icon { display: grid; place-items: center; width: 27px; height: 27px; }
.hp-nav-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hp-nav-label { font-size: 12px; font-weight: 500; }
.hp-nav-active-bubble {
  position: absolute;
  top: -8px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  pointer-events: none;
  background: #d3f785;
  box-shadow: inset 0 1px 2px #faffd8, 0 0 14px #c3f47b70;
  transform: translateX(52px);
}
.hp-title-wrap { position: relative; z-index: 3; width: 100%; text-align: center; }
.hp-word { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: center; width: min(1140px, calc(100% - 28px)); margin-inline: auto; perspective: 1000px; padding: 20px 0; }
/* The original PNGs own the glass surface and rotation; no rectangular overlays. */
.hp-key {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 16%;
  background: transparent;
  box-shadow: none;
  transform-style: preserve-3d;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hp-key img { position: absolute; inset: -19%; display: block; width: 138%; max-width: none; height: 138%; object-fit: contain; pointer-events: none; filter: brightness(var(--key-light, 1)) drop-shadow(0 8px 8px #12091d55); transition: filter .18s ease; }
.hp-key:focus-visible { outline: 1px solid #d3f785; outline-offset: 2px; }
.hp-meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 44px; font-family: "Segoe UI", Arial, sans-serif; font-weight: 300; font-size: clamp(13px, 1.3vw, 18px); letter-spacing: .2em; line-height: 1.6; }
.hp-name { color: #e5d2f6; font-weight: 400; }
.hp-role { color: #baabc9; }
.hp-dot { color: #d3f785; }
.hp-mini-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 25px; }
.hp-mini-rule span { width: 72px; height: 1px; background: #a880bc8c; }
.hp-mini-rule i { color: #c294e6; font-size: 23px; font-style: normal; }
.hp-orbit { position: absolute; z-index: -1; top: 50%; left: -2%; width: 104%; height: auto; transform: translateY(-50%); overflow: visible; pointer-events: none; stroke: #bc92df99; stroke-width: 1; }
.hp-orbit path { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.hp-star { position: absolute; z-index: 1; color: #d7b3ef; text-shadow: 0 0 24px #b575e0; pointer-events: none; }
.hp-star-one { left: 7%; top: 70%; font-size: 48px; }
.hp-star-two { right: 8%; top: 26%; font-size: 54px; }
.hp-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .hp-hero { min-height: calc(100svh - 9px); padding: 140px 18px 90px; }
  .hp-nav { top: 34px; height: 64px; }
  .hp-word { grid-template-columns: repeat(10, minmax(0, 1fr)); width: calc(100% - 16px); max-width: 420px; row-gap: 2px; padding: 16px 0; }
  .hp-key { grid-column: span 2; }
  .hp-key:nth-of-type(1) { grid-column: 2 / span 2; }
  .hp-key:nth-of-type(5) { grid-column: 1 / span 2; }
  .hp-meta { flex-wrap: wrap; column-gap: 7px; row-gap: 3px; margin-top: 30px; font-size: 13px; letter-spacing: .16em; }
  .hp-role { flex-basis: 100%; }
  .hp-star-one { left: 6%; top: 72%; font-size: 28px; } .hp-star-two { top: 21%; font-size: 32px; }
  .hp-orbit { left: 0; width: 100%; height: 120%; }
}
@media (prefers-reduced-motion: reduce) { .hp-nav-item { transition: none; } }
@media (prefers-reduced-transparency: reduce) {
  .hp-nav { background: #17111e; backdrop-filter: none; }
}

/* Cover the existing shell inset without moving any content. */
@media (max-width: 680px) { .hp-hero::before { top: -9px; } }

/* Smaller gallery introduction; its existing section reveal provides the entrance. */
#galeria #gallery-title { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; }
@media (max-width: 700px) { #galeria #gallery-title { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .hp-key img { transition: none; } }

/* Compact contact composition; existing destinations and details are unchanged. */
#contacto { width: min(100%, 980px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; padding: clamp(22px, 3vw, 36px); }
#contacto h2 { font-size: clamp(28px, 3vw, 38px); max-width: 12ch; }
#contacto .contact-copy p:not(.section-kicker) { max-width: 36ch; line-height: 1.65; }
#contacto .contact-details { min-width: 0; }
#contacto .contact-brand { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; vertical-align: middle; text-decoration: none; }
#contacto .contact-brand img { display: block; object-fit: contain; }
#contacto .contact-brand:hover { background: #c4acd54d; }
#contacto .contact-brand:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 760px) { #contacto { grid-template-columns: 1fr; gap: 22px; } #contacto h2 { max-width: none; } }
