/* Hub categórico de herramientas — `/simuladores/` y `/calculadoras/`. */

.dp-hub-page {
	max-width: 1120px;
	margin: 1rem auto 3rem;
	padding: 0 1rem;
	color: #0F172A;
}

/* ===== Hero ===== */

.dp-hub-hero {
	margin: 1.5rem 0 2.5rem;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid #E2E8F0;
}

.dp-hub-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6E6750;
	margin-bottom: 1rem;
}

.dp-hub-eyebrow-dot {
	color: #CA8A04;
	font-size: 0.6rem;
}

.dp-hub-title {
	font-family: 'Newsreader', Georgia, serif;
	font-size: clamp(2rem, 4vw, 2.85rem);
	font-weight: 500;
	line-height: 1.12;
	margin: 0 0 0.6rem;
	color: #0F172A;
	letter-spacing: -0.01em;
}

.dp-hub-lede {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.2rem;
	line-height: 1.4;
	color: #475569;
	max-width: 64ch;
	margin: 0 0 1.5rem;
}

.dp-hub-meta {
	display: flex;
	gap: 2.25rem;
	margin: 0;
	flex-wrap: wrap;
}

.dp-hub-meta div {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.dp-hub-meta dt {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6E6750;
	margin: 0;
}

.dp-hub-meta dd {
	margin: 0;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: #0F172A;
}

/* ===== Grid de herramientas ===== */

.dp-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
	margin: 0 0 3rem;
}

.dp-hub-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: auto auto auto;
	grid-template-areas:
		"num tag arrow"
		"num title title"
		"num desc desc";
	align-items: start;
	column-gap: 1rem;
	row-gap: 0.4rem;
	padding: 1.4rem 1.5rem;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 4px;
	color: #0F172A;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dp-hub-card:hover {
	background: #FEF7EE;
	border-color: #CA8A04;
	transform: translateY(-1px);
}

.dp-hub-card-num {
	grid-area: num;
	font-family: 'Newsreader', Georgia, serif;
	font-size: 2.4rem;
	font-weight: 500;
	line-height: 1;
	color: #CA8A04;
	letter-spacing: -0.02em;
	align-self: start;
}

.dp-hub-card-tag {
	grid-area: tag;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6E6750;
	align-self: center;
}

.dp-hub-card-title {
	grid-area: title;
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 500;
	margin: 0;
	color: #0F172A;
	line-height: 1.2;
}

.dp-hub-card-desc {
	grid-area: desc;
	margin: 0;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #475569;
}

.dp-hub-card-arrow {
	grid-area: arrow;
	color: #CA8A04;
	font-size: 1.2rem;
	font-weight: 500;
	align-self: center;
	transition: transform 0.15s ease;
}

.dp-hub-card:hover .dp-hub-card-arrow {
	transform: translateX(3px);
}

/* ===== FAQ ===== */

.dp-hub-faq {
	margin: 0 0 2.5rem;
	padding: 1.6rem 1.75rem;
	background: #F8FAFC;
	border-left: 3px solid #CA8A04;
	border-radius: 2px;
}

.dp-hub-section-head {
	margin-bottom: 1.1rem;
}

.dp-hub-counter {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6E6750;
	display: block;
	margin-bottom: 0.35rem;
}

.dp-hub-faq h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-size: 1.6rem;
	font-weight: 500;
	margin: 0;
	color: #0F172A;
	letter-spacing: -0.005em;
}

.dp-hub-faq-list {
	margin: 0;
}

.dp-hub-faq-item {
	border-bottom: 1px solid #E2E8F0;
	padding: 0.85rem 0;
}

.dp-hub-faq-item:last-child {
	border-bottom: none;
}

.dp-hub-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	color: #0F172A;
	list-style: none;
	padding-right: 1.5rem;
	position: relative;
	font-family: 'Inter', system-ui, sans-serif;
}

.dp-hub-faq-item summary::-webkit-details-marker {
	display: none;
}

.dp-hub-faq-item summary::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 0;
	font-size: 1.4rem;
	line-height: 1;
	color: #CA8A04;
}

.dp-hub-faq-item[open] summary::after {
	content: '−';
}

.dp-hub-faq-a {
	margin-top: 0.6rem;
	color: #1E293B;
	font-size: 0.95rem;
	line-height: 1.55;
}

.dp-hub-faq-a p {
	margin: 0;
}

/* ===== Related cross-link ===== */

.dp-hub-related {
	margin: 0 0 1rem;
	padding: 1rem 1.25rem;
	border-left: 3px solid #CA8A04;
	background: #FEF7EE;
	border-radius: 2px;
}

.dp-hub-related p {
	margin: 0;
	font-size: 0.95rem;
	color: #475569;
}

.dp-hub-related a {
	color: #B45309;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.dp-hub-related a:hover {
	text-decoration-thickness: 2px;
}
