/* Piezas compartidas por los sitios de Aro TI: tipografías, barra para cambiar de sitio y transición entre páginas. */
@font-face { font-family: "Unbounded"; src: url("../fuentes/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fuentes/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .45s cubic-bezier(.6, 0, .8, .2) both sitio-sale; }
  ::view-transition-new(root) { animation: .7s cubic-bezier(.1, .7, .2, 1) both sitio-entra; }
  @keyframes sitio-sale { to { opacity: 0; scale: .94; filter: blur(8px); } }
  @keyframes sitio-entra { from { opacity: 0; scale: 1.06; filter: blur(10px); } }
}

.muelle {
  position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 1000; view-transition-name: muelle;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; max-width: calc(100vw - 16px);
  background: rgb(8 14 28 / .82); backdrop-filter: blur(18px) saturate(1.5); color: #eaf2fc;
  border: 1px solid rgb(160 200 255 / .22); box-shadow: 0 18px 50px -12px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .08);
  font: 600 14.5px/1 "Instrument Sans", "Segoe UI", system-ui, sans-serif; text-transform: none; letter-spacing: normal;
}
.muelle .rotulo { padding: 0 10px 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase !important; color: #9bb0cc; white-space: nowrap; }
.muelle nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.muelle a, .muelle button {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; border: 0; background: transparent; color: inherit;
  font: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s;
}
.muelle svg { width: 17px; height: 17px; flex: none; }
.muelle a:hover, .muelle button:hover { background: rgb(255 255 255 / .1); }
.muelle a[aria-current="page"] { background: linear-gradient(120deg, #2f8fe8, #1250c4); color: #fff; box-shadow: 0 6px 18px -6px rgb(47 143 232 / .9); }
.muelle :focus-visible { outline: 2px solid #7ccbff; outline-offset: 2px; }
.muelle .sep { width: 1px; height: 22px; background: rgb(160 200 255 / .22); margin-inline: 4px; flex: none; }
.muelle .son[aria-pressed="true"] { color: #7ccbff; }
/* Onda del botón de sonido (también la usan los sitios que ponen su propio botón) */
.onda { width: 34px; height: 16px; overflow: hidden; }
.onda .viva { opacity: 0; transition: opacity .3s; }
.onda .plana { transition: opacity .3s; }
[aria-pressed="true"] > .onda .viva { opacity: 1; }
[aria-pressed="true"] > .onda .plana { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  [aria-pressed="true"] > .onda .viva { animation: onda-corre 1.4s linear infinite; }
  @keyframes onda-corre { to { translate: 34px 0; } }
}
@media (max-width: 900px) {
  .muelle .rotulo { display: none; }
  .muelle a span { display: none; }
  .muelle a[aria-current="page"] span { display: inline; }
  .muelle a, .muelle button { padding: 10px 11px; }
}

/* Los sitios inmersivos (Experiencia y Piezas) se recorren en vertical: con el teléfono acostado (o una
   ventana muy bajita) no caben sus controles, así que se pide girarlo. La barra de sitios queda encima para poder irse a otro. */
@media (orientation: landscape) and (max-height: 500px) {
  body[data-vertical]::after { content: "Gira tu teléfono\A Este sitio se recorre en vertical (o agranda la ventana)"; white-space: pre-line; position: fixed; inset: 0; z-index: 999;
    display: grid; place-content: center; text-align: center; padding: 0 12vw 60px; background: #04060d; color: #eef4fd;
    font: 600 1.25rem/1.7 "Instrument Sans", "Segoe UI", system-ui, sans-serif; letter-spacing: .02em; text-transform: none; }
}
