/**
 * pages.css — Estilos específicos para páginas internas:
 * category.php, page-recursos, page-juegos, page-sobre
 * y actualizaciones front-page Round 4.
 *
 * @package neuroeducador
 */

/* ================================================================
   HEADER — Logo .com
   ================================================================ */

.site-logo__tld {
	color: #aaa;
	font-weight: 400;
}

/* ================================================================
   FOOTER — Tagline
   ================================================================ */

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.footer-logo__tld {
	color: #aaa;
	font-weight: 400;
}

.footer-tagline {
	font-size: var(--text-xs);
	color: var(--text-muted);
	margin: 0;
}

/* ================================================================
   FRONT-PAGE ROUND 4 — RECURSOS PARA DOCENTES
   ================================================================ */

.fp-recursos__list {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
	margin-bottom: var(--sp-6);
}

.fp-recurso-row {
	display: grid;
	grid-template-columns: 72px 1fr 40px;
	align-items: center;
	gap: var(--sp-4);
	padding: var(--sp-4);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	background: var(--white);
	border-left: 3px solid var(--card-accent, var(--accent));
	transition: box-shadow var(--t-fast);
}
.fp-recurso-row:hover {
	box-shadow: var(--shadow-sm);
}

.fp-recurso-row__thumb {
	display: block;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: var(--r-sm);
	flex-shrink: 0;
}
.fp-recurso-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fp-recurso-row__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.fp-recurso-row__meta {
	margin-bottom: var(--sp-1);
}
.fp-recurso-row__type {
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	letter-spacing: .06em;
}
.fp-recurso-row__title {
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-snug);
	margin: 0 0 var(--sp-1);
}
.fp-recurso-row__title a {
	color: var(--black);
	text-decoration: none;
}
.fp-recurso-row__title a:hover { color: var(--accent); }
.fp-recurso-row__excerpt {
	font-size: var(--text-xs);
	color: var(--text-muted);
	margin: 0;
	line-height: var(--lh-relaxed);
}
.fp-recurso-row__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--border);
	border-radius: 50%;
	color: var(--black);
	transition: background var(--t-fast), color var(--t-fast);
	text-decoration: none;
}
.fp-recurso-row__cta:hover {
	background: var(--black);
	color: var(--white);
	border-color: var(--black);
}

/* Herramienta interactiva exclusiva */
.fp-herramienta {
	margin-top: var(--sp-4);
}
.fp-herramienta__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-6);
	padding: var(--sp-6);
	background: #fffbea;
	border: 2px solid #f5c842;
	border-radius: var(--r-lg);
}
.fp-herramienta__badge {
	flex-shrink: 0;
}
.fp-herramienta__badge-label {
	display: inline-block;
	padding: var(--sp-1) var(--sp-3);
	background: #f5c842;
	color: #5a3e00;
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	border-radius: var(--r-sm);
	letter-spacing: .06em;
}
.fp-herramienta__body {
	flex: 1;
}
.fp-herramienta__title {
	font-size: var(--text-base);
	font-weight: var(--fw-bold);
	color: var(--black);
	margin: 0 0 var(--sp-1);
}
.fp-herramienta__desc {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0 0 var(--sp-3);
}
.fp-herramienta__link {
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	color: var(--black);
	text-decoration: none;
}
.fp-herramienta__link:hover { text-decoration: underline; }
.fp-herramienta__icon {
	flex-shrink: 0;
	color: #c9a400;
}

/* Support bar oscura */
.fp-support-bar--dark {
	background: #111 !important;
}
.fp-support-bar--dark .fp-support-bar__text strong,
.fp-support-bar--dark .fp-support-bar__text span {
	color: #fff;
}
.fp-support-bar--dark .fp-support-bar__text span {
	opacity: .75;
}
.fp-support-bar__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-3) var(--sp-6);
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255,255,255,.4);
	border-radius: var(--r-full);
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	text-decoration: none;
	transition: background var(--t-fast), border-color var(--t-fast);
	white-space: nowrap;
}
.fp-support-bar__btn:hover {
	background: rgba(255,255,255,.1);
	border-color: rgba(255,255,255,.7);
}

/* ================================================================
   CATEGORY PAGE
   ================================================================ */

/* Hero 2 columnas */
.cat-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 280px;
	overflow: hidden;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}
.cat-hero__right img {
	max-width: 100%;
	object-fit: cover;
	border-radius: 12px;
}
.cat-hero__left {
	background: var(--white);
	display: flex;
	align-items: center;
	padding: var(--sp-16) var(--sp-8);
}
@media (max-width: 900px) {
	.cat-hero__left { padding: var(--sp-10) var(--sp-6); }
}
.cat-hero__content { max-width: 460px; }
.cat-hero__eyebrow {
	display: block;
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: var(--sp-2);
}
.cat-hero__title {
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	font-weight: var(--fw-extrabold);
	line-height: var(--lh-tight);
	color: var(--black);
	margin: 0 0 var(--sp-3);
	white-space: normal;
}
.cat-hero__desc {
	font-size: var(--text-base);
	color: var(--text-muted);
	margin: 0 0 var(--sp-3);
	line-height: var(--lh-relaxed);
}
.cat-hero__count {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0;
}
.cat-hero__right {
	position: relative;
	overflow: hidden;
}
.cat-hero__pattern {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cat-hero__pattern svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.cat-hero__pattern-label {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--sp-4) var(--sp-5);
	background: rgba(255,255,255,.85);
	backdrop-filter: blur(4px);
	border-radius: var(--r-md);
}

/* Nav tabs de categorías */
.cat-nav-bar {
	border-bottom: 1px solid var(--border);
	background: var(--white);
	position: sticky;
	top: 64px;
	z-index: 50;
}
.cat-nav-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.cat-nav-tab {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-3) var(--sp-4);
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	color: var(--text-muted);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color var(--t-fast), border-color var(--t-fast);
}
.cat-nav-tab:hover { color: var(--black); }
.cat-nav-tab.is-active {
	color: var(--black);
	border-bottom-color: var(--tab-color, var(--accent));
	font-weight: var(--fw-semibold);
}
.cat-nav-tab__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}
.cat-nav-tab__count {
	font-size: var(--text-xs);
	background: var(--surface);
	border-radius: var(--r-full);
	padding: 1px 6px;
	color: var(--text-muted);
}

