html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
	overflow-y: hidden;
    background-color: #0070a0; /* ✅ Aseguramos fondo completo */
	overscroll-behavior: none;
	/*touch-action: manipulation; */ /* Evitar zoom y rotación en Android */
}

html {
    /*height: -webkit-fill-available;*/
    height: 100%;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/*
input, textarea, select {
	font-size: 16px !important;
}
*/

.icon-badge {
    display: inline-flex; /* Cambio clave */
    align-items: center;  /* Centro vertical */
    justify-content: center; /* Centro horizontal */
    width: 20px;
    height: 20px;
    background-color: #0070a0;
    border-radius: 4px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.icon-badge i {
    color: white;
    font-size: 12px;
}

/* Estilos para el popup */
.popup {
    display: none; /* Inicialmente oculto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenido del popup */
.popup-content {
    background-color: white;
    padding: 20px 20px 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left; /* Alinear los textos dentro del popup a la izquierda */
    position: relative;
    width: 90%; /* Establecer un tamaño fijo para el popup */
    overflow-y: auto; /* Permitir scroll si el contenido excede el alto */
    max-height: 80vh; /* Limitar el alto del popup */
	font-size: 15px; /* Tamaño de fuente de 15px para los textos generales */
}

/* Estilo para los botones */
.button-container {
    display: flex;
    flex-wrap: wrap; /* Permite que los botones se ajusten en varias filas */
    gap: 10px; /* Espacio entre los botones */
    margin-bottom: 10px; /* Espacio debajo de cada grupo de botones */
	/*margin-top: 25px;*/
}

.number-btn {
    display: flex;
    justify-content: inherit; /* Alinea el texto de cada botón al centro */
    align-items: center;
    padding: 5px 10px 5px 10px;
    font-size: 16px;
    background-color: #0070a0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box; /* Incluir el padding en el tamaño total del botón */
	/*height: 30px;*/
	height: auto; /* 👈 Importante: deja la altura automática */
    min-height: 30px; /* 👈 Altura mínima como la que tenías */
    white-space: normal; /* 👈 Permite que el texto se divida en varias líneas */
    text-align: center; /* 👈 Asegura el centrado del texto */
    line-height: 0.5; /* 👈 Opcional: mejora el espaciado de líneas */
}

.number-btn:hover {
    background-color: #005f7a;
}

/* Botón con ancho flexible */
/*
.wide-btn {
    width: auto;
    padding: 10px 20px;
	height: 30px;
}
*/

/* Estilo para el botón de cierre */
.close-btn {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 30px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
}

.close-btn:hover {
    color: #0070a0;
}

/* Inputs de ancho completo */

.popup-input, .popup-input-2 {
	width: 100%; /* Ocupa todo el ancho disponible */
	padding: 10px;
	margin-bottom: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
	height: 30px;
}

/* Botón de guardar */
#save-btn, #save-btn2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-size: 16px;
    background-color: #0070a0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    height: 30px; /* Altura ajustada para que sea similar a los demás botones */
    width: 100%;  /* Aseguramos que el botón ocupe todo el ancho disponible */
}

/* Hover sobre el botón de guardar */
#save-btn:hover, #save-btn2:hover {
    background-color: #005f7a;
}

/* Deshabilitado (cuando no se puede hacer clic) */
#save-btn:disabled, #save-btn2:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/****/

.rating-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 0 10px;
    box-sizing: border-box;
}

.rating-container .stars {
    width: 50%;
    display: flex;
    justify-content: left;
    align-items: center;
}
.rating-container .buttons {
    width: 50%;
    display: flex;
    justify-content: right;
    align-items: center;	
}

.stars {
    font-size: 24px;
    color: #fff;
}

.buttons {
    gap: 10px;
    justify-content: center;
}

.buttons button {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 26px;
    padding: 0px 0px;
}

button:disabled {
    background-color: #ccc; /* Gris claro */
    color: #666; /* Texto en gris oscuro */
    cursor: not-allowed; /* Cambia el cursor a "no permitido" */
    opacity: 0.6; /* Reduce la opacidad para mayor claridad */
}

.custom-btn {
    background-color: #0070a0 !important;
    border-color: #0070a0 !important;
    color: white !important; /* Color del icono */
}

.custom-btn:hover {
    background-color: #005b80 !important;
    border-color: #005b80 !important;
}

#input-form {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
	padding: 0px 10px 30px 10px
}

#input-field {
    width: 97%;
    height: 40px; /*5vh;*/
    border: 1px solid #eef1f5;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 15px;
    outline: none;
	background-color: #fff;
}
.input-focus {
    border: 1px solid black !important;
    background-color: #fff !important; /* Fondo blanco */
}
.input-select {
    border: 1px solid #eef1f5 !important;
    background-color: #e5e5e5 !important; /* Fondo blanco */
}

/* Para pantallas de tamaño tablet (hasta 1024px) y móviles */
@media screen and (max-width: 1024px) {
    #input-field {
        width: 90%;
    }
}

#input-field:focus {
    border-color: #fff;
    outline: none;
}

#submit-button {
    width: 3%;
    height: 6vh;
    background-color: transparent;
    border: none;
    font-size: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
/* Para pantallas de tablet y móvil (hasta 1024px) */
@media screen and (max-width: 1024px) {
    #submit-button {
        width: 10%;
    }
}

.send-icon {
    margin-right: 10px;
    cursor: pointer;
}

