/*h3,h4{
    margin-block: var(--sp) !important;
}
img{
    height: revert-layer !important;
}
video {
  width: 100%;
  height: auto;
  pointer-events: none;
}
 video::-webkit-media-controls {
    display: none !important;
  }
  video::--ms-expand {
    display: none !important;
  }
  video::-webkit-media-controls-enclosure {
    display: none !important;
  }
  audio {
    display: none;
  }
  .fade-out {
    opacity: 0;
    transition: opacity 0.5s;
  }

.video-container {
  position: relative;
  width: 100%;   
  margin: auto;
  overflow: hidden;
}

.background-video {
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0px;
  left: 0;
  width: 400px;
  height: 550px;
  flex-direction: column;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  font-size: 12px;
  color: #000;
  h1{
      font-size: 1.75rem;
      margin: 0;
  }
  h2{
      font-size: 1.25rem;
      margin: 0;
  }
  #conversationBox
  {
      margin-top: 15px;
      margin-bottom: 15px;
  }
  p{
      margin: 0;
      line-height: 2;
  }
}

.overlay2 {
  position: absolute;
  top: 20px;
  left: 395px;
  width: 1030px;
  height: 770px;
  flex-direction: column;
  background: rgba(0, 0, 0, 0); 
  padding: 20px;
  box-sizing: border-box;
  font-size: 14px;
  color: #000;
  overflow:auto;
  z-index: 98;
  h1{
      font-size: 1.75rem;
      margin: 0;
  }
  h2{
      font-size: 1.25rem;
      margin: 0;
      line-height: 1.5;
  }
  p{
      line-height: 2;
      margin-top: 5px;
      margin-bottom: 5px;
  }
  ul{
      line-height: 2;
  }
  div{
      line-height: 2;
  }
}
.overlay3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 96%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0 , 0.5); 
  color: #fff;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  font-size:32px;
  z-index: 99;
}
.tapaLogo {
  position: absolute;
  top: 0;
  left: 1180px;
  width: 300px;
  height: 96px;
  background: #c5e2fd;
  z-index: 90;
}
@media (min-width: 75rem) {
  .site-header {
      min-height:auto !important;
  }
}
.site-header__fixable {
  height: 105px !important;
}
.stop_button {
  position: absolute;
  top: 725px;
  left: 270px;
  width: 100px;
  height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
input {
  width: 313px !important;
  height: 60px;
}
@media (min-width: 31.25rem) {
 textarea {
      width:100% !important;
  }
}
button{
  width: 100px;
  height: 30px;
  margin-top: 5px;
}
*/




.overlay_assistant {
/*    position: fixed;*/
    top: 150px;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 9999;
    display: flex;

    @media (max-width: 768px) {
      flex-direction: column;
    }
}

.video-column {
  width: 20%;
  /*height: 100%;*/
  justify-content: end;
  display: flex;
  flex-direction: column;
  position: relative;

  @media (max-width: 768px) {
    align-items: center;
    width: 100%;
    .video-container {
      width: 50%;
    }

  }

  &.reduced
  {
    flex-direction:row;
    width: 100%;
    align-items: flex-end;
    @media (max-width: 768px) {
    margin-bottom: 8px;
    min-height: 255px;
    }
    
    .video-container {
      flex: 0 0 30%;
    }
    #conversationBoxM{
      flex: 0 0 70%;
    }
  }

}

.action-section {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente */
  text-align: center; /* Asegura que el texto se alinee en el centro */  
  min-height: 51px;
}