/* Layout 2/3 + 1/3 */
.cat-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: var(--sp-10);
	padding: var(--sp-10) 0 var(--sp-16);
	align-items: start;
}
@media (max-width: 1100px) {
	.cat-layout { grid-template-columns: 1fr; }
	.cat-layout__sidebar { order: -1; }
}

/* Artículo destacado */
.cat-featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-6);
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--border);
	margin-bottom: var(--sp-6);
}
.cat-featured__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 220px;
	display: block;
}
.cat-featured__body {
	padding: var(--sp-6);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.cat-featured__badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: var(--r-sm);
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	color: #fff;
	letter-spacing: .06em;
	margin-bottom: var(--sp-3);
}
.cat-featured__title {
	font-size: var(--text-xl);
	font-weight: var(--fw-bold);
	line-height: var(--lh-snug);
	margin: 0 0 var(--sp-3);
}
.cat-featured__title a { color: var(--black); text-decoration: none; }
.cat-featured__title a:hover { color: var(--cat-color, var(--accent)); }
.cat-featured__excerpt {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0 0 var(--sp-3);
	line-height: var(--lh-relaxed);
}
.cat-featured__meta { font-size: var(--text-xs); color: var(--text-muted); }

/* Grid 2×2 */
.cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-4);
	margin-bottom: var(--sp-6);
}
@media (max-width: 640px) {
	.cat-grid { grid-template-columns: 1fr; }
}
.cat-grid__card {
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--white);
	transition: box-shadow var(--t-fast);
}
.cat-grid__card:hover { box-shadow: var(--shadow-sm); }
.cat-grid__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.cat-grid__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-grid__body { padding: var(--sp-4); }
.cat-grid__title {
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	margin: var(--sp-2) 0 var(--sp-1);
	line-height: var(--lh-snug);
}
.cat-grid__title a { color: var(--black); text-decoration: none; }
.cat-grid__title a:hover { color: var(--accent); }
.cat-grid__meta { font-size: var(--text-xs); color: var(--text-muted); }

/* Lista adicional */
.cat-list {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	margin-bottom: var(--sp-6);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--border);
}
.cat-list__item {
	display: grid;
	grid-template-columns: 8px 1fr 72px;
	gap: var(--sp-3);
	align-items: center;
}
.cat-list__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 2px;
}
.cat-list__title {
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	margin: 0 0 2px;
}
.cat-list__title a { color: var(--black); text-decoration: none; }
.cat-list__title a:hover { color: var(--accent); }
.cat-list__meta { font-size: var(--text-xs); color: var(--text-muted); }
.cat-list__thumb { display: block; width: 72px; height: 54px; overflow: hidden; border-radius: var(--r-sm); }
.cat-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Paginación */
.cat-pagination { padding: var(--sp-6) 0; }
.cat-pagination .nav-links { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cat-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 var(--sp-2);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	font-size: var(--text-sm);
	color: var(--black);
	text-decoration: none;
	transition: background var(--t-fast);
}
.cat-pagination .page-numbers.current,
.cat-pagination .page-numbers:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* Empty */
.cat-empty { padding: var(--sp-16) 0; color: var(--text-muted); }
.cat-empty a { color: var(--accent); }

/* Sidebar boxes */
.cat-sidebar-box {
	border-radius: var(--r-lg);
	overflow: hidden;
	margin-bottom: var(--sp-5);
}
.cat-sidebar-box--dark {
	background: #111;
	padding: var(--sp-5);
}
.cat-sidebar-box__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.6);
	margin: 0 0 var(--sp-4);
}
.cat-sidebar-box__list { list-style: none; margin: 0; padding: 0; }
.cat-sidebar-box__item { border-bottom: 1px solid rgba(255,255,255,.06); }
.cat-sidebar-box__item:last-child { border-bottom: none; }
.cat-sidebar-box__link {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) 0;
	color: rgba(255,255,255,.8);
	text-decoration: none;
	font-size: var(--text-sm);
	transition: color var(--t-fast);
}
.cat-sidebar-box__link:hover { color: #fff; }
.cat-sidebar-box__item.is-active .cat-sidebar-box__link { color: #fff; font-weight: var(--fw-semibold); }
.cat-sidebar-box__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.cat-sidebar-box__count {
	margin-left: auto;
	font-size: var(--text-xs);
	color: rgba(255,255,255,.4);
}

/* Relacionados */
.cat-sidebar-related { margin-bottom: var(--sp-5); }
.cat-sidebar-related__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 var(--sp-4);
}
.cat-sidebar-related__list { display: flex; flex-direction: column; gap: var(--sp-3); }
.cat-sidebar-related__item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: var(--sp-3);
	align-items: start;
}
.cat-sidebar-related__thumb {
	width: 56px;
	height: 56px;
	border-radius: var(--r-sm);
	overflow: hidden;
	display: block;
}
.cat-sidebar-related__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-sidebar-related__cat { font-size: 11px; font-weight: var(--fw-semibold); display: block; }
.cat-sidebar-related__title-item {
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
	margin: 2px 0;
	line-height: var(--lh-snug);
}
.cat-sidebar-related__title-item a { color: var(--black); text-decoration: none; }
.cat-sidebar-related__title-item a:hover { color: var(--accent); }
.cat-sidebar-related__meta { font-size: 11px; color: var(--text-muted); }

