/* ============================================================
   Escritorio estilo macOS (modo oscuro)
   ============================================================ */

:root {
  --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  --barra: 25px;
  --azul: #0a84ff;
  --azul-sel: #0a5fd6;
  --rojo: #ff453a;
  --fondo-ventana: #1e1e1e;
  --fondo-titulo: #2b2b2b;
  --texto: rgba(255, 255, 255, .88);
  --texto-2: rgba(255, 255, 255, .55);
  --texto-3: rgba(255, 255, 255, .32);
  --linea: rgba(255, 255, 255, .08);
  --vidrio: rgba(38, 38, 42, .72);
  --borde-vidrio: inset 0 0 0 .5px rgba(255, 255, 255, .17), 0 0 0 .5px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: #0a0f3a;
  font: 13px/1.35 var(--fuente);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: default; }
::selection { background: rgba(10, 132, 255, .45); }
[hidden] { display: none !important; }

#fondo {
  position: fixed;
  inset: 0;
  background: #0a0f3a url("fondo.svg") center / cover no-repeat;
}

/* ---------------------------------------------------- barra de menú */

#barra {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9500;
  height: var(--barra);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: #fff;
  background: rgba(10, 10, 30, .28);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  text-shadow: 0 0 1px rgba(0, 0, 0, .15);
}
.barra-izq, .barra-der { display: flex; align-items: center; height: 100%; min-width: 0; }
.barra-item {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 5px;
  font-weight: 500;
  white-space: nowrap;
}
.barra-item.abierto, .barra-item:active { background: rgba(255, 255, 255, .22); }
.barra-logo { font-size: 16px; font-weight: 800; padding: 0 12px; letter-spacing: -.02em; }
.barra-app { font-weight: 700; }
.barra-icono { padding: 0 7px; }
.barra-icono svg { width: 17px; height: 17px; display: block; }
.barra-reloj { font-variant-numeric: tabular-nums; }
.barra-edicion {
  height: 18px;
  margin-right: 6px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffd38a;
  background: rgba(255, 159, 10, .22);
}
.barra-edicion::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff9f0a; }

/* ---------------------------------------------------------- menús */

#capa-menus { position: fixed; inset: 0; z-index: 20000; pointer-events: none; }
.menu {
  position: fixed;
  min-width: 220px;
  max-width: 320px;
  padding: 5px;
  pointer-events: auto;
  color: #fff;
  background: rgba(40, 40, 46, .76);
  backdrop-filter: blur(50px) saturate(1.8);
  -webkit-backdrop-filter: blur(50px) saturate(1.8);
  border-radius: 9px;
  box-shadow: var(--borde-vidrio), 0 12px 32px rgba(0, 0, 0, .45);
  animation: aparecer .08s ease-out;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px 0 6px;
  border-radius: 5px;
  white-space: nowrap;
}
.menu-check { width: 14px; flex: none; font-size: 12px; text-align: center; }
.menu-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.menu-atajo { margin-left: 24px; color: rgba(255, 255, 255, .45); }
.menu-item:not(.off):hover { background: var(--azul-sel); }
.menu-item:not(.off):hover .menu-atajo { color: #fff; }
.menu-item.off { color: rgba(255, 255, 255, .28); }
.menu-item.peligro:not(.off):hover { background: #c4312a; }
.menu-sep { height: 1px; margin: 5px 10px; background: rgba(255, 255, 255, .12); }

@keyframes aparecer { from { opacity: 0; } }

/* --------------------------------------------------- íconos escritorio */

#escritorio { position: fixed; inset: var(--barra) 0 0 0; }
#iconos {
  position: absolute;
  top: 12px; right: 12px; bottom: 96px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap-reverse;
  align-content: flex-start;
  gap: 6px 4px;
}
.icono {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 2px 4px;
  outline: none;
}
.icono-img {
  position: relative;
  width: 68px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.icono-img > svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.icono-img .doc-icono { width: 72%; }
.icono-alias { position: absolute; left: 6px; bottom: 4px; width: 15px !important; height: 15px !important; filter: none !important; }
.icono-nombre {
  max-width: 100px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 6px rgba(0, 0, 0, .3);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.icono.sel .icono-img { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .16); }
.icono.sel .icono-nombre { background: var(--azul-sel); text-shadow: none; }
.icono.soltando .icono-img { background: rgba(10, 132, 255, .35); border-color: var(--azul); }

/* ---------------------------------------------------------- ventanas */

#ventanas { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.ventana {
  position: absolute;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background: var(--fondo-ventana);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .85), 0 24px 70px rgba(0, 0, 0, .55), 0 6px 18px rgba(0, 0, 0, .28);
}
.ventana::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: inherit;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16);
  pointer-events: none;
}
.ventana.inactiva { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .7), 0 14px 40px rgba(0, 0, 0, .42); }
.ventana.cerrando, .ventana.minimizando { pointer-events: none; }
.ventana.animando { transition: left .26s cubic-bezier(.16, 1, .3, 1), top .26s cubic-bezier(.16, 1, .3, 1), width .26s cubic-bezier(.16, 1, .3, 1), height .26s cubic-bezier(.16, 1, .3, 1); }

.titulo {
  flex: none;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 76px;
  background: var(--fondo-titulo);
  border-bottom: 1px solid rgba(0, 0, 0, .55);
}
.titulo-txt {
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inactiva .titulo-txt { color: var(--texto-3); }
.cuerpo { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden; }

.semaforo { position: absolute; top: 8px; left: 10px; z-index: 20; display: flex; gap: 8px; }
.sin-marco .semaforo { top: 19px; left: 20px; }
.sem {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .22);
}
.sem svg { width: 8px; height: 8px; opacity: 0; }
.semaforo:hover .sem svg { opacity: 1; }
.sem.cerrar { background: #ff5f57; }
.sem.min { background: #febc2e; }
.sem.max { background: #28c840; }
.sem:active { filter: brightness(.75); }
.inactiva .semaforo:not(:hover) .sem { background: #4c4c4e; box-shadow: none; }
.fija .sem.max, .fija .sem.min { background: #4c4c4e !important; pointer-events: none; }
.fija .sem.max svg, .fija .sem.min svg { display: none; }

.borde { position: absolute; z-index: 25; }
.b-n { top: 0; left: 10px; right: 10px; height: 4px; cursor: ns-resize; }
.b-s { bottom: 0; left: 10px; right: 10px; height: 5px; cursor: ns-resize; }
.b-e { right: 0; top: 10px; bottom: 10px; width: 5px; cursor: ew-resize; }
.b-w { left: 0; top: 10px; bottom: 10px; width: 5px; cursor: ew-resize; }
.b-ne, .b-nw, .b-se, .b-sw { width: 12px; height: 12px; }
.b-ne { top: 0; right: 0; cursor: nesw-resize; }
.b-sw { bottom: 0; left: 0; cursor: nesw-resize; }
.b-nw { top: 0; left: 0; cursor: nwse-resize; }
.b-se { bottom: 0; right: 0; cursor: nwse-resize; }

body.arrastrando .cuerpo, body.arrastrando iframe { pointer-events: none; }
body.arrastrando { user-select: none; }

/* ------------------------------------------------------------ dock */

#dock {
  position: fixed;
  left: 50%;
  bottom: 6px;
  z-index: 9000;
  transform: translateX(-50%);
  height: 66px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 5px 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .28), 0 0 0 .5px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .2);
}
.dock-item {
  --t: 54px;
  position: relative;
  width: var(--t);
  height: var(--t);
  flex: none;
  outline: none;
  transition: width .14s ease-out, height .14s ease-out;
}
#dock.magnificando .dock-item { transition: width .06s linear, height .06s linear; }
.dock-img { width: 100%; height: 100%; }
.dock-img svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.dock-item:active .dock-img { filter: brightness(.65); }
.dock-punto {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  opacity: 0;
}
.dock-item.abierta .dock-punto { opacity: 1; }
.dock-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 7px;
  white-space: nowrap;
  color: #fff;
  background: rgba(40, 40, 46, .82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--borde-vidrio);
  opacity: 0;
  pointer-events: none;
  transition: opacity .1s;
}
.dock-item:hover .dock-tip { opacity: 1; }
.dock-sep { width: 1px; height: 46px; margin: 0 5px 4px; align-self: flex-end; background: rgba(255, 255, 255, .28); }
.dock-item.rebota .dock-img { animation: rebote .55s cubic-bezier(.3, 0, .4, 1) 2; }
@keyframes rebote { 0%, 100% { transform: none; } 45% { transform: translateY(-20px); } }

/* ---------------------------------------------------- avisos y diálogos */

#avisos {
  position: fixed;
  top: calc(var(--barra) + 8px);
  right: 10px;
  z-index: 25000;
  width: 350px;
  max-width: calc(100vw - 20px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.aviso {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 18px;
  pointer-events: auto;
  background: rgba(40, 40, 44, .74);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: var(--borde-vidrio), 0 10px 30px rgba(0, 0, 0, .35);
  animation: aviso-entra .4s cubic-bezier(.2, .9, .3, 1.05);
}
.aviso.sale { animation: aviso-sale .25s ease-in forwards; }
@keyframes aviso-entra { from { opacity: 0; transform: translateX(40px); } }
@keyframes aviso-sale { to { opacity: 0; transform: translateX(40px); } }
.aviso-icono { width: 36px; height: 36px; flex: none; }
.aviso-icono svg { width: 100%; height: 100%; }
.aviso-txt { flex: 1; min-width: 0; padding-top: 1px; }
.aviso-txt b { display: block; font-size: 13px; font-weight: 600; }
.aviso-txt span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .75); white-space: pre-line; overflow-wrap: anywhere; }
.aviso-barra { height: 4px; margin-top: 8px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .15); }
.aviso-barra i { display: block; width: 0; height: 100%; background: var(--azul); transition: width .2s; }

