
.Holasoy{
    width: 80px;
    position:absolute;
    display:block;margin:0; 
    right:15px;top:-10px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 157, 0.6));
}

.welcome-message H1{
        margin:0 auto ;
        font-size: 1.2rem;
        max-width: 300px;
        /* background: #00b8ff; */
        /* margin-top: 90px; */
    }
 
/* .voice-settings {
  position: absolute;
  top: 10px;
  right: -30px;
  font-size: 1.5rem;
  cursor: pointer;
  filter: drop-shadow(0 0 15px rgba(0, 255, 157, 0.6));
  
  transition: transform 0.2s ease;
} */




  
  .ROBOT {
    position: absolute;
    top:50px;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: auto;
    transition: all 0.8s ease-in-out;
    z-index: 1010;
  }

  .ROBOT-table{
        /* robot del inicio */
        transition: all 0.8s ease-in-out;
        z-index: 1010;

  }
  .ROBOT-table.hablando{
    position: absolute;
    top: 100px !important;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%) scale(2.9); /* Centrado y agrandado */
    z-index: 100000;
  }

  
  .ROBOT.hablando {
    position: absolute;
    top:50px;
    bottom: 52%;
    right: 50%;
    transform: translate(50%, 50%) scale(2.9); /* Centrado y agrandado */
    z-index: 100000;

  }

  /* .robot-min{
    margin-top:50px;
    width: 50px;
    height: auto;

  } */


#gifHabla {
    display: none;
    width: 100px;
    height: auto;
}


.anchomenu_encuesta{
    width: 150px !important;
}
#advice-text{
    color: blue;    
}
#confirm-no, #confirm-yes{
cursor: pointer;
}

#advice-text {
    line-height: 1.1;
    font-family: Arial, sans-serif;
    font-size: 12px;
  }


.gif-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 100px;
}

.gif-container img {
    width: 100%;
    height: 100%;
}

.cuestion_gad{
    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    background-color:#2E64C8;
    /* background-color:#0328048b; */
    padding: 10px;
    margin-bottom: 20px;
}



.btn_redondo{
    border-radius: 5px;
    height: 30px;
    border: 0px;
    margin: 5px;
}

#gad7-container{
  max-height: 400px; /* Puedes ajustar este valor */
  overflow-y: auto;
}


.btn_redondo{
    cursor: pointer;
}

.table-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 97% !important;
    max-width: 280px !important;
    /* max-height: 390px !important; */
    transform: translate(-50%, -50%);
    background: rgba(178, 211, 246, 0.3);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border-radius: 15px !important;
    z-index: 1000;

    /* Efecto de vidrio */
backdrop-filter: blur(10px) !important;
-webkit-backdrop-filter: blur(10px) !important; /* Para compatibilidad con Safari */
border: 1px solid rgba(172, 236, 193, 0.3) !important;

}




.table-container h2 {
  color: rgb(55, 54, 54) !important;
  font-family:Arial, Helvetica, sans-serif;


}

.close {
    display: inline-block;
    padding: 5px 10px;
    background-color: red;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
  }
  .close:hover {
    background-color: darkred;
  }

  .close-chat {
     position: absolute;
    top: 12px;
    right: 14px;
    left: auto;

    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border-radius: 50%;
    background: rgba(15, 61, 62, 0.08);
    color: #0F3D3E;

    font-size: 24px;
    font-weight: normal;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: background 0.2s ease, opacity 0.2s ease;

  }

  @keyframes parpadeo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.blink {
    animation: parpadeo 1s infinite;
}

  .close-chat:hover {
    background: rgba(15, 61, 62, 0.15);
    opacity: 1;
  }

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container table td {
    text-align: center;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.overlay-emociones {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.5); */
    /* z-index: 103; */
}

.chat-popup {
    display: none;
    position: fixed;
    top: calc(50% - 40px);
    left: 50%;
    transform: translate(-50%, -50%);
    /* background: rgba(250, 250, 250, 0.3); */
    /* background-color: #465b8a87; */
    background-color:#2E64C8;

    /* backdrop-filter: blur(4px); */


    /* background: white; */
    width: 98% !important;
    max-width: 410px !important;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    z-index: 1001;
    

    /* Efecto de vidrio */
/* backdrop-filter: blur(10px) !important;
-webkit-backdrop-filter: blur(10px) !important;  */

/* Para compatibilidad con Safari */
}

.chat-popup textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
}

.chat-popup button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Estilo base para la imagen */
img[alt="GIF"] {
    width: 50px; /* Ancho base para pantallas grandes */
    height: auto;
    position: absolute;
    top: -5px;
    right: 70px;
    bottom: 20px;
    transition: all 0.3s ease; /* Animación suave para cambios */
    /* background: red; */
}


#procesando{
    margin: 0 auto;
    width: 40px; /* Ancho base para pantallas grandes */
    height: auto;
    right: 200px;
    top: 15px;
}

#procesando-chat{
    margin: 0 auto;
    width: 40px; /* Ancho base para pantallas grandes */
    height: auto;
    right: 200px;
    bottom: 20px;
}

.fugraemotion{
    filter: drop-shadow(0 0 10px rgba(0, 255, 157, 0.6));
}

.emotion-container {
    
    /* border-radius: 8px; */
    padding: 5px;
    margin-left:2px;
    margin-right:2px;
    margin-top:5px;
    text-align: center;
    font-size: 18px; /* Tamaño del emoji */
    cursor: pointer;
     
}

.emotion-container:hover {
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.08);
    /* background-color: #f0fdf4; */
     
     
    /* background-color: #4caf4f4f; */
}

