/* General */

* {
  box-sizing: border-box;
  list-style: none;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  max-width: 600px; /* Máximo ancho de 400px */
  margin: auto;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: whitesmoke;
  /* color: white;  */
  position: sticky;
  top: 0px;
  
}

.mensajesChat  {
 
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;  /* Opcional: fondo como el de la imagen si tenía */
  cursor: pointer;
}

.mensajesChat img {
  width: 50px;
  height: 40px;
  font-size: 20px;            /* Ajustado para que el emoji no se desborde */
  border-radius: 50%;
}


.divListarUsuarios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;

}


.divListarUsuarios img {
  width: 50px;
  height: 40px;
  border-radius: 15%;
 
}



.header-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.header-left p {
  margin: 0;
  font-size: 15px;
  color: black;
}

.header-left h4 {
  margin: 0;
  font-size: 0.9rem;
  color: cornflowerblue;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: rgb(244, 235, 235);
  padding: 5px 10px;
  gap: 15px;
  border-radius: 20px;
}

.header-right .icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  border-radius: 50%;
}

/* Main */
main {
  padding: 10px;
}

/* User List */
.user-list {
  display: flex;
  flex-wrap: wrap; /* Permite que los elementos bajen a la siguiente fila */
  gap: 15px; /* Espacio entre las tarjetas */
  justify-content: space-between; /* Ajusta la distribución horizontal */
  margin-bottom: 250px; /* Espacio abajo */
  scroll-behavior: smooth; /* scroll lento */

}


.user-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding-top: 5px;
  text-align: center;
  flex: 1 1 calc(33.333% - 15px); /* Cada tarjeta ocupa un tercio del ancho menos el gap */
  max-width: calc(33.333% - 5px); /* Limita el ancho */
  cursor: pointer;
  box-sizing: border-box; /* Incluye el padding y borde en el tamaño */
  gap: 3px;
}

.user-card img {
  width: 80px;
  height: 130px;
  border-radius: 10px;
  object-fit: cover;
}

.user-card h2 {
  font-size: 14px;
  margin: 0;
}

.user-card h3 {
  font-size: 14px;
  margin: 0;
}

.user-card p {
  font-size: 12px;
  color: #555;
}

