/* VARIABLES */

:root {
	--primary-color: #766eff;
	--secondary-color: #18c6e9;
	--bg-color: #e3edf9;
	--accent-color: #465456;
}

html {
	scroll-behavior: smooth;
}


/*#region ------------------------ TEXTS ------------------------ */
	.text-oneclick {
		color: var(--primary-color);
	}

	.text-oneclick-gradient-1 {
		background: var(--primary-color);
		background: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}

	.text-primary{
		color: var(--primary-color) !important;
	}

	.text-primary:focus{
		outline: unset;
	}

	.uppercase {
		text-transform: uppercase;
	}

	.required-tooltip{
		font-weight: bold;
		color: #5952d7;
	}

	a{
		color: #5952d7;
	}
/*#endregion TEXTS*/


/*#region ------------------------BUTTONS------------------------ */

	.btn-primary {
		background-color: var(--primary-color);
	}

	.btn-primary {
		color: #ffffff;
		background-color: var(--primary-color);
		border-color: var(--primary-color);
		box-shadow: none;
	}

	.btn-primary:hover,
	.btn-primary:focus,
	.btn-primary:active {
		color: #ffffff;
		background-color: #655eeb !important;
		border-color: #655eeb !important;
	}

	.btn-primary:disabled {
		color: #ffffff;
		background-color: #5952d7;
		border-color: #5952d7;
	}

	.btn-lp {
		color: #fff;
		display: inline-block;
		font-size: 16px;
		font-weight: 500;
		line-height: 0.8;
		text-transform: capitalize;
		padding: 20px 40px;
		border-radius: 100px !important;
	}

	.btn-rounded {
		border-radius:100px !important;
	}

	.help-assistant{
		background-color:rgba(255,255,255,1);
		border: none;
		border-radius: 50px;
		color: #655eeb;
	}

/*#endregion BUTTONS*/

/* Badges */
.badge-primary{
	background-color: #655eeb;
}

.search-bar_dropdown{
	border-radius: 25px;
	box-shadow: -1px 12px 13px 4px rgba(0,0,0,0.16);
	-webkit-box-shadow: -1px 12px 13px 4px rgba(0,0,0,0.16);
	-moz-box-shadow: -1px 12px 13px 4px rgba(0,0,0,0.16);
}

.ui-autocomplete{
	border-radius: 0 0 25px 25px;
	z-index: 1;
}

#barra-busqueda{
	position: relative;
	z-index: 2;
}


#barra-busqueda.autocomplete-open {
    border-radius: 25px 25px 0 0;
	box-shadow: 0 -4px 6px -4px rgba(50, 50, 93, 0.11),
				0 -1px 3px -1px rgba(0, 0, 0, 0.08);
}

#barra-busqueda {
    transition: all 0.2s ease;
}

.ui-menu-item-wrapper{
	transition: all 0.2s ease;
}
.ui-menu-item-wrapper:hover{
	background-color: rgba(0, 123, 255, 0.1) !important;
	border: 0;
}

/* Badges */

/*#region ------------------------ SINAVBAR ADM ------------------------*/
	.sidebar-dark-primary {
		background: #1b2d40 !important;
	}

	.navbar-light {
		background: #1b2d40 !important;
	}

	.nav-header,
	.sidebar a {
		color: white !important;
	}

	.navbar-light .navbar-nav .nav-link {
		color: white !important;
	}

	.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
		color: #fff;
		background-color: #766EFF;
	}
/*#endregion SINAVBAR ADM*/

