@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

body {
	font-family: 'Inter', sans-serif;
	background-color: #0f172a;
	color: #f1f5f9;
	scroll-behavior: smooth;
}
 


.card {
	background-color: #1e293b;
	border: 1px solid #334155;
}


.nav-link.active {
	border-bottom: 2px solid #3b82f6;
	color: #3b82f6;
}


.glass {
	background: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(12px);
}


.section-title {
	@apply text-blue-400 font-bold text-xs uppercase tracking-widest mb-3 flex items-center;
}


/* Estilos del Calendario Mejorado */
.month-chip {
	@apply p-4 rounded-2xl text-[11px] font-extrabold border border-slate-800 text-slate-600 bg-slate-900/40 transition-all duration-500 ease-in-out;
	letter-spacing: 0.05em;
}

/* Estilo para Meses Trabajados (Color Distintivo) */
.month-active {
	@apply border-blue-400 text-white bg-gradient-to-br from-blue-500 to-blue-700;
	box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
	transform: scale(1.05);
	z-index: 10;
}


.bullet {
	@apply w-1.5 h-1.5 bg-blue-500 rounded-full mt-1.5 shrink-0;
}


/* Ficha de Detalle Profesional */
.detail-card {
	background: linear-gradient(145deg, #1e293b, #111827);
	border: 1px solid #334155;
	position: relative;
	overflow: hidden;
	border-left: 4px solid #3b82f6;
}

/* Contenedor de línea de tiempo */
.timeline-wrapper {
	position: relative;
	padding: 1rem 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Línea horizontal visible */
.timeline-line {
	position: absolute;
	height: 2px;
	background-color: #334155 !important;
	/* Gris slate-700 */
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
}

/* Nodo del Hito */
.hito-node {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 10;
	cursor: pointer;
}

.hito-dot {
	width: 12px;
	height: 12px;
	border-radius: 9999px;
	background-color: #0f172a;
	/* Fondo oscuro */
	border: 2px solid #3b82f6;
	/* Azul */
	transition: all 0.3s ease;
}

/* Detalle Flotante Lateral - Oculto por defecto */
.hito-floating-detail {
	display: none;
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 240px;
	padding: 12px;
	border-radius: 12px;
	background-color: #1e293b;
	border: 1px solid #475569;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
	z-index: 100;
}

/* Mostrar solo al pasar el mouse */
.hito-node:hover .hito-floating-detail {
	display: block;
}

.hito-node:hover .hito-dot {
	background-color: #3b82f6;
	transform: scale(1.3);
}


.kpi-tooltip {
	position: relative;
}

.kpi-info-icon {
	font-size: 11px;
	margin-left: 6px;
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.kpi-tooltip:hover .kpi-info-icon {
	opacity: 1;
}

.tooltip-text {
	position: absolute;
	bottom: 130%;
	left: 50%;
	transform: translateX(-50%) scale(0.95);
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(12px);
	color: #e2e8f0;
					   
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 12px;
	line-height: 1.4;
	width: 260px;
	text-align: left;
	box-shadow:
		0 20px 40px rgba(0, 0, 0, 0.6),
		0 0 25px rgba(99, 102, 241, 0.15);
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease;
	z-index: 100;
}

.tooltip-text::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 8px;
	border-style: solid;
	border-color: rgba(15, 23, 42, 0.85) transparent transparent transparent;
}

.kpi-tooltip:hover .tooltip-text {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) scale(1);
}


.kpi-tooltip .tooltip-text {
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease;
	position: absolute;
	bottom: 120%;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(15, 23, 42, 0.95);
	color: #e2e8f0;
	text-align: center;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 11px;
	width: 220px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	z-index: 50;


}

.kpi-tooltip:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}


/*calendar */
.calendar-year {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
}

.calendar-month {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 6px 2px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    transition: all 0.2s ease;
}

.calendar-month.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}