.video-container {
  height: 83%;
  display: flex;
  position: relative;
/*  background-color: #c5e2fd;*/
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.right-side {
  width: 80%;
  display: flex;
  flex-direction: column;

  @media (max-width: 768px) {
    flex-direction: column-reverse;
    width: 100%;
  }


}

.orange-section {
  flex-grow: 1;
  display: flex;
  max-height: 425px;
  position: relative;

  @media (max-width: 768px) {
    margin-bottom: 20px;
  }
}

.input-container {
  padding: 20px;
  padding-right: 0;
  padding-top: 0;
  display: flex;
  align-items: center;
  height: 90px;
  @media (max-width: 768px) {
    padding-bottom: 0;
    padding-left: 0;
    height: 60px;
  }
  /*background-color:rgba(256, 255, 255, 0.9);*/
}

.input-container input {
  flex-grow: 1;
/*  margin-right: 10px;*/
  background-color:rgba(256, 255, 255, 0.2);
/*  border: 1px solid rgba(255, 255, 255, 0.8); Borde semitransparente */
  border: none;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  color: #000; /* Texto negro */
}

.input-container input::placeholder
{  font-style: italic;}

.inputNull::placeholder
{
  color: red !important;
}

.input-container button {
  padding: 10px 20px;
}


input:focus {
  outline: none;
  border: none;
}


.show-in {
  display: flex !important;
}
.show-in-b {
  display: block !important;
}
.show-out {
  display: none !important;
}

.product-box-container {
    position: relative;
    width: 100%;
    transition: height 0.3s ease;
}

.product-box-container.minimized {
    height: 15px;
    overflow: hidden;
}

#productBox {
    width: 100%;
    transition: height 0.3s ease;

    overflow: auto; /* Activa el scroll cuando el contenido supera la altura */
    /*border: 1px solid #ccc;*/ /* Borde opcional */
    padding: 10px;
    max-height: 409px;

    @media (max-width: 768px) {
      background-color: rgba(256, 255, 255, 0.2);
      }

}

#botonToggleProduct {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 1000;
}

.product-box-container.minimized #botonToggleProduct {
    top: 0;
    left: 0;
    height: 15px;
    width: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-box-container.minimized #botonToggleProduct i {
    font-size: 12px;
}

#conversationBox
{ 
  background-color:rgba(256, 255, 255, 0.2);
  overflow: auto; /* Activa el scroll cuando el contenido supera la altura */
  padding: 10px 0 10px 10px;
  max-height: 409px;
  position: relative;
  text-align: left !important;
  border-radius: 5px;
}

#conversationBoxM
{ 
  background-color:rgba(256, 255, 255, 0.2);
  overflow: auto; /* Activa el scroll cuando el contenido supera la altura */
  padding: 10px;
  max-height: 230px;
  text-align: left !important;
  border-radius: 5px;
  @media (max-width: 768px) {
    height: 255px;
    max-height: 255px;
  }
}

.texto-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards; /* Animación de 1 segundo */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.respKedonti{
  color: #5DADE2;
  font-weight:bold;
}
.respTu{
  color: #666;
  font-weight:bold;
}
.textKedonti{
  padding-bottom: 10px;
  display: block;
}

.full-width
{width:100%}

.no-width
{width:4%}

.mayor-width
{
  width:70%;
  @media (max-width: 768px) {
    width:100%;
  }
}

.minor-width
{
  width:30%;
  @media (max-width: 768px) {
    width:0%;
  }
}

a.boton{
  background-color:rgba(200, 200, 200, 0.7);
  padding:10px;
}

#burger{
  max-width: 20px;
  max-height: 20px;
  margin-right: 10px;
}

.toggle-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-menu-btn i {
  color: #343f52;
  font-size: 0.8rem;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.toggle-menu-btn i.fa-times {
  transform: rotate(180deg);
}

.toggle-menu-btn i.fa-bars {
  transform: rotate(0deg);
}

.btn_small
{ 
  padding: 6px 15px !important;
  font-size: 14px !important;
}

::-webkit-scrollbar {
  width: 6px; /* más fino */
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent; /* o un color suave */
  margin-right: 2px; 
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.3); /* color del scroll */
  border-radius: 3px;
  border-right: 2px solid transparent;

}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.5);
}
.row
{margin-right: 0px !important;}

.no_mobile
{
  @media (max-width: 768px) {
    display:none !important;
  }
}
.only_mobile
{
  @media (min-width: 769px) {
    display:none !important;
  }
}