/*#region ------------------------ LOGIN ------------------------*/

	/* ADMINISTRATION*/
	
	.login-page {
		background-color: var(--bg-color) !important;
	}
	
	.login-card-body {
		border-radius: 25px;
	}

	/*USER*/

	.section_gap{
		margin-top: 5em;
	}

	.login_box_area .login_box_img {
		position: relative;
		border-radius: 15px;
	}
	.login_box_area .login_box_img img {
		width: 100%;
		border-radius: 15px;
	}
	.login_box_area .login_box_img:before {
		position: absolute;
		left: 0;
		top: 50%;
		height: 50%;
		width: 100%;
		content: "";
		background: var(--primary-color);
		opacity: 0.9;
		border-end-end-radius: 15px;
		border-end-start-radius: 15px;
	}
	.login_box_area .login_box_img .hover {
		position: absolute;
		top: 75%;
		left: 0px;
		text-align: center;
		width: 100%;
		transform: translateY(-50%);
	}
	.login_box_area .login_box_img .hover h4 {
		font-size: 24px;
		color: #fff;
		margin-bottom: 15px;
	}
	.login_box_area .login_box_img .hover p {
		max-width: 380px;
		margin: 0px auto 25px;
		color: #fff;
	}
	.login_box_area .login_box_img .hover .primary-btn {
		border-radius: 0px;
		line-height: 38px;
		text-transform: uppercase;
	}
	.login_box_area .login_box_img .hover .primary-btn:hover:before {
		left: 260px;
	}

	.login_form_inner {
		box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.07);
		height: 100%;
		text-align: center;
		padding-top: 115px;
		border-radius: 15px;
	}
	.login_form_inner h3 {
		color: #222222;
		text-transform: uppercase;
		font-size: 18px;
		margin-bottom: 30px;
	}
	.login_form_inner .login_form {
		max-width: 385px;
		margin: auto;
	}
	.login_form_inner.reg_form {
		padding-top: 60px;
	}
	.login_form_inner.reg_form h3 {
		margin-bottom: 70px;
	}


	.login_form .form-group .creat_account {
		margin-top: 10px;
		margin-bottom: 15px;
		text-align: left;
	}
	.login_form .form-group .creat_account input {
		height: auto;
		margin-right: 10px;
	}
	.login_form .form-group .primary-btn {
		display: block;
		border-radius: 0px;
		line-height: 38px;
		width: 100%;
		text-transform: uppercase;
		border: none;
	}
	.login_form .form-group .primary-btn:hover:before {
		left: 370px;
	}
	.login_form .form-group a {
		font-family: "Roboto", sans-serif;
		margin-top: 20px;
	}
/*#endregion LOGIN*/

/*#region ------------------------ DATA TABLE SELECT ------------------------*/
	table.dataTable.table-sm>thead>tr>th {
		padding-right: 5px;
	}

	table.dataTable tr th.select-checkbox::before {
		content: ' ';
		display: block;
		padding-right: 0;
		margin: auto;
		width: 13px;
		height: 13px;
		border: 1px solid black;
		border-radius: 3px;
	}

	table.dataTable tr th.select-checkbox.selected::after {
		display: block;
		position: absolute;
		content: "\2714";
		top: 30px;
		left: 14px;
		width: 12px;
		height: 12px;
		text-align: center;
		text-shadow: rgb(176, 190, 217) 1px 1px, rgb(176, 190, 217) -1px -1px, rgb(176, 190, 217) 1px -1px, rgb(176, 190, 217) -1px 1px;
	}

	@media (max-width: 768px) {

		.btn {
			width: 100%;
		}

		.btn-no-block{
			width: auto;
		}

		table.dataTable tr th.select-checkbox.selected::after {
			display: block;
			position: absolute;
			content: "\2714";
			top: 54px;
			left: 12px;
			width: 12px;
			height: 12px;
			text-align: center;
			text-shadow: rgb(176, 190, 217) 1px 1px, rgb(176, 190, 217) -1px -1px, rgb(176, 190, 217) 1px -1px, rgb(176, 190, 217) -1px 1px;
		}
	}
/*#endregion DATA TABLE SELECT*/

/*#region ------------------------ FORMS ------------------------*/
	.has-search .form-control {
		padding-left: 2.375rem;
	}

	.has-search .form-control-feedback {
		position: absolute;
		z-index: 2;
		display: block;
		width: 2.375rem;
		height: 2.375rem;
		line-height: 2.375rem;
		text-align: center;
		pointer-events: none;
		color: #aaa;
	}


/*#endregion FORMS*/

/*#region ------------------------ BACKGROUNDS ------------------------*/
	.bg-oneclick {
		background-color: #766EFF!important;
	}
/*#endregion BACKGROUNDS*/

