/* Por defecto habilitamos scroll */
body {
    overflow-y: auto;
  }
  
  html {
    overflow-y: scroll;
  }
  body.modal-open {
    padding-right: 0 !important;
  }

  /* En pantallas móviles (por ej. hasta 767px de ancho) */
  @media (max-width: 767px) {
    /* ocultar scrollbar, pero mantener scroll */
    body {
      -webkit-overflow-scrolling: touch; /* scroll suave iOS */
      overflow-y: scroll;
    }
  
    /* Ocultar barra scroll para navegadores WebKit */
    body::-webkit-scrollbar {
      display: none;
    }
  
    /* Firefox */
    body {
      scrollbar-width: none;
      -ms-overflow-style: none; /* IE 10+ */
    }
  }
  
.thumbail > img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid blue;
    cursor: pointer;
}
.thumbail:hover .thumbail_under{
    display: block;
}
.thumbail_under{
    display: none;
    position: absolute;
    width: 100px;
    height: 100px;
    z-index: 10;
    background-color: rgba(255,255,255,0.5);
}
.msg-from{
    display: block; align-self:  left; 
    width: max-content; background-color: white; padding: 5px; 
    min-width: 100px;
    margin: 2px; 
    position: relative; border-radius: 5px; font-size:1em;
    max-width: 60%; margin-left: 7%;
    box-shadow: 0 1px .5px rgba(120,120,120,.13);
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    margin-top: 12px;
    font: inherit;
    font-size: 100%;
    color: black;
}
.msg-to{
    display: block; align-self:  end; 
    width: max-content; background-color: #dcf8c6; padding: 5px; 
    min-width: 100px;
    margin: 2px;
    position: relative; border-radius: 5px; font-size:1em;
    max-width: 60%;margin-left: auto; margin-right: 7%;
    box-shadow: 0 1px .5px rgba(120,120,120,.13);
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    margin-top: 12px;
    font: inherit;
    font-size: 100%;
    color: black;
}
.msg-hour{
    text-align: right; font-size: 0.75em;
}




.chat-window{
    width: 100%; height: 70%; max-height: 70%; position: absolute; padding-top: 0px; overflow-y: scroll;
}

.bg-messenger {
    background-color: lightyellow; width: 100%; min-height: 80%; position: absolute; padding-top: 0px;
}
.contact_list {
    margin-top: 100px; position: absolute; width: 100%; min-height: 100%; padding-top: 0px;
}
.contact{
    background-color: white; height: 60px; width: 100vw; position: relative; border-bottom: solid 1px gray;
    display: inline-flex;
}
.img-contact {
    width: 15vw;
}
.img-contact img {
    width: 60px;
}
.name-contact {
    color: black; width: 65vw;
}
.name-user {
    font-size:18px; padding-top:5px;
}
.last-msg{
    font-size:12px; padding-bottom: 5px;
}
.info-contact{
    width: 20vw; padding-right: 10px; padding-top:5px;
}
.time-msg{
    text-align: right; font-size: 12px;
}
.count-msg{
    text-align: right;
}

.msg-to::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 10px solid #dcf8c6;
    border-left: 10px solid transparent;
}

.msg-from::after {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 10px solid white;
    border-right: 10px solid transparent;
}

.chat-window {
    background-image: url('https://web.whatsapp.com/img/bg-chat-tile-dark_f0da8c6eeb1a8c1dc4e4.png');
    background-repeat: repeat;
    background-size: 400px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-from, .msg-to {
    animation: fadeInUp 0.3s ease;
}
.msg-hour {
    float: right;
    font-size: 0.7em;
    color: #888;
    margin-left: 10px;
}

.bg-sel-contact {
    background-color: lightgray;
}

.contacto-item {
    color:black;
}


.object-fit-cover {
    object-fit: cover;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    font-size: 2rem;
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    border-radius: 6px;
  }
  