/* Loops de Yvoty Cam: el selector del perfil, la cuerda de loops y la página de cada uno. */
.perfil-selector { display: flex; gap: 6px; margin: 14px 0 0; }
/* Solo íconos: el nombre queda para lectores de pantalla y en el title. Lo activo, naranja sobre durazno con aro. */
.perfil-selector a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; text-decoration: none; color: var(--tinta-suave); border: 2px solid transparent; }
.perfil-selector a:hover { color: var(--tinta); }
.perfil-selector a[aria-current="page"] { color: var(--acento); background: var(--acento-suave); border-color: var(--acento); }
.perfil-selector .icono { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.loop-marco { position: relative; display: block; }
.loop-marco img { display: block; width: 100%; height: auto; }
/* Los cuatro cuadros de la tira pasan de a uno, como un loop chiquito; sin animación si se pide menos movimiento. */
.loop-tira { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(251, 250, 246, .85); }
.loop-marco .loop-tira img { width: 400%; max-width: none; height: 100%; animation: loop-tira .5s steps(4) infinite; }
@keyframes loop-tira { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .loop-marco .loop-tira img { animation: none; } }
.loop-marca { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fbfaf6; font-size: 12px; }
.loop-visor { margin: 20px auto 0; max-width: 420px; }
.loop-visor video { display: block; width: 100%; height: auto; border-radius: 6px; background: #000; }
.loop-visor figcaption { margin-top: 10px; font-size: 14px; }
/* Live: punto rojo que late al lado del nombre, y la página del live. */
.en-vivo { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 10px; border-radius: 999px;
  background: #e0243a; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; vertical-align: middle; }
.en-vivo i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: en-vivo 1.2s ease-in-out infinite; }
@keyframes en-vivo { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .en-vivo i { animation: none; } }
.live-visor { margin: 20px auto 0; max-width: 420px; aspect-ratio: 9 / 16; background: #000; border-radius: 6px; overflow: hidden; }
.live-visor iframe { width: 100%; height: 100%; border: 0; }
.perfil-selector { flex-wrap: wrap; }
.en-vivo.en-pausa { background: #7a5a2e; }
.en-vivo.en-pausa i { animation: none; }
.live-visor { position: relative; }
.live-pausa { position: absolute; inset: auto 0 12px; margin: 0; text-align: center; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #000; }
.fl.amarilla { color: #f2c14e; fill: #f2c14e; }
.live-flores { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto 0; max-width: 420px; flex-wrap: wrap; }
.live-publico { font-size: 13px; opacity: .85; }
.live-flor { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(251, 250, 246, .5); background: rgba(0, 0, 0, .25); color: #fbfaf6; font: inherit; cursor: pointer; touch-action: manipulation; user-select: none; }
.live-flor:disabled { opacity: .55; cursor: default; }
/* Debajo del video, sobre el blanco, el botón va en tinta; encima del video sigue claro. */
.live-flores > .live-flor, .live-flores > form .live-flor { border-color: var(--linea); background: var(--papel-hondo); color: var(--tinta); }
.vivo .live-flor, .live-completa .live-flor { border-color: rgba(251, 250, 246, .5); background: rgba(0, 0, 0, .25); color: #fbfaf6; }
.live-flor:active:not(:disabled) { transform: scale(.94); }
.live-flor[hidden] { display: none; }
.live-aviso { width: 100%; text-align: center; font-size: 13px; }
/* Las flores que llegan suben en grande sobre el video. */
.flor-sube { position: fixed; z-index: 30; pointer-events: none; display: flex; flex-direction: column; align-items: center; color: #fff;
  font-weight: 700; text-shadow: 0 1px 4px #000; font-size: 14px; }
.flor-sube svg { width: 84px; height: 84px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .55)); }
.flor-sube.grande svg { width: 150px; height: 150px; }
.vivo .live-flores { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; }
.live-ahora { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 8px 16px; border-radius: 999px;
  background: rgba(224, 36, 58, .15); border: 1px solid #e0243a; color: inherit; text-decoration: none; font-weight: 700; }
.live-ahora .en-vivo { margin-left: 0; }
.lives-ahora { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.lives-ahora .live-ahora { margin: 0; }
.live-quien { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid #e0243a;
  color: inherit; text-decoration: none; font-weight: 700; font-size: 14px; }
.live-quien i { width: 8px; height: 8px; border-radius: 50%; background: #e0243a; }
.live-quien.en-pausa i { background: #7a5a2e; }
.live-quien small { font-weight: 400; opacity: .75; font-size: 12px; }
.live-quien:hover, .live-quien:focus-visible { background: rgba(224, 36, 58, .15); }
/* /vivos como historias: una fila de caras arriba y un live grande por vez, en vertical, sin franjas negras. */
.historias { max-width: 980px; margin: 4px auto 0; }
.historias-caras { display: flex; align-items: center; gap: 12px; padding: 2px 8px 10px; }
.historias-cuenta { flex: none; font-size: 13px; color: var(--tinta-suave); }
.historias-cuenta b { color: #e0243a; }
.historias-fila { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 6px 4px; }
.historias-fila::-webkit-scrollbar { display: none; }
.historia-cara { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 66px; padding: 0; border: 0;
  background: none; color: inherit; font: inherit; font-size: 11px; cursor: pointer; }
.historia-cara .avatar { width: 52px; height: 52px; border-radius: 50%; padding: 2px; background: #fff; box-shadow: 0 0 0 2.5px #e0243a;
  transition: transform .2s ease-out, box-shadow .2s ease-out; }
.historia-cara.en-pausa .avatar { box-shadow: 0 0 0 2.5px #7a5a2e; }
.historia-cara[aria-pressed="true"] .avatar { transform: scale(1.08); box-shadow: 0 0 0 2.5px #e0243a, 0 0 0 6px rgba(224, 36, 58, .22); }
.historia-cara[aria-pressed="true"] span { font-weight: 700; }
.historia-cara span { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.historia-cara.nueva .avatar { animation: cara-nueva 1.1s ease-out 2; }
@keyframes cara-nueva { 50% { box-shadow: 0 0 0 2.5px #e0243a, 0 0 0 9px rgba(224, 36, 58, .3); } }
.historias-escenario { display: flex; align-items: center; justify-content: center; gap: 18px; }
.vivo.historia { width: min(100%, calc((100dvh - 200px) * 9 / 16)); height: auto; aspect-ratio: 9 / 16; min-height: 0; margin: 0; border-radius: 14px; }
.vivo.historia.dron { width: min(100%, 820px); aspect-ratio: 4 / 3; }
.vivo.historia[hidden] { display: none; }
.historias-flecha { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea); background: #fff; color: var(--tinta);
  font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.historias-flecha:hover, .historias-flecha:focus-visible { border-color: #e0243a; color: #e0243a; }
.historias.uno .historias-flecha { visibility: hidden; }
@media (max-width: 600px) {
  .historias-escenario { position: relative; gap: 0; }
  .vivo.historia { width: min(100%, calc((100dvh - 170px) * 9 / 16)); border-radius: 10px; }
  .historias-flecha { position: absolute; top: 45%; z-index: 3; width: 38px; height: 38px; font-size: 24px; background: rgba(255, 255, 255, .82); }
  .historias-flecha.anterior { left: 6px; }
  .historias-flecha.siguiente { right: 6px; }
}
.vivos-vacio { max-width: 980px; margin: 10px auto 0; padding: 0 12px; }
.vivos-subtitulo { font-size: 15px; margin: 26px 0 0; }
.vivo { position: relative; height: calc(100dvh - 120px); scroll-snap-align: start; scroll-snap-stop: always; background: #000; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.vivo iframe { width: 100%; height: 100%; border: 0; }
.vivo-quien { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; text-decoration: none; }
.lives-historial { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.lives-historial a { color: inherit; text-decoration: none; }
.live-mini { position: relative; display: block; aspect-ratio: 9 / 16; background: var(--papel-hondo); border-radius: 6px; overflow: hidden; }
.live-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-mini .en-vivo { position: absolute; left: 8px; top: 8px; margin: 0; }
.lives-historial li.ahora .live-mini { box-shadow: 0 0 0 3px #e0243a; }
.live-datos { display: block; margin-top: 6px; font-size: 13px; }
/* El dron transmite en horizontal: se ve entero, sin recortar. */
.live-visor.dron { max-width: 820px; aspect-ratio: 4 / 3; }
.lives-historial li.dron .live-mini img { object-fit: contain; background: #000; }
/* Pantalla completa: el video ocupa todo y las flores quedan abajo. Sirve también donde el navegador no deja agrandar (iPhone). */
.completa-icono { width: 20px; height: 20px; }
.live-escena.live-completa { position: fixed; inset: 0; z-index: 25; width: 100%; max-width: none; height: 100dvh; margin: 0; border-radius: 0;
  background: #000; display: flex; flex-direction: column; }
.live-completa .live-visor { flex: 1; min-height: 0; width: 100%; max-width: none; aspect-ratio: auto; margin: 0; border-radius: 0; }
.live-completa .live-flores { max-width: none; margin: 0; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