/* Newsletter sidebar */
.cat-sidebar-newsletter {
	background: #fffbea;
	border: 2px solid #f5c842;
	border-radius: var(--r-lg);
	padding: var(--sp-5);
}
.cat-sidebar-newsletter__label {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8a6800;
	margin: 0 0 var(--sp-2);
}
.cat-sidebar-newsletter__title {
	font-size: var(--text-base);
	font-weight: var(--fw-bold);
	color: var(--black);
	margin: 0 0 var(--sp-2);
}
.cat-sidebar-newsletter__desc {
	font-size: var(--text-sm);
	color: #6b5a00;
	margin: 0 0 var(--sp-4);
	line-height: var(--lh-relaxed);
}
.cat-sidebar-newsletter__btn {
	display: inline-block;
	padding: var(--sp-2) var(--sp-5);
	background: var(--black);
	color: #fff;
	border-radius: var(--r-full);
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	text-decoration: none;
	transition: background var(--t-fast);
}
.cat-sidebar-newsletter__btn:hover { background: #333; }

/* ================================================================
   PAGE RECURSOS
   ================================================================ */

/* Hero oscuro */
.recursos-hero {
	background: #111;
	padding: var(--sp-16) 0;
	color: #fff;
}
.recursos-hero__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--sp-10);
}
@media (max-width: 768px) {
	.recursos-hero__inner { flex-direction: column; align-items: flex-start; }
}
.recursos-hero__eyebrow {
	display: block;
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
	margin-bottom: var(--sp-3);
}
.recursos-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: var(--fw-extrabold);
	color: #fff;
	line-height: var(--lh-tight);
	margin: 0 0 var(--sp-3);
}
.recursos-hero__desc {
	font-size: var(--text-base);
	color: rgba(255,255,255,.65);
	margin: 0;
	line-height: var(--lh-relaxed);
}
.recursos-hero__stats {
	display: flex;
	gap: var(--sp-8);
	flex-shrink: 0;
}
.recursos-hero__stat {
	text-align: center;
}
.recursos-hero__stat-num {
	display: block;
	font-size: 2rem;
	font-weight: var(--fw-extrabold);
	color: #fff;
	line-height: 1;
}
.recursos-hero__stat-label {
	font-size: var(--text-xs);
	color: rgba(255,255,255,.5);
	text-transform: uppercase;
	letter-spacing: .06em;
	display: block;
	margin-top: 4px;
}

/* Tabs de tipo */
.recursos-tabs-bar {
	border-bottom: 1px solid var(--border);
	background: var(--white);
	position: sticky;
	top: 64px;
	z-index: 50;
}
.recursos-tabs {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
	gap: 0;
}
.recursos-tabs::-webkit-scrollbar { display: none; }
.recursos-tab {
	display: block;
	padding: var(--sp-3) var(--sp-5);
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	color: var(--text-muted);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color var(--t-fast), border-color var(--t-fast);
}
.recursos-tab:hover { color: var(--black); }
.recursos-tab.is-active {
	color: var(--black);
	border-bottom-color: var(--accent);
	font-weight: var(--fw-semibold);
}

/* Layout 2/3 + 1/3 */
.recursos-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: var(--sp-10);
	padding: var(--sp-10) 0 var(--sp-16);
}
@media (max-width: 1100px) {
	.recursos-layout { grid-template-columns: 1fr; }
	.recursos-layout__sidebar { order: -1; }
}

/* Recurso destacado */
.recursos-featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-6);
	background: var(--surface);
	border-radius: var(--r-lg);
	overflow: hidden;
	margin-bottom: var(--sp-8);
	border: 1px solid var(--border);
}
@media (max-width: 640px) {
	.recursos-featured { grid-template-columns: 1fr; }
}
.recursos-featured__image { overflow: hidden; min-height: 200px; }
.recursos-featured__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recursos-featured__body { padding: var(--sp-6); display: flex; flex-direction: column; justify-content: center; }
.recursos-featured__badge {
	display: inline-block;
	padding: 2px 10px;
	background: #06d6a0;
	color: #003d2e;
	border-radius: var(--r-full);
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .06em;
	margin-bottom: var(--sp-3);
}
.recursos-featured__title {
	font-size: var(--text-xl);
	font-weight: var(--fw-bold);
	margin: 0 0 var(--sp-2);
}
.recursos-featured__desc {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0 0 var(--sp-4);
	line-height: var(--lh-relaxed);
}

/* Grid de recursos */
.recursos-section-header {
	border-bottom: 1px solid var(--border);
	padding-bottom: var(--sp-4);
	margin-bottom: var(--sp-6);
}
.recursos-section-title {
	font-size: var(--text-lg);
	font-weight: var(--fw-bold);
	color: var(--black);
	margin: 0;
}
.recursos-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-4);
	margin-bottom: var(--sp-8);
}
@media (max-width: 900px) {
	.recursos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.recursos-grid { grid-template-columns: 1fr; }
}
.recursos-card {
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--white);
	border-top: 3px solid var(--card-accent, var(--accent));
	transition: box-shadow var(--t-fast);
}
.recursos-card:hover { box-shadow: var(--shadow-sm); }
.recursos-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.recursos-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recursos-card__body { padding: var(--sp-4); }
.recursos-card__type {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	margin-bottom: var(--sp-2);
	flex-wrap: wrap;
}
.recursos-card__format {
	font-size: var(--text-xs);
	color: var(--text-muted);
	background: var(--surface);
	padding: 2px 6px;
	border-radius: var(--r-sm);
}
.recursos-card__title {
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	margin: 0 0 var(--sp-1);
	line-height: var(--lh-snug);
}
.recursos-card__title a { color: var(--black); text-decoration: none; }
.recursos-card__title a:hover { color: var(--accent); }
.recursos-card__desc { font-size: var(--text-xs); color: var(--text-muted); margin: 0 0 var(--sp-3); line-height: var(--lh-relaxed); }
.recursos-card__action {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
	color: var(--accent);
	text-decoration: none;
}
.recursos-card__action:hover { text-decoration: underline; }