.emotion-label {
    display: block;
    margin-top: 5px;
    font-size: 8px; /* Tamaño de la letra de la emoción */
    /* font-weight: bold; */
    color: #f2f0f0; /* Color del texto */
}
.chat-history{
    padding: 10px; text-align: justify;max-height: 350px; overflow-y: scroll;margin-top: 20px; margin-bottom: 10px;
}




/* Estilo responsivo para pantallas medianas */
@media (max-width: 768px) {
    
    .table-container{
        
        width: 85% !important;
        /* background: #4CAF50; */
        padding-left: 20px;
        padding-right: 20px;
            
    }

    .chat-popup{
        width: 90% !important;
        /* background: #ad3737; */
    }
    

    .chat-history{
        margin: 0 auto;
        width: 90% !important; 
        /* background: #4CAF50 !important; */
    }
    


}



/* Estilo responsivo para pantallas pequeñas */
@media (max-width: 620px) {
   
    .chat-history{
        width: 370px; 
        /* background: #4CAF50 !important; */
    }

    #procesando{
        left:70px;
    }

    .overlay-emociones {
        width: 90%;
    }

    /* .table-container{
        width: 97%;
            
    } */

    .chat-popup {
        padding: 5px !important ;
        width: 90% !important;
       }

    /* .table-container table {
        width: 90%;
        
        border-collapse: collapse;
    } */

    
    
    .emotion-label {
        display: block;
        margin-top: 10px;
        font-size: 8px; /* Tamaño de la letra de la emoción */
        
       
    }


}


@media (max-width: 550px) {
    .ROBOT-table{
        top:-5px !important;
        right:80px !important;
        width: 50px !important;
        /* background: #4caf4f48; */
        
        
    }
}






/* Estilo responsivo para pantallas pequeñas */
@media (max-width: 480px) {
    .ROBOT{
        /* right: 170px !important; */
        /* background: #4CAF50; */
        width: 50px !important;
        /* top: -40px !important;; */
         

    }
    .chat-popup {
        padding: 5px !important ;
        width: 90% !important;
       }

    .chat-history{
        margin: 0 auto;
        width: 330px; 
         /* background: #4CAF50 !important; */
        margin-top: 35px;
        left: 20px;

    }

    

    .table-container{
        width: 85% !important;        
    }

    .emotion-container {
       
        font-size: 18px; /* Tamaño del emoji */
        
    }


    .emotion-label {
        display: block;
        margin-top: 3px;
        font-size: 8px; /* Tamaño de la letra de la emoción */
       
    }


    
    /* .emotion-label {
        display: block;
        margin-top: 10px;
        font-size: 1.7vw; 
        
        
    } */

   


}

/* Estilo responsivo para pantallas pequeñas */
@media (max-width: 410px) {
    
  .Holasoy{ 
    right:-10px;
  }

   .welcome-message H1{
        margin:0 auto ;
        font-size: 1rem;
        max-width: 230px;
        /* background: #00b8ff; */
        /* margin-top: 90px; */
    }

    .table-container h2{
        font-size: clamp(18px, 5vw, 38px);
    }
            

    .overlay-emociones {
        width: 80%;
    }
    .table-container {
        width: 79% !important;
        
    }


    .emotion-container {
       
        font-size: 18px; /* Tamaño del emoji */
        
    }


    .emotion-label {
        display: block;
        margin-top: 3px;
        font-size: 8px; /* Tamaño de la letra de la emoción */
       
    }

    .chat-popup {
        padding: 5px !important ;
        /* width: 360px !important; */
       }


       
}


/* Estilo responsivo para pantallas pequeñas */
@media (max-width: 390px) {

    .table-container{
        /* width: auto; */
        /* background: #4CAF50 !important; */
    }
    .emotion-label{
        /* display:none ; */
    }
    
    .table-container table {
        /* width: 95%; */
        /* width: 320px !important; */
        border-collapse: collapse;
        /* background: #ad3737; */
    }
    .chat-popup {
     padding: 5px !important ;
     /* width: 350px !important; */
    }
   
     
    
}



/* Asegurar que la animación funcione para ambos tamaños */
@keyframes equalizerAnimation {
    0%, 100% { 
        transform: scaleY(1); 
        opacity: 0.7;
    }
    50% { 
        transform: scaleY(1.3); 
        opacity: 1;
    }
}

/* Para el equalizador pequeño en el chat */
#robot-main .equalizer .bar {
    transition: height 0.2s ease;
}



/* Estilos específicos para el texto hablado en el chat */
.palabra-actual-chat {
    color: #25D366 !important;
    background: rgba(37, 211, 102, 0.15) !important;
    padding: 1px 3px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
    transition: all 0.2s ease !important;
}

.texto-hablado-chat {
    font-size: 11px !important;
    line-height: 1.1 !important;
    color: rgb(233, 229, 229) !important;
    display: block !important;
    margin: 2px 0 !important;
}


.chat-popup {
  background: rgba(255, 248, 242, 0.96);
  color: #3A312C;
  box-shadow: 0 10px 24px rgba(80, 56, 42, 0.16);
  border: 1px solid rgba(192, 138, 107, 0.20);
  border-radius: 16px;
}

.cuestion_gad {
  background: rgba(243, 231, 219, 0.94);
  box-shadow: 0 6px 18px rgba(80, 56, 42, 0.10);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 20px;
}

.table-container {
  background: rgba(255, 248, 242, 0.82);
  border: 1px solid rgba(192, 138, 107, 0.18) !important;
  box-shadow: 0 10px 24px rgba(80, 56, 42, 0.14);
}