#capa-dialogos {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, .18);
  animation: aparecer .15s;
}
.dialogo {
  width: 270px;
  padding: 20px 16px 16px;
  border-radius: 13px;
  text-align: center;
  background: rgba(46, 46, 50, .86);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  box-shadow: var(--borde-vidrio), 0 22px 60px rgba(0, 0, 0, .5);
  animation: dialogo-entra .22s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes dialogo-entra { from { opacity: 0; transform: scale(.9); } }
.dialogo-icono { width: 64px; height: 64px; margin: 0 auto 10px; }
.dialogo-icono svg { width: 100%; height: 100%; }
.dialogo h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.dialogo p { margin: 0 0 14px; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .75); white-space: pre-line; user-select: text; -webkit-user-select: text; }
.dialogo input {
  width: 100%;
  height: 24px;
  margin: 0 0 14px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  background: rgba(0, 0, 0, .25);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2);
}
.dialogo input:focus { box-shadow: 0 0 0 3px rgba(10, 132, 255, .55); }
.dialogo-icono .emoji-icono { display: block; font-size: 50px; line-height: 64px; }
.dialogo p.dialogo-aviso { margin: -8px 0 12px; color: #ff9c94; }
.dialogo-botones { display: flex; gap: 8px; }
.dialogo-botones.vertical { flex-direction: column; }
.dialogo-botones .boton { flex: 1; height: 28px; }

.boton {
  height: 22px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  background: rgba(255, 255, 255, .15);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .1), 0 0 0 .5px rgba(0, 0, 0, .35), 0 1px 1px rgba(0, 0, 0, .2);
}
.boton:hover { background: rgba(255, 255, 255, .21); }
.boton:active { filter: brightness(.85); }
.boton.primario { background: linear-gradient(#3291ff, #0a6cf0); }
.boton.peligro { background: linear-gradient(#ff5a50, #e0352b); }
.boton:disabled { opacity: .45; pointer-events: none; }

/* ------------------------------------------------------------ Finder */

.ventana.finder, .ventana.ajustes { background: transparent; }
.f-lateral {
  width: 184px;
  flex: none;
  padding: 50px 10px 10px;
  overflow-y: auto;
  background: rgba(46, 46, 52, .72);
  backdrop-filter: blur(50px) saturate(1.6);
  -webkit-backdrop-filter: blur(50px) saturate(1.6);
  border-right: 1px solid rgba(0, 0, 0, .55);
}
.inactiva .f-lateral { background: rgba(40, 40, 44, .9); }
.f-seccion { padding: 12px 8px 4px; font-size: 11px; font-weight: 700; color: var(--texto-3); }
.f-lugar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.f-lugar span { overflow: hidden; text-overflow: ellipsis; }
.f-lugar svg { width: 17px; height: 17px; flex: none; color: var(--azul); }
.f-lugar.sel { background: rgba(255, 255, 255, .1); }
.f-lugar.soltando { background: var(--azul-sel); }
.f-lugar.soltando svg { color: #fff; }

.f-principal { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--fondo-ventana); }
.f-barra {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .6);
  background: #262626;
}
.inactiva .f-barra { background: #222; }
.f-nav { display: flex; gap: 2px; }
.f-btn {
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(255, 255, 255, .78);
  background: transparent;
  font-size: 12.5px;
}
.f-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.f-btn:disabled { color: rgba(255, 255, 255, .2); }
.f-btn svg { width: 16px; height: 16px; flex: none; }
.f-titulo { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inactiva .f-titulo { color: var(--texto-2); }
.f-acciones { display: flex; gap: 2px; }

.f-grilla {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 12px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 14px 4px;
  outline: none;
}
.f-item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; outline: none; }
.f-mini {
  position: relative;
  width: 96px;
  height: 82px;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 7px;
}
.f-mini img, .f-mini video {
  max-width: 86px;
  max-height: 72px;
  object-fit: contain;
  border-radius: 2px;
  background: #111;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255, 255, 255, .14);
  pointer-events: none;
}
.f-mini > svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.f-mini > svg.doc-icono { width: 62%; }
.f-badge {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0, 0, 0, .68);
}
.f-nombre {
  max-width: 104px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.f-sub { margin-top: -3px; font-size: 11px; color: var(--azul); }
.f-item.sel .f-mini { background: rgba(255, 255, 255, .1); }
.f-item.sel .f-nombre { color: #fff; background: var(--azul-sel); }
.inactiva .f-item.sel .f-nombre { background: rgba(255, 255, 255, .18); }
.f-item.soltando .f-mini { background: rgba(10, 132, 255, .3); box-shadow: inset 0 0 0 2px var(--azul); }
.f-principal.soltando .f-grilla { background: rgba(10, 132, 255, .06); box-shadow: inset 0 0 0 3px var(--azul); }
.f-vacio, .m-vacio { white-space: pre-line; }
.f-vacio {
  grid-column: 1 / -1;
  padding: 70px 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--texto-3);
}
.f-pie {
  height: 24px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 11px;
  color: var(--texto-2);
  border-top: 1px solid rgba(255, 255, 255, .06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------ Vista Previa */

.vista .cuerpo { background: #161616; }
.v-escena { position: absolute; inset: 0; }
.v-escena img, .v-escena video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.v-escena .v-previa { filter: blur(8px); transform: scale(1.01); }
.v-escena .v-full { opacity: 0; transition: opacity .2s; }
.v-escena .v-full.listo { opacity: 1; }
.v-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(30, 30, 30, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .15);
  opacity: 0;
  transition: opacity .15s;
}
.v-nav svg { width: 16px; height: 16px; }
.v-prev { left: 12px; }
.v-next { right: 12px; }
.v-contador {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  color: rgba(255, 255, 255, .85);
  background: rgba(30, 30, 30, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.v-video .v-contador { top: 12px; bottom: auto; }
.vista:hover .v-nav, .vista:hover .v-contador, .v-cargando .v-contador { opacity: 1; }
.v-lupa { top: auto; bottom: 12px; right: 12px; margin-top: 0; }
/* En los videos, el botón HQ queda arriba para no tapar los controles; se pinta cuando está en calidad original. */
.v-video .v-lupa { top: 12px; bottom: auto; }
.v-lupa.activo { background: #0a84ff; color: #fff; opacity: 1; }
.v-escena .v-full { cursor: zoom-in; }
.v-zoom { position: absolute; inset: 0; z-index: 2; overflow: auto; background: #161616; cursor: grab; touch-action: none; }
.v-zoom.arrastrando { cursor: grabbing; }
.v-zoom.cargando { background: transparent; cursor: progress; }
.v-zoom.cargando img { visibility: hidden; }
.v-escena .v-zoom img { position: static; width: auto; height: auto; max-width: none; object-fit: fill; }

/* ------------------------------------------------------------ Música */

.musica .cuerpo { flex-direction: column; }
.m-cabecera {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 14px;
  background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
  border-bottom: 1px solid var(--linea);
}
.m-tapa {
  width: 88px;
  height: 88px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), inset 0 0 0 .5px rgba(255, 255, 255, .15);
}
.m-tapa svg { width: 36px; height: 36px; color: rgba(255, 255, 255, .9); }
.m-info { flex: 1; min-width: 0; }
.m-tema { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-sub { margin-top: 1px; font-size: 12px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-controles { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.m-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: none;
}
.m-btn:hover { background: rgba(255, 255, 255, .08); }
.m-btn svg { width: 16px; height: 16px; }
.m-btn.grande svg { width: 22px; height: 22px; }
.m-volumen { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--texto-2); }
.m-volumen svg { width: 15px; height: 15px; }
.m-volumen input { width: 80px; }
.m-progreso { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.m-progreso input { flex: 1; }
.m-lista { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px 10px; }
.m-fila {
  height: 32px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) minmax(0, 120px) 46px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12.5px;
}
.m-fila:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.m-fila:hover { background: rgba(255, 255, 255, .08); }
.m-fila.actual { color: #ff5a6e; }
.m-fila > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-num { text-align: center; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.m-num svg { width: 13px; height: 13px; color: #ff5a6e; vertical-align: -2px; }
.m-carpeta, .m-dur { color: var(--texto-2); }
.m-dur { text-align: right; font-variant-numeric: tabular-nums; }
.m-vacio { padding: 50px 20px; text-align: center; color: var(--texto-3); line-height: 1.5; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  margin: 0;
  border-radius: 2px;
  outline: none;
  background: linear-gradient(to right, rgba(255, 255, 255, .85) var(--p, 0%), rgba(255, 255, 255, .18) var(--p, 0%));
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .1s; }
input[type="range"]:hover::-webkit-slider-thumb { opacity: 1; }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; }

/* ----------------------------------------------------------- Terminal */

.ventana.terminal { background: rgba(26, 26, 28, .84); backdrop-filter: blur(30px) saturate(1.3); -webkit-backdrop-filter: blur(30px) saturate(1.3); }
.terminal .titulo { background: rgba(56, 56, 58, .7); }
.t-caja {
  flex: 1;
  overflow-y: auto;
  padding: 3px 7px 12px;
  font: 12px/1.45 var(--mono);
  color: #e6e6e6;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}
.t-out { min-height: 1.45em; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-linea { display: flex; }
.t-prompt { white-space: pre; }
.t-entrada {
  flex: 1;
  min-width: 0;
  padding: 0 0 0 1ch;
  border: 0;
  outline: none;
  font: inherit;
  color: inherit;
  background: none;
  caret-color: #d6d6d6;
}
.t-dir { color: #6cb6ff; font-weight: 700; }
.t-ok { color: #5fd068; }
.t-err { color: #ff6b6b; }
.t-tenue { color: rgba(255, 255, 255, .45); }
.t-acento { color: #ffd479; }
.t-link { color: #6cb6ff; text-decoration: underline; cursor: pointer; }

/* ------------------------------------------------- bio.txt (hacker) */

.ventana.hacker { background: rgba(5, 9, 6, .93); }
.hacker .titulo { background: rgba(28, 33, 29, .92); }
.hacker .cuerpo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45));
}
.hk { color: #b6f2c4; text-shadow: 0 0 6px rgba(61, 255, 122, .18); cursor: default; }
.hk-ok { color: #3dff7a; font-weight: 700; }
.hk-espera { color: #ffd479; }
.hk-barra { color: #3dff7a; }
.hk-ruido { color: #3dff7a; opacity: .7; }
.hk-descifrado { font-size: 15px; color: #eafff0; }
.hk-cursor {
  display: inline-block;
  width: .62em;
  height: 1.15em;
  vertical-align: -3px;
  background: #3dff7a;
  box-shadow: 0 0 8px rgba(61, 255, 122, .6);
  animation: hk-cursor 1.05s steps(1) infinite;
}
@keyframes hk-cursor { 50% { opacity: 0; } }

/* Título gigante con glitch: dos copias desfasadas (rojo y cian) que se cortan de a ratos. */
.hk-titulo {
  position: relative;
  display: inline-block;
  margin: 4px 0 6px 2px;
  font: 800 72px/1.05 var(--mono);
  letter-spacing: .08em;
  color: #eafff0;
  text-shadow: 0 0 10px rgba(61, 255, 122, .55), 0 0 28px rgba(61, 255, 122, .25);
  animation: hk-parpadeo 5s infinite;
}
.hk-titulo::before, .hk-titulo::after {
  content: attr(data-texto);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-shadow: none;
  clip-path: inset(0 0 100% 0);
}
.hk-titulo::before { color: #ff2b6a; animation: hk-glitch-a 3.3s infinite steps(1); }
.hk-titulo::after { color: #20e3ff; animation: hk-glitch-b 2.7s infinite steps(1); }
@keyframes hk-glitch-a {
  0%, 84%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  85% { clip-path: inset(8% 0 62% 0); transform: translate(-5px, 0); }
  88% { clip-path: inset(52% 0 22% 0); transform: translate(5px, 0); }
  91% { clip-path: inset(30% 0 48% 0); transform: translate(-3px, 0); }
  94% { clip-path: inset(72% 0 6% 0); transform: translate(4px, 0); }
}
@keyframes hk-glitch-b {
  0%, 78%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  79% { clip-path: inset(64% 0 12% 0); transform: translate(5px, 0); }
  82% { clip-path: inset(14% 0 70% 0); transform: translate(-4px, 0); }
  86% { clip-path: inset(40% 0 36% 0); transform: translate(3px, 0); }
}
@keyframes hk-parpadeo { 0%, 90%, 100% { opacity: 1; } 91% { opacity: .55; } 92% { opacity: 1; } 95% { opacity: .8; } }

@media (prefers-reduced-motion: reduce) {
  .hk-titulo, .hk-titulo::before, .hk-titulo::after, .hk-cursor { animation: none; }
}

/* ------------------------------------------------------------- Ajustes */

.ajustes .cuerpo { flex-direction: column; background: var(--fondo-ventana); }
.ajustes .titulo { background: #262626; }
.a-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 22px 24px; }
.a-scroll h2 { margin: 20px 4px 8px; font-size: 13px; font-weight: 700; }
.a-ayuda { margin: 6px 6px 0; font-size: 11.5px; line-height: 1.45; color: var(--texto-2); }
.a-grupo { border-radius: 10px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .09); }
.a-fila { min-height: 40px; display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-top: 1px solid var(--linea); }
.a-fila:first-child { border-top: 0; }
.a-fila > span:first-child { flex: 1; min-width: 0; }
.a-fila.columna { flex-direction: column; align-items: stretch; gap: 6px; }
.a-fila.columna > .boton { align-self: flex-start; }
.a-fila > .a-ayuda { flex: 1; margin: 0; }
.a-pasos { margin: 2px 0 4px; padding-left: 20px; font-size: 12px; line-height: 1.6; color: var(--texto-2); }
.a-campo {
  width: 55%;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12);
}
textarea.a-campo { width: 100%; height: auto; min-height: 76px; padding: 6px 8px; resize: vertical; line-height: 1.4; }
.a-campo:focus { box-shadow: 0 0 0 3px rgba(10, 132, 255, .55); }
select.a-campo { padding: 0 4px; }
.a-link { display: grid; grid-template-columns: 30px 110px minmax(0, 1fr) minmax(0, 1.4fr) 22px; align-items: center; gap: 8px; }
.a-link .a-campo { width: 100%; }
.a-link-icono { width: 30px; height: 30px; }
.a-link-icono svg { width: 100%; height: 100%; }
.a-quitar { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; color: var(--texto-2); background: rgba(255, 255, 255, .08); line-height: 1; }
.a-quitar:hover { color: #fff; background: var(--rojo); }
.a-fondos { display: flex; gap: 14px; align-items: center; padding: 12px; }
.a-fondo-previa { width: 140px; height: 88px; flex: none; border-radius: 7px; background: center / cover no-repeat; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .2), 0 3px 10px rgba(0, 0, 0, .4); }
.a-fondo-acciones { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.a-vp { display: flex; gap: 14px; align-items: center; margin-top: 10px; padding: 12px; }
.a-vp-tarjeta { width: 270px; flex: none; overflow: hidden; border-radius: 10px; background: #1f2c33; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .14), 0 3px 10px rgba(0, 0, 0, .4); }
.a-vp-img { aspect-ratio: 1200 / 630; display: grid; place-items: center; font-size: 11px; color: var(--texto-3); background: #111 center / cover no-repeat; }
.a-vp-txt { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }
.a-vp-dominio { font-size: 10.5px; color: var(--texto-3); }
.a-vp-titulo { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-vp-desc { font-size: 11.5px; color: var(--texto-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-pie { flex: none; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-top: 1px solid var(--linea); }
.a-estado { flex: 1; font-size: 12px; color: var(--texto-2); }

.interruptor { position: relative; width: 32px; height: 19px; flex: none; }
.interruptor input { position: absolute; inset: 0; margin: 0; opacity: 0; }
.interruptor i { position: absolute; inset: 0; border-radius: 10px; background: rgba(255, 255, 255, .18); transition: background .15s; pointer-events: none; }
.interruptor i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.interruptor input:checked + i { background: var(--azul); }
.interruptor input:checked + i::after { transform: translateX(13px); }

/* ------------------------------------------------------------ Acerca */

.acerca .cuerpo { flex-direction: column; align-items: center; padding: 26px 24px 22px; text-align: center; }
.ac-logo {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #6a8bff, #6b3ce0 55%, #d0478f);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), inset 0 0 0 .5px rgba(255, 255, 255, .25);
}
.ac-nombre { margin-top: 16px; font-size: 22px; font-weight: 700; }
.ac-sub { margin-top: 2px; font-size: 12px; color: var(--texto-2); }
.ac-datos { margin-top: 18px; display: grid; grid-template-columns: auto auto; gap: 4px 12px; font-size: 12px; text-align: left; }
.ac-datos dt { color: var(--texto-2); text-align: right; }
.ac-datos dd { margin: 0; }
.ac-boton { margin-top: 18px; }
.ac-autor { margin-top: 14px; font-size: 11px; color: var(--texto-3); }
.ac-autor a { color: var(--azul); text-decoration: none; }

/* ------------------------------------- arranque, apagado, reposo y bloqueo */

.pantalla-negra {
  position: fixed;
  inset: 0;
  z-index: 40000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 34px;
  background: #000;
  color: #fff;
  animation: aparecer .35s ease-out;
}
.pantalla-negra.sale { animation: desaparecer .45s ease-in forwards; }
@keyframes desaparecer { to { opacity: 0; } }
#arranque { animation: none; }
.arranque-logo { font-size: 74px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.arranque-barra { width: 190px; height: 5px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.arranque-barra i { display: block; width: 0; height: 100%; border-radius: 3px; background: #fff; }
.apagada { cursor: pointer; }
.apagada-txt { font-size: 12px; color: rgba(255, 255, 255, .45); }
.reposo { cursor: none; animation-duration: .8s; }

.bloqueo {
  position: fixed;
  inset: 0;
  z-index: 39000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 9vh 16px 8vh;
  color: #fff;
  text-align: center;
  background: rgba(10, 12, 30, .25);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  cursor: pointer;
  animation: aparecer .4s ease-out;
}
.bloqueo.sale { animation: bloqueo-sale .45s ease-in forwards; }
@keyframes bloqueo-sale { to { opacity: 0; transform: translateY(-30px); } }
.bloqueo-fecha { font-size: 22px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.bloqueo-fecha::first-letter { text-transform: uppercase; }
.bloqueo-hora { margin-top: -6px; font-size: clamp(84px, 16vw, 150px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, .2); }
.bloqueo-abajo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bloqueo-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 800;
  background: radial-gradient(circle at 30% 25%, #6a8bff, #6b3ce0 55%, #d0478f);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35), inset 0 0 0 .5px rgba(255, 255, 255, .3);
}
.bloqueo-usuario { font-size: 15px; font-weight: 600; }
.bloqueo-pista { font-size: 12px; color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------- Notas */

.notas .cuerpo { background: #fbf6dc; }
.notas.ventana { background: #fbf6dc; }
.notas .titulo { background: #2b2b2b; }
.nt-lista { width: 190px; flex: none; overflow-y: auto; padding: 8px; background: #f1ead0; border-right: 1px solid #e2d9b8; }
.nt-item { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 6px; color: #3a3524; }
.nt-item b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-item span { font-size: 11px; color: #8a8268; }
.nt-item.sel { background: #e6d98a; }
.nt-hoja { flex: 1; min-width: 0; overflow-y: auto; }
.nt-texto {
  padding: 22px 30px 30px;
  font: 14px/1.65 var(--fuente);
  color: #2d2a20;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}
.nt-texto a { color: #b8860b; }
.nt-vacio { padding: 60px 24px; text-align: center; white-space: pre-line; color: #9a9276; }

/* ------------------------------------------------------------- Safari */

.ventana.safari { background: #1e1e1e; }
.sf-columna { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf-barra {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 86px;
  background: #2b2b2b;
  border-bottom: 1px solid rgba(0, 0, 0, .6);
}
.inactiva .sf-barra { background: #262626; }
.sf-direccion {
  flex: 1;
  max-width: 520px;
  height: 30px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}
.sf-candado { display: flex; color: var(--texto-2); }
.sf-candado svg { width: 12px; height: 12px; }
.sf-campo { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; text-align: center; font-size: 13px; color: var(--texto); }
.sf-campo:focus { text-align: left; }
.sf-pagina { flex: 1; min-height: 0; overflow-y: auto; }
.sf-favoritos { max-width: 620px; margin: 0 auto; padding: 34px 24px; }
.sf-favoritos h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.sf-favoritos h2:not(:first-child) { margin-top: 30px; }
.sf-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 16px 10px; }
.sf-fav { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 2px; border: 0; border-radius: 10px; background: none; font-size: 12px; color: var(--texto); }
.sf-fav:hover { background: rgba(255, 255, 255, .06); }
.sf-fav-icono { width: 62px; height: 62px; }
.sf-fav-icono svg { width: 100%; height: 100%; }
.sf-nada { color: var(--texto-3); }
.sf-perfil { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px 20px; text-align: center; background: #000; }
.sf-avatar { width: 116px; height: 116px; padding: 4px; border-radius: 50%; }
.sf-avatar > div {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 4px solid #000;
  font-size: 52px;
  font-weight: 800;
  background: radial-gradient(circle at 30% 25%, #6a8bff, #6b3ce0 55%, #d0478f);
}
.sf-usuario { margin-top: 12px; font-size: 20px; font-weight: 700; }
.sf-plataforma { font-size: 13px; color: var(--texto-2); }
.sf-abrir { height: 30px; margin-top: 16px; padding: 0 18px; }
.sf-nota { margin-top: 4px; font-size: 11px; color: var(--texto-3); }

/* ----------------------------------------------------------- Spotlight */

.sp-capa { position: fixed; inset: 0; z-index: 30000; display: flex; justify-content: center; align-items: flex-start; padding: 18vh 16px 0; }
.spotlight {
  width: 640px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(40, 40, 46, .78);
  backdrop-filter: blur(50px) saturate(1.8);
  -webkit-backdrop-filter: blur(50px) saturate(1.8);
  box-shadow: var(--borde-vidrio), 0 24px 70px rgba(0, 0, 0, .5);
  animation: dialogo-entra .18s cubic-bezier(.2, .9, .3, 1.1);
}
.sp-barra { height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.sp-barra svg { width: 22px; height: 22px; color: var(--texto-2); }
.sp-campo { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 22px; font-weight: 300; color: #fff; }
.sp-campo::placeholder { color: var(--texto-3); }
.sp-lista:not(:empty) { padding: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
.sp-fila { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 8px; }
.sp-fila.sel { background: var(--azul-sel); }
.sp-icono { width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.sp-icono svg { width: 100%; height: 100%; }
.sp-icono img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.sp-fila b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-sub { margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-fila.sel .sp-sub { color: rgba(255, 255, 255, .8); }
.sp-nada { padding: 14px; text-align: center; color: var(--texto-3); }

/* ------------------------------------------------------------ celular */

@media (max-width: 699px) {
  .barra-menu, .barra-app, .barra-icono { display: none; }
  #iconos {
    top: 16px; left: 16px; right: 16px; bottom: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 0;
  }
  .icono { width: 25%; }
  .ventana {
    left: 0 !important;
    top: var(--barra) !important;
    width: 100% !important;
    height: calc(100% - var(--barra) - 84px) !important;
    border-radius: 0 0 14px 14px;
  }
  .borde { display: none; }
  .f-lateral { display: none; }
  .finder .f-barra { padding-left: 76px; }
  .sin-marco .semaforo { left: 14px; }
  .v-nav { opacity: .9; }
  .v-contador { opacity: 1; }
  #dock { max-width: calc(100% - 16px); height: 60px; overflow-x: auto; overflow-y: hidden; }
  .dock-item { --t: 38px; }
  #dock { height: 52px; gap: 1px; }
  .dock-sep { height: 34px; margin: 0 3px 4px; }
  .dock-tip { display: none; }
  .nt-lista { width: 128px; }
  .nt-texto { padding: 18px 18px 24px; }
  .sf-barra { padding-left: 76px; }
  .sf-perfil { justify-content: flex-start; padding-top: 50px; }
  .m-fila { grid-template-columns: 22px minmax(0, 1fr) 40px; }
  .m-carpeta { display: none; }
  .m-volumen { display: none; }
  .a-scroll { padding: 4px 14px 20px; }
  .a-link { grid-template-columns: 30px minmax(0, 1fr) 22px; }
  .a-link > .a-campo { grid-column: 2; }
  .a-link > .a-quitar { grid-column: 3; grid-row: 1; }
  .a-vp { flex-direction: column; align-items: stretch; }
  .a-vp-tarjeta { width: 100%; }
}

/* ------------------------------------------- Mensajes ("una última vez") */

.f-mini > svg.exec-icono { width: 74%; }
.ventana.mensajes { background: transparent; }
.ms-lateral {
  width: 250px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: rgba(46, 46, 52, .72);
  backdrop-filter: blur(50px) saturate(1.6);
  -webkit-backdrop-filter: blur(50px) saturate(1.6);
  border-right: 1px solid rgba(0, 0, 0, .55);
}
.inactiva .ms-lateral { background: rgba(40, 40, 44, .9); }
.ms-lateral-barra { height: 52px; flex: none; display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; }
.ms-boton {
  width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--texto-2);
}
.ms-boton:hover { background: rgba(255, 255, 255, .08); }
.ms-boton:active { background: rgba(255, 255, 255, .14); }
.ms-boton svg { width: 19px; height: 19px; }
.ms-buscar {
  height: 28px;
  margin: 0 10px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  color: var(--texto-3);
}
.ms-buscar svg { display: block; width: 14px; height: 14px; }
.ms-buscar-campo { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 13px; color: var(--texto); user-select: text; -webkit-user-select: text; }
.ms-buscar-campo::placeholder { color: var(--texto-3); }
.ms-lista { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.ms-fila {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
}
.ms-fila.sel { background: var(--azul); }
.inactiva .ms-fila.sel { background: rgba(255, 255, 255, .12); }
.ms-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(#a7acb7, #858a95);
  font: 500 19px/1 -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "Helvetica Neue", sans-serif;
  color: #fff;
  letter-spacing: -.01em;
}
.ms-fila-info { flex: 1; min-width: 0; }
.ms-fila-arriba { display: flex; align-items: baseline; gap: 6px; }
.ms-fila-arriba b { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-fila-hora { flex: none; font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.ms-fila-txt {
  margin-top: 1px;
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ms-fila:not(.sel) .ms-fila-hora, .inactiva .ms-fila-hora { color: var(--texto-3); }
.ms-fila:not(.sel) .ms-fila-txt, .inactiva .ms-fila-txt { color: var(--texto-2); }

.ms-chat { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--fondo-ventana); }
.ms-barra {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 18px;
  background: #282828;
  border-bottom: 1px solid rgba(0, 0, 0, .6);
}
.inactiva .ms-barra { background: #242424; }
.ms-para { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-para span { color: var(--texto-2); }
.ms-para b { font-weight: 500; color: var(--texto); }

.ms-hilo {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 10px 18px 12px;
}
.ms-fecha { margin: 14px 0 8px; text-align: center; font-size: 11px; line-height: 1.4; color: var(--texto-2); }
.ms-fecha b { font-weight: 600; }
.ms-hilo > .ms-fecha:first-child { margin-top: auto; padding-top: 10px; }

.ms-b {
  position: relative;
  max-width: min(70%, 420px);
  margin-top: 2px;
  padding: 6px 12px 7px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
  z-index: 0;
}
.ms-b.grupo { margin-top: 9px; }
.ms-fecha + .ms-b { margin-top: 2px; }
.ms-b.yo { align-self: flex-end; background: var(--azul); color: #fff; }
.ms-b.ella { align-self: flex-start; background: #3a3a3c; color: #fff; }
/* La colita de la última burbuja de cada grupo. */
.ms-b.cola::before, .ms-b.cola::after { content: ""; position: absolute; z-index: -1; bottom: 0; height: 18px; }
.ms-b.yo.cola::before { right: -7px; width: 20px; background: var(--azul); border-bottom-left-radius: 16px 14px; }
.ms-b.yo.cola::after { right: -10px; width: 10px; background: var(--fondo-ventana); border-bottom-left-radius: 10px; }
.ms-b.ella.cola::before { left: -7px; width: 20px; background: #3a3a3c; border-bottom-right-radius: 16px 14px; }
.ms-b.ella.cola::after { left: -10px; width: 10px; background: var(--fondo-ventana); border-bottom-right-radius: 10px; }
.ms-b.entra { animation: ms-entra .32s cubic-bezier(.2, 1.25, .4, 1) both; }
.ms-b.yo.entra { transform-origin: 100% 100%; }
.ms-b.ella.entra { transform-origin: 0 100%; }
@keyframes ms-entra { from { opacity: 0; transform: translateY(8px) scale(.82); } }

.ms-b.fallo { margin-right: 26px; }
.ms-fallo {
  position: absolute;
  right: -27px;
  bottom: 1px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rojo);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}
.ms-estado { align-self: flex-end; margin: 3px 4px 0 0; font-size: 11px; font-weight: 500; color: var(--texto-2); }
.ms-estado.fallo { margin-right: 30px; color: var(--rojo); }

.ms-puntos { display: flex; gap: 4px; padding: 10px 13px; }
.ms-puntos i { width: 7px; height: 7px; border-radius: 50%; background: #9a9aa0; animation: ms-punto 1.25s infinite ease-in-out; }
.ms-puntos i:nth-child(2) { animation-delay: .18s; }
.ms-puntos i:nth-child(3) { animation-delay: .36s; }
@keyframes ms-punto { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

.ms-pie { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 14px 12px; }
.ms-apps { display: grid; place-items: center; width: 28px; height: 30px; flex: none; color: var(--texto-3); }
.ms-apps svg { width: 22px; height: 22px; }
.ms-caja {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 4px 0 12px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .17);
}
.ms-campo {
  flex: 1;
  min-width: 0;
  height: 30px;
  max-height: 110px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  outline: none;
  resize: none;
  background: none;
  font-size: 14px;
  line-height: 18px;
  color: var(--texto);
  user-select: text;
  -webkit-user-select: text;
}
.ms-campo::placeholder { color: var(--texto-3); }
.ms-ondas { display: grid; place-items: center; height: 30px; padding: 0 5px; color: var(--texto-3); }
.ms-ondas svg { width: 18px; height: 18px; }
.ms-enviar { display: grid; place-items: center; width: 26px; height: 30px; padding: 0; border: 0; background: none; }
.ms-enviar svg { width: 23px; height: 23px; }
.ms-enviar:active { filter: brightness(.8); }

@media (max-width: 699px) {
  .ms-lateral { display: none; }
  .ms-barra { padding-left: 76px; }
  .ms-hilo { padding: 8px 14px 10px; }
  .ms-b { max-width: 78%; font-size: 15px; }
  .ms-campo { font-size: 16px; }
  .ms-pie { padding: 8px 10px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-b.entra { animation: none; }
}

/* La Terminal del ejecutable "m": el cursor como el de la Terminal de la Mac (bloque gris, sin brillo). */
.ventana.ue .hk-cursor { background: rgba(255, 255, 255, .7); box-shadow: none; animation: none; }

/* ------------------------------------------------ ifs&stg (recitales) */

/* Paleta: la sala a oscuras, el texto como luz blanca, y el color de cada noche (--luz-h / --luz-s), que sale
   de la imagen de sus videos. Letra de afiche: DIN Condensed (Mac y iPhone); en Windows, Bahnschrift. */
.ventana.recitales {
  --rc-sala: #140f12;
  --rc-texto: #f5f0ea;
  --rc-humo: rgba(245, 240, 234, .62);
  --rc-ambar: #f5b83d;
  --rc-afiche: "DIN Condensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", "sans-serif-condensed", sans-serif;
  --rc-sale: cubic-bezier(.23, 1, .32, 1);
  background: var(--rc-sala);
  color: var(--rc-texto);
}
.recitales .cuerpo { flex-direction: column; }

/* La barra de arriba flota sobre el contenido, que pasa por debajo (como en Música o Fotos de la Mac y en
   cualquier app del iPhone). Arriba de todo se funde con la sala; al hacer scroll se vuelve vidrio con una
   línea finita, y el título grande se achica y pasa a la barra. */
.ventana.recitales { --rc-barra-alto: 52px; }
.rc-barra {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: var(--rc-barra-alto);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 82px;
  background: rgba(20, 15, 18, 0);
  box-shadow: 0 .5px 0 rgba(245, 240, 234, 0);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.rc-bajo .rc-barra {
  background: rgba(24, 18, 22, .72);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: 0 .5px 0 rgba(245, 240, 234, .1);
}
.rc-titulos { flex: 1; min-width: 0; }
.rc-titulo {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .22s var(--rc-sale);
}
.rc-titulo-ve .rc-titulo { opacity: 1; transform: none; }
.inactiva .rc-titulo { color: var(--texto-2); }

/* Volver: un botón de la barra con la flecha (en el celular, «‹ ifs&stg» en ámbar, como en el iPhone) */
.rc-atras {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 28px;
  min-width: 30px;
  justify-content: center;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rc-texto);
  font: 400 13px/1 var(--fuente);
  transition: background-color .15s ease, transform .16s var(--rc-sale), opacity .15s ease;
}
.rc-atras[hidden] { display: none; }
.rc-atras-flecha svg { display: block; width: 17px; height: 17px; }
.rc-atras-txt { display: none; }
@media (hover: hover) and (pointer: fine) { .rc-atras:hover { background: rgba(245, 240, 234, .1); } }
.rc-atras:active { transform: scale(.94); }
.rc-atras:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--azul); }

/* El selector Entradas / Lista: la marca se desliza de un lado al otro */
.rc-vistas {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
  border-radius: 8px;
  background: rgba(245, 240, 234, .08);
}
.rc-vistas[hidden] { display: none; }
.rc-vistas::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 6px;
  background: rgba(245, 240, 234, .2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35), inset 0 .5px 0 rgba(255, 255, 255, .14);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .3s var(--rc-sale);
}
.rc-vista {
  position: relative;
  z-index: 1;
  height: 22px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: rgba(245, 240, 234, .62);
  font: 500 12px/1 var(--fuente);
  transition: color .2s ease;
}
.rc-vista[aria-selected="true"] { color: #fff; }
.rc-vista:focus-visible { outline: none; border-radius: 6px; box-shadow: 0 0 0 2px var(--azul); }

.rc-contenido {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  outline: none;
  background: var(--rc-sala);
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 240, 234, .22) transparent;
}
.rc-entra { animation: rc-entra .24s var(--rc-sale); }
@keyframes rc-entra { from { opacity: 0; transform: scale(.985); } }

/* El título grande de la lista (como «Biblioteca» en Música o los títulos grandes del iPhone) */
.rc-cabecera { grid-column: 1 / -1; }
.rc-cab-titulo { margin: 0; font: 700 28px/1.1 var(--fuente); letter-spacing: -.02em; }
.rc-cab-sub { margin: 3px 0 0; font-size: 13px; color: var(--rc-humo); font-variant-numeric: tabular-nums; }

/* Letra de afiche (en Windows, Bahnschrift se angosta con font-stretch) */
.rc-grande, .rc-num, .rc-chica, .rc-c-fecha { font-family: var(--rc-afiche); font-stretch: condensed; font-weight: 700; }

/* Las entradas */
.rc-entradas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  align-content: start;
  gap: 26px 18px;
  padding: calc(var(--rc-barra-alto) + 4px) 22px 36px;
}
.rc-entradas .rc-cabecera { margin-bottom: -6px; }
.rc-entrada {
  --luz-h: 330;
  --luz-s: 10%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: hsl(var(--luz-h) var(--luz-s) 21%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 28px -10px rgba(0, 0, 0, .7);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s var(--rc-sale), box-shadow .22s var(--rc-sale), background-color .5s ease;
}
/* Con mouse, la entrada se levanta apenas (solo en compus: en el celular no hay «pasar por encima») */
@media (hover: hover) and (pointer: fine) {
  .rc-entrada:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 20px 36px -12px rgba(0, 0, 0, .8); }
}
.rc-entrada:active { transform: scale(.97); transition-duration: .12s; }
.rc-entrada:focus-visible { box-shadow: 0 0 0 3px var(--azul), 0 12px 28px -10px rgba(0, 0, 0, .7); }
.rc-foto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px 12px 0 0; background: hsl(var(--luz-h) var(--luz-s) 11%); }
.rc-foto img, .rc-adelanto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-foto::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; }
.rc-adelanto { opacity: 0; transition: opacity .2s ease-out; }
.rc-adelanto.ve { opacity: 1; }
.rc-cuantos {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* El troquel: la línea punteada y los dos cortes redondos a los costados */
.rc-talon { position: relative; padding: 13px 14px 14px; border-top: 2px dashed rgba(255, 255, 255, .24); }
.rc-talon::before, .rc-talon::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--rc-sala); }
.rc-talon::before { left: -8px; }
.rc-talon::after { right: -8px; }
.rc-renglon { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rc-entrada .rc-grande { font-size: 36px; line-height: .9; text-transform: uppercase; padding-top: .08em; }
.rc-entrada.rc-con-banda .rc-grande { font-size: 26px; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-num { flex: none; padding-top: 3px; font-size: 13px; line-height: 1; opacity: .6; font-variant-numeric: tabular-nums; }
.rc-chica { margin: 4px 0 0; font-size: 14px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; opacity: .72; }
.rc-donde { margin-top: 9px; font-size: 12px; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lista */
/* En la Mac: una tabla como la de Música, con las filas alternadas y la selección redondeada */
.rc-tabla { padding: calc(var(--rc-barra-alto) + 4px) 0 20px; }
.rc-tabla .rc-cabecera { padding: 0 22px 14px; }
.rc-grupo { padding: 0 10px; }
.rc-fila {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.rc-fila span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-c-mini, .rc-c-ir { display: none; }
.rc-grupo .rc-fila:nth-child(even) { background: rgba(255, 255, 255, .035); }
@media (hover: hover) and (pointer: fine) { .rc-grupo .rc-fila:hover { background: rgba(255, 255, 255, .08); } }
.rc-grupo .rc-fila:active { background: rgba(255, 255, 255, .11); }
.rc-grupo .rc-fila:focus-visible { background: var(--azul-sel); }
.rc-encabezado {
  position: sticky;
  top: var(--rc-barra-alto);
  z-index: 3;
  height: 28px;
  margin: 0 10px;
  padding: 0 8px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--rc-humo);
  background: var(--rc-sala);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.rc-bajo .rc-encabezado { background: transparent; box-shadow: none; }
.rc-bajo .rc-tabla ~ .rc-barra { box-shadow: none; }   /* una sola línea: la del encabezado */
.rc-bajo .rc-encabezado::before {
  content: "";
  position: absolute;
  inset: 0 -10px;
  z-index: -1;
  background: rgba(24, 18, 22, .72);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: 0 .5px 0 rgba(245, 240, 234, .1);
}
.rc-fila .rc-c-fecha { font-size: 16px; padding-top: 2px; letter-spacing: .02em; }
.rc-encabezado .rc-c-fecha { font: inherit; padding: 0; letter-spacing: 0; }
.rc-c-cuenta { color: var(--rc-humo); text-align: right; font-variant-numeric: tabular-nums; }
.rc-c-banda { font-weight: 600; }
.rc-flotante {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
  pointer-events: none;
}
.rc-flotante[hidden] { display: none; }

/* Una noche: arriba los datos, después el escenario y la tira con todo lo de esa noche */
.rc-noche {
  --luz-h: 330;
  --luz-s: 10%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  container-type: inline-size;
  padding-top: var(--rc-barra-alto);
  background: radial-gradient(110% 60% at 0% 0%, hsl(var(--luz-h) var(--luz-s) 32% / .55), transparent 70%), var(--rc-sala);
}
.rc-info { display: flex; align-items: flex-end; gap: 16px; padding: 6px 22px 16px; flex: none; }
.rc-info-textos { flex: 1; min-width: 0; }
.rc-info .rc-grande { margin: 0; font-size: 50px; line-height: .88; text-transform: uppercase; padding-top: .08em; text-wrap: balance; }
.rc-info .rc-chica { margin-top: 5px; font-size: 17px; }
.rc-linea { margin: 10px 0 0; font-size: 13px; line-height: 1.35; text-wrap: pretty; }
.rc-linea .rc-revisar { margin-left: 8px; vertical-align: 1px; }
.rc-cifras { margin: 3px 0 0; font-size: 12px; color: var(--rc-humo); font-variant-numeric: tabular-nums; }
.rc-ver {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 17px 0 14px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #17121a;
  font: 600 13px/1 var(--fuente);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .6);
  transition: transform .16s var(--rc-sale);
}
.rc-ver svg { display: block; width: 13px; height: 13px; margin-left: 1px; }
.rc-ver:active { transform: scale(.97); }
.rc-ver:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--azul); }
.rc-botones { flex: none; display: flex; align-items: center; gap: 8px; }
.rc-leer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 7px;
  border: 1px solid rgba(245, 240, 234, .2);
  border-radius: 18px;
  background: rgba(245, 240, 234, .07);
  color: var(--rc-texto);
  font: 600 13px/1 var(--fuente);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .16s var(--rc-sale), background-color .2s ease, border-color .2s ease;
}
.rc-leer-i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rc-texto);
  color: #17121a;
  font: italic 700 14px/1 Georgia, "Times New Roman", serif;
  padding-right: 1px;
}
@media (hover: hover) { .rc-leer:hover { background: rgba(245, 240, 234, .13); border-color: rgba(245, 240, 234, .32); } }
.rc-leer:active { transform: scale(.97); }
.rc-leer:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--azul); }

/* La hoja de Info («escrita por i»): entra desde la derecha, sobre la noche */
.rc-hoja {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  background: rgba(8, 5, 7, 0);
  transition: background-color .22s ease;
}
.rc-hoja.abierta { background: rgba(8, 5, 7, .42); }
.rc-hoja-papel {
  width: min(430px, 100%);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 26px 34px;
  background: rgba(22, 16, 20, .9);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  backdrop-filter: blur(28px) saturate(1.3);
  border-left: 1px solid rgba(245, 240, 234, .08);
  box-shadow: -30px 0 70px -24px rgba(0, 0, 0, .7);
  color: var(--rc-texto);
  opacity: 0;
  transform: translateX(28px);
  transition: transform .3s var(--rc-sale), opacity .2s ease;
  -webkit-font-smoothing: antialiased;
}
.rc-hoja.abierta .rc-hoja-papel { opacity: 1; transform: none; }
.rc-hoja-cabeza { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.rc-hoja-firma { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rc-humo); }
.rc-hoja-firma b { margin-left: 2px; font: italic 700 17px/1 Georgia, "Times New Roman", serif; letter-spacing: 0; text-transform: none; color: var(--rc-ambar); }
.rc-hoja-cerrar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 240, 234, .08);
  color: var(--rc-texto);
  transition: background-color .15s ease, transform .16s var(--rc-sale);
}
.rc-hoja-cerrar svg { width: 10px; height: 10px; }
@media (hover: hover) { .rc-hoja-cerrar:hover { background: rgba(245, 240, 234, .16); } }
.rc-hoja-cerrar:active { transform: scale(.94); }
.rc-hoja-cerrar:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--azul); }
.rc-hoja-titulo { margin: 0; font-family: var(--rc-afiche); font-stretch: condensed; font-weight: 700; font-size: 38px; line-height: .9; text-transform: uppercase; text-wrap: balance; padding-top: .08em; }
.rc-hoja-fecha { margin: 9px 0 26px; padding-bottom: 20px; border-bottom: 1px dashed rgba(245, 240, 234, .16); font-size: 12px; color: var(--rc-humo); }
.rc-hoja-texto p { margin: 0 0 1.05em; font: 15.5px/1.68 Georgia, "Iowan Old Style", "Times New Roman", serif; white-space: pre-wrap; text-wrap: pretty; }
.rc-hoja-texto p.rc-hoja-vacia { font: 13px/1.5 var(--fuente); color: var(--rc-humo); }
.rc-dialogo textarea {
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 6px 7px;
  border: 0;
  border-radius: 5px;
  outline: none;
  resize: vertical;
  font: inherit;
  color: inherit;
  line-height: 1.4;
  user-select: text;
  -webkit-user-select: text;
  background: rgba(0, 0, 0, .25);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2);
}
.rc-dialogo textarea:focus { box-shadow: 0 0 0 3px rgba(10, 132, 255, .55); }
.rc-campo:has(textarea) { align-items: start; }
.rc-campo:has(textarea) span { padding-top: 5px; }
.rc-nota { margin: -6px 22px 14px; max-width: 64ch; font-size: 13px; line-height: 1.5; color: var(--rc-humo); white-space: pre-wrap; text-wrap: pretty; }
.rc-noche > .rc-ayuda { margin: 24px; }

.rc-sala { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: 0 22px 18px; transition: grid-template-columns .4s var(--rc-sale); }
/* El escenario tiene la forma justa del video (ancho y alto los pone recitales.js): sin barras negras */
.rc-escenario {
  position: relative;
  min-height: 0;
  justify-self: center;
  align-self: start;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -18px rgba(0, 0, 0, .8);
  container: escenario / inline-size;
  transition: width .4s var(--rc-sale), height .4s var(--rc-sale);
}
/* Un video que quedó grabado de costado: se dibuja con alto y ancho cambiados y se gira */
.rc-video.rc-de-lado { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.rc-fondo { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(40px) saturate(1.4) brightness(.5); z-index: -1; }
.rc-fondo:not([src]), .rc-fondo[src=""] { display: none; }
/* Una sola celda del tamaño del escenario: así el video (vertical u horizontal) entra entero y no se estira */
.rc-marco { position: absolute; inset: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.rc-marco > * { grid-area: 1 / 1; }
.rc-video, .rc-foto-grande, .rc-youtube, .rc-marco > iframe { width: 100%; height: 100%; object-fit: contain; border: 0; background: transparent; }
/* Con YouTube en el escenario no va nada encima de su reproductor (lo piden sus reglas): las flechas se
   esconden y nuestros controles bajan a una franja propia, debajo del video */
.rc-con-yt .rc-pasos { display: none; }
.rc-con-barra .rc-marco { bottom: auto; height: calc(100% - var(--franja, 56px)); }
.rc-con-barra .rc-controles,
.rc-escenario.rc-con-barra:fullscreen .rc-controles {
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  min-height: 56px;
  border-radius: 0;
  transform: none;
  background: #120d10;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .08);
}
/* El reproductor de YouTube armado en grande y achicado (para que mande 1080p) */
.rc-yt-caja { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.rc-yt-caja > iframe, .rc-yt-caja > .rc-youtube { display: block; width: 100%; height: 100%; border: 0; }
/* HQ / SQ: con los botones de arriba, del mismo alto; la marca blanca se desliza */
.rc-calidad {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 36px;
  padding: 3px;
  border-radius: 18px;
  background: rgba(245, 240, 234, .08);
  box-shadow: inset 0 0 0 1px rgba(245, 240, 234, .16);
}
.rc-calidad[hidden] { display: none; }
.rc-calidad::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 15px;
  background: var(--rc-texto);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .3s var(--rc-sale);
}
.rc-calidad button {
  position: relative;
  z-index: 1;
  min-width: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: rgba(245, 240, 234, .7);
  font: 700 12px/1 var(--fuente);
  letter-spacing: .04em;
  transition: color .2s ease;
}
.rc-calidad button[aria-pressed="true"] { color: #17121a; }
.rc-calidad button:active { opacity: .7; }
.rc-calidad button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--azul); }
.rc-video[hidden] { display: none; }
.rc-play {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #17121a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .16s var(--rc-sale);
}
.rc-play svg { width: 26px; height: 26px; margin-left: 4px; }  /* el triángulo, corrido a ojo para que se vea centrado */
.rc-play:active { transform: scale(.96); }
.rc-play[hidden] { display: none; }

/* Los controles del video: una barra de vidrio abajo del escenario, siempre a la vista (como QuickTime) */
.rc-controles {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 0 8px;
  border-radius: 14px;
  background: rgba(20, 15, 18, .58);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 8px 24px -8px rgba(0, 0, 0, .6);
  color: #fff;
}
.rc-controles[hidden] { display: none; }
.rc-ctl {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  transition: background-color .15s ease, transform .14s var(--rc-sale);
}
.rc-ctl svg { display: block; width: 22px; height: 22px; }
.rc-ctl-play svg { width: 20px; height: 20px; }
.rc-ctl-chico svg { width: 19px; height: 19px; }
.rc-ctl-chico { color: rgba(255, 255, 255, .85); }
@media (hover: hover) and (pointer: fine) { .rc-ctl:hover { background: rgba(255, 255, 255, .12); } }
.rc-ctl:active { transform: scale(.9); }
.rc-ctl:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--azul); }
.rc-ctl-t { flex: none; min-width: 38px; padding: 0 4px; font-size: 11.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
/* La barra del tiempo: fina, se engorda al agarrarla */
.rc-ctl-barra {
  --p: 0%;
  flex: 1;
  min-width: 40px;
  height: 22px;
  margin: 0 2px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.rc-ctl-barra::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #fff var(--p), rgba(255, 255, 255, .28) var(--p));
  transition: height .15s ease;
}
.rc-ctl-barra::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.rc-ctl-barra::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.rc-ctl-barra::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  transform: scale(.75);
  transition: transform .15s var(--rc-sale);
}
.rc-ctl-barra::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.rc-ctl-barra:hover::-webkit-slider-thumb, .rc-ctl-barra:active::-webkit-slider-thumb, .rc-ctl-barra:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.rc-ctl-barra:focus-visible { outline: none; }
.rc-ctl-barra:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--azul); }
/* Escenario angosto (un video vertical): la barra del tiempo arriba a todo el ancho y los botones abajo */
@container escenario (max-width: 310px) {
  .rc-controles { flex-wrap: wrap; height: auto; padding: 4px 6px 4px; row-gap: 0; }
  .rc-ctl-barra { order: -1; flex: 1 0 100%; margin: 0; }
  .rc-ctl { width: 30px; height: 32px; }
  .rc-ctl-t { min-width: 0; padding: 0 2px; font-size: 11px; }
  .rc-ctl-t:first-of-type { margin-left: auto; }
  .rc-ctl-t:first-of-type::after { content: " /"; color: rgba(255, 255, 255, .5); }
  .rc-ctl-chico:nth-last-child(2) { margin-left: auto; }
}
@container escenario (max-width: 236px) {
  .rc-ctl-10 { display: none; }
}
/* En pantalla completa, el escenario ocupa todo */
.rc-escenario:fullscreen { border-radius: 0; box-shadow: none; }
.rc-escenario:fullscreen .rc-controles { left: 50%; right: auto; bottom: 24px; width: min(720px, calc(100% - 48px)); transform: translateX(-50%); }
.rc-ver.andando { background: rgba(245, 240, 234, .16); color: var(--rc-texto); box-shadow: inset 0 0 0 1px rgba(245, 240, 234, .22); }
.rc-pasos {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.rc-paso { position: relative; display: grid; place-items: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; transition: background-color .15s ease, opacity .15s ease; }
.rc-paso::before { content: ""; position: absolute; inset: -6px -2px; }  /* más lugar para tocar */
.rc-paso svg { width: 15px; height: 15px; }
.rc-paso:disabled { opacity: .3; }
.rc-contador { min-width: 54px; text-align: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.rc-tira { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 3px; margin: -3px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.rc-clip {
  position: relative;
  flex: none;
  width: 72px;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  opacity: .62;
  transition: opacity .15s ease, transform .16s var(--rc-sale);
}
.rc-clip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-clip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; }
.rc-clip.actual { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.rc-clip:active { transform: scale(.96); }
.rc-clip:focus-visible { outline: none; opacity: 1; box-shadow: 0 0 0 2px var(--azul); }
@media (hover: hover) and (pointer: fine) { .rc-clip:hover { opacity: 1; } }
.rc-sin-imagen { height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .45); }
.rc-sin-imagen svg { width: 24px; height: 24px; }
.rc-dur { position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Con lugar de sobra, la tira va al costado del escenario */
@container (min-width: 720px) {
  .rc-sala { grid-template-columns: minmax(0, 1fr) 232px; grid-template-rows: minmax(0, 1fr); }
  .rc-escenario { justify-self: start; }
  /* Con un video vertical, la tira se ensancha y entra en más columnas */
  .rc-tira { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-rows: max-content; align-content: start; overflow-x: hidden; overflow-y: auto; }
  .rc-clip { width: auto; }
}

.rc-vacio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; color: var(--rc-humo); }
.rc-vacio p { margin: 0; }
.rc-vacio-icono { width: 84px; height: 84px; margin-bottom: 6px; }
.rc-vacio-icono svg { width: 100%; height: 100%; }
.rc-ayuda { font-size: 12px; color: var(--texto-3); text-align: center; }

/* Datos del recital (panel) */
.rc-dialogo { width: 330px; }
.rc-campo { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.rc-campo span { text-align: right; color: var(--texto-2); }
.rc-campo input { margin: 0; }
.rc-dialogo .dialogo-botones { margin-top: 14px; }

/* Para revisar (solo en el panel) */
.rc-revisar {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--rc-ambar, #f5b83d);
  color: #3d2a00;
  font: 700 10px/1.2 var(--fuente);
}
.rc-foto .rc-revisar { position: absolute; left: 8px; top: 8px; z-index: 1; }
.rc-sin-subir { position: absolute; left: 4px; top: 4px; padding: 1px 4px; border-radius: 4px; background: rgba(245, 184, 61, .95); color: #3d2a00; font-size: 9.5px; font-weight: 700; }
.rc-btn-revisar { color: #f5b83d; }
.rc-pista { margin: -2px 0 12px; padding: 7px 9px; border-radius: 6px; background: rgba(245, 184, 61, .14); color: inherit; font-size: 11.5px; text-align: left; }
.rc-revision { width: 380px; max-height: min(560px, calc(100vh - 80px)); overflow-y: auto; }
.rc-revision h4 { margin: 14px 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-3); text-align: left; }
.rc-rev-lista { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.rc-rev-fila { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: baseline; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 12.5px; text-align: left; }
button.rc-rev-fila { cursor: pointer; }
button.rc-rev-fila:hover, button.rc-rev-fila:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.rc-rev-fecha { color: var(--texto-2); font-variant-numeric: tabular-nums; font-size: 11.5px; white-space: nowrap; }
.rc-rev-texto { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-rev-texto small { display: block; color: #f5b83d; font-size: 11px; white-space: normal; }
.rc-rev-apartado .rc-rev-texto small { color: var(--texto-3); }

/* En el celular, ifs&stg se porta como una app del iPhone: título grande de 34 que se achica al centro de la
   barra, «‹ ifs&stg» para volver, botones de 44 para el dedo, la lista agrupada con miniaturas y flechitas,
   y la Info como hoja que sube desde abajo y se baja arrastrando. */
@media (max-width: 699px) {
  .ventana.recitales { --rc-barra-alto: 50px; }
  .rc-barra { padding-left: 76px; padding-right: 10px; }
  .rc-detalle .rc-barra { padding-left: 4px; }
  .rc-detalle .semaforo { visibility: hidden; }   /* adentro de un recital, a la izquierda va «‹ ifs&stg» */
  .rc-titulos { position: absolute; left: 96px; right: 96px; text-align: center; pointer-events: none; }
  .rc-barra > .rc-vistas:not([hidden]), .rc-barra > .rc-vistas[hidden] + .f-acciones { margin-left: auto; }
  .rc-titulo { font-size: 16px; font-weight: 600; }
  .rc-atras { height: 44px; padding: 0 8px 0 2px; gap: 0; color: var(--rc-ambar); font-size: 17px; border-radius: 10px; }
  .rc-atras-flecha svg { width: 24px; height: 24px; stroke-width: 2.2; }
  .rc-atras-txt { display: inline; }
  .rc-atras:active { transform: none; opacity: .45; }
  .rc-cabecera .rc-vistas { margin-top: 14px; border-radius: 9px; }
  .rc-cabecera .rc-vistas::before { border-radius: 7px; }
  .rc-vista { height: 30px; padding: 0 12px; font-size: 13px; }
  .rc-vista:active { opacity: .6; }
  .rc-cab-titulo { font-size: 34px; letter-spacing: -.025em; }

  .rc-entradas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; padding: calc(var(--rc-barra-alto) + 2px) 14px 28px; }
  .rc-entradas .rc-cabecera { margin-bottom: -4px; padding: 0 2px; }
  .rc-entrada .rc-grande { font-size: 30px; }
  .rc-entrada.rc-con-banda .rc-grande { font-size: 22px; }
  .rc-talon { padding: 11px 11px 12px; }

  /* La lista agrupada del iPhone */
  .rc-tabla { padding: calc(var(--rc-barra-alto) + 2px) 16px 28px; }
  .rc-tabla .rc-cabecera { padding: 0 0 14px; }
  .rc-encabezado { display: none; }
  .rc-grupo { padding: 0; border-radius: 12px; overflow: hidden; background: rgba(245, 240, 234, .07); }
  .rc-grupo .rc-fila, .rc-grupo .rc-fila:nth-child(even) { background: transparent; }
  .rc-grupo .rc-fila {
    position: relative;
    height: auto;
    min-height: 64px;
    grid-template-columns: 46px auto minmax(0, 1fr) auto 14px;
    grid-template-areas: "mini banda banda cuenta ir" "mini fecha lugar cuenta ir";
    gap: 1px 12px;
    padding: 9px 14px 9px 12px;
    border-radius: 0;
    transition: background-color .25s ease;
  }
  .rc-grupo .rc-fila:active { background: rgba(245, 240, 234, .1); transition: none; }
  .rc-grupo .rc-fila + .rc-fila::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: .5px; background: rgba(245, 240, 234, .14); }
  .rc-c-mini { display: block; grid-area: mini; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; background: hsl(var(--luz-h, 330) var(--luz-s, 10%) 18%); }
  .rc-c-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .rc-fila .rc-c-banda { grid-area: banda; align-self: end; font-size: 16px; font-weight: 600; }
  .rc-fila .rc-c-fecha { grid-area: fecha; align-self: start; font: 400 13px/1.3 var(--fuente); letter-spacing: 0; padding: 0; color: var(--rc-humo); }
  .rc-fila .rc-c-lugar { grid-area: lugar; align-self: start; margin-left: -8px; font-size: 13px; line-height: 1.3; color: var(--rc-humo); }
  .rc-fila .rc-c-lugar::before { content: "· "; }
  .rc-c-ciudad { display: none; }
  .rc-fila .rc-c-cuenta { grid-area: cuenta; font-size: 13px; }
  .rc-c-ir { display: block; grid-area: ir; color: rgba(245, 240, 234, .3); }
  .rc-c-ir svg { display: block; width: 14px; height: 14px; stroke-width: 2.4; }

  /* Un recital */
  .rc-noche { overflow-y: auto; }
  .rc-info { padding: 4px 16px 14px; align-items: stretch; flex-direction: column; gap: 16px; }
  .rc-info .rc-grande { font-size: 42px; }
  .rc-botones { width: 100%; }
  .rc-ver { flex: 1; justify-content: center; height: 46px; border-radius: 23px; font-size: 15px; }
  .rc-leer { height: 46px; border-radius: 23px; padding: 0 18px 0 9px; font-size: 15px; }
  .rc-calidad { height: 46px; padding: 4px; border-radius: 23px; }
  .rc-calidad::before { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 19px; }
  .rc-calidad button { min-width: 46px; font-size: 13px; border-radius: 19px; }
  .rc-nota { margin: -4px 16px 12px; }
  .rc-sala { flex: none; grid-template-rows: auto auto; padding: 0 0 20px; gap: 12px; }
  .rc-escenario { border-radius: 16px; }
  .rc-escenario.rc-justo { border-radius: 0; box-shadow: none; }
  .rc-tira { margin: 0; padding: 3px 16px; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; }
  .rc-tira::-webkit-scrollbar { display: none; }
  .rc-clip { width: 78px; scroll-snap-align: start; }
  .rc-paso { width: 40px; height: 36px; }

  /* La hoja de Info sube desde abajo, con su manija */
  .rc-hoja { align-items: flex-end; }
  .rc-hoja.abierta { background: rgba(0, 0, 0, .5); }
  .rc-hoja-papel {
    position: relative;
    width: 100%;
    height: auto;
    max-height: calc(100% - 40px);
    border-left: 0;
    border-radius: 16px 16px 0 0;
    padding: 0 20px 32px;
    background: rgba(28, 21, 25, .94);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .5), inset 0 .5px 0 rgba(255, 255, 255, .1);
    opacity: 1;
    transform: translateY(100%);
    transition: transform .5s cubic-bezier(.32, .72, 0, 1);
  }
  .rc-hoja:not(.abierta) .rc-hoja-papel { transition-duration: .3s; }
  .rc-hoja-cabeza { position: sticky; top: 0; z-index: 1; margin: 0 -20px 18px; padding: 22px 20px 8px; touch-action: none; background: inherit; }
  .rc-hoja-cabeza::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(245, 240, 234, .28); }
  .rc-hoja-cerrar { width: 30px; height: 30px; }
  .rc-hoja-titulo { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-entrada, .rc-clip, .rc-ver, .rc-play, .rc-leer, .rc-hoja, .rc-hoja-papel, .rc-vistas::before, .rc-titulo, .rc-barra, .rc-sala, .rc-escenario, .rc-calidad::before { transition: none; }
  .rc-entrada:hover { transform: none; }
  .rc-entrada:active, .rc-clip:active, .rc-ver:active, .rc-play:active, .rc-leer:active { transform: none; }
  .rc-hoja-papel { transform: none; }
  .rc-entra { animation: none; }
}