/* Herramienta interactiva (bloque oscuro) */
.recursos-herramienta {
	margin-top: var(--sp-8);
}
.recursos-herramienta__inner {
	background: #111;
	border-radius: var(--r-xl);
	padding: var(--sp-8);
	color: #fff;
}
.recursos-herramienta__badge {
	display: inline-block;
	padding: 3px 10px;
	background: #f5c842;
	color: #5a3e00;
	border-radius: var(--r-sm);
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .08em;
	margin-bottom: var(--sp-4);
}
.recursos-herramienta__title {
	font-size: var(--text-xl);
	font-weight: var(--fw-bold);
	color: #fff;
	margin: 0 0 var(--sp-3);
}
.recursos-herramienta__desc {
	font-size: var(--text-sm);
	color: rgba(255,255,255,.7);
	margin: 0 0 var(--sp-4);
	line-height: var(--lh-relaxed);
}
.recursos-herramienta__text {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: var(--r-md);
	padding: var(--sp-5);
	font-size: var(--text-sm);
	color: rgba(255,255,255,.8);
	line-height: var(--lh-relaxed);
	margin-bottom: var(--sp-4);
}
.recursos-herramienta__text.is-active {
	color: rgba(255,255,255,.6);
	letter-spacing: .03em;
}
.recursos-herramienta__controls {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	flex-wrap: wrap;
}
.recursos-herramienta__note {
	font-size: var(--text-xs);
	color: rgba(255,255,255,.4);
	margin: 0;
}

/* Sidebar caja oscura */
.recursos-sidebar-box {
	border-radius: var(--r-lg);
	margin-bottom: var(--sp-5);
}
.recursos-sidebar-box--dark {
	background: #111;
	padding: var(--sp-5);
}
.recursos-sidebar-box__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
	margin: 0 0 var(--sp-4);
}
.recursos-sidebar-box__list { list-style: none; margin: 0; padding: 0; }
.recursos-sidebar-box__list li { border-bottom: 1px solid rgba(255,255,255,.06); }
.recursos-sidebar-box__list li:last-child { border-bottom: none; }
.recursos-sidebar-box__link {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) 0;
	color: rgba(255,255,255,.75);
	text-decoration: none;
	font-size: var(--text-sm);
	transition: color var(--t-fast);
}
.recursos-sidebar-box__link:hover { color: #fff; }
.recursos-sidebar-box__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Más descargados */
.recursos-sidebar-top {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-5);
	margin-bottom: var(--sp-5);
}
.recursos-sidebar-top__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 var(--sp-4);
}
.recursos-sidebar-top__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.recursos-sidebar-top__item {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
}
.recursos-sidebar-top__num {
	font-size: 1.1rem;
	font-weight: var(--fw-extrabold);
	line-height: 1;
	flex-shrink: 0;
	min-width: 28px;
}
.recursos-sidebar-top__link {
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	color: var(--black);
	text-decoration: none;
	line-height: var(--lh-snug);
}
.recursos-sidebar-top__link:hover { color: var(--accent); }
.recursos-sidebar-top__meta { font-size: var(--text-xs); color: var(--text-muted); display: block; margin-top: 2px; }

/* Sugerir recurso */
.recursos-sidebar-suggest {
	background: #1a1a1a;
	border-radius: var(--r-lg);
	padding: var(--sp-5);
}
.recursos-sidebar-suggest__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
	margin: 0 0 var(--sp-2);
}
.recursos-sidebar-suggest__desc {
	font-size: var(--text-sm);
	color: rgba(255,255,255,.65);
	margin: 0 0 var(--sp-4);
	line-height: var(--lh-relaxed);
}
.recursos-sidebar-suggest__btn {
	display: inline-block;
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	color: rgba(255,255,255,.8);
	text-decoration: none;
	padding: var(--sp-2) var(--sp-4);
	border: 1px solid rgba(255,255,255,.2);
	border-radius: var(--r-full);
	transition: background var(--t-fast), border-color var(--t-fast);
}
.recursos-sidebar-suggest__btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

.recursos-empty { padding: var(--sp-10) 0; color: var(--text-muted); }

/* ================================================================
   PAGE JUEGOS
   ================================================================ */

.juegos-hero {
	background: #0d1b2a;
	padding: var(--sp-16) 0;
	color: #fff;
}
.juegos-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-10);
}
@media (max-width: 768px) {
	.juegos-hero__inner { flex-direction: column; align-items: flex-start; }
}
.juegos-hero__eyebrow {
	display: block;
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #06d6a0;
	margin-bottom: var(--sp-3);
}
.juegos-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: var(--fw-extrabold);
	color: #fff;
	line-height: var(--lh-tight);
	margin: 0 0 var(--sp-3);
}
.juegos-hero__desc {
	font-size: var(--text-base);
	color: rgba(255,255,255,.65);
	margin: 0;
	line-height: var(--lh-relaxed);
}
.juegos-hero__visual { flex-shrink: 0; }

/* Tabs audiencia */
.juegos-tabs-bar {
	border-bottom: 1px solid var(--border);
	background: var(--white);
	position: sticky;
	top: 64px;
	z-index: 50;
}
.juegos-tabs {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.juegos-tabs::-webkit-scrollbar { display: none; }
.juegos-tab {
	display: block;
	padding: var(--sp-3) var(--sp-6);
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	color: var(--text-muted);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color var(--t-fast), border-color var(--t-fast);
}
.juegos-tab:hover { color: var(--black); }
.juegos-tab.is-active {
	color: #0d1b2a;
	border-bottom-color: #06d6a0;
	font-weight: var(--fw-semibold);
}

/* Layout */
.juegos-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: var(--sp-10);
	padding: var(--sp-10) 0 var(--sp-16);
}
@media (max-width: 1100px) {
	.juegos-layout { grid-template-columns: 1fr; }
}

