/* ==========================================================
   estilo.css — estructura y contenido
   El FONDO vive aparte, en fondo.css
   ========================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: #f3effa;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- columna principal ---------- */

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 64px 20px 72px;
}

/* ---------- base de toda ventana ---------- */

.ventana {
  border-radius: var(--radio, 22px);
  background: var(--tinte, rgba(12, 8, 28, 0.58));
  border: var(--borde, 1px) solid var(--borde-color, rgba(255, 255, 255, 0.16));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: border-radius 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}


/* ==========================================================
   VENTANA 1 · PERFIL  (arriba, angosta y centrada)
   ========================================================== */

.perfil {
  width: min(640px, 100%);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 26px;
}

/* foto cuadrada, esquinas redondeadas */
.foto {
  flex: 0 0 auto;
  width: 156px;
  height: 156px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.45),
    0 0 0 5px rgba(255, 255, 255, 0.05);
  display: block;
}

.datos { min-width: 0; }

.datos h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.usuario {
  margin: 2px 0 12px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(243, 239, 250, 0.55);
}

.bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(243, 239, 250, 0.82);
}


/* ==========================================================
   FILA DE ABAJO · DOS VENTANAS LADO A LADO
   2/3 para fotos, 1/3 para canciones
   ========================================================== */

.fila {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 26px;
  align-items: stretch;   /* las dos ventanas terminan a la misma altura */
}