.overlay_assistant_2 {
      position: fixed;
      top:145px;
      right: 10px;
      max-width: 410px;
      z-index: 9999;
      display: flex;
      background-color:rgba(0, 0, 0, 0.4);
      flex-direction: row;
      justify-content: end;

      @media (max-width: 768px) {
        max-width: 315px;
      }

      &.dark-mode
      {
        background-color:rgba(0, 0, 0, 0.4);

        .right-side
        {justify-content: end;}

        .respTu{
          color: #AED6F1;
        }
      }
  
      @media (max-width: 768px) {
        flex-direction: row;
      }

      .left-side
      {
        width: 70%;
        display: flex;
        flex-direction: column;
        justify-content: end;
        background-color: rgba(20, 20, 20, 0.8);

        .input-container{
          padding: 0;
          height: auto;

          form{
            text-align: right;
            width: 100%;
            position: relative;
          }

          input{
            font-size: 14px;
            min-width: 256px;
            margin: 0;
            background-color: #2C3E50;
            color:#FDFEFE;
            padding-right: 80px; /* Increased for two buttons */

            @media (max-width: 768px) {
              min-width: 221px;
              font-size: 12px;
            }
          }
          input::placeholder
          { color:#FDFEFE;}

          a{
            /*margin-bottom: 10px;*/
          }

          .btn_small
          {padding: 1px 15px !important;}

          /* Fix for action icons container */
          .action-icons {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            height: 30px;
            padding: 0;
            width: 70px;
            z-index: 10;
          }

          .icon-btn {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            width: 28px;
            height: 28px;
          }

          .icon-btn.icon-send {
            background-color: #45c4a0;
            color: white;
/*            margin-right: 8px;*/
          }

          .icon-btn.icon-voice {
            background-color: #6c757d;
            color: white;
          }

          .icon-btn i {
            font-size: 14px;
          }

          .icon-btn.icon-voice.active {
            background-color: #dc3545; /* Red when recording */
            box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.3);
            animation: darkGlow 1.5s infinite;
          }
        }

        #conversationBox
        { 
          height: 260px;
          padding: 0;
          background-color: rgba(60, 60, 60, 0.8);
          color:#EAECEE;
          border-radius: 0;
          padding-left: 5px;
          margin-bottom: 5px;
          
          .textKedonti
          {font-size: 14px;
            @media (max-width: 768px) {
              font-size: 12px;
            }
          }

          h2
          { color:#EAECEE;
            font-size: 14px;}

          #conversation {
            margin-top: 0px; /* Mover hacia arriba */
          }
        }
            
      }


      .right-side {
        flex-direction: column;
        flex-wrap: wrap;
        align-content: center;
        width: auto;

        @media (max-width: 768px) {
          width: 100%;
        }

        .video-column {
          width: 135px;
          height: auto;
          margin-left: 8px;

          @media (max-width: 768px) {
            width: 80px;
            align-items: normal;
            margin-left: 14px;
          }
        }
          
        .buttons-container{
          padding: 10px;
          padding-top: 0px;
          display: flex;
          align-items: center;
          height: auto;
          justify-content: center;
          flex-direction: column;

          .btn_small
          {
            margin-top:5px;
          }


          @media (max-width: 768px) {
            padding: 6px;
            margin-left: 0;

            .btn_small
            {
              font-size: 10px !important;
            }
         
          }
        }
      }

  }

.sound-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
  border: 1px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  @media (max-width: 768px) {
    width: 24px;
    height: 24px;  
    z-index: 999;
  }

}

.sound-toggle-btn i {
  color: #fff;
  font-size: 0.7rem;
  transition: transform 0.3s ease, opacity 0.2s ease;
  @media (max-width: 768px) {
    font-size: 0.6rem;
  }
}

.sound-toggle-btn i.fa-volume-up {
  transform: rotate(0deg) scale(1);
}

.sound-toggle-btn i.fa-volume-mute {
  transform: rotate(360deg) scale(1.1);
}

.sound-toggle-btn.unmuted i {
  color: #fff;
}

/* Estilos específicos para el botón de sonido en el párrafo */
.overlay_assistant .video-container .sound-toggle-btn, .orange-section .sound-toggle-btn {
  top: 65px;
  left: 20px;
  right: auto;
  width: 30px;
  height: 30px;
  border: 1px solid #343f52;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  @media (max-width: 768px) {
    top: -10px;
    left: 5px;  
    width: 25px;
    height: 25px;  
  }
}

.overlay_assistant .video-container .sound-toggle-btn i, .orange-section .sound-toggle-btn i {
  color: #343f52;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.overlay_assistant .video-container .sound-toggle-btn i.fa-volume-up, .orange-section .sound-toggle-btn i.fa-volume-up {
  transform: rotate(0deg) scale(1);
}

.overlay_assistant .video-container .sound-toggle-btn i.fa-volume-mute, .orange-section .sound-toggle-btn i.fa-volume-mute {
  transform: rotate(360deg) scale(1.1);
}