.botonChatUsuarios {
  background-color: #11b805;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: .9rem;
  margin-top: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.botonChatUsuarios:hover {
  background-color: #1976d2;
}


/*mi Cuenta Comtainer /  mi Cuenta Modal*/

.miCuentaContainer {
  display: none;
  position: fixed;
  top: 70px;
  right: 10px;
  background: linear-gradient(135deg, #ffffff, #e6f0ff);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: #333;
  z-index: 1000;
  overflow: hidden;
  border: 2px solid #a0c4ff;
}

.miCuentaHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #d0e7ff;
  border-bottom: 2px solid #a0c4ff;
}

.miCuentaContainer-alias {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: linear-gradient(45deg, #ff6ec4, #7873f5);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cerrarMiCuenta {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #ff4d4d;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.cerrarMiCuenta:hover {
  background-color: #e60000;
  transform: scale(1.1);
}

.miCuentaContainer ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  list-style: none;
  margin: 0;
}

.miCuentaContainer ul li {
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
}

.miCuentaContainer ul li:hover {
  background: #a0c4ff;
  color: #fff;
}

.ayuda {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ayuda:hover {
  transform: scale(1.1);
}



.ventanaFiltros {
  width: 95%;
  max-width: 400px;
  height: 98%;
  position: fixed;
  top: 10px;
  right: 15px;
  padding: 25px;
  display: none;
  flex-direction: column;
  gap: 15px;
  background-color: #f4f4f4;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cabecera h2 {
  font-size: 1.2rem;
  color: #1a237e;
  margin: 0;
}

.cabecera .botonCerrarFiltros {
  cursor: pointer;
  color: #0b0a0a;
  font-weight: bold;
  font-size: 1.3rem;
  margin: 0;
  transition: color 0.3s ease;
  cursor: pointer;
}

.ventanaFiltros label,
.ventanaFiltros legend {
  font-size: 0.95rem;
  color: #333;
  font-weight: 600;
}

.ventanaFiltros select,
.inputFiltroCiudad {
  padding: 8px;
  font-size: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  background-color: white;
  color: #333;
}

.ubicacionAutomatica {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.ubicacionAutomatica span {
  font-size: 0.9rem;
  color: #555;
}

.fotoUbicacion {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #2196f3;
}

.filtroNuevaCiudad {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 2px solid #2196f3;
  border-radius: 10px;
  background-color: #7cc5f9;
}

.filtroNuevaCiudad legend {
  font-size: 1rem;
  color: #090a0a;
  background-color:#7cc5f9 ;
  border-radius: 10px;
  padding: 5px;
}

.rangoEdad {
  display: flex;
  gap: 10px;
  align-items: center;
}

.radio-container {
  border: 2px solid #4caf50;
  border-radius: 8px;
  padding: 15px;
  background-color: #7af084;
}

.radio-container legend {
  color: #2e7d32;
  font-weight: 600;
  background-color:#7af084 ;
  border-radius: 10px;
  padding: 5px;
}

.divRadio {
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: center;
}

.radioKms {
  margin-left: 10px;
  width: 70px;
  height: 70px;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1b5e20;
  background-color: #a8eaab;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
  position: relative;
}

.radioKms::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(76, 175, 80, 0.3);
  border-radius: 50%;
  animation: radar 1.8s infinite;
}

@keyframes radar {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Botón opcional extra estilizado si se usa */
.botonCerrarFiltrosVerde {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;       /* 🔽 Menor padding */
  cursor: pointer;
  font-size: 0.65rem;       /* 🔽 Letra levemente más chica */
  transition: all 0.3s ease;
}

.botonCerrarFiltrosVerde:hover {
  background-color: #66bb6a;
  transform: scale(1.05);
}



/* Estilos para el modal del chat */

.chatModal {
  display: none; /* Se activa con JS */
  position: fixed;
  top: 0;
  left: 50%; /* Centra horizontalmente */
  transform: translateX(-50%); /* Ajusta para centrar según su propio ancho */
  width: 100vw;
  max-width: 600px;
  height: 100%; /* Ocupa toda la altura */
  background-color: #fff;
  border: 1px solid #0078d7;
  border-radius: 10px;
  box-shadow: 4px 4px 8px rgba(1, 2, 23, 0.2);
  font-family: Arial, sans-serif;
  overflow: hidden;
  flex-direction: column;
  padding-bottom: 10px; /* Deja algo de espacio al fondo */
}

/* Encabezado del chat */

.chatHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #0078d7;
  color: white;
  flex-shrink: 0; /* Evita que se reduzca */
  position: sticky;
  top: 0;
  z-index: 10;
}

.chatHeader .userPhoto {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}



.chatHeader .bloquearUsuario {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
}

.chatHeader .fotoVideollamada {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 20px;
  margin-left: 10px;

  cursor: pointer;
}

.chatHeader .userAlias {
  flex-grow: 1;
  font-size: 18px;
  font-weight: bold;
}

.chatHeader .closeChat {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #ff0077;
  animation: pulso 1.5s infinite ease-in-out;
}

@keyframes pulso {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px #ff0077;
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px #007bff;
  }
}


/* Contenido del chat (mensajes) */

.chatContent {
  flex-grow: 1; /* Ocupa todo el espacio disponible */
  padding: 20px;
  background-color: #f9f9f9;
  overflow-y: auto; /* Permite desplazamiento */
  font-size: 18px;
  display: flex;
  flex-direction: column;
  padding-bottom:  30px; /* un poco más de espacio abajo */

}


/* Mensajes en el chat */
.chatContent .message {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

/* Estilos de mensajes enviados y recibidos */
.chatContent .received {
  align-self: flex-start;
  color: #055377;
  background-color: rgb(236, 233, 233);
  border-radius: 10px;
  padding: 8px 10px;

  font-size: 1rem;
  max-width: 70%;
}

.chatContent .sent {
  align-self: flex-end;
  background-color: rgb(234, 238, 244);
  border-radius: 10px;
  padding: 8px 10px;

  font-size: 1rem;
  max-width: 70%;
}

/* Footer del chat */

.chatFooter {
  flex-shrink: 0; /* Evita que el footer se reduzca */
  display: flex;
  border-top: 1px solid #ccc;
  background-color: #fff;
  padding: 5px;
  align-items: center;
  position: sticky;
  bottom: 20px; /* Añade un pequeño espacio hacia arriba */
  z-index: 10;
  width: 100%;
}


/* Formulario de mensajes */
.chatFooter form {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 5px 10px;
  justify-content: space-between;
  gap: 1%; /* Reducir el espacio entre los elementos */
  background-color: white;
}

/* Icono de emoji */
.emoji-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 8%;
}

.emoji-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Input de mensaje */
.chatFooter input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 15px;
  font-size: 16px;
  outline: none;

  width: 60%;
}

.container-imagen-audio {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 8%;
}

.container-imagen-audio img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Botón de enviar */
.chatFooter button {
  background-color: #0078d7;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;

  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
  width: 16%;
}

.chatFooter button:hover {
  background-color: #005a9e;
}

/*audio chat*/

/* Contenido del chat (mensajes) */