.fotos,
.canciones,
.pasatiempos,
.publicar {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- nombre de la ventana ---------- */

.titulo {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(243, 239, 250, 0.5);
}


/* ==========================================================
   FILA 2 · ESPEJADA: pasatiempos (1/3) + publicar (2/3)
   ========================================================== */

.fila-inversa {
  grid-template-columns: 1fr 2fr;
  /* alto según contenido: las dos ventanas terminan a la misma altura */
  grid-template-rows: auto;
}

/* la izquierda son dos ventanas apiladas que juntas
   igualan el alto del compositor */
.columna {
  display: grid;
  /* las dos ventanas con el mismo alto, sin estirarse */
  grid-template-rows: auto auto;
  align-content: start;
  gap: 26px;
  min-height: 0;
}

.columna .estado {
  min-height: 218px;
}

.columna .canciones {
  height: 218px;
  min-height: 0;
  overflow: hidden;
}


/* ---------- estado ---------- */

.estado {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.estado-cuerpo {
  display: flex;
  align-items: center;      /* foto centrada respecto al cartel */
  gap: 12px;
}

/* mini foto de perfil, como en TheSlap */
.estado-foto {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  display: block;
}

.estado-caja {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.estado-texto {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.estado-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* en la vista de invitado solo queda esa frase: se pega a la derecha */
body.invitado .estado-pie {
  justify-content: flex-end;
}

.estado-sintiendo {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(243, 239, 250, 0.55);
}

.estado-sintiendo strong {
  color: #ffd166;
  font-weight: 600;
}

.actualizar {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.actualizar:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}


/* ---------- lista de pasatiempos, estilo Facebook ---------- */

.pasatiempos {
  padding: 14px 18px;
}

/* banda horizontal centrada */
.lista-pasatiempos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.pasa {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

/* el primero visible no lleva separador a la izquierda */
.pasa.primero {
  border-left: 0;
}

/* sin esto, el display:flex le gana al [hidden] del navegador */
.pasa[hidden] {
  display: none;
}

.pasa .texto {
  flex: 0 1 auto;
  text-align: center;
  font-size: 14px;
}

.pasa .barra {
  height: 8px;
  background: rgba(255, 255, 255, 0.72);
}


/* ---------- compositor de ideas ---------- */

.compositor {
  flex: 0 0 auto;
  display: flex;
}

.caja {
  flex: 0 0 auto;
  width: 100%;
  height: 92px;
  min-height: 0;
  padding: 4px 2px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f3effa;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
}

.caja::placeholder {
  color: rgba(243, 239, 250, 0.38);
}

/* barra de herramientas */
.herramientas {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.iconos {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icono {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(243, 239, 250, 0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icono:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.icono.emoji { font-size: 17px; }
.icono.gif   { font-size: 10.5px; font-weight: 700; }

.contador {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(243, 239, 250, 0.38);
  font-variant-numeric: tabular-nums;
}

.boton {
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.boton:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}


/* ---------- publicaciones ---------- */

.posts {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 18px;
  padding-right: 12px;              /* aire para la barrita */
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  /* se queda con el alto que sobra en la ventana:
     ni más, ni menos. El tamaño de la ventana no cambia. */
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

/* barrita de scroll */
.posts::-webkit-scrollbar {
  width: 8px;
}

.posts::-webkit-scrollbar-track {
  background: transparent;
}

.posts::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.posts::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}

.post {
  display: flex;
  gap: 12px;
}

.post-foto {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.post-cuerpo { min-width: 0; }

.post-cabecera {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.post-nombre {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.post-usuario,
.post-hora {
  font-size: 12px;
  color: rgba(243, 239, 250, 0.42);
}

.post-texto {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(243, 239, 250, 0.87);
}


/* ==========================================================
   MOSAICO · 1 foto grande + 4 pequeñas
   ========================================================== */

.mosaico {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* fotos en blanco por ahora */
.hueco {
  min-height: 0;
  min-width: 0;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}




/* ==========================================================
   LISTA DE CANCIONES
   ========================================================== */

.lista {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.fila-cancion {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.num {
  width: 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(243, 239, 250, 0.42);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

/* barra del título, vacía */
.barra {
  flex: 1;
  min-width: 0;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

/* barra de la duración, vacía */
.tiempo {
  width: 30px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  flex: 0 0 auto;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* se apilan cuando ya no caben lado a lado */
@media (max-width: 900px) {
  .fila {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* apiladas, el alto vuelve a mandarlo el contenido */
  .fila-inversa { grid-template-rows: auto; }

  main { padding: 44px 16px 56px; gap: 20px; }
}

@media (max-width: 560px) {
  .ventana { border-radius: 18px; }

  .perfil {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 24px 20px;
  }

  .foto {
    width: 132px;
    height: 132px;
    border-radius: 16px;
  }

  .datos h1 { font-size: 22px; }

  /* en móvil la grande pasa a banner ancho */
  .mosaico { grid-template-columns: repeat(2, 1fr); gap: 9px; }

  .hueco.grande {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2 / 1;
  }

  .fotos, .canciones, .pasatiempos, .publicar { padding: 16px; }
}


/* ==========================================================
   EDITOR EN VIVO
   ========================================================== */

/* ---------- textos que se pueden escribir ---------- */

.texto {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
}

/* cuando está vacío, muestra una pista */
.texto:empty::before {
  content: attr(data-ph);
  color: rgba(243, 239, 250, 0.32);
  pointer-events: none;
}

[contenteditable] {
  outline: none;
  cursor: text;
}

[contenteditable]:hover {
  background: rgba(255, 255, 255, 0.05);
}

[contenteditable]:focus {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.65);
}

/* ---------- foto de perfil clickeable ---------- */

.js-perfil {
  cursor: pointer;
}

.js-perfil:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

/* ---------- huecos del mosaico ---------- */

.hueco {
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: filter 0.15s ease;
}

.hueco::after {
  content: "+";
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: rgba(0, 0, 0, 0.2);
}

.hueco:hover {
  filter: brightness(0.95);
}

.hueco.lleno::after {
  content: none;
}

/* ---------- carátula de cada canción ---------- */

.tapa {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.05);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.tapa::after {
  content: "+";
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
}

.tapa:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.tapa.lleno {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.18);
}

.tapa.lleno::after {
  content: none;
}

/* ---------- fila de canción más compacta ---------- */

.fila-cancion {
  padding: 4px 10px;
  gap: 8px;
}

.num {
  width: 18px;
  font-size: 11px;
}

.texto.duracion {
  flex: 0 0 auto;
  width: 32px;
  text-align: right;
  font-size: 11.5px;
  color: rgba(243, 239, 250, 0.5);
}


/* ==========================================================
   BOTÓN DE FONDO Y FEED VACÍO
   ========================================================== */

/* ---------- controles flotantes ---------- */

.controles {
  position: fixed;
  z-index: 60;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.controles-arriba { top: 18px; left: 18px; }
.controles-abajo { bottom: 18px; right: 18px; align-items: flex-end; }

.btn-flotante {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);

  color: rgba(243, 239, 250, 0.85);
  font-family: inherit;
  font-size: 0;            /* oculta el texto: solo queda el emoji */
  cursor: pointer;

  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-flotante:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.btn-flotante span {
  font-size: 19px;
  line-height: 1;
}

/* ---------- rueda de color ---------- */

.paleta {
  position: absolute;
  right: 52px;
  bottom: 0;
  width: 246px;
  padding: 16px 16px 12px;
  border-radius: 20px;
  background: rgba(12, 8, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}

.paleta[hidden] {
  display: none;
}

.paleta-modos {
  display: flex;
  gap: 4px;
  padding: 3px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.paleta-modos button {
  flex: 1;
  padding: 7px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(243, 239, 250, 0.55);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.paleta-modos button:hover {
  color: #fff;
}

.paleta-modos button.activo {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.paleta-titulo {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(243, 239, 250, 0.5);
}

#rueda {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

#rueda path {
  cursor: pointer;
  transition: opacity 0.12s ease;
}

#rueda path:hover {
  opacity: 0.78;
}

.paleta-pie {
  margin: 10px 0 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  color: rgba(243, 239, 250, 0.38);
}

/* ---------- guardar y respaldo ---------- */

/* el de guardar es igual de transparente que los otros */
.btn-guardar {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-guardar:hover {
  background: rgba(255, 255, 255, 0.24);
}

.respaldo {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.respaldo button {
  flex: 1;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 239, 250, 0.8);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.respaldo button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* aviso flotante */
.aviso {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 200;

  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(16, 12, 32, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);

  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.aviso.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* mensaje cuando no hay publicaciones */
.vacio {
  margin: 0;
  padding: 22px 0;
  font-size: 13px;
  text-align: center;
  color: rgba(243, 239, 250, 0.38);
}


/* ==========================================================
   SELECTOR DE DISEÑO DEL MOSAICO
   ========================================================== */

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

/* el título ya no lleva su propia línea */
.cabecera .titulo {
  margin: 0;
  padding: 0;
  border: 0;
}

.layouts {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.mini {
  width: 25px;
  height: 25px;
  padding: 2.5px;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 1.5px;
  flex: 0 0 auto;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mini i {
  display: block;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.45);
}

.mini:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.mini.activo {
  border-color: #7c5cff;
  background: rgba(124, 92, 255, 0.22);
}

.mini.activo i {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 560px) {
  .cabecera {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ==========================================================
   DISTRIBUCIÓN
   ========================================================== */



/* la ventana de fotos ocupa todo el ancho */
.ancho-total {
  width: min(1160px, 100%);
}

/* fotos a media anchura, con caja fija: no se mueve al cambiar de diseño */
.mitad {
  width: 580px;
  max-width: 100%;
  height: 632px;            /* caja cuadrada: cuadrados y stories salen exactos */
  align-self: flex-start;   /* pegada a la izquierda */
  /* se alinea con el borde de las demás ventanas (columna de 1160 px) */
  margin-left: max(0px, calc(50% - 580px));
}

/* el mosaico llena toda la caja */
.fotos .mosaico {
  flex: 1;
  min-height: 0;
}

/* pasatiempos: de seis en fila a tres y luego dos */
@media (max-width: 900px) {
  .lista-pasatiempos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .lista-pasatiempos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================
   SPOTIFY
   ========================================================== */

.btn-spotify {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(30, 215, 96, 0.45);
  background: rgba(30, 215, 96, 0.12);
  color: #1ed760;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}

.btn-spotify:hover {
  background: rgba(30, 215, 96, 0.22);
}

.btn-spotify.conectado {
  background: #1ed760;
  color: #08210f;
  border-color: #1ed760;
}

/* lista con canciones de spotify */
.lista-spotify {
  display: flex;
  flex-direction: column;
  gap: 8px;

  /* que la lista se desplace dentro de la ventana, sin desbordarla */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

.lista-spotify::-webkit-scrollbar { width: 6px; }
.lista-spotify::-webkit-scrollbar-track { background: transparent; }

.lista-spotify::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.canciones { overflow: hidden; }

.lista-spotify[hidden] { display: none; }
.lista[hidden] { display: none; }

.sp-fila {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  flex: 0 0 auto;
}

.sp-linea {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sp-caratula {
  width: 31px;
  height: 31px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
}

.sp-datos {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sp-datos strong {
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-datos em {
  font-style: normal;
  font-size: 10.5px;
  color: rgba(243, 239, 250, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-play {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1ed760;
  color: #08210f;
  font-size: 10px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}

.sp-play:hover { transform: scale(1.08); }

.sp-play.sonando {
  background: #f2937c;
  color: #2a0d06;
}

/* fragmento */
.sp-inicio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 2px;
  min-width: 0;
}

/* la barra solo muestra el avance: no se arrastra */
.sp-rango { pointer-events: none; }

/* número arrastrable con el segundo de inicio */
.sp-desde {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(243, 239, 250, 0.75);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.sp-desde:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.sp-inicio-etq {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 239, 250, 0.35);
}

.sp-rango {
  flex: 1;
  min-width: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  appearance: none;
  cursor: pointer;
}

.sp-rango::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1ed760;
}

.sp-rango::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #1ed760;
}

.sp-inicio-val {
  font-size: 9.5px;
  color: rgba(243, 239, 250, 0.55);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: right;
}

/* ==========================================================
   MODAL
   ========================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 2, 10, 0.72);
  backdrop-filter: blur(6px);
}

.modal[hidden] { display: none; }

.modal-caja {
  width: min(520px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #14101f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.modal-titulo {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.modal-texto {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(243, 239, 250, 0.62);
}

.modal-uri {
  display: block;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #0b0814;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #8ef0b4;
  word-break: break-all;
}

.modal-campo {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(243, 239, 250, 0.5);
}

.modal-campo input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0814;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.modal-campo input:focus {
  border-color: #1ed760;
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.2);
}

.modal-botones {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

.modal-btn {
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 239, 250, 0.8);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.modal-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.modal-btn.principal {
  background: #1ed760;
  border-color: #1ed760;
  color: #08210f;
}

.sp-lista {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 46vh;
  overflow-y: auto;
  margin: 0 -6px;
  padding: 0 6px;
}

.sp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.sp-item:hover { background: rgba(255, 255, 255, 0.09); }

.sp-item.elegida {
  border-color: #1ed760;
  background: rgba(30, 215, 96, 0.12);
}

.sp-item .sp-datos strong { font-size: 12px; }

.sp-dura {
  font-size: 10.5px;
  color: rgba(243, 239, 250, 0.4);
  font-variant-numeric: tabular-nums;
}

.sp-cargando {
  margin: 0;
  padding: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(243, 239, 250, 0.45);
}

.modal-pasos {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(243, 239, 250, 0.72);
}

.modal-pasos li { margin-bottom: 8px; }

.modal-pasos .modal-uri { margin: 8px 0 0; }

.modal-enlace {
  display: inline-block;
  padding: 5px 10px;
  margin-right: 6px;
  border-radius: 7px;
  background: #1ed760;
  color: #08210f;
  font-weight: 700;
  text-decoration: none;
}

.modal-enlace:hover { background: #3be97a; }



/* ==========================================================
   COLOR DEL TEXTO (se elige desde la paleta)
   ========================================================== */

:root {
  --texto: #f3effa;
}

/* absolutamente todo el texto de las ventanas toma el color elegido */
.perfil,
.perfil *,
.ventana,
.ventana * {
  color: var(--texto) !important;
}

/* el + de las carátulas vacías y los textos flotantes */
.tapa::after,
.aviso,
.controles,
.controles *,
.modal,
.modal * {
  color: var(--texto) !important;
}

/* ==========================================================
   PANEL DE VENTANAS
   ========================================================== */

.panel-ventana {
  position: absolute;
  right: 52px;
  bottom: 0;
  width: 232px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(12, 8, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}

.panel-ventana[hidden] { display: none; }

.panel-ventana .panel-titulo {
  margin: 0 0 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(243, 239, 250, 0.5);
}

.panel-ventana label {
  display: block;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(243, 239, 250, 0.55);
}

.panel-ventana label b {
  float: right;
  font-weight: 700;
  color: rgba(243, 239, 250, 0.9);
  font-variant-numeric: tabular-nums;
}

.panel-ventana input[type="range"] {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  appearance: none;
  cursor: pointer;
}

.panel-ventana input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
}

.panel-ventana input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.panel-sub {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(243, 239, 250, 0.55);
}

.panel-opciones {
  display: flex;
  gap: 4px;
  padding: 3px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.panel-opciones button {
  flex: 1;
  padding: 8px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(243, 239, 250, 0.55);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.panel-opciones button:hover { color: #fff; }

.panel-opciones button.activo {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* botón de compartir el estado */
.compartir-estado {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.compartir-estado:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================
   TIPOGRAFÍAS
   ========================================================== */

body {
  font-family: var(--fuente, system-ui, -apple-system, "Segoe UI", sans-serif);
}

.panel-fuentes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.panel-fuentes button {
  padding: 10px 5px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(243, 239, 250, 0.82);
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.panel-fuentes button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.panel-fuentes button.activo {
  border-color: #7c5cff;
  background: rgba(124, 92, 255, 0.22);
  color: #fff;
}
/* ==========================================================
   FOTOS + MI ESPACIO (diario, proyectos, logros)
   ========================================================== */

.fila-bloques {
  display: flex;
  gap: 20px;
  width: min(1160px, 100%);
  align-items: stretch;
}

/* la ventana de fotos ya no necesita márgenes propios aquí */
.fila-bloques .mitad {
  flex: 0 0 580px;
  margin-left: 0;
  align-self: auto;
}

.bloque {
  flex: 1 1 auto;
  min-width: 0;
  height: 632px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
}

.bloque .cabecera {
  flex: 0 0 auto;
}

.pestanas {
  display: flex;
  gap: 4px;
}

.pestanas button {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pestanas button:hover { background: rgba(255, 255, 255, 0.08); }

.pestanas button.activo {
  border-color: #7c5cff;
  background: rgba(124, 92, 255, 0.22);
}

.panel-bloque {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.panel-bloque[hidden] { display: none; }

/* diario con renglones */
.diario-caja {
  flex: 1;
  min-height: 0;
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  padding: 0 6px;
  background: transparent;

  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    rgba(255, 255, 255, 0.14) 31px,
    rgba(255, 255, 255, 0.14) 32px
  );
  background-attachment: local;

  font-family: inherit;
  font-size: 14px;
  line-height: 32px;
  color: var(--texto);
}

.diario-caja::placeholder {
  color: rgba(243, 239, 250, 0.35);
  opacity: 1;
}

/* tarjetas de proyectos y logros */
.tarjetas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tarjeta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tarjeta-foto {
  width: 100%;
  height: 140px;
  border-radius: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.tarjeta-foto:hover { border-color: rgba(255, 255, 255, 0.45); }

.tarjeta-foto.lleno {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.12);
}

.tarjeta-foto::after {
  content: "📷";
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 22px;
  opacity: 0.5;
}

.tarjeta-foto.lleno::after { content: ""; }

.tarjeta-texto {
  width: 100%;
  min-height: 44px;
  resize: none;
  border: 0;
  outline: none;
  padding: 0 2px;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--texto);
}

.tarjeta-texto::placeholder { color: rgba(243, 239, 250, 0.32); opacity: 1; }

.agregar {
  flex: 0 0 auto;
  width: 100%;
  height: 38px;
  border-radius: 11px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--texto);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.agregar:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================
   VISOR DE PROYECTOS (pantalla completa)
   ========================================================== */

.visor {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  padding: 30px;
  background: rgba(4, 2, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.visor[hidden] { display: none; }

.visor-caja {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  min-width: 0;
  max-height: 88vh;
}

.visor-texto {
  flex: 0 0 290px;
  min-width: 0;
  max-height: 80vh;
  overflow-y: auto;
  text-align: right;
}

.visor-cuenta {
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  color: var(--texto);
}

.visor-parrafo {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--texto);
  white-space: pre-wrap;
}

.visor-img {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  max-height: 84vh;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.visor-flecha {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.visor-flecha:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

.visor-flecha.izq { justify-self: start; }
.visor-flecha.der { justify-self: end; }

.visor-flecha[hidden] { display: none; }

/* la tarjeta reacciona al pasar el cursor */
.tarjeta {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tarjeta:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- diario: escribir arriba, páginas abajo ---------- */

#panelDiario {
  overflow: hidden;
}

.diario-titulo {
  flex: 0 0 auto;
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--texto);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.diario-titulo::placeholder { color: rgba(243, 239, 250, 0.32); opacity: 1; }

.diario-titulo:focus { border-color: rgba(124, 92, 255, 0.6); }

#panelDiario .diario-caja {
  flex: 0 0 auto;
  height: 162px;            /* cinco renglones de 32 px */
}

.diario-guardar {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.18);
  color: var(--texto);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.diario-guardar:hover {
  background: rgba(124, 92, 255, 0.32);
  border-color: rgba(124, 92, 255, 0.8);
}

#listaDiario {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* página guardada */
.entrada {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
}

.entrada-titulo {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--texto);
}

.entrada-texto {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--texto);
  opacity: 0.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* título dentro del visor */
.visor-titulo {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--texto);
}

/* ---------- fila de canción más delgada: barra en medio ---------- */

.sp-medio {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.sp-medio .sp-rango {
  flex: 0 0 58px;
  width: 58px;
  min-width: 0;
}

.sp-medio .sp-desde {
  padding: 2px 5px;
  font-size: 9px;
}

.lista-spotify .sp-linea {
  gap: 7px;
}

.lista-spotify .sp-datos strong { font-size: 11px; }
.lista-spotify .sp-datos em { font-size: 10px; }

/* ==========================================================
   MODO INVITADO: solo lectura
   ========================================================== */

body.invitado .controles,
body.invitado .actualizar,
body.invitado .compartir-estado,
body.invitado .publicar .boton,
body.invitado .btn-spotify,
body.invitado .agregar,
body.invitado .diario-guardar,
body.invitado .diario-titulo,
body.invitado #panelDiario .diario-caja,
body.invitado .layouts,
body.invitado .tapa,
body.invitado .caja,
body.invitado .herramientas {
  display: none !important;
}

/* el invitado sí puede escuchar la vista previa */
body.invitado .sp-play,
body.invitado .sp-rango {
  pointer-events: auto;
}

body.invitado [contenteditable],
body.invitado .hueco {
  pointer-events: none;
}

/* el invitado sí puede abrir el visor de proyectos y el diario */
body.invitado .tarjeta,
body.invitado .pestanas button {
  pointer-events: auto;
}

/* la ventana de publicaciones sin compositor se ve más limpia */
body.invitado .publicar {
  gap: 10px;
}

body.invitado .posts {
  min-height: 220px;
}

/* ---------- invitado: diario y proyectos a la vez, con línea en medio ---------- */

body.invitado .pestanas {
  display: none !important;
}

body.invitado #panelDiario,
body.invitado #panelProyectos {
  display: flex !important;
  flex: 1 1 0;
  min-height: 0;
  gap: 8px;
}

body.invitado #panelDiario {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

body.invitado #panelDiario::before,
body.invitado #panelProyectos::before {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texto);
  opacity: 0.45;
}

body.invitado #panelDiario::before { content: "Diario"; }
body.invitado #panelProyectos::before { content: "Proyectos"; }

body.invitado #listaDiario,
body.invitado #listaProyectos {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

body.invitado #listaDiario::-webkit-scrollbar,
body.invitado #listaProyectos::-webkit-scrollbar {
  width: 7px;
}

body.invitado #listaDiario::-webkit-scrollbar-track,
body.invitado #listaProyectos::-webkit-scrollbar-track {
  background: transparent;
}

body.invitado #listaDiario::-webkit-scrollbar-thumb,
body.invitado #listaProyectos::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

/* el invitado no puede cambiar fotos de las tarjetas */
body.invitado .tarjeta-foto {
  pointer-events: none;
}

/* ==========================================================
   BOTÓN DE VISTA PREVIA (arriba a la derecha)
   ========================================================== */

.btn-vista {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 70;

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);

  color: var(--texto, #f3effa);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;

  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-vista span { font-size: 15px; line-height: 1; }

.btn-vista:hover { background: rgba(255, 255, 255, 0.24); }

body.previa .btn-vista {
  border-color: #7c5cff;
  background: rgba(124, 92, 255, 0.35);
}

/* el invitado de verdad no ve este botón */
body.invitado:not(.previa) .btn-vista {
  display: none;
}

/* ---------- compartir el perfil ---------- */

.perfil {
  position: relative;
}

.perfil-compartir {
  position: absolute;
  right: 14px;
  bottom: 14px;

  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;

  transition: background 0.15s ease, border-color 0.15s ease;
}

.perfil-compartir:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}