/* Herramienta destacada */
.juegos-featured {
	background: #0d1b2a;
	border-radius: var(--r-xl);
	overflow: hidden;
	margin-bottom: var(--sp-8);
}
.juegos-featured__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 240px;
}
@media (max-width: 640px) {
	.juegos-featured__inner { grid-template-columns: 1fr; }
}
.juegos-featured__thumb { overflow: hidden; }
.juegos-featured__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .7; }
.juegos-featured__body {
	padding: var(--sp-8);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.juegos-featured__badge {
	display: inline-block;
	padding: 2px 8px;
	background: #06d6a0;
	color: #003d2e;
	border-radius: var(--r-sm);
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .06em;
	margin-bottom: var(--sp-3);
}
.juegos-featured__title {
	font-size: var(--text-xl);
	font-weight: var(--fw-bold);
	color: #fff;
	margin: 0 0 var(--sp-3);
	line-height: var(--lh-snug);
}
.juegos-featured__desc {
	font-size: var(--text-sm);
	color: rgba(255,255,255,.7);
	margin: 0 0 var(--sp-3);
	line-height: var(--lh-relaxed);
}
.juegos-featured__level,
.juegos-featured__age {
	display: inline-block;
	font-size: var(--text-xs);
	color: rgba(255,255,255,.5);
	background: rgba(255,255,255,.06);
	padding: 2px 8px;
	border-radius: var(--r-sm);
	margin-right: var(--sp-2);
	margin-bottom: var(--sp-3);
}
.juegos-featured__cta {
	display: inline-block;
	padding: var(--sp-3) var(--sp-6);
	background: #06d6a0;
	color: #003d2e;
	border-radius: var(--r-full);
	font-size: var(--text-sm);
	font-weight: var(--fw-bold);
	text-decoration: none;
	transition: opacity var(--t-fast);
}
.juegos-featured__cta:hover { opacity: .85; }

/* Grid de juegos */
.juegos-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-4);
	margin-bottom: var(--sp-8);
}
@media (max-width: 640px) {
	.juegos-grid { grid-template-columns: 1fr; }
}
.juegos-card {
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--white);
	transition: box-shadow var(--t-fast);
}
.juegos-card:hover { box-shadow: var(--shadow-sm); }
.juegos-card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.juegos-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.juegos-badge {
	position: absolute;
	top: var(--sp-3);
	left: var(--sp-3);
	padding: 2px 8px;
	border-radius: var(--r-sm);
	font-size: 11px;
	font-weight: var(--fw-bold);
	letter-spacing: .04em;
}
.juegos-badge--available { background: #06d6a0; color: #003d2e; }
.juegos-badge--beta { background: #4361ee; color: #fff; }
.juegos-badge--coming-soon { background: #888; color: #fff; }
.juegos-card__body { padding: var(--sp-4); }
.juegos-card__level {
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
	color: var(--game-color, var(--accent));
	text-transform: uppercase;
	letter-spacing: .06em;
	display: block;
	margin-bottom: var(--sp-1);
}
.juegos-card__title {
	font-size: var(--text-base);
	font-weight: var(--fw-semibold);
	margin: 0 0 var(--sp-2);
	line-height: var(--lh-snug);
}
.juegos-card__title a { color: var(--black); text-decoration: none; }
.juegos-card__title a:hover { color: var(--accent); }
.juegos-card__desc { font-size: var(--text-sm); color: var(--text-muted); margin: 0 0 var(--sp-3); line-height: var(--lh-relaxed); }
.juegos-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
}
.juegos-card__age { font-size: var(--text-xs); color: var(--text-muted); }
.juegos-card__cta {
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
	color: var(--accent);
	text-decoration: none;
}
.juegos-card__cta:hover { text-decoration: underline; }
.juegos-card__cta--soon { color: var(--text-muted); cursor: default; }

/* En desarrollo */
.juegos-coming-soon {
	background: var(--surface);
	border-radius: var(--r-xl);
	padding: var(--sp-8);
	border: 1px solid var(--border);
}
.juegos-coming-soon__title {
	font-size: var(--text-lg);
	font-weight: var(--fw-bold);
	margin: 0 0 var(--sp-2);
}
.juegos-coming-soon__desc {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0 0 var(--sp-6);
}
.juegos-coming-soon__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-4);
}
@media (max-width: 640px) {
	.juegos-coming-soon__grid { grid-template-columns: 1fr; }
}
.juegos-cs-card {
	background: var(--white);
	border: 1px dashed var(--border);
	border-radius: var(--r-md);
	padding: var(--sp-5);
	text-align: center;
}
.juegos-cs-card__badge {
	display: inline-block;
	padding: 2px 8px;
	background: #f0f0f0;
	color: #888;
	border-radius: var(--r-full);
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
	margin-bottom: var(--sp-3);
}
.juegos-cs-card__title {
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	color: var(--black);
	margin: 0 0 var(--sp-2);
}
.juegos-cs-card__level { font-size: var(--text-xs); color: var(--text-muted); }

/* Sidebar juegos */
.juegos-sidebar-box {
	border-radius: var(--r-lg);
	margin-bottom: var(--sp-5);
}
.juegos-sidebar-box--dark {
	background: #111;
	padding: var(--sp-5);
}
.juegos-sidebar-box__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
	margin: 0 0 var(--sp-4);
}
.juegos-sidebar-box__list { list-style: none; margin: 0; padding: 0; }
.juegos-sidebar-box__item { border-bottom: 1px solid rgba(255,255,255,.06); }
.juegos-sidebar-box__item:last-child { border-bottom: none; }
.juegos-sidebar-box__link {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) 0;
	color: rgba(255,255,255,.75);
	text-decoration: none;
	font-size: var(--text-sm);
	transition: color var(--t-fast);
}
.juegos-sidebar-box__link:hover { color: #06d6a0; }

.juegos-sidebar-howto {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-5);
	margin-bottom: var(--sp-5);
}
.juegos-sidebar-howto__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 var(--sp-4);
}
.juegos-sidebar-howto__steps {
	padding-left: var(--sp-5);
	margin: 0;
}
.juegos-sidebar-howto__steps li {
	font-size: var(--text-sm);
	color: var(--text-body);
	line-height: var(--lh-relaxed);
	margin-bottom: var(--sp-2);
}