.chatContent {
  flex-grow: 1; /* Ocupa todo el espacio disponible */
  padding: 20px;
  background-color: #f9f9f9;
  overflow-y: auto; /* Permite desplazamiento */
  font-size: 18px;
  display: flex;
  flex-direction: column;
  padding-bottom: 100px; /* un poco más de espacio abajo */
}

/* Mensajes en el chat */
.chatContent .message {
  margin-bottom: 10px;
  /* IMPORTANTE: Mantener 'display: flex;' aquí es correcto para alinear el texto */
  display: flex;
  align-items: flex-start;
  
}

/* Estilos de mensajes enviados y recibidos */
.chatContent .received {
  align-self: flex-start;
  color: #055377;
  background-color: rgb(236, 233, 233);
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 1rem;
  max-width: 70%;
}

.chatContent .sent {
  align-self: flex-end;
  background-color: rgb(234, 238, 244);
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 1rem;
  max-width: 70%;
}

/* Footer del chat (no se modifica, solo para contexto) */
.chatFooter {
  flex-shrink: 0;
  display: flex;
  border-top: 1px solid #ccc;
  background-color: #fff;
  padding: 5px;
  align-items: center;
  position: sticky;
  bottom: 20px;
  z-index: 10;
  width: 100%;
}

.chatFooter form {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 5px 10px;
  justify-content: space-between;
  gap: 1%;
  background-color: white;
}

.emoji-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 8%;
}

.emoji-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.chatFooter input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 15px;
  font-size: 16px;
  outline: none;
  width: 51%;
}

.container-imagen-audio,.container-imagen-foto   {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 8%;
}

.container-imagen-foto  img{
    width: 100%;
  height: 100%;
  cursor: pointer;
}

.container-imagen-audio img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.chatFooter button {
  background-color: #0078d7;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
  width: 16%;
}

.chatFooter button:hover {
  background-color: #005a9e;
}

/*audio chat*/

/* CSS para la ventana de grabación de audio (se mantiene igual) */
.audio-recording-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column; /* Esto apila el texto "Grabando..." y el bloque de botones */
  align-items: center;
  gap: 15px;
  z-index: 1000;
  text-align: center;
}

.audio-recording-window p {
  margin: 0;
  font-size: 1.1em;
  color: #333;
}


.audio-recording-controls {
  display: flex;
  flex-direction: row; 
  justify-content: center; 
  gap: 10px; 
  width: 100%; 
}

.audio-recording-controls button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
  flex: 1;
  max-width: 120px; 
}

.audio-recording-controls button:first-child {
  background-color: #28a745;
  color: white;
  border-radius: 20px;
}

.audio-recording-controls button:first-child:hover {
  background-color: #218838;
}

.audio-recording-controls button:last-child {
  background-color: #dc3545;
  color: white;
    border-radius: 20px;

}

.audio-recording-controls button:last-child:hover {
  background-color: #c82333;
}

.audio-recording-controls button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* --- Media Query para pantallas pequeñas (celulares) --- */
@media (max-width: 600px) { /* Ajusta 600px si necesitas un breakpoint diferente */
  .audio-recording-window {
    width: 90%; /* Hacer la ventana un poco más estrecha en celulares */
    padding: 15px; /* Reducir el padding en celulares */
    gap: 10px; /* Ajustar el espacio entre elementos de la ventana */
  }

  .audio-recording-window p {
    font-size: 1em; /* Ajustar tamaño de fuente para móviles */
  }

  .audio-recording-controls {
    flex-direction: row; /* Aseguramos que sigan en fila, especialmente si alguna regla lo sobrescribiera */
    flex-wrap: wrap; /* Permite que los botones salten de línea si no caben */
    gap: 8px; /* Espacio más compacto entre los botones para celulares */
  }

  .audio-recording-controls button {
    font-size: 0.9em; 
    padding: 8px 15px; 
    flex: 1 1 45%; 
    max-width: none; 
  }
}


/* --- ESTILOS DE MENSAJES DE AUDIO: REFUERZO DE ESPECIFICIDAD --- */
/* (Estos estilos se mantienen exactamente como los anteriores que ya te funcionaron) */

/* Contenedor del mensaje de audio (el div con clases .message .sent .audio-message) */
.chatContent .message.audio-message {
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 70%;
  margin-bottom: 5px;
  word-wrap: break-word;
  background-color: #dcf8c6;
  align-self: flex-end;
  min-height: 40px;
  display: block;
  text-align: right;
  box-sizing: border-box;
}

