html,
body {
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -ms-font-smoothing: antialiased;
  font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh; /* Asegura altura mínima completa */
  overflow-y: auto; /* Habilita scroll vertical por defecto */
  -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

body {
  font: 16px/1.6 'Raleway', Arial, Helvetica, sans-serif;
  text-align: center;
  background: #222;
  opacity: 0.8;
  background: -moz-linear-gradient(top, #e8e4f5 0%, #e2dbfc 50%, #cec2f7 70%, #f3b7ee 100%);
  background: -webkit-linear-gradient(top, #e8e4f5 0%, #e2dbfc 50%, #cec2f7 70%, #f3b7ee 100%);
  background: linear-gradient(to bottom, #e8e4f5 0%, #e2dbfc 50%, #cec2f7 70%, #f3b7ee 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e8e4f5', endColorstr='#f3b7ee', GradientType=0);
}

.chats-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.chat-container {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  width: 250px;
  box-shadow: rgba(138, 43, 226, 0.8) 4px 4px 25px 1px;
  flex: 1 1 250px;
  box-sizing: border-box;
  min-width: 200px;
  max-width: 300px;
}

.chat-container h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
  text-align: center;
}

.chat {
  height: 150px;
  background-color: #fff;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 5px;
}

.chat-container input[type="text"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 6px;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-sizing: border-box;
}

.btn-chatbot {
  background: rgba(138, 43, 226);
  color: whitesmoke;
  text-align: center;
  line-height: 15px;
  padding: 12px 25px;
  border-radius: 8px;
  border: solid 1px rgba(138, 43, 226, 0.8);
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 50px 0;
}

.btn-chatbot:hover,
.btn-chatbot:focus {
  color: fuchsia;
  border: 2px dotted fuchsia;
  box-shadow: rgba(138, 43, 226, 0.8) 4px 4px 25px 1px;
  background: none;
}

.btn-chatbot:focus {
  box-shadow: none;
  outline: none;
}

.link-chatbot {
  background: rgba(138, 43, 226);
  color: whitesmoke;
  text-align: center;
  font-size: large;
  line-height: 15px;
  padding: 10px 10px;
  border: solid 1px rgba(138, 43, 226, 0.8);
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 5px;
  display: inline-block;
  margin: 20px 10px 20px 10px;
  text-decoration: none;
}

.link-chatbot:hover,
.link-chatbot:focus {
  color: fuchsia;
  border: 2px dotted fuchsia;
  box-shadow: rgba(138, 43, 226, 0.8) 4px 4px 25px 1px;
  background: none;
  text-decoration: none;
}

.link-chatbot:focus {
  box-shadow: none;
  outline: none;
}

.chat-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

@media screen and (max-width: 768px) {
  body {
    font: 16px/1.6 'Raleway', Arial, Helvetica, sans-serif;
    text-align: center;
    background: #222;
    background: -moz-linear-gradient(top, #e8e4f5 0%, #e2dbfc 50%, #cec2f7 70%, #f3b7ee 100%);
    background: -webkit-linear-gradient(top, #e8e4f5 0%, #e2dbfc 50%, #cec2f7 70%, #f3b7ee 100%);
    background: linear-gradient(to bottom, #e8e4f5 0%, #e2dbfc 50%, #cec2f7 70%, #f3b7ee 100%);
    min-height: 100vh; /* Altura mínima completa */
    width: 100vw; /* Ancho completo */
    margin: 0;
    padding: 0;
    overflow-y: auto !important; /* Fuerza scroll vertical */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
  }

  .chats-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    width: 100%;
  }

  .chat-container {
    width: 90%;
    max-width: 100%;
    min-width: 0;
    margin: 10px 0;
  }
}