/* Réplica interactiva de Palco en la portada. Las medidas van en "puntos de Mac" (--u). */
.mac {
  position: relative; margin: 64px auto 0; width: min(1180px, calc(100% - 44px));
  border-radius: 28px 28px 0 0; padding: 12px 12px 0; background: #121214;
  box-shadow: rgb(40,40,40) 0 0 0 1px; container-type: inline-size;
}
.escritorio {
  --u: calc(100cqw / 1470);
  --tinte: #d6453d;
  position: relative; aspect-ratio: 1470 / 956; border-radius: 18px 18px 0 0; overflow: hidden;
  background: radial-gradient(60% 80% at 50% 0%, #461620, rgba(70,22,32,0) 75%), #120a0e;
  font-family: var(--text); letter-spacing: 0; color: #fff; user-select: none; -webkit-user-select: none;
  text-align: left;
}
.escritorio svg { width: 1em; height: 1em; fill: currentColor; display: block; }
:where(.escritorio) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.escritorio button:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* Barra de menús */
.menus {
  position: absolute; inset: 0 0 auto 0; height: calc(30 * var(--u)); padding: 0 calc(14 * var(--u));
  display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,.35);
  font-size: calc(12 * var(--u)); color: rgba(255,255,255,.88);
  transition: background .4s ease;
}
.menus .izq, .menus .der { display: flex; align-items: center; gap: calc(16 * var(--u)); }
.menus .der button { font-size: calc(13 * var(--u)); opacity: .9; }
.menus .der button:hover { opacity: 1; }
.menus b { font-weight: 600; }
.escritorio.completa .menus { background: #000; }
.escritorio.completa .menus > * { opacity: 0; pointer-events: none; }
@container (max-width: 620px) { .menus .izq span:nth-child(n+3), .menus .der .solo-ancho { display: none; } }

/* Ventana de ejemplo (solo para dar escala) */
.ventana {
  position: absolute; left: 8%; top: 22%; width: 46%; height: 58%; border-radius: calc(10 * var(--u));
  background: rgba(30,28,32,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  padding: calc(14 * var(--u)); font-size: calc(12 * var(--u)); color: rgba(255,255,255,.7); line-height: 1.5;
  transition: opacity .4s ease;
}
.ventana .semaforo { display: flex; gap: calc(6 * var(--u)); margin-bottom: calc(12 * var(--u)); }
.ventana .semaforo i { width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; background: rgba(255,255,255,.18); }
.ventana b { color: #fff; font-weight: 600; display: block; margin-bottom: calc(6 * var(--u)); font-size: calc(13 * var(--u)); }
.ventana p { user-select: text; -webkit-user-select: text; }
.escritorio.completa .ventana { left: 0; top: calc(30 * var(--u)); width: 100%; height: calc(100% - 30 * var(--u)); border-radius: 0;
  background: radial-gradient(70% 90% at 50% 60%, #2a2130, #0b090d); box-shadow: none; }
.escritorio.completa .ventana > * { opacity: 0; }
@container (max-width: 620px) { .ventana { left: 8%; width: 60%; top: 24%; height: 56%; } }

/* ---------- Notch ---------- */
.dn {
  position: absolute; z-index: 5; top: 0; left: 50%; transform: translateX(-50%);
  width: calc(236 * var(--u)); height: calc(30 * var(--u)); border-radius: 0 0 calc(10 * var(--u)) calc(10 * var(--u));
  background: #000; overflow: hidden; cursor: default;
  transition: width .5s cubic-bezier(.32,.72,0,1), height .5s cubic-bezier(.32,.72,0,1), border-radius .5s cubic-bezier(.32,.72,0,1), box-shadow .5s ease;
}
.dn.abierto { width: calc(420 * var(--u)); height: calc(146 * var(--u)); border-radius: 0 0 calc(26 * var(--u)) calc(26 * var(--u)); box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(0,0,0,.5); }
.dn .cerr, .dn .abie { position: absolute; inset: 0; transition: opacity .2s ease; }
.dn .cerr { display: flex; justify-content: space-between; align-items: center; padding: 0 calc(12 * var(--u)); }
.dn.abierto .cerr { opacity: 0; pointer-events: none; }
.dn .abie { opacity: 0; pointer-events: none; width: calc(420 * var(--u)); left: 50%; transform: translateX(-50%); }
.dn.abierto .abie { opacity: 1; pointer-events: auto; transition: opacity .3s ease .12s; }
.dn .mini { width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: calc(5 * var(--u)); background: url(media/caratula.jpg) center / cover; }

.barras-d { display: flex; align-items: center; gap: calc(2.5 * var(--u)); height: calc(14 * var(--u)); }
.barras-d i { width: calc(3 * var(--u)); height: 25%; border-radius: calc(2 * var(--u)); background: var(--tinte); transition: height .08s linear; }

.cabe { height: calc(30 * var(--u)); display: flex; align-items: center; font-size: calc(11 * var(--u)); color: rgba(255,255,255,.55); font-weight: 500; }
.cabe > div { width: calc(120 * var(--u)); display: flex; justify-content: center; align-items: center; gap: calc(5 * var(--u)); }
.cabe > span { flex: 1; }
.cabe svg { font-size: calc(13 * var(--u)); }

.paginas { position: relative; height: calc(100 * var(--u)); margin: 0 calc(18 * var(--u)); }
.pag { position: absolute; inset: 0; display: flex; gap: calc(12 * var(--u)); align-items: center; padding-top: calc(2 * var(--u));
  transition: opacity .3s ease, transform .4s cubic-bezier(.32,.72,0,1); }
.pag[hidden] { display: flex; opacity: 0; pointer-events: none; transform: translateX(calc(-24 * var(--u))); }
.pag.derecha[hidden] { transform: translateX(calc(24 * var(--u))); }
.puntos { position: absolute; bottom: calc(5 * var(--u)); left: 0; right: 0; display: flex; justify-content: center; gap: calc(5 * var(--u)); }
.puntos button { width: calc(5 * var(--u)); height: calc(5 * var(--u)); border-radius: 50%; background: rgba(255,255,255,.25); }
.puntos button[aria-current="true"] { background: rgba(255,255,255,.85); }
.puntos button::after { content: ""; position: absolute; inset: calc(-6 * var(--u)); }
.puntos button { position: relative; }

/* Página 1: música */
.arte { position: relative; flex: none; width: calc(72 * var(--u)); height: calc(72 * var(--u)); border-radius: calc(13 * var(--u));
  background: url(media/caratula.jpg) center / cover; box-shadow: 0 0 calc(10 * var(--u)) rgba(214,69,61,.3); }
.arte .app { position: absolute; right: calc(-5 * var(--u)); bottom: calc(-5 * var(--u)); width: calc(20 * var(--u)); height: calc(20 * var(--u));
  border-radius: calc(5 * var(--u)); background: #1c1c1e; display: grid; place-items: center; font-size: calc(12 * var(--u)); box-shadow: 0 0 0 calc(1 * var(--u)) rgba(255,255,255,.08); }
.info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(4 * var(--u)); align-self: stretch; padding-top: calc(4 * var(--u)); }
.fila1 { display: flex; align-items: center; gap: calc(10 * var(--u)); }
.fila1 .tit { flex: 1; min-width: 0; }
.fila1 .tit b { display: block; font-size: calc(13 * var(--u)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila1 .tit small { display: block; font-size: calc(11.5 * var(--u)); color: rgba(255,255,255,.55); }
.ico { font-size: calc(12.5 * var(--u)); color: rgba(255,255,255,.55); position: relative; }
.ico:hover { color: rgba(255,255,255,.85); }
.ico.on { color: var(--tinte); }
.ico.tachado::after { content: ""; position: absolute; left: -15%; right: -15%; top: 50%; height: calc(1.5 * var(--u)); background: currentColor; transform: rotate(-35deg); }

.letra3 { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: calc(3 * var(--u)); overflow: hidden; }
.letra3 span { display: block; font-size: calc(11 * var(--u)); color: rgba(255,255,255,.45); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .35s ease; }
.letra3 span.ya { font-size: calc(12.5 * var(--u)); color: #fff; }
.letra3 .vacio { color: rgba(255,255,255,.4); font-weight: 500; }
.controles-d { flex: 1; display: none; flex-direction: column; justify-content: center; gap: calc(6 * var(--u)); }
.info.sin-letra .letra3 { display: none; }
.info.sin-letra .controles-d { display: flex; }
.scrub { display: flex; align-items: center; gap: calc(7 * var(--u)); font-size: calc(9.5 * var(--u)); color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.scrub .pista-b { flex: 1; height: calc(5 * var(--u)); border-radius: 9px; background: rgba(255,255,255,.2); position: relative; cursor: pointer; }
.scrub .pista-b i { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: var(--tinte); }
.scrub .pista-b::after { content: ""; position: absolute; inset: calc(-6 * var(--u)) 0; }
.btns { display: flex; justify-content: center; align-items: center; gap: calc(22 * var(--u)); }
.btns button { font-size: calc(13 * var(--u)); padding: calc(4 * var(--u)) calc(6 * var(--u)); }
.btns button.grande { font-size: calc(19 * var(--u)); }

/* Página 2: programa */
.prog { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: calc(5 * var(--u)); min-width: 0; }
.etq { display: flex; align-items: center; gap: calc(5 * var(--u)); font-size: calc(10 * var(--u)); font-weight: 600; color: rgba(255,255,255,.55); }
.evento { display: flex; gap: calc(7 * var(--u)); align-items: center; }
.evento i { width: calc(3 * var(--u)); height: calc(28 * var(--u)); border-radius: 2px; background: #3b82f6; }
.evento b { display: block; font-size: calc(12 * var(--u)); font-weight: 600; }
.evento small { display: block; font-size: calc(10 * var(--u)); color: rgba(255,255,255,.55); }
.sep { width: 1px; align-self: stretch; margin: calc(10 * var(--u)) 0; background: rgba(255,255,255,.1); }
.minutos { display: flex; gap: calc(5 * var(--u)); }
.minutos button { flex: 1; font-size: calc(11 * var(--u)); font-weight: 500; padding: calc(4 * var(--u)) 0; border-radius: 99px; background: rgba(255,255,255,.1); }
.minutos button:hover { background: rgba(255,255,255,.16); }
.cuenta { display: flex; align-items: center; justify-content: space-between; font-size: calc(18 * var(--u)); font-weight: 600; color: #f2a541; font-variant-numeric: tabular-nums; }
.cuenta button { font-size: calc(16 * var(--u)); color: rgba(255,255,255,.55); }
.rapidos { display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
.rapidos button { width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; display: grid; place-items: center; font-size: calc(13 * var(--u));
  background: rgba(255,255,255,.09); color: rgba(255,255,255,.75); }
.rapidos button.on { background: rgba(255,255,255,.16); color: #f2a541; }

/* Página 3: bandeja y portapapeles */
.bandeja { flex: 3; align-self: stretch; margin-bottom: calc(10 * var(--u)); border: calc(1 * var(--u)) dashed rgba(255,255,255,.3); border-radius: calc(14 * var(--u));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(3 * var(--u)); text-align: center; transition: background .2s ease, border-color .2s ease; }
.bandeja svg { font-size: calc(22 * var(--u)); margin-bottom: calc(4 * var(--u)); }
.bandeja b { font-size: calc(12 * var(--u)); font-weight: 600; }
.bandeja small { font-size: calc(10 * var(--u)); color: rgba(255,255,255,.55); }
.bandeja.encima { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.bandeja .archivos { display: flex; flex-wrap: wrap; gap: calc(5 * var(--u)); justify-content: center; padding: 0 calc(8 * var(--u)); }
.bandeja .archivos span { font-size: calc(10 * var(--u)); padding: calc(3 * var(--u)) calc(8 * var(--u)); border-radius: 99px; background: rgba(255,255,255,.12); max-width: calc(110 * var(--u)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portapapeles { flex: 1; align-self: stretch; margin-bottom: calc(10 * var(--u)); display: flex; flex-direction: column; gap: calc(4 * var(--u)); min-width: 0; }
.portapapeles .etq { color: rgba(255,255,255,.55); }
.portapapeles .vacio { font-size: calc(10.5 * var(--u)); color: rgba(255,255,255,.35); line-height: 1.3; }
.portapapeles button { text-align: left; font-size: calc(10.5 * var(--u)); padding: calc(3 * var(--u)) calc(5 * var(--u)); border-radius: calc(6 * var(--u)); background: rgba(255,255,255,.04);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.88); }
.portapapeles button:hover { background: rgba(255,255,255,.1); }
.portapapeles button.copiado { color: #34c759; }

/* ---------- Letra arriba (pantalla completa) ---------- */
.cinta { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: calc(30 * var(--u)); overflow: hidden; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.escritorio.completa.cinta-on .cinta { opacity: 1; }
.cinta .riel { position: absolute; top: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.cinta .riel span { font-size: calc(12 * var(--u)); font-weight: 600; color: rgba(255,255,255,.4); padding: 0 calc(14 * var(--u)); position: relative; }
.cinta .riel span + span::before { content: "•"; position: absolute; left: calc(-3 * var(--u)); color: var(--tinte); }
.cinta .riel span.ya { color: #fff; }

/* ---------- Pantalla bloqueada ---------- */
.bloq { position: absolute; inset: 0; z-index: 8; opacity: 0; pointer-events: none; transition: opacity .45s ease; overflow: hidden; }
.escritorio.bloqueado .bloq { opacity: 1; pointer-events: auto; }
.bloq .fluido { position: absolute; inset: -20%; background:
  radial-gradient(40% 50% at 30% 30%, rgba(178,62,44,.85), transparent 70%),
  radial-gradient(45% 55% at 75% 70%, rgba(120,24,40,.9), transparent 70%),
  radial-gradient(50% 50% at 60% 20%, rgba(140,70,40,.7), transparent 70%), #3a0f16;
  filter: blur(calc(20 * var(--u))); animation: fluir 18s ease-in-out infinite alternate; transition: opacity .5s ease; opacity: 0; }
.bloq.grande .fluido { opacity: 1; }
.bloq .liso { position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, #461620, rgba(70,22,32,0) 75%), #120a0e; }
@keyframes fluir { to { transform: translate(6%, -4%) rotate(8deg) scale(1.1); } }
.reloj-b { position: absolute; top: 9%; left: 0; right: 0; text-align: center; transition: top .5s cubic-bezier(.32,.72,0,1); }
.reloj-b small { display: block; font-size: calc(14 * var(--u)); font-weight: 600; color: rgba(255,255,255,.85); }
.reloj-b b { display: block; font: 600 calc(72 * var(--u))/1 var(--display); letter-spacing: -0.02em; color: rgba(255,255,255,.92); }
.bloq.grande .reloj-b { top: 4%; }
.bloq.grande .reloj-b b { font-size: calc(54 * var(--u)); }

.cristal-d { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); width: calc(300 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); margin-bottom: calc(26 * var(--u));
  border-radius: calc(22 * var(--u)); background: rgba(255,255,255,.1); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: opacity .35s ease, transform .5s cubic-bezier(.32,.72,0,1); }
.bloq.grande .cristal-d { opacity: 0; pointer-events: none; transform: translateX(-50%) scale(.9); }
.cristal-d .fila { display: flex; align-items: center; gap: calc(10 * var(--u)); }
.cristal-d .arte-p { width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: calc(8 * var(--u)); background: url(media/caratula.jpg) center / cover; cursor: pointer; flex: none; }
.cristal-d .fila div { flex: 1; min-width: 0; }
.cristal-d b { display: block; font-size: calc(12.5 * var(--u)); font-weight: 600; }
.cristal-d small { display: block; font-size: calc(11 * var(--u)); color: rgba(255,255,255,.65); }
.cristal-d .scrub { margin-top: calc(10 * var(--u)); }
.cristal-d .scrub .pista-b i { background: #fff; }
.cristal-d .btns { margin-top: calc(6 * var(--u)); }

.completo { position: absolute; inset: 0; display: flex; align-items: center; gap: 6%; padding: calc(96 * var(--u)) 8% calc(44 * var(--u)); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.bloq.grande .completo { opacity: 1; pointer-events: auto; }
.completo .col { width: 38%; display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); }
.completo .arte-g { width: 58%; aspect-ratio: 1; border-radius: calc(12 * var(--u)); background: url(media/caratula.jpg) center / cover; box-shadow: 0 calc(12 * var(--u)) calc(30 * var(--u)) rgba(0,0,0,.35); cursor: pointer; margin-bottom: calc(8 * var(--u)); }
.completo .col b { font-size: calc(13 * var(--u)); font-weight: 600; } .completo .col small { font-size: calc(11 * var(--u)); color: rgba(255,255,255,.7); margin-top: calc(-4 * var(--u)); }
.completo .col .scrub { width: 100%; } .completo .col .scrub .pista-b i { background: #fff; }
.completo .col .btns { width: 100%; }
.lineas { flex: 1; height: 70%; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); }
.lineas .mover { position: absolute; left: 0; right: 0; top: 0; transition: transform .6s cubic-bezier(.32,.72,0,1); }
.lineas p { font: 700 calc(21 * var(--u))/1.25 var(--display); color: rgba(255,255,255,.35); margin: 0 0 calc(14 * var(--u)); transition: color .4s ease; }
.lineas p.ya { color: #fff; }
.desbloquear { position: absolute; bottom: calc(14 * var(--u)); left: 50%; transform: translateX(-50%); font-size: calc(11 * var(--u)) !important; color: rgba(255,255,255,.7) !important;
  display: flex; align-items: center; gap: calc(5 * var(--u)); padding: calc(5 * var(--u)) calc(12 * var(--u)) !important; border-radius: 99px; background: rgba(255,255,255,.1) !important; z-index: 2; }
.desbloquear:hover { background: rgba(255,255,255,.18) !important; color: #fff !important; }
@container (max-width: 620px) {
  .completo { flex-direction: column; padding-top: calc(80 * var(--u)); gap: calc(10 * var(--u)); }
  .completo .col { width: 80%; } .completo .arte-g { width: 40%; } .lineas { width: 100%; }
}

/* Pruebas bajo la pantalla */
.pruebas { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 0 22px; }
.pruebas button { font: 400 12px/16px var(--text); letter-spacing: -0.12px; color: var(--porcelain); background: transparent; border: 0;
  box-shadow: rgb(110,110,115) 0 0 0 1px; border-radius: 9999px; padding: 7px 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pruebas button:hover { background: rgba(255,255,255,.06); }
.pruebas button[aria-pressed="true"] { background: var(--porcelain); color: #000; }
.escritorio [hidden]:not(.pag) { display: none !important; }
/* La barra flotante se aparta mientras se usa la pantalla, para no tapar el notch. */
.local { transition: transform .35s cubic-bezier(.32,.72,0,1), opacity .25s ease; }
body.usando-mac .local { transform: translateY(-140%); opacity: 0; pointer-events: none; }