/*#region ------------------------ FILE UPLOAD ------------------------*/
	.fileImage {
		position: relative;
		float: left;
	}
	.fileImage {
		width: 100%;
	}
	.fileImage:after {
		padding-top: 100%;
		display: block;
		content:'';
	}
	.img-wrapper {
		padding: 10px;
		position: absolute;
		top: 0;
		bottom: 0;
		right: 0;
		left: 0;
	}
	.img-wrapper .thumb {
		height:100%;
	}
	.img-project, .thumb {
		display: block;

	}
	.img-project img, .thumb img {
		position:relative;
		top:50%;
		left:50%;
		max-width:100%;
		max-height:100%;
		object-fit:contain;
		-webkit-transform:translate(-50%,-50%);
		-moz-transform:translate(-50%,-50%);
		-ms-transform:translate(-50%,-50%);
		-o-transform:translate(-50%,-50%);
		transform: translate(-50%,-50%);
	}


	.info-box {
		box-shadow: 0 0 1px rgb(0 0 0 / 13%), 0 1px 3px rgb(0 0 0 / 20%);
		border-radius: 0.25rem;
		background-color: #fff;
		display: -ms-flexbox;
		display: flex;
		margin-bottom: 1rem;
		min-height: 80px;
		padding: 0.5rem;
		position: relative;
		width: 100%;
	}

	.info-box:hover{
		transition: all 500ms ease;
		background-color: #f8f9fa;
	}

	.info-box .info-box-icon {
		border-radius: 0.25rem;
		-ms-flex-align: center;
		align-items: center;
		display: -ms-flexbox;
		display: flex;
		font-size: 1.875rem;
		-ms-flex-pack: center;
		justify-content: center;
		text-align: center;
		width: 70px;
	}

	.info-box .info-box-content {
		display: -ms-flexbox;
		display: flex;
		-ms-flex-direction: column;
		flex-direction: column;
		-ms-flex-pack: center;
		justify-content: center;
		line-height: 1.8;
		-ms-flex: 1;
		flex: 1;
		padding: 0 10px;
		overflow: hidden;
	}

	.info-box-button:hover{
		cursor: pointer;
	}
/*#endregion FILE UPLOAD */

/*#region ------------------------ FILE DRAG AND DROP ------------------------*/
	.file-drop-area {
		position: relative;
		display: flex;
		align-items: center;
		max-width: 100%;
		padding: 25px;
		border: 1px dashed rgba(0, 0, 0, 0.4);
		border-radius: 3px;
		transition: 0.2s;
	}

	.file-drop-area:active {
		background-color: #E3EDFA;
	}

	.fake-btn {
		flex-shrink: 0;
		background-color: #766EFF;
		color: white;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 3px;
		padding: 8px 15px;
		margin-right: 10px;
		font-size: 12px;
		text-transform: uppercase;
	}

	.file-msg {
		font-size: small;
		font-weight: 300;
		line-height: 1.4;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.file-input {
		position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		width: 100%;
		cursor: pointer;
		opacity: 0;
	}

	.file-input:focus {
		outline: none;
	}
/*#endregion FILE DRAG AND DROP*/

/*#region ------------------------ PAGINATION ------------------------*/

.custom-pagination .pagination .page-item {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 50px;
    height: 50px;
}

.custom-pagination .pagination .page-link{
	width: 40px;
    height: 40px;
    align-content: center;
	border:none;
	border-radius: 5px;
	color: var(--primary-color);
	border-radius: 100px !important;
	padding:0;
}

.custom-pagination .page-item.active .page-link {
    z-index: 1;
    color: #fff;
	background-color: var(--secondary-color) !important;
    border:1px solid;
    border-color: var(--secondary-color);
}

.custom-pagination .page-item:first-child .page-link {

	background-color: var(--primary-color);
	color: white;
}

.custom-pagination .page-item:last-child .page-link {
	width: 40px;
    height: 40px;
    align-content: center;
	background-color: var(--primary-color);
	color: white;
    border-radius: 100px !important;
}


/*#region ------------------------  Public Client Cuenta  ------------------------ */

.avatar-container{
	display: flex;
	align-items: center;
	justify-content: center;
}
.avatar-img{
	width: 100px; 
	height:100px; 
	object-fit:cover;
}

.navbar-toggler {
	margin-bottom: 0.5em;
}

.navbar-toggler:hover,
.navbar-toggler[aria-expanded="false"]:hover,
.navbar-toggler[aria-expanded="true"]:hover {
	background-color: #f6f6f6;
}

.navbar-toggler[aria-expanded="false"]  {
	background-color: unset;
}

.navbar-toggler {
	background-color: #f6f6f6;
}

#direccion_envio .form-control::selection{
	background-color: unset;
}

/*#endregion RegionName*/

/*#region ------------------------  MEDIA QUERYS  ------------------------ */

	@media all and (max-width: 1024px) {
		.img-project, .thumb {
			padding: 7px;
		}
	}

	@media (max-width: 767.98px) {
		.banner-carousel{
			margin-top: 80px;
		}
	}

/*#endregion RegionName*/