.juegos-sidebar-quiz {
	background: #fffbea;
	border: 2px solid #f5c842;
	border-radius: var(--r-lg);
	padding: var(--sp-5);
}
.juegos-sidebar-quiz__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8a6800;
	margin: 0 0 var(--sp-2);
}
.juegos-sidebar-quiz__desc {
	font-size: var(--text-sm);
	color: #6b5a00;
	margin: 0 0 var(--sp-4);
	line-height: var(--lh-relaxed);
}
.juegos-sidebar-quiz__btn {
	display: inline-block;
	padding: var(--sp-2) var(--sp-4);
	background: var(--black);
	color: #fff;
	border-radius: var(--r-full);
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	text-decoration: none;
	transition: background var(--t-fast);
}
.juegos-sidebar-quiz__btn:hover { background: #333; }

.juegos-empty { padding: var(--sp-10) 0; color: var(--text-muted); }

/* ================================================================
   PAGE SOBRE
   ================================================================ */

/* Hero 2 columnas */
.sobre-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 400px;
	overflow: hidden;
}
.sobre-hero__left {
	background: var(--white);
	display: flex;
	align-items: center;
	padding: var(--sp-16) calc(var(--sp-8) + max(0px, (100vw - var(--container-max)) / 2)) var(--sp-16) calc(var(--sp-8) + max(0px, (100vw - var(--container-max)) / 2));
}
@media (max-width: 900px) {
	.sobre-hero__left { padding: var(--sp-10) var(--sp-6); }
}
.sobre-hero__content { max-width: 480px; }
.sobre-hero__eyebrow {
	display: block;
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: var(--sp-3);
}
.sobre-hero__title {
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	font-weight: var(--fw-extrabold);
	line-height: var(--lh-tight);
	color: var(--black);
	margin: 0 0 var(--sp-3);
}
.sobre-hero__subtitle {
	font-size: var(--text-base);
	color: var(--text-muted);
	margin: 0 0 var(--sp-5);
	line-height: var(--lh-relaxed);
}
.sobre-hero__mission {
	background: #111;
	border-radius: var(--r-md);
	padding: var(--sp-5);
}
.sobre-hero__mission-text {
	font-size: var(--text-sm);
	color: rgba(255,255,255,.8);
	margin: 0;
	line-height: var(--lh-relaxed);
}
.sobre-hero__right {
	background: #f5f0eb;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--sp-10);
}
.sobre-hero__avatar-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-4);
}
.sobre-hero__avatar-img {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--white);
	box-shadow: var(--shadow-md);
}
.sobre-hero__avatar-fallback {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	font-weight: var(--fw-extrabold);
	color: #fff;
	border: 4px solid var(--white);
	box-shadow: var(--shadow-md);
}
.sobre-hero__avatar-info { text-align: center; }
.sobre-hero__avatar-name {
	display: block;
	font-size: var(--text-base);
	font-weight: var(--fw-bold);
	color: var(--black);
}
.sobre-hero__avatar-cargo {
	display: block;
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin-top: 2px;
}

/* Stats 4 columnas */
.sobre-stats {
	padding: var(--sp-12) 0;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}
