/*
 # ########*###########################
 Autor: José Luis Rodriguez / Mejorado con AI
 Mail: jrodriguez@bincodex.com
 Web: https://bincodex.com
 Fecha Actualización: 2026-03-24 (Propuesta Modernización)
 Archivo: structure.css
 Codificación: UTF-8
 Editado en: Kate 25.04.3
 ####################################
 */



/* =========================================
   GENERAL
   ========================================= */
body {
	font-size: 14px; /* Un poco más grande para legibilidad moderna */
	color: var(--texto-principal);
	background: url('../img/fondo3.png?v=3') no-repeat center center;
	background-size: cover;
	/* Reducido el desenfoque para que no se vea sucio */
	backdrop-filter: blur(2px); 
}





/* Barra de herramientas */
.tool-bar {
	padding: 10px;
	background: var(--bg-panel);
	border-radius: var(--radio-borde);
	border: 1px solid var(--bg-borde);
	margin: 15px 0;
	display: flex;
	justify-content: start;
	align-items: center;
	gap: 15px;
	box-shadow: var(--sombra-suave);
}

/* Estados de selección en inputs (modernizado con color Coral/Amarillo suave) */
.cnt-resp:has(input[type="radio"]:checked),
.cnt-resp:has(input[type="checkbox"]:checked) {
  background-color: #fffbeb; /* Amarillo muy suave */
  color: var(--color-primario-dark);
  border-color: var(--color-acento-coral);
  box-shadow: 0 0 0 2px rgba(255, 138, 117, 0.2);
}






/* =========================================
 *  LOGIN INDEX (Alineado a la Derecha)
 *  ========================================= */
.main_index {
	width: 100vw;
	height: 100vh;
	display: flex;
	/* Cambiado de center a flex-end para enviar el formulario a la derecha */
	justify-content: flex-end;
	align-items: center;
	/* Añade un espacio de colchón a la derecha para que no se pegue al borde */
	padding-right: 8%;
	/* Degradado corporativo muy sutil superpuesto a la imagen de fondo */
	background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(30, 58, 109, 0.15) 100%);
	box-sizing: border-box;
}

.main_index form {
	width: 100%;
	max-width: 380px;
	padding: 40px 35px;
	border-radius: 24px; /* Bordes más redondeados y modernos */

	/* Efecto Glassmorphism (Capa translúcida sofisticada) */
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);

	/* Borde fino sutil y sombra difuminada de alta gama */
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 20px 50px rgba(30, 58, 109, 0.15);

	display: flex;
	flex-direction: column;
	align-items: center;
	transition: var(--transicion);
}

/* Efecto hover suave en el contenedor del login */
.main_index form:hover {
	box-shadow: 0 25px 60px rgba(30, 58, 109, 0.22);
	background: rgba(255, 255, 255, 0.92);
}



.item-input {
	width: 100%;
	padding: 0;
	margin: 8px 0;
}

/* Campos de texto estilizados como los inputs de la imagen */
.main_index form input[type="text"],
.main_index form input[type="password"] {
	width: 100%;
	padding: 14px 16px;
	background: rgba(241, 245, 249, 0.8); /* Fondo grisáceo limpio */
	border: 1px solid rgba(225, 232, 237, 0.9);
	border-radius: 12px;
	font-size: 14px;
	color: var(--color-primario-dark);
	transition: var(--transicion);
}

.main_index form input[type="text"]:focus,
.main_index form input[type="password"]:focus {
	outline: none;
	background: #ffffff;
	border-color: var(--color-secundario-green);
	box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.15);
}