.overlay_assistant .video-container .sound-toggle-btn.unmuted i, .orange-section .sound-toggle-btn.unmuted i  {
  color: #343f52;
}

.conversation-header {
  position: sticky;
  top: 0;
  right: 0; 
  z-index: 100;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 30px;
  box-sizing: border-box;
  border-bottom: none; /* Quitar el borde inferior */
}

#conversationBox {
  padding-top: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 425px;
  overflow: hidden;
}

#conversation {
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  flex: 1;
  margin-top: -30px; /* Mover hacia arriba */
}

/* Ajustar el texto para alinearlo correctamente */
.textKedonti {
  padding-top: 0;
  padding-bottom: 10px;
  display: block;
}

/* Estilos para los iconos que reemplazan a los botones */
.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding-right: 45px; /* Espacio para los iconos */
}

.action-icons {
  position: absolute;
  right: 5px; 
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 5px 0;
  justify-content: center;
}

.icon-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  min-width: 24px; /* Evitar que se deforme */
  min-height: 24px; /* Evitar que se deforme */
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  padding: 0; /* Eliminar padding que podría deformar */
  overflow: hidden; /* Mantener el contenido dentro del círculo */
}

.icon-send {
  background-color: #45c4a0; /* Color verde del botón original */
  color: white;
}

.icon-close {
  background-color: #d9534f; /* Color rojo del botón original */
  color: white;
}

.icon-btn:hover {
  transform: scale(1.1);
}

.icon-btn i {
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Estilo específico para el botón de cierre en la esquina superior */
.close-position {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
  background-color: transparent;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Estilo para el botón de borrar conversación */
.clear-position {
  position: absolute;
  top: 32px;
  right: 5px;
  z-index: 10;
  background-color: transparent;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  @media (max-width: 768px) {
    top:40px;
  }
}

.close-position i, .clear-position i {
  color: white;
}

/* Mantener el botón de envío con su estilo actual */
.action-icons {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 5px 0;
  justify-content: center;
}

/* Actualizar #conversationBox para manejar la posición absoluta del botón de cierre */
#conversationBox {
  position: relative;
}

/* Styles for the paragraph template input form */
.overlay_assistant .input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.overlay_assistant .input-wrapper input {
  width: 100%;
  padding-right: 85px; /* Increased space for both buttons */
  border-radius: 50px;
  height: 45px;
}

.overlay_assistant .icon-btn.icon-send {
  position: absolute;
  right: 46px; /* Moved to make space for voice button */
  top: 50%;
  transform: translateY(-50%);
  background-color: #45c4a0;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.overlay_assistant .icon-btn.icon-send:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 3px 7px rgba(0,0,0,0.3);
}

.overlay_assistant .icon-btn.icon-send i {
  font-size: 16px;
}

/* Styles for the voice button */
.overlay_assistant .icon-btn.icon-voice {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #6c757d; /* Gray color */
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.overlay_assistant .icon-btn.icon-voice:hover {
  background-color: #5a6268;
  box-shadow: 0 3px 7px rgba(0,0,0,0.3);
}

.overlay_assistant .icon-btn.icon-voice.active {
  background-color: #dc3545; /* Red when recording */
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.3);
  animation: glow 1.5s infinite;
}

.overlay_assistant .icon-btn.icon-voice i {
  font-size: 16px;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0 0px rgba(220, 53, 69, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(220, 53, 69, 0.4);
  }
}

@keyframes darkGlow {
  0% {
    box-shadow: 0 0 0 0px rgba(220, 53, 69, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(220, 53, 69, 0.4);
  }
}

/* Override styles for voice button positioning - add at end of file */
.overlay_assistant_2 .left-side .input-container .input-wrapper {
  position: relative;
}

.overlay_assistant_2 .left-side .input-container .action-icons {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 60px;
}

.overlay_assistant_2 .left-side .input-container .icon-btn.icon-send {
  position: static;
/*  margin-right: 8px;*/
}

.overlay_assistant_2 .left-side .input-container .icon-btn.icon-voice {
  position: static;
}

/* Force buttons to display side by side */
.overlay_assistant_2 .left-side .input-container .icon-btn {
  display: inline-block !important;
  vertical-align: middle !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  text-align: center !important;
  border-radius: 50% !important;
  flex: none !important;
}

#my-video-wait-ios,
#my-video-speak-ios {
    height: 280px;
    width: auto;
    object-fit: contain;
}