#galeria{
    position: absolute;
    width: 100svw;
    top: 100svh;  
    left: 0; 
    right: 0;
}

.div-galeria{
    position: absolute;    
    width: 100svw;    
    background-color: black;
}

.texto-galeria{
    display: flex;    
    position: relative;
    width: 100svw;
    height: 10%;
    font-size: calc(0.6 * var(--x));
    color: white;
    font-family: poppins;
    justify-content: left;
    align-items: center;
    padding-left: 10px;    
    background-color: black;    
}

.iconos-galeria{
    display: flex;
    position: relative;
    width: 100svw;
    height: 10%;
    background-color: black;
}

.div-img-galeria{
    position: relative;
    width: 100svw;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-galeria{
    width: 100svw;
    height: 100%;
    object-fit: cover;
    display: block; /* evita espacios por defecto */
}

.cont-comentarios-galeria,
.cont-megusta-galeria{
    display: flex;
    font-size: calc(0.6 * var(--x));
    color: white;
    font-family: poppins;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
    padding-top: 10px;
}

.div-megusta-galeria,
.div-comentarios-galeria{
    display: flex;
    justify-content: center;
    align-items: center;    
    width: 10%;
}

.megusta-galeria,
.comentarios-galeria{
    position: relative;
    width: 55%;
    padding-left: 10px;
}

/***************************************************************/
/*                       COMENTARIOS                           */
/***************************************************************/

#fondo-comentario{
    display: none; /* Inicialmente oculta */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente */        
    z-index: 1000;
}

#div-comentarios{
    position: fixed;
    background-color: black;
    bottom:0;
    width: 100%;
    height: 88%;  
    border-radius: 40px 40px 0px 0px;       
    overflow: hidden;   /* para que se vean las puntas redondeadas*/
    box-shadow: 8px 8px 40px white;
    transition: height 2s;
    z-index: 1600;
    transition: transform 1s ease;  
}

.div-comentarios-cerrado{
    transform: translateY(100%); /* baja fuera de pantalla */
}

#div-comentario{
    position: absolute;
    bottom: 3%;
    width: 94%;
    height: 6%;
    left: 3%;
    padding: 0;
    border: 0px;  
    font-size: calc(0.7 * var(--x)); 
}


#texto-comentario{
    position: absolute;
    width: 80%;
    height: 100%;    
    padding-left: 1%;
    outline: none;
    border : 0px;
    font-size: calc(0.7 * var(--x)); 
    display: inline-block;   /* Asegura que se comporte como un elemento estándar */
    margin: 0;               /* Por si tiene margen externo */
    box-sizing: border-box;  /* Controla cómo se calcula el tamaño total */      
}

#comentario-enviar{
    position: absolute;
    display: flex;
    right: 0%;
    width: 20%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: calc(0.6 * var(--x));
    color: white;
    font-family: poppins;
    justify-content: center;
    align-items: center;    
}

#div-comentarios-anteriores{
    position: absolute;    
    display: block;
    right: 3%;
    top: 2%;
    width: 94%;
    height: 86%;
    overflow-y: auto;                  /* permite scroll vertical */
    overflow-x: hidden;                /* evita scroll horizontal */
    -webkit-overflow-scrolling: touch; /* scroll suave en iOS */
    touch-action: pan-y;               /* permite solo scroll vertical con el dedo */    
    scrollbar-width: none;
    transition: height 0.2s linear;
}

#div-comentarios-anteriores::-webkit-scrollbar {
  display: none;             /* oculta la barra en Chrome, Safari, Edge */
}


body.bloqueo-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

.comentario-cabezal{
    display: flex;
    height: 5%;
    width: 100%;
}

.comentario-foto{
    position: relative;
    width: auto;
    height: 100%;
}

.comentario-nombre{
    position: relative;
    display: flex;
    width: 50%;
    height: 100%;
    color: white;
    font-family: poppins;
    font-size: calc(0.6 * var(--x));        
    justify-content: left;
    align-items: center;
    padding-left: 3%;
}

.comentario-fecha{
    position: relative;
    display: flex;
    right: 2%;
    width: 40%;
    height: 100%;
    color: white;
    font-family: poppins;
    font-size: calc(0.6 * var(--x));        
    justify-content: right;   
}

.comentario-texto{
    position: relative;
    display: block;
    width: 86%;
    left: 12%;
    height: auto;
    white-space: normal;       /* Permite saltos de línea */
    word-wrap: break-word;     /* Rompe palabras largas si es necesario */
    overflow-wrap: break-word; /* Soporte adicional para navegadores */
    color: rgba(255, 255, 255, 0.5);
    font-family: poppins;
    font-size: calc(0.6 * var(--x));    
    justify-content: left;
    align-items: center;      
    padding-bottom: 2%;
    padding-top: 2%;
}