form button.submit:hover {
    background: #06b79a;
    color: #fff;
}

#preloader {
	position: fixed;
	width: 100%;
	height: 100%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.spinner-img {
	width: 100px;
	height: 100px;
	animation: spin 2s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.hidden {
	opacity: 0;
	visibility: hidden;
}

.box-header.with-border {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
}

.full-height {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
	background-color: #e5e5e5;
}

.box-header {
    flex: 0 0 auto;
}

/*
.box-footer {
    margin-top: auto;
}
.box-footer.text-right.p-0 {
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 999;
}
*/
.box-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
	height: 125px; /* 👈 Ajusta la altura real del footer */
}

#chatbot-container {
display: flex;
flex-direction: column;
height: 100vh; 
width: 100%; 
background-color: #e5e5e5; 
/*
box-sizing: border-box;
*/
}

#chatbot {
flex: 1;
overflow-y: auto;
/*padding: 30px 10px;*/
box-sizing: border-box;
background-color: transparent;
overscroll-behavior: contain;
height: calc(100vh - 100px - 50px); /* Alto viewport - alto footer - alto header aproximado */
-webkit-overflow-scrolling: touch; /* ✅ importante para iOS */	
/*
margin-top: 50px;
margin-bottom: 125px;
*/
}

#conversation {
/*padding: 30px 10px 100px 10px*/
padding: 0px 10px 0px 10px;
/*
display: flex;
flex-direction: column;
background-color: transparent;
*/
}

@keyframes message-fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.chatbot-message {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    font-size: 15px !important;
    line-height: 20px;
    border-radius: 20px;
    word-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
    padding: 0;
	margin-bottom: 5px;
}
.user-message {
    justify-content: flex-end !important;
}
.chatbot-text {
    background-color: white;
    color: #000000;
    font-size: 15px !important;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 5px;
	margin-bottom: 8px;
}
.chatbot-p {
    background-color: #d9fdd3;
}
.chatbot-v {
    width: 100%;
    margin-bottom: 10px;
}
.chatbot-i {
    width: 100%;
    margin-bottom: 10px;
}
@media (max-width: 768px) { /* Ajusta el ancho de pantalla según necesites */
    .chatbot-i {
        width: 100%;
    }
}
.chatbot-b {
    background-color: white !important;
    color: #31b0d5 !important;
    border-color: white !important;
    padding: 0 !important;
	font-size: 15px !important;
	text-align: left;
}


::-webkit-scrollbar {
    width: 10px;
}
/* Track */

::-webkit-scrollbar-track {
    background: #f1f1f1;
}
/* Handle */

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.jumping-dots span {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  animation: jump 1.5s infinite;
  display: inline-block;
}

.jumping-dots {
	display: flex;
	height: 30px;
    padding: 14px 8px 8px 8px;
}

.jumping-dots .dot-1 {
  background-color: #0070a0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
  animation-delay: 200ms;
}

.jumping-dots .dot-2 {
  background-color: #0070a0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
  animation-delay: 400ms;
}

.jumping-dots .dot-3 {
  background-color: #0070a0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
  animation-delay: 600ms;
}

@keyframes jump {
  0% {
    bottom: 0px;
  }
  20% {
    bottom: 5px;
  }
  40% {
    bottom: 0px;
  }
}

.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.stepper button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 20px;
  font-weight: bold;
  margin: 0 5px;
  background-color: #0070a0;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1;
  padding: 0;
}

.stepper button:hover {
  background-color: #005f7a;
}

.stepper input {
  height: 32px;
  width: 60px;
  text-align: center;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  padding: 0 5px;
  line-height: 1;
  margin-bottom: 0px;
}

#video-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.close-button {
    position: absolute;
    top: -50px; /* 👈 Subimos el botón de cerrar */
    right: 0;
    font-size: 24px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 1001;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0070a0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
}

.play-button:hover {
    background: #005f7a;
}

table td, table th {
	padding: 10px 10px;
	vertical-align: top;
	border: 1px solid #0070a0;
}

/* ⏰ INTERRUPTOR tipo “iOS switch” */
alarm-toggle-inline {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.alarm-label {
	font-size: 1.2rem;
	font-weight: bold;
}

/* Toggle básico */
.toggle {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

.toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 24px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 18px; width: 18px;
	left: 3px; bottom: 3px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

.toggle input:checked + .slider {
	background-color: #66bb6a;
}

.toggle input:checked + .slider:before {
	transform: translateX(26px);
}

/* 📅 / ⌚  CAMPOS NUMÉRICOS Y DE HORA  */
input[type="number"],input[type="time"]{
    /*width:5.5rem;          /* tamaño cómodo en móvil */
    height:38px;           /* dejamos respirar el selector */
    font-size:16px;
    padding:5px 8px;
    border:1px solid #ccc;border-radius:4px;
    background:#fff;color:#000;
    line-height:1.2;       /* anulamos tu 0.5 */
}

input[type="time"]::-webkit-calendar-picker-indicator{
    opacity:1;filter:invert(20%);
}

.btn-form {
    width: fit-content;      /* ⬅️  se adapta al contenido */
    display: inline-flex;    /* ⬅️  evita que flex-box lo estire */
}

/* 🖱️  EVITAR que otros inputs queden aplastados por line-height:0.5 */
/*.number-btn, .wide-btn{line-height:normal}*/
