/* Widget flotante (antes modal) */
.survey-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 20px;
    width: 300px;
    z-index: 999;
    animation: fadeInUp 0.4s ease;
  }
  
  @keyframes fadeInUp {
    from {
      transform: translateY(30px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  .widget-content h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
  }

  
  
  /* Emojis (con hover y selección personalizados) */
  .emoji-rating {
    font-size: 2.2rem;
    cursor: pointer;
    margin: 0 6px;
    padding: 10px;
    border-radius: 50%;
    display: inline-block;
    user-select: none;
    transition: all 0.3s ease;
  }
  
  .emoji-rating[data-score="1"]:hover {
    background-color: #f44336;
    color: white;
  }
  .emoji-rating[data-score="2"]:hover {
    background-color: #ff9800;
    color: white;
  }
  .emoji-rating[data-score="3"]:hover {
    background-color: #ffeb3b;
    color: black;
  }
  .emoji-rating[data-score="4"]:hover {
    background-color: #8bc34a;
    color: white;
  }
  .emoji-rating[data-score="5"]:hover {
    background-color: #4caf50;
    color: white;
  }
  
  .selected[data-score="1"] {
    background-color: #f44336;
    color: white;
    transform: scale(1.3);
  }
  .selected[data-score="2"] {
    background-color: #ff9800;
    color: white;
    transform: scale(1.3);
  }
  .selected[data-score="3"] {
    background-color: #ffeb3b;
    color: black;
    transform: scale(1.3);
  }
  .selected[data-score="4"] {
    background-color: #8bc34a;
    color: white;
    transform: scale(1.3);
  }
  .selected[data-score="5"] {
    background-color: #4caf50;
    color: white;
    transform: scale(1.3);
  }
  
  #feedback-text {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    min-height: 24px;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  textarea {
    width: 90%;
    margin-top: 14px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
  }
  
  /* Botón enviar */
  .survey-widget button {
    margin-top: 12px;
    padding: 8px 14px;
    border: none;
    background-color: #198754;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
  }
  
  .survey-widget button:hover {
    background-color: #157347;
  }
  
  /* Ocultar */
  .hidden {
    display: none;
  }
  
  /* Media query para móviles */
  @media (max-width: 480px) {
    .survey-widget {
      bottom: 10px;
      right: 10px;
      left: 10px;
      width: auto;
      max-width: 100%;
      padding: 15px;
      border-radius: 12px;
    }
  
    .widget-content h4 {
      font-size: 1rem;
    }
  
    .emoji-rating {
      font-size: 1.75rem;
      margin: 0 4px;
      padding: 8px;
    }
  
    textarea {
      width: 90%;
      font-size: 0.9rem;
    }
  
    .survey-widget button {
      font-size: 0.95rem;
      padding: 8px;
    }
    
  }
  