/* Site-level placement. The interactive drawing and its controls are scoped to its shadow root. */
#catalogo-escena {
  display:block;
  isolation:isolate;
  position:relative;
  z-index:1;
  width:min(100%,470px);
  min-width:0;
  margin-inline:auto;
}
#catalogo-escena + #web-experience-hero-panel {
  margin-block-start:20px;
}
#catalogo-escena + #web-experience-hero-panel .web-experience-panel-kicker {
  opacity:1 !important;
  transform:none !important;
  transition:none !important;
}
@media (min-width:901px) {
  #hero-section .hero-container:has(> #catalogo-escena) {
    display:grid;
    grid-template-columns:minmax(0,1fr) clamp(320px,37vw,470px);
    grid-template-rows:minmax(0,1fr) repeat(4,max-content) minmax(0,1fr) auto;
    column-gap:clamp(28px,4.5vw,74px);
    row-gap:0;
    align-items:start;
    justify-items:start;
  }
  #hero-section .hero-container:has(> #catalogo-escena) > #hero-badge {grid-column:1;grid-row:2}
  #hero-section .hero-container:has(> #catalogo-escena) > #hero-title {grid-column:1;grid-row:3}
  #hero-section .hero-container:has(> #catalogo-escena) > #hero-subtitle {grid-column:1;grid-row:4}
  #hero-section .hero-container:has(> #catalogo-escena) > .hero-cta {grid-column:1;grid-row:5}
  #hero-section .hero-container > #catalogo-escena {grid-column:2;grid-row:1 / 7;align-self:center}
  #hero-section .hero-container:has(> #catalogo-escena) > #web-experience-hero-panel {grid-column:1 / -1;grid-row:7;width:100%}
  #hero-section .hero-container:has(> #catalogo-escena) > :is(#hero-social-links-box,#trust-bar-container) {grid-column:1 / -1}
}
@media(max-width:900px) {
  #hero-section .hero-container:has(> #catalogo-escena) {display:flex;flex-direction:column}
  #hero-section .hero-container > #catalogo-escena {width:min(100%,350px);margin:clamp(20px,4.5vw,30px) auto 0}
}

:host {
  display: block;
  text-align: start;
  line-height: normal;
  color: #f1f4f6;
  color-scheme: dark;
}
:host *, :host *::after, :host *::before { box-sizing: border-box; }

:host #composicion {
  container-type: inline-size;
  --lado-dibujo: clamp(48px, 13.05cqi, 84px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #41565f;
  border-radius: clamp(18px, 3vw, 32px);
  background: #172831;
  box-shadow: 0 24px 60px #0008, 0 2px 8px #0007, inset 0 0 0 1px #ffffff0c;
}
:host #tablero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.13;
  background:
    radial-gradient(ellipse at 48% 47%, #405b64 0%, #273c47 27%, #1b2932 51%, transparent 77%),
    linear-gradient(134deg, #253944, #1b2932 54%, #101a24);
}
:host #tablero::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border: 1px solid #decbd623;
  border-radius: 50%;
  pointer-events: none;
}
:host #tablero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  background:
    radial-gradient(#fff3 .45px, transparent .8px) 0 0 / 5px 5px,
    radial-gradient(#0007 .65px, transparent .95px) 2px 1px / 7px 6px;
  mask-image: radial-gradient(ellipse, transparent 25%, #0009 70%, black);
}
:host #pieza-central {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  width: 42%;
  height: 43%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
:host #pieza-central img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 5px #0006);
  user-select: none;
}
:host #tablero[data-central="gorra"] #pieza-central {
  width: 45%;
  height: 46%;
}
:host button {
  margin: 0;
  border: 0;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
:host .herramienta {
  /* Escala respecto al tablero para conservar la lectura dentro de una portada estrecha. */
  --lado-icono: clamp(50px,15.3cqi,90px);
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  width: var(--lado-icono);
  height: var(--lado-icono);
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  padding: 0;
  color: #e8e9e7;
  background: transparent;
}
:host .glifo {
  width: var(--lado-dibujo);
  height: var(--lado-dibujo);
  display: grid;
  place-items: center;
}
:host .glifo > *, :host .viaje > * {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  color: inherit;
  filter: brightness(0) invert(.89) drop-shadow(0 1px 2px #0009);
  user-select: none;
}
:host .viaje {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
:host .viaje > * { width: var(--lado-dibujo); height: var(--lado-dibujo); }
:host .herramienta:focus-visible, :host #mandos button:focus-visible { outline: 2px solid #f4f5ef; outline-offset: 1px; }
@media (hover: hover) {
  :host .herramienta:hover .glifo > * { filter: brightness(0) invert(1) drop-shadow(0 1px 2px #0009); }
}
:host #mandos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 6px 12px;
  border-top: 1px solid #ffffff15;
  background: linear-gradient(180deg, #22313a, #18222b);
}
:host #angulos { display: flex; align-items: center; gap: 2px; }
:host #mandos button {
  position: relative;
  display: grid;
  width: 46px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  padding: 0;
  color: #d5dce0;
  background: transparent;
}
:host #mandos button[aria-pressed="true"] { color: white; background: #ffffff15; }
:host #mandos button:hover { color: white; }
:host #mandos button:disabled { opacity: .5; cursor: default; }
:host #mandos svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:host #pausa::before { content: ""; position: absolute; left: -8px; height: 18px; width: 1px; background: #ffffff24; }
:host #pausa .reproducir, :host #pausa[aria-pressed="true"] .pausar { display: none; }
:host #pausa[aria-pressed="true"] .reproducir { display: block; }
@media (max-width: 500px) {
  :host #tablero { aspect-ratio: 1.025; }

  :host #mandos { padding-block: 3px; }
}

@container (max-width: 320px) {
  :host #tablero { aspect-ratio: .84; }
  :host #tablero[data-central="gorra"] #pieza-central { width: 42%; height: 47%; }
}

@container (min-width: 400px) {
  :host .herramienta[data-id="lampara"] .glifo {
    width: calc(var(--lado-dibujo) + .65px);
    height: calc(var(--lado-dibujo) + .65px);
  }
  :host .herramienta[data-id="lampara"] .glifo > svg { translate: .25px 0; }
}

:host .herramienta[data-slot="0"] {--x:21.01%;--y:21.01%}
:host .herramienta[data-slot="1"] {--x:39.39%;--y:10.40%}
:host .herramienta[data-slot="2"] {--x:60.61%;--y:10.40%}
:host .herramienta[data-slot="3"] {--x:78.99%;--y:21.01%}
:host .herramienta[data-slot="4"] {--x:89.60%;--y:39.39%}
:host .herramienta[data-slot="5"] {--x:89.60%;--y:60.61%}
:host .herramienta[data-slot="6"] {--x:78.99%;--y:78.99%}
:host .herramienta[data-slot="7"] {--x:60.61%;--y:89.60%}
:host .herramienta[data-slot="8"] {--x:39.39%;--y:89.60%}
:host .herramienta[data-slot="9"] {--x:21.01%;--y:78.99%}
:host .herramienta[data-slot="10"] {--x:10.40%;--y:60.61%}
:host .herramienta[data-slot="11"] {--x:10.40%;--y:39.39%}