.sobre-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sp-4);
}
@media (max-width: 640px) {
	.sobre-stats__grid { grid-template-columns: repeat(2, 1fr); }
}
.sobre-stat {
	background: var(--white);
	border-radius: var(--r-lg);
	padding: var(--sp-6);
	text-align: center;
	border-top: 4px solid transparent;
}
.sobre-stat--red   { border-top-color: #e63946; }
.sobre-stat--blue  { border-top-color: #4361ee; }
.sobre-stat--teal  { border-top-color: #06d6a0; }
.sobre-stat--orange{ border-top-color: #f77f00; }
.sobre-stat__num {
	display: block;
	font-size: 2rem;
	font-weight: var(--fw-extrabold);
	color: var(--black);
	line-height: 1;
	margin-bottom: var(--sp-2);
}
.sobre-stat--red   .sobre-stat__num { color: #e63946; }
.sobre-stat--blue  .sobre-stat__num { color: #4361ee; }
.sobre-stat--teal  .sobre-stat__num { color: #06d6a0; }
.sobre-stat--orange .sobre-stat__num { color: #f77f00; }
.sobre-stat__label {
	font-size: var(--text-xs);
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* Layout 2 columnas */
.sobre-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: var(--sp-12);
	padding: var(--sp-12) 0 var(--sp-16);
}
@media (max-width: 1100px) {
	.sobre-layout { grid-template-columns: 1fr; }
}
.sobre-section-title {
	font-size: var(--text-xl);
	font-weight: var(--fw-bold);
	color: var(--black);
	margin: 0 0 var(--sp-6);
	padding-bottom: var(--sp-4);
	border-bottom: 2px solid var(--accent);
	display: inline-block;
}

/* Timeline */
.sobre-timeline { margin-bottom: var(--sp-12); }
.sobre-timeline__list { list-style: none; margin: 0; padding: 0; position: relative; }
.sobre-timeline__list::before {
	content: '';
	position: absolute;
	left: 52px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--border);
}
.sobre-timeline__item {
	display: flex;
	gap: var(--sp-6);
	align-items: flex-start;
	padding: 0 0 var(--sp-6);
	position: relative;
}
.sobre-timeline__item:last-child { padding-bottom: 0; }
.sobre-timeline__year {
	font-size: var(--text-sm);
	font-weight: var(--fw-extrabold);
	color: var(--accent);
	min-width: 44px;
	line-height: var(--lh-snug);
	flex-shrink: 0;
}
.sobre-timeline__milestone::before {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	background: var(--accent);
	border-radius: 50%;
	position: absolute;
	left: 47px;
	top: 4px;
}
.sobre-timeline__milestone {
	font-size: var(--text-sm);
	color: var(--text-body);
	line-height: var(--lh-relaxed);
	margin: 0;
	padding-left: var(--sp-8);
}

/* Principios 2×2 */
.sobre-principios { margin-bottom: var(--sp-8); }
.sobre-principios__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-4);
}
@media (max-width: 640px) {
	.sobre-principios__grid { grid-template-columns: 1fr; }
}
.sobre-principio {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: var(--sp-5);
}
.sobre-principio__title {
	font-size: var(--text-sm);
	font-weight: var(--fw-bold);
	color: var(--black);
	margin: 0 0 var(--sp-2);
}
.sobre-principio__desc {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0;
	line-height: var(--lh-relaxed);
}

/* Formación académica */
.sobre-formacion {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-5);
	margin-bottom: var(--sp-5);
}
.sobre-formacion__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 var(--sp-4);
}
.sobre-formacion__card {
	display: flex;
	gap: var(--sp-4);
	align-items: center;
	margin-bottom: var(--sp-4);
}
.sobre-formacion__logo {
	width: 56px;
	height: 46px;
	background: var(--black);
	border-radius: var(--r-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.sobre-formacion__logo span {
	color: #fff;
	font-size: var(--text-sm);
	font-weight: var(--fw-extrabold);
}
.sobre-formacion__degree {
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	color: var(--black);
	margin: 0 0 2px;
}
.sobre-formacion__inst {
	font-size: var(--text-xs);
	color: var(--text-muted);
	margin: 0;
}
.sobre-formacion__credentials { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.sobre-formacion__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	padding: 2px 8px;
	border-radius: var(--r-full);
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
}
.sobre-formacion__badge--red { background: #fee2e2; color: #b91c1c; }
.sobre-formacion__badge--blue { background: #dbeafe; color: #1d4ed8; }
.sobre-formacion__bio {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0;
	line-height: var(--lh-relaxed);
}

/* Contacto */
.sobre-contacto {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-5);
	margin-bottom: var(--sp-5);
}
.sobre-contacto__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 var(--sp-2);
}
.sobre-contacto__desc {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0 0 var(--sp-4);
	line-height: var(--lh-relaxed);
}
.sobre-contacto__btn {
	display: inline-block;
	padding: var(--sp-2) var(--sp-5);
	background: var(--black);
	color: #fff;
	border-radius: var(--r-full);
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	text-decoration: none;
	transition: background var(--t-fast);
	margin-bottom: var(--sp-3);
}
.sobre-contacto__btn:hover { background: #333; }
.sobre-contacto__social {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--text-sm);
	color: var(--text-muted);
	text-decoration: none;
	margin-left: var(--sp-3);
}
.sobre-contacto__social:hover { color: var(--accent); }

/* Categorías sidebar */
.sobre-cats {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-5);
}
.sobre-cats__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 var(--sp-4);
}
.sobre-cats__list { list-style: none; margin: 0; padding: 0; }
.sobre-cats__list li { border-bottom: 1px solid var(--border); }
.sobre-cats__list li:last-child { border-bottom: none; }
.sobre-cats__link {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) 0;
	color: var(--text-body);
	text-decoration: none;
	font-size: var(--text-sm);
	transition: color var(--t-fast);
}
.sobre-cats__link:hover { color: var(--accent); }
.sobre-cats__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.sobre-cats__count {
	margin-left: auto;
	font-size: var(--text-xs);
	color: var(--text-muted);
}

/* Apoya sección negra */
.sobre-apoya {
	background: #111;
	padding: var(--sp-12) 0;
}
.sobre-apoya__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-8);
}
@media (max-width: 640px) {
	.sobre-apoya__inner { flex-direction: column; align-items: flex-start; }
}
.sobre-apoya__text {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
}
.sobre-apoya__text strong {
	font-size: var(--text-lg);
	font-weight: var(--fw-bold);
	color: #fff;
}
.sobre-apoya__text span {
	font-size: var(--text-sm);
	color: rgba(255,255,255,.6);
}
.sobre-apoya__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-3) var(--sp-7);
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255,255,255,.4);
	border-radius: var(--r-full);
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--t-fast), border-color var(--t-fast);
}
.sobre-apoya__btn:hover {
	background: rgba(255,255,255,.1);
	border-color: rgba(255,255,255,.7);
}

/* ================================================================
   RESPONSIVE — Móvil para todos los heroes de 2 columnas
   ================================================================ */

@media (max-width: 768px) {
	.cat-hero,
	.sobre-hero {
		grid-template-columns: 1fr;
	}
	.cat-hero__right,
	.sobre-hero__right {
		display: none;
	}

	.fp-recurso-row {
		grid-template-columns: 56px 1fr 36px;
	}

	.fp-herramienta__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--sp-4);
	}

	.recursos-hero__stats { gap: var(--sp-5); }
	.recursos-hero__stat-num { font-size: 1.5rem; }
}

/* ================================================================
   PAGE VIDEOS
   ================================================================ */

