body {
            width: 100% !important;
        }

        /* 1. Contenedor scrollable */
  .scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }
  /* 2. Evita que las tarjetas hagan wrap */
  .scroll-wrapper .row.flex-nowrap > [class*="col-"] {
    display: inline-block;
    float: none;
  }
  /* 3. Gradientes laterales como indicativo visual */
  .scroll-fade {
    position: absolute;
    top: 0; bottom: 0;
    width: 50px;
    pointer-events: none;
    z-index: 1;
  }
  .scroll-fade.left {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
  }
  .scroll-fade.right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
  }
  /* 4. Indicador móvil "Desliza →" */
  .scroll-indicator {
    margin-top: .5rem;
    font-size: .9rem;
    color: #666;
  }
  .image-box-des, .image-box-title{
    white-space:initial !important;
  }
  @keyframes pulse {
    0%,100% { transform: translateX(0) }
    50%     { transform: translateX(5px) }
  }
  .scroll-indicator span {
    display: inline-block;
    animation: pulse 1.5s infinite ease-in-out;
  }

  .img_icons{
    width: 80%;
  }
 

  /* { box-sizing: border-box; margin: 0; padding: 0; }*/

    .carousel_testimonials {
      position: relative;
      width: 100%;
      overflow: hidden;
      margin: 0;
      padding: 0;
    }

    .card_testimonialss-container {
      display: flex;
      transition: transform 0.3s ease;
    }

    .card_testimonials {
      flex: 0 0 calc(100% / 3);
      padding: 1rem;
    }

    .card_testimonials-inner {
      background: #f5f5f5;
      border-radius: 8px;
      padding: 1rem;
      text-align: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .carousel_testimonials .btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      border: none;
      color: #fff;
      padding: 0.2rem 0.4rem;
      cursor: pointer;
      border-radius: 4px;
      font-size: 1.2rem;
    }
    .carousel_testimonials #prev { left: 0.5rem; }
    .carousel_testimonials #next { right: 0.5rem; }

    @media (max-width: 767px) {
      .card_testimonials { flex: 0 0 100%; }
      .carousel_testimonials #prev { left: 1rem; }
      .carousel_testimonials #next { right: 1rem; }

      .img_icons{
        width:60%;
      }
    }

    /* Contenedor principal: columna flexible y desplazable si hay overflow */
.chat-container {
  width: 100%;
  max-width: 400px;
  height: 500px;
  margin: 2rem auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

/* Burbuja genérica: parte oculta y desplazada para animar */
.bubble {

  white-space: pre-wrap; /* respeta \n como salto */
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-family: sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
  
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mensajes enviados por el usuario (alineados a la derecha) */
.bubble.sent {
  align-self: flex-end;
  background: #1e88e5;
  color: #fff;
}

/* Mensajes recibidos del bot (alineados a la izquierda) */
.bubble.received {
  align-self: flex-start;
  background: #ececec;
  color: #333;
}

.bot-icon {
  font-size: 24px;
  line-height: 1;
}
.bot-header {
  font-size: .85rem;
  color: #555;
}
.bot-name {
  font-weight: 600;
}  

.top-right-img img{
    height: 650px;
    margin-top: 10vw;
    margin-left: 4vw;
  }

  @media (max-width: 1000px) {
    .top-right-img img{
      height: 550px;
      margin-top: 8vw;
      margin-left: 3vw;
    }
  }

/* Responsive para móviles */
@media (max-width: 600px) {
  .chat-container {
    /* ocupar casi todo el ancho sin salir del viewport */
    width: 90%;
    /* altura ajustable hasta un 70% de la ventana */
    height: auto;
    max-height: 70vh;
    margin: 1rem auto;
    padding: 0.75rem;
  }

  .casosDeUso {
        padding-top: 0px !important;
        padding-bottom: 30px !important;
    }

    .top-right-img img{
      display: none !important;
    }

  .top-right-img{
    background-image: url('../chat_conversacion_mobile.webp');
    height: 500px;
    background-size: contain;
    width: 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding-top: 2vw;
  }

  .bubble {
    /* texto y burbuja más compactos */
    font-size: 0.85rem;
    max-width: 85%;
    padding: 0.5rem 0.75rem;
  }

  .bot-icon {
    font-size: 20px;
  }

  .bot-header {
    font-size: 0.75rem;
  }
}

