/* ------------------------------------------ varables y utilidades ------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
:root {
	--colorPrincipal: #3f55b6;
	--colorSecundario: #4fb4af;
	--colorTerciario: #080808;
	--colorCuaternario: #1dbd9e;
	--colorBlanco: #fff;
	--colorNegro: #000;
	--fontTitle: 'Bebas Neue', cursive;
}

html {
	font-size: 62.5%;
}

p {
	word-break: break-word;
	overflow: auto;
}

body {
	font-size: 16px;
	background-color: var(--colorSecundario);
}

.boton-dow {
	display: inline-block;
	width: 10rem;
	max-width: 12rem;
	padding: 0.5rem;
	border: 0.1rem solid var(--colorPrincipal);
	background-color: var(--colorPrincipal);
	color: var(--colorBlanco);
	border-radius: 10rem;
	cursor: pointer;
	margin-bottom: 0;
	text-align: center;
}

.boton {
	width: 5.3rem;
	height: 5.3rem;
	padding: 1rem;
	border: 0.1rem solid var(--colorPrincipal);
	background-color: var(--colorPrincipal);
	color: var(--colorBlanco);
	border-radius: 10rem;
	cursor: pointer;
	margin-bottom: 0;
	text-align: center;
}

.boton:focus,
.boton:active,
.boton:hover,
.boton-dow:focus,
.boton-dow:active,
.boton-dow:hover {
	color: var(--colorBlanco) !important;
}

.boton-audio-activo {
	background-color: #fc6161 !important;
	border: 0.1rem solid #fc6161 !important;
}

.animacion-loader {
	background-image: linear-gradient(90deg, #f1f1f1 0, #ffffff 50%, #f1f1f1 100%);
	background-size: 25px 100%;
	background-repeat: no-repeat;
	background-position: left -40px top 0;
	animation: load 1s ease infinite;
}

@keyframes load {
	to {
		background-position: right -40px top 0;
	}
}

.material-symbols-outlined {
	line-height: 1.2;
}

.desactivado {
	filter: saturate(0.5);
}

/* ------------------------------------------ seccion de chat ------------------------------------------ */
.contenedor__chat__hero,
.contenedor__hilo__chat__hero {
	padding: 0;
}
.contenedor__chat__hero {
	grid-area: respuesta;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	grid-auto-flow: column;
	align-items: center;
	justify-content: center;
	align-content: center;
	justify-items: center;
	background-color: var(--colorSecundario);
}

.contenedor__formulario__mensaje {
	width: 90%;
}

.contenedor__formulario__mensaje form input[type='text'] {
	width: 100%;
	padding: 1rem;
	border: none;
	background-color: var(--colorBlanco);
	color: var(--colorTerciario);
	border-radius: 10rem;
	margin: 0;
	font-weight: 400;
	box-shadow: 0px 0.1rem 12px 7px #50a595;
}

.contenedor__formulario__mensaje form button[type='submit'] {
	width: 53px;
	height: 53px;
	padding: 1rem;
	border: 0.1rem solid var(--colorPrincipal);
	background-color: var(--colorPrincipal);
	color: #fff;
	border-radius: 10rem;
}

.contenedor__formulario__mensaje form {
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
	align-content: center;
	align-items: center;
	justify-content: space-evenly;
}

.contenedor__formulario__mensaje input[type='file'] {
	display: none;
}

.contenedor__formulario__mensaje label {
	width: 53px;
	height: 53px;
	padding: 1rem;
	border: 0.1rem solid var(--colorPrincipal);
	background-color: var(--colorPrincipal);
	color: #fff;
	border-radius: 10rem;
	cursor: pointer;
	margin-bottom: 0;
	text-align: center;
}

.contenedor__formulario__mensaje label.file_upload {
	background-color: #95a6f3;
	border-color: #95a6f3;
}
.contenedor__hilo__chat__hero h2 {
	text-align: center;
	font-size: 7rem;
	margin-bottom: 4rem;
	font-weight: bold;
	font-family: var(--fontTitle);
}

