@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
	font-family: 'Poppins', sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* ===== Colores ===== */
	--wrapper-color: #f7f7f7;
	--sidebar-color: #fff;
	--primary-color: #a21a1a;
	--primary-color-light: #f8f8f8;
	--toggle-color: #ddd;
	--text-color: #707070;

	/* ===== Transiciones ===== */
	--tran-02: all 0.2s ease;
	--tran-03: all 0.3s ease;
	--tran-04: all 0.4s ease;
	--tran-05: all 0.5s ease;
}
#wrapper {
	background: var(--wrapper-color);
	transition: var(--tran-05);
	position: relative;
}
#wrapper.oscuro {
	--wrapper-color: #18191a;
	--sidebar-color: #242526;
	--primary-color: #3a3b3c;
	--primary-color-light: #3a3b3c;
	--toggle-color: #fff;
	--text-color: #ccc;
}

/* ===== Sidebar ===== */
.sidebarm {
	position: fixed;
	left: 0;
	/*height: calc(100% - 505px);*/
	width: 250px;
	padding: 10px 14px;
	background: var(--sidebar-color);
	transition: var(--tran-05);
	z-index: 100;
}
.sidebarm.cerrar {
	width: 88px;
}
/* ===== Reutilizable ===== */
.sidebarm .text {
	font-size: 16px;
	font-weight: 500;
	color: var(--text-color);
	transition: var(--tran-03);
	white-space: nowrap;
	opacity: 1;
}
.sidebarm.cerrar .text {
	opacity: 0;
}
.sidebarm .image {
	min-width: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sidebarm li {
	height: 50px;
	/*background: red;*/
	margin-top: 0px;
	list-style: none;
	display: flex;
	align-items: center;
}
.sidebarm li .icon {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	font-size: 20px;
}
.sidebarm li .icon,
.sidebarm li .text {
	color: var(--text-color);
	transition: var(--tran-02);
}
.sidebarm header {
	position: relative;
}
.sidebarm .image-text img {
	width: 80px; /*  40px */
	border-radius: 6px;
}
.sidebarm header .image-text {
	display: flex;
	align-items: center;
}
.sidebarm header .image-text .header-text {
	display: flex;
	flex-direction: column;
}
.sidebarm header .image-text .header-text .name {
	font-weight: 600;
	font-size: 24px;
}
.sidebarm header .image-text .header-text .profession {
	margin-top: -2px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.2rem;
}
.sidebarm header .toggle {
	position: absolute;
	top: 50%;
	right: -25px;
	transform: translateY(-50%) rotate(180deg);
	height: 25px;
	width: 25px;
	background: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--sidebar-color);
	font-size: 22px;
	transition: var(--tran-03);
}
.sidebarm.cerrar header .toggle {
	transform: translateY(-50%);
}
#wrapper.oscuro .sidebarm header .toggle {
	color: var(--text-color);
}
.sidebarm .menu {
	margin-top: 10px;
}
.sidebarm .search-box {
	background: var(--primary-color-light);
	border-radius: 6px;
	transition: var(--tran-05);
}
.sidebarm .search-box input {
	height: 100%;
	width: 100%;
	padding: 0;
	outline: none;
	border: none;
	border-radius: 6px;
	background: var(--primary-color-light);
	transition: var(--tran-05);
}
.sidebarm li a {
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	text-decoration: none !important;
	border-radius: 6px;
	transition: var(--tran-04);
}
.sidebarm li a:hover {
	background: var(--primary-color);
}
.sidebarm li a:hover .icon,
.sidebarm li a:hover .text {
	color: var(--sidebar-color);
}
#wrapper.oscuro .sidebarm li a:hover .icon,
#wrapper.oscuro .sidebarm li a:hover .text {
	color: var(--text-color);
}
.sidebarm .menu-bar {
	height: calc(100% - 50px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.sidebarm .menu-bar .mode {
	position: relative;
	border-radius: 6px;
	background: var(--primary-color-light);
}
.sidebarm .menu-bar .mode .moon-sun {
	height: 50px;
	width: 60px;
	display: flex;
	align-items: center;
}
.sidebarm .menu-bar .mode i {
	position: absolute;
	transition: var(--tran-03);
}
.sidebarm .menu-bar .mode i.sun {
	opacity: 0;
}
#wrapper.oscuro .menu-bar .mode i.sun {
	opacity: 1;
}
#wrapper.oscuro .menu-bar .mode i.moon {
	opacity: 0;
}
.sidebarm .menu-bar .mode .toggle-switch {
	position: absolute;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-width: 60px;
	cursor: pointer;
	border-radius: 6px;
	background: var(--primary-color-light);
	transition: var(--tran-05);
}
.sidebarm .menu-bar .mode .toggle-switch .switch {
	position: relative;
	height: 22px;
	width: 44px;
	margin-left: 10px;
	border-radius: 25px;
	background: var(--toggle-color);
	transition: var(--tran-05);
}
.sidebarm .menu-bar .mode .toggle-switch .switch::before {
	content: '';
	position: absolute;
	height: 15px;
	width: 15px;
	border-radius: 50%;
	top: 50%;
	left: 5px;
	transform: translateY(-50%);
	background: var(--sidebar-color);
	transition: var(--tran-03);
}
#wrapper.oscuro .menu-bar .mode .toggle-switch .switch::before {
	left: 24px;
}
.home {
	position: relative;
	/*height: 100vh;*/
	left: 250px;
	width: calc(100% - 250px);
	background: var(--wrapper-color);
	transition: var(--tran-05);
}
.home .text {
	/*font-size: 30px;
  font-weight: 500;*/
	color: var(--text-color);
	padding: 8px 40px;
}
.sidebarm.cerrar ~ .home {
	left: 88px;
	width: calc(100% - 88px);
}
@media screen and (max-width: 736px) {
	.home .text {
		padding: 8px 10px;
	}
	.home ul.icons li {
		display: grid;
		padding: 0 0.5em 0 0;
	}
}