.text-overflow-dynamic-container {
	position: relative;
	max-width: 100%;
	padding: 0 !important;
	display: -webkit-flex;
	display: -moz-flex;
	display: flex;
	vertical-align: text-bottom !important;
  }
  .text-overflow-dynamic-ellipsis {
	position: absolute;
	white-space: nowrap;
	overflow-y: visible;
	overflow-x: hidden;
	text-overflow: ellipsis;
	-ms-text-overflow: ellipsis;
	-o-text-overflow: ellipsis;
	max-width: 100%;
	min-width: 0;
	width:100%;
	top: 0;
	left: 0;
  }
  .text-overflow-dynamic-container:after,
  .text-overflow-dynamic-ellipsis:after {
	content: '-';
	display: inline;
	visibility: hidden;
	width: 0;
  }


/*#region ------------------------ HELP ASSISTANCE ------------------------*/
.help-assistant{
	cursor: pointer;
}
/*#endregion HELP ASSISTANCE */


/* Modern Dashboard Overrides */
.bg-main-modern {
	background-color: #F4F7FE !important;
}

.card {
	border: none;
	border-radius: 20px;
	box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}

.shadow-none {
	box-shadow: none !important;
}

.dashboard-button {
	background: #fff;
	border-radius: 20px;
	padding: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
	border: 1px solid transparent;
}

.dashboard-button:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.1);
	border-color: rgba(0,0,0,0.05);
}

@media (max-width: 768px) { 
	.dashboard-button {
		padding: 1rem;
	}

	.info-box-text{
		font-size: 0.65rem !important;
	}

	.info-box-number{
		font-size: 1.25rem !important;
	}
}

.info-box-icon {
	width: 60px;
	height: 60px;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	transition: all 0.3s ease;
}

/* Soft colors for icons */
.bg-soft-primary { background-color: rgba(0, 123, 255, 0.1); color: #007bff; }
.bg-soft-success { background-color: rgba(40, 167, 69, 0.1); color: #28a745; }
.bg-soft-warning { background-color: rgba(255, 193, 7, 0.1); color: #ffc107; }
.bg-soft-info { background-color: rgba(23, 162, 184, 0.1); color: #17a2b8; }

.info-box-content {
	text-align: right;
}

.info-box-text {
	display: block;
	font-size: 0.85rem;
	color: #8898aa;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	margin-bottom: 5px;
}

.info-box-number {
	display: block;
	font-size: 1.8rem;
	font-weight: 700;
	color: #32325d;
	line-height: 1.2;
}

/* Search Bar */
.has-search .form-control {
	padding-left: 3rem;
	height: 3.5rem;
	border-radius: 50px;
	border: none;
	background: #fff;
	box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
	font-size: 1rem;
}

.has-search .form-control-feedback {
	position: absolute;
	z-index: 2;
	display: block;
	width: 3rem;
	height: 3.5rem;
	line-height: 3.5rem;
	text-align: center;
	pointer-events: none;
	color: #adb5bd;
	left: 15px;
}

/* List Items */
.pedidos-list {
	background: #fff;
	border-radius: 15px;
	margin-bottom: 1rem;
	padding: 1rem;
	border: 1px solid #f0f0f0;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
}

.pedidos-list:hover {
	background-color: #fcfcfc;
	transform: scale(1.01);
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	border-color: #e9ecef;
	cursor: pointer;
}

.pedidos-list img {
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.btn-modern {
	border-radius: 30px;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: all 0.15s ease;
}

.btn-modern:hover {
	transform: translateY(-1px);
	box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Carousel */
.carousel-inner {
	border-radius: 20px;
	box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.carousel-indicators li {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin: 0 5px;
}

/* Cotizador */

.select2-container .select2-selection--single {
	height: calc(2.25rem + 2px) !important;
	padding: 0.375rem 0.75rem;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	display: flex;
	align-items: center;
	background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.5 !important;
	padding-left: 0 !important;
	color: #495057;
	width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100% !important;
	top: 0 !important;
	right: 10px !important;
}

/* Efecto Focus similar a Bootstrap */
.select2-container--default.select2-container--open .select2-selection--single {
	border-color: #80bdff;
	box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}


/* Banner */

.cta-banner {
	border-radius: 20px;
}
.cta-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index: 0;
}
.cta-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg,rgba(118, 110, 255, 0.95) 0%, rgba(24, 198, 233, 0.85) 100%);
	z-index: 1;
}
.transform-scale {
	transition: transform 0.3s ease;
}
.transform-scale:hover {
	transform: scale(1.05);
}