.titulo__avi {
	padding-top: 3rem;
	font-size: 40px;
	font-weight: bold;
	background: var(--colorBlanco);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (min-width: 768px) {
	.contenedor__formulario__mensaje form {
		flex-direction: row;
		column-gap: 1rem;
	}

	.contenedor__formulario__mensaje form input[type='text'] {
		width: 0%;
		flex: 1;
	}
	.contenedor__formulario__mensaje {
		width: 60%;
		max-width: 60%;
	}

	.chat__question {
		max-width: 85.8rem;
	}
}
/* ------------------------------------------ chat usario y respuesta ------------------------------------------ */
.contenedor__principal {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr 20rem auto;
	grid-template-areas:
		'chat__hilo'
		'respuesta'
		'historial';
}

@media (min-width: 1024px) {
	.contenedor__principal {
		grid-template-columns: 230px 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		grid-auto-rows: minmax(100px, auto);
		grid-template-areas:
			'historial chat__hilo chat__hilo'
			'historial respuesta respuesta';
	}
}

#respuesta_ia {
	grid-area: chat__hilo;
}

.contenedor__hilo__chat__hero {
	display: flex;
	/* align-items: center; */
	flex-direction: column;
	justify-content: center;
	height: 72vh;

	align-items: center;
	background-color: var(--colorSecundario);
}

.contenedor__hilo__chat {
	height: 72vh;
	background-color: #08080830;
	padding: 1rem;
	border-radius: 1rem;
	width: 90%;
	max-width: 90%;
	max-height: 60rem;
	overflow: auto;
	padding: 1rem;
	display: flex;
	flex-direction: column-reverse;
}

.content__chat__img {
	width: 5rem;
	height: 5rem;
	min-width: 5rem;
	min-height: 5rem;
	border-radius: 100%;
	overflow: hidden;
	background-color: gray;
}

.content__chat__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chat__question {
	display: flex;
	flex-direction: row-reverse;
	column-gap: 1rem;
	padding: 1rem;
	background-color: var(--colorBlanco);
	color: var(--colorTerciario);
	border-radius: 1rem;
	margin-bottom: 2rem;
	/* max-width: 35rem; */
}
@media (min-width: 768px) {
	.chat__question {
		max-width: 100%;
	}
}

.content__chat__info {
	flex-grow: 1;
	overflow-wrap: break-word;
	word-wrap: break-word;
	overflow: auto;
}

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

@media (min-width: 1024px) {
	.contenedor__hilo__chat {
		width: 60%;
		max-width: 60%;
	}
}

/* diseño respuestas */
.chat__content__res {
	background-color: var(--colorBlanco);
	border-radius: 1rem;
	padding: 1rem;
	margin-bottom: 2rem;
}

.chat__res__info {
	display: flex;
	column-gap: 1rem;
}

.res__info__toggle {
	width: 5rem;
	height: 5rem;
	min-width: 5rem;
	min-height: 5rem;
	border-radius: 100%;
	overflow: hidden;
	background-color: gray;
}

.res__info__toggle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.info__res {
	flex-grow: 1;
}

/* ------------------------------------------ diseño chat ------------------------------------------ */

form input[type='text'] {
	border: 2.5px solid #000000;
}

.timeline-comment-box {
	display: flex;
	gap: 10px;
}

.timeline-comment-box .input {
	flex: 1;
}

.card__histri_date {
	display: flex;
	align-items: baseline;
}

.contenedor__historial {
	color: white;
	max-height: calc(90vh - 10rem);
	overflow: auto;
}

.contenedor__historial::-webkit-scrollbar {
	width: 10px;
	background: transparent;
}

.contenedor__historial::-webkit-scrollbar-thumb {
	background: transparent;
	border: 2px solid var(--color-web-5);
	border-radius: 10px;
}

.card__histori {
	padding: 5px;
	border-radius: 1rem;
	background-color: #08080830;
	cursor: pointer;
}

.card__histori:hover {
	background: var(--colorPrincipal);
}

.profile-header-info {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.profile-header-info h3 {
	color: var(--color-web-2);
}

.titulo__histori .material-symbols-sharp {
	font-size: 30px;
	vertical-align: bottom;
}

.title__base {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.card__histori__head h6 {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

main {
	background-color: var(--colorSecundario);
	height: auto;
}

@media (min-width: 1024px) {
	main {
		max-height: 100vh;
	}
}

.contenedor__historial_hero {
	color: white;
	grid-area: historial;
	padding: 1rem;
}

.titulo__histori {
	font-size: 3rem;
	font-family: var(--fontTitle);
}

.contenedor__title__histori {
	text-align: center;
}

.contenedor__title__histori input[type='text'] {
	width: 100%;
	color: var(--colorNegro);
	border-radius: 5rem;
}

#buscar {
	margin-bottom: 1rem;
	padding: 1rem;
	background-color: var(--colorPrincipal);
	font-size: 1.3rem;
	border-radius: 5rem;
	color: var(--colorBlanco);
}