/* Botón de ingreso (Ancho completo con el color del botón 'Log in' de la gráfica original) */
.lgn-btn {
	width: 100%;
	margin-top: 20px;
	padding: 14px 20px !important;
	background: linear-gradient(135deg, #7db343 0%, var(--color-primario-dark) 100%) !important;
	border-radius: 12px !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	letter-spacing: 0.5px;
}

/* Recordar contraseña / links inferiores */
.ctn-logout, .lk {
	margin-top: 20px;
	font-size: 13px;
	color: #64748b;
	text-decoration: none;
	font-weight: 500;
	text-align: center;
}

.lk:hover {
	color: var(--color-primario-dark);
	text-decoration: underline;
}






/* =========================================
   SYSTEM LAYOUT
   ========================================= */
.main_system {
	width: 100vw;
	height: 100vh;
	display: grid;
	grid-template-columns: 240px 1fr; /* Sidebar un poco más ancha */
	grid-template-rows: 60px 1fr 30px; /* Header y footer ajustados */
	grid-template-areas:
		"aside header"
		"aside content"
		"aside footer"; /* Aside ocupa todo el alto izquierdo */
}

/* Header del sistema */
.header_system {
	grid-area: header;
	background: var(--bg-panel);
	border-bottom: 1px solid var(--bg-borde);
	display: flex;
	align-items: center;
	padding: 0 20px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Sidebar (Aside) Modernizado con colores Horizonte */
.aside_system {
	grid-area: aside;
	/* Degradado vertical oscuro basado en el logo */
	background: linear-gradient(180deg, var(--color-primario-dark) 0%, #112244 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 0px;
	position: relative;
	color: white;
}

.img_perfil {
	border: 3px solid rgba(255,255,255,0.2);
	width: 120px; /* Tamaño más manejable */
	height: 120px;
	border-radius: 50%;
	background: url('../img/user.png') no-repeat center center #fff;
	background-size: cover;
	margin-bottom: 20px;
	box-shadow: var(--sombra-suave);
}

/* Título de módulo dentro del contenido */
.tit-modulo {
	font-size: 1.4em;
	font-weight: 700;
	color: var(--color-primario-dark);
	padding: 10px 0;
	display: flex;
	justify-content: start;
	align-items: center;
	gap: 15px;
}

/* Migas de pan */
.item-miga-pan {
	user-select: none;
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 20px;
	color: var(--texto-mutado);
	transition: var(--transicion);
}

.item-miga-pan:hover {
	background: var(--bg-gris-principal);
	color: var(--color-primario-dark);
}

/* =========================================
   NAVEGACIÓN (Sidebar Menu)
   ========================================= */
.toggle-check {
  display: none;
}

.menu_view {
	width: 40px;
	height: 40px;
	border: 0px solid silver;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	color: #fff;
	font-size: 2em;
	position: absolute;
	top: 0px;
	right: 0px;
	display: none;
	user-select: none;
}

.nav_one {
	width: 98%;
	height: 400px;
	padding: 0px;
	height: calc( 100vh - 322px );
	overflow-y: auto;
	transition: height 0.3s ease;
}

.nav_one ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.nav_one ul li {
	padding: 12px 15px;
	cursor: pointer;
	user-select: none;
	transition: var(--transicion);
	border-radius: var(--radio-borde);
	color: rgba(255,255,255,0.8);
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
}

/* Iconos simulados o espacios para iconos */
.nav_one ul li::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(255,255,255,0.3);
	margin-right: 15px;
	transition: var(--transicion);
}

.nav_one ul li:hover {
	background: rgba(255,255,255,0.1);
	color: white;
}

.nav_one ul li:hover::before {
	background-color: var(--color-acento-coral); /* Acento al pasar el mouse */
	transform: scale(1.2);
}

/* Item activo del menú con color verde del logo */
.nav_one ul li.active {
	background-color: rgba(46, 204, 113, 0.2);
	color: white;
	font-weight: 600;
}

.nav_one ul li.active::before {
	background-color: var(--color-secundario-green);
}






/* =========================================
   ÁREA DE CONTENIDO
   ========================================= */
.content_system {
	grid-area: content;
	background: #dcdcdc;
	white-space: nowrap;
	overflow: auto;
	padding: 10px;
	border: 5px solid #fff;
	box-sizing: border-box;
}
.footer_system {
	grid-area: footer;
	background: #2b2b2b;
}









/* =========================================
   TABLAS Y DATAGRIDS (Modernizados)
   ========================================= */
.content-table-view {
	padding: 20px;
	background: var(--bg-panel);
	border-radius: var(--radio-borde-lg);
	box-shadow: var(--sombra-suave);
	border: 1px solid var(--bg-borde);
}

/* Reinicio de tablas para look moderno */
.tableDta {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 10px 0;
}

.tableDta thead tr th {
	background: #f8fafc; /* Gris muy tenue */
	color: var(--color-primario-dark);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.5px;
	padding: 12px 15px;
	text-align: left;
	border-bottom: 2px solid var(--bg-borde);
}

.tableDta tbody tr td {
	padding: 12px 15px;
	border-bottom: 1px solid #f1f5f9;
	color: var(--texto-principal);
}

.tableDta tbody tr:hover td {
	background-color: #fcfdfd;
}

/* Estilos para DataTables (Sobreescritura suave) */
.dataTables_length, .dataTables_filter {
	margin-bottom: 15px;
	font-size: 13px;
	color: var(--texto-mutado);
}

.dataTables_filter input {
	padding: 8px 12px;
	border: 1px solid var(--bg-borde);
	border-radius: var(--radio-borde);
	margin-left: 10px;
}

/* =========================================
   FORMULARIOS DE PREGUNTAS (Estilo Test/Encuesta)
   ========================================= */

/* Contenedor principal de la pregunta */
.cnt-item {
	margin: 0 0 30px 0;
	padding: 20px;
	background: var(--bg-panel);
	border-radius: var(--radio-borde-lg);
	box-shadow: var(--sombra-suave);
	border: 1px solid var(--bg-borde);
}

.tit-item {
	padding: 0 0 15px 0;
	font-size: 1.3em;
	font-weight: 700;
	color: var(--color-primario-dark);
	border-bottom: 1px solid var(--bg-borde);
	margin-bottom: 15px;
}

/* Contenedores de respuestas */
.cnt-subitem {
	border: 0;
	padding: 0;
	background: transparent;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Variante N2 */
.cnt-subitem-n2 {
	border: 1px solid var(--bg-borde);
	padding: 15px;
	background: var(--bg-gris-principal);
	border-radius: var(--radio-borde);
	margin-bottom: 15px;
}

.subtit-item {
	padding: 0 0 5px 0;
	font-size: 1.1em;
	font-weight: 600;
	white-space: wrap;
	color: #444;
}

.descrip-prg {
	padding: 0 0 10px 0;
	font-size: 1em;
	color: var(--texto-mutado);
	white-space: wrap;
}

/* Opciones de respuesta clicables (Modernizadas) */
.cnt-resp {
	border: 1px solid var(--bg-borde);
	width: 100%; /* Ocupa todo el ancho */
	max-width: 600px;
	display: flex;
	align-items: center;
	background: var(--bg-panel);
	padding: 15px;
	user-select: none;
	cursor: pointer;
	white-space: wrap;
	border-radius: var(--radio-borde);
	transition: var(--transicion);
}

.cnt-resp:hover {
	border-color: var(--color-secundario-green);
	background-color: #fcfdfc;
	transform: translateX(3px);
}

/* Estilo para el input dentro de la respuesta (radio/check) */
.cnt-resp input {
	margin-right: 15px;
	transform: scale(1.2);
	accent-color: var(--color-secundario-green); /* Color Horizonte moderno */
}

/* =========================================
   FORMULARIOS DE ENTRADA DE DATOS
   ========================================= */
.grid-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); /* Responsivo */
	gap: 20px;
	padding: 20px;
	background: var(--bg-panel);
	border-radius: var(--radio-borde-lg);
	border: 1px solid var(--bg-borde);
	box-shadow: var(--sombra-suave);
}

.grid-form div {
	padding: 0;
	/*display: flex;
	flex-direction: column;*/
}

/* Labels modernos */
.grid-form label {
	font-size: 12px;
	font-weight: 600;
	color: var(--texto-mutado);
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Inputs y Selects dentro del grid */
.grid-form input[type="text"],
.grid-form input[type="email"],
.grid-form select {
	padding: 10px 12px;
	border: 1px solid var(--bg-borde);
	border-radius: var(--radio-borde);
	font-size: 14px;
	transition: var(--transicion);
}

.grid-form select {
	appearance: none; /* Limpia estilos nativos */
/* 	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E"); */
	background-repeat: no-drop;
	background-position: right 12px center;
}

.firma_user{
	text-align: center;
	margin-top: 20px;
	font-style: italic;
	color: var(--texto-mutado);
}



/* =========================================
   AGENDA Y CALENDARIO (Modernizado)
   ========================================= */
.tit-mes {
	font-size: 2.2em;
	font-weight: 800;
	text-align: center;
	color: var(--color-primario-dark);
	margin-bottom: 20px;
}

.calendario-mes {
	width: 100%;
	min-height: 80%;
	border-collapse: collapse;
  	border-spacing: 2px; /* Pequeño espacio entre celdas */
	font-size: 14px;
	background: var(--bg-panel);
	border-radius: var(--radio-borde-lg);
	overflow: hidden;
	box-shadow: var(--sombra-panel);
}

.hd-calendar {
	background: #f8fafc;
	color: var(--color-primario-dark);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
	user-select: none;
}

.hd-calendar th {
	padding: 15px;
	border-bottom: 1px solid var(--bg-borde);
	height: 50px !important;
}

.active-dia {
	background-color: white;
}

.active-dia:hover {
	background: #f0fdf4 !important; /* Verde muy clarito */
}

.item-dia {
	text-align: right;
	vertical-align: top;
	padding: 5px 8px;
	font-weight: 600;
	color: #94a3b8;
	user-select: none;
	border: 0.5px solid silver;
	height: 250px;
	overflow-y: auto;
}

/* Hoy / Día actual */
.active-dia.hoy {
	background-color: #eff6ff; /* Azul muy clarito */
}
.active-dia.hoy .item-dia {
	color: var(--color-primario-dark);
}

.cnt-events-dia {
	background: transparent;
	padding: 2px;
	vertical-align: top;
}

/* Pastillas de evento más modernas */
.min-tit-event {
	font-size: 11px;
	background-color: var(--color-primario-dark);
	color: white;
	border: 0;
	padding: 4px 6px;
	border-radius: 4px;
	text-align: left;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Profesionales en agenda */
.tit-prof-agenda {
	cursor: pointer;
	border: 1px solid var(--bg-borde);
	border-radius: var(--radio-borde);
	background: var(--bg-panel);
	padding: 10px;
	text-align: center;
	font-weight: 600;
	transition: var(--transicion);
	color: #00007f;
}

.tit-prof-agenda:hover {
	border-color: var(--color-secundario-green);
	color: var(--color-secundario-green);
	background: #f0fdf4;
}

.tit-cliente-agenda {
	padding: 10px;
	font-size: 1.1em;
	color: var(--color-primario-dark);
}

/* Eventos Próximos */
.tit-prox-events {
	padding: 15px 0;
	font-size: 1.6em;
	font-weight: 700;
	color: var(--color-primario-dark);
}

.cnt-prox-events {
	padding: 10px 0;
	display: flex;
	flex-wrap: wrap; /* Ajuste responsivo */
	gap: 20px;
}

/* Tarjeta de fecha (Estilo Horizonte modernizado) */
.card-fecha-event{
	border: 0;
	border-radius: var(--radio-borde-lg);
	/* Degradado suave basado en los acentos del logo */
	background: linear-gradient(135deg, #fef9c3 0%, var(--color-acento-coral) 200%);
	color: #854d0e;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	box-shadow: var(--sombra-suave);
	min-width: 150px;
	text-align: center;
}

.card-fecha-event .dia-num { font-size: 3em; font-weight: 800; line-height: 1; }
.card-fecha-event .mes-txt { font-size: 1.2em; font-weight: 600; text-transform: uppercase; }

/* Tarjeta de detalles del evento */
.item-event {
	border: 1px solid var(--bg-borde);
	background: var(--bg-panel);
	border-radius: var(--radio-borde-lg);
	padding: 20px;
	flex-grow: 1;
	box-shadow: var(--sombra-suave);
	border-left: 5px solid var(--color-primario-dark); /* Acento al lado */
}

.tit-event {
	font-weight: 700;
	font-size: 1.2em;
	color: var(--color-primario-dark);
	margin-bottom: 5px;
}

/* Cupos / Horas */
.detalle-min-cupos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 8px;
	padding: 10px;
	background: var(--bg-gris-principal);
	border-radius: var(--radio-borde);
	margin-top: 10px;
}

.item-cupo-hora {
	border-radius: var(--radio-borde);
	border: 1px solid var(--bg-borde);
	padding: 8px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	transition: var(--transicion);
}

/* Estados de cupo (Usando colores Horizonte) */
.st_Disponible {
	background: white;
	cursor: pointer;
	color: var(--color-secundario-green);
	border: 2px solid var(--color-secundario-green);
}

.st_Disponible:hover {
	background: var(--color-secundario-green);
	color: white;
	transform: translateY(-2px);
}

.st_Ocupado {
	background: #e2e8f0;
	color: #64748b;
	cursor: no-drop;
	border: 2px solid #cbd5e1;
}




/* =========================================
   RESPONSIVE LAYOUT
   ========================================= */
/* Ajuste de responsividad para pantallas móviles o pequeñas */
@media (max-width: 800px) {
	.main_system {
		grid-template-columns: 1fr 1fr 40px;
		grid-template-rows: 40px 1fr 40px;
		grid-template-areas:
			"header header aside"
			"content  content content"
			"footer footer  footer ";
	}

	.img_perfil {
		display: none;
	}

	.aside_system {
		position: relative;
		background: #002d87;
	}

	.menu_view {
		display: flex;
	}

	.nav_one {
		position: absolute;
		width: 200px;
		top: 40px;
		right: 0px;
		border: 0px solid red;
		height: 0px;
		background: linear-gradient(180deg, var(--color-primario-dark) 0%, #112244 100%);
		z-index: 12;
	}
}
/* ------------------------------------ */
/* ------------------------------------ */