/* Estilo del reproductor de audio HTML5 dentro del mensaje */
.chatContent .message.audio-message audio {
  display: block !important;
  width: 100% !important;
  max-width: 250px !important;
  min-width: 150px !important;
  height: 40px !important;
  margin: 0 auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.chatContent .message.audio-message.received {
  background-color: #ffffff;
  align-self: flex-start;
  text-align: left;
}
/*fin audio chat*/


/*modalUsuarioContainer*/

.modalUsuarioContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: scroll; /* ✅ Permite scrolleo total */
  z-index: 3000;
  background-color: rgb(248, 244, 244);
}

.modalUsuarioContainer {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE y Edge */
}

.modalUsuarioContainer::-webkit-scrollbar {
  display: none; /* Chrome, Safari y Opera */
}

/* Imagen de fondo fija */
.modalUsuarioContainer .fotoUsuarioModal {
  position: absolute;
  top: 0;
  left: 50%;
    transform: translateX(-50%); /* lo mueve hacia la izquierda la mitad de su ancho */
  width: 100%;
  height: 70vh;
  object-fit: cover;
  z-index: 1;
}

.cerrarModalUsuarioContainer {
  position: fixed;
  top: 1px;
  right: 2px;
  z-index: 3100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: none;

  animation: parpadeoSombra 1.2s infinite ease-in-out;
  border: 2px solid #ff0077;
  box-shadow: 0 0 5px #ff0077;
}

@keyframes parpadeoSombra {
  0%, 100% {
    box-shadow: 0 0 8px #ff0077;
  }
  50% {
    box-shadow: 0 0 3px #007bff;
  }
}


/* Botón chat */
.chatUsuarioContainer {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3100;
  background: rgb(65, 63, 63);
  padding: 10px 20px;
  color: white;
  font-size: 1.2rem;
  font-family: "Patrick Hand", cursive;
  border-radius: 25px;
  cursor: pointer;
  letter-spacing: 2px;
}




.flechaIzquierda,
.flechaDerecha {
  position: absolute;
  bottom: 20%;
  font-size: 1.3rem;
  color: white;
  background-color: rgba(0,0,0,0.5);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 10000000;
}

.flechaIzquierda {
  left: 10px;
  transform: translateY(-50%);
}

.flechaDerecha {
  right: 10px;
  transform: translateY(-50%);
}

/* Contenedor debajo de la imagen */
.contenidoModalUsuario {
  position: relative;
  z-index: 2;
  margin-top: 80vh;
  border-radius: 20px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  background: rgb(248, 244, 244);
  color: whitesmoke;
  box-sizing: border-box;
  max-height: 70vh;         /* Evita que se pase del alto de la pantalla */
  overflow-y: auto;         /* Scroll si el contenido excede el contenedor */
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 20px;
}

/* Texto */
.ubicacionActuales {
  background: linear-gradient(135deg, #dceeff, #eaf6ff); /* Azul clarito */
  padding: 16px 22px;
  border-radius: 18px;
  font-size: 1rem;
  color: #1e1e1e;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  line-height: 1.5;
  white-space: pre-wrap;
  text-align: left;
  border: 1px solid #b5d9ff;
}


.descripcionUsuarioModal {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  padding: 15px 20px;
  border-radius: 25px;
  font-size: 1.05rem;
  color: #333;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  word-break: break-word;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left;         /* Alinea el texto a la izquierda */
  text-indent: 20px;        /* Sangría en la primera línea */
  padding-left: 25px;       /* Margen interno a la izquierda */
}



/*contenedor de emojis*/

.emojisContainer {
  display: none;
  position: absolute; /* Flotante sobre el chat */
  bottom: 60px; /* Se ajusta sobre el chatModal */
  left: 50%;
  transform: translateX(-50%);
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 2000; /* Encima del chat */
  min-width: 250px; /* Asegura que sea visible */
  min-height: 100px; /* Evita que se vea pequeño */
}

.emoji {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s;
}

.emoji:hover {
  transform: scale(1.2);
}



/*  swal que se abre cada 12 usuarios*/

.swal-pequeno {
  width: 120px !important;
  padding: 10px !important;
}



/*media queries*/

@media (min-width: 769px) {
  .modalUsuarioContainer {
    display: none;
    position: fixed;
    top: 0;
    left: 50%; /* 🔹 Centro horizontal */
    transform: translateX(-50%); /* 🔹 Ajuste para centrar completamente */
    width: 600px;
    height: 100vh;
 
  }


  /* Imagen de fondo fija */
  .modalUsuarioContainer .fotoUsuarioModal {
    position: absolute;
    top: 0;
    width: 100%;
    object-fit: cover;
    z-index: 1;
  }




  .chatModal {
   
    height: 100vh; /* Ocupar casi toda la pantalla */
   
  }
}



  /* Ajustes para pantallas pequeñas */
  @media (max-width: 600px) {
    #localVideo {
      width: 100px !important;
      bottom: 5px !important;
      right: 5px !important;
    }
  }