/* Hero */
.videos-hero {
	background: #111;
	padding: var(--sp-16) 0;
	color: #fff;
}
.videos-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-10);
}
@media (max-width: 768px) {
	.videos-hero__inner { flex-direction: column; align-items: flex-start; }
}
.videos-hero__eyebrow {
	display: block;
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
	margin-bottom: var(--sp-3);
}
.videos-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: var(--fw-extrabold);
	color: #fff;
	line-height: var(--lh-tight);
	margin: 0 0 var(--sp-3);
}
.videos-hero__desc {
	font-size: var(--text-base);
	color: rgba(255,255,255,.65);
	margin: 0 0 var(--sp-5);
	line-height: var(--lh-relaxed);
}
.videos-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-3) var(--sp-6);
	background: #ff0000;
	color: #fff;
	border-radius: var(--r-full);
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	text-decoration: none;
	transition: opacity var(--t-fast);
}
.videos-hero__cta:hover { opacity: .85; color: #fff; }
.videos-hero__stats {
	display: flex;
	gap: var(--sp-8);
	flex-shrink: 0;
}
.videos-hero__stat { text-align: center; }
.videos-hero__stat-num {
	display: block;
	font-size: 2rem;
	font-weight: var(--fw-extrabold);
	color: #fff;
	line-height: 1;
}
.videos-hero__stat-label {
	font-size: var(--text-xs);
	color: rgba(255,255,255,.5);
	text-transform: uppercase;
	letter-spacing: .06em;
	display: block;
	margin-top: 4px;
}

/* Tabs */
.videos-tabs-bar {
	border-bottom: 1px solid var(--border);
	background: var(--white);
	position: sticky;
	top: 64px;
	z-index: 50;
}
.videos-tabs {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.videos-tabs::-webkit-scrollbar { display: none; }
.videos-tab {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-3) var(--sp-5);
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	color: var(--text-muted);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color var(--t-fast), border-color var(--t-fast);
}
.videos-tab:hover { color: var(--black); }
.videos-tab.is-active {
	color: var(--black);
	border-bottom-color: var(--tab-color, var(--accent));
	font-weight: var(--fw-semibold);
}
.videos-tab__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Layout 2/3 + 1/3 */
.videos-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: var(--sp-10);
	padding: var(--sp-10) 0 var(--sp-16);
}
@media (max-width: 1100px) {
	.videos-layout { grid-template-columns: 1fr; }
	.videos-layout__sidebar { order: -1; }
}

/* Grid de videos */
.videos-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
@media (max-width: 640px) {
	.videos-grid { grid-template-columns: 1fr; }
}

/* Tarjeta de video */
.video-card {
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--border);
	transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.video-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

/* Facade (thumbnail clicable) */
.video-card__facade {
	position: relative;
	aspect-ratio: 16/9;
	cursor: pointer;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.video-card__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .6;
	transition: opacity var(--t-slow), transform var(--t-slow);
}
.video-card:hover .video-card__thumb {
	opacity: .75;
	transform: scale(1.03);
}
.video-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.video-card__play {
	position: relative;
	z-index: 2;
	width: 52px;
	height: 52px;
	border: 2px solid var(--vid-accent, #fff);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.35);
	backdrop-filter: blur(4px);
	transition: transform var(--t-fast), background var(--t-fast);
}
.video-card:hover .video-card__play {
	transform: scale(1.12);
	background: rgba(0,0,0,.55);
}
.video-card__duration {
	position: absolute;
	bottom: var(--sp-3);
	right: var(--sp-3);
	z-index: 2;
	background: rgba(0,0,0,.75);
	color: #fff;
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
	padding: 2px 6px;
	border-radius: var(--r-sm);
	letter-spacing: .02em;
}

/* Cuerpo de la tarjeta */
.video-card__body { padding: var(--sp-4); }
.video-card__cat {
	display: block;
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: var(--sp-2);
}
.video-card__title {
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	color: var(--black);
	line-height: var(--lh-snug);
	margin: 0 0 var(--sp-3);
}
.video-card__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) var(--sp-4);
	background: #ff0000;
	color: #fff;
	border-radius: var(--r-full);
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
	text-decoration: none;
	transition: opacity var(--t-fast);
}
.video-card__btn:hover { opacity: .85; color: #fff; }

/* Empty state */
.videos-empty {
	padding: var(--sp-16) 0;
	color: var(--text-muted);
}
.videos-empty a { color: var(--accent); }

/* Sidebar boxes */
.videos-sidebar-box {
	border-radius: var(--r-lg);
	margin-bottom: var(--sp-5);
}
.videos-sidebar-box--dark {
	background: #111;
	padding: var(--sp-5);
}
.videos-sidebar-box__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
	margin: 0 0 var(--sp-4);
}
.videos-sidebar-box__list { list-style: none; margin: 0; padding: 0; }
.videos-sidebar-box__list li { border-bottom: 1px solid rgba(255,255,255,.06); }
.videos-sidebar-box__list li:last-child { border-bottom: none; }
.videos-sidebar-box__link {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) 0;
	color: rgba(255,255,255,.75);
	text-decoration: none;
	font-size: var(--text-sm);
	transition: color var(--t-fast);
}
.videos-sidebar-box__link:hover { color: #fff; }
.videos-sidebar-box__list li.is-active .videos-sidebar-box__link { color: #fff; font-weight: var(--fw-semibold); }
.videos-sidebar-box__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.videos-sidebar-box__count {
	margin-left: auto;
	font-size: var(--text-xs);
	color: rgba(255,255,255,.4);
}

/* Canal sidebar */
.videos-sidebar-channel {
	background: #1a0000;
	border: 1px solid rgba(255,0,0,.2);
	border-radius: var(--r-lg);
	padding: var(--sp-5);
	margin-bottom: var(--sp-5);
}
.videos-sidebar-channel__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,100,100,.7);
	margin: 0 0 var(--sp-2);
}
.videos-sidebar-channel__desc {
	font-size: var(--text-sm);
	color: rgba(255,255,255,.6);
	margin: 0 0 var(--sp-4);
	line-height: var(--lh-relaxed);
}
.videos-sidebar-channel__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) var(--sp-4);
	background: #ff0000;
	color: #fff;
	border-radius: var(--r-full);
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	text-decoration: none;
	transition: opacity var(--t-fast);
}
.videos-sidebar-channel__btn:hover { opacity: .85; }

/* Artículos relacionados sidebar */
.videos-sidebar-related {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-5);
}
.videos-sidebar-related__title {
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 var(--sp-4);
}
.videos-sidebar-related__list { display: flex; flex-direction: column; gap: var(--sp-3); }
.videos-sidebar-related__item {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
}
.videos-sidebar-related__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 5px;
}
.videos-sidebar-related__item-title {
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	margin: 0 0 2px;
	line-height: var(--lh-snug);
}
.videos-sidebar-related__item-title a { color: var(--black); text-decoration: none; }
.videos-sidebar-related__item-title a:hover { color: var(--accent); }
.videos-sidebar-related__meta { font-size: var(--text-xs); color: var(--text-muted); }
