/*
 * Yige Elementor Widgets — CSS general
 * Todos los selectores cuelgan de .yg-root (clase raíz de cada widget) para ganar
 * en especificidad a los estilos globales del Kit de Elementor y del tema.
 * Breakpoints: tablet ≤1024px · móvil ≤767px (los de Elementor por defecto).
 */

:root {
	--yg-paper: #fefcf6;
	--yg-paper-2: #f5eee0;
	--yg-ink: #160e0d;
	--yg-ink-2: #211614;
	--yg-ink-3: #2d1f1c;
	--yg-red: #b02a2f;
	--yg-red-deep: #861d22;
	--yg-red-soft: #f6dcd7;
	--yg-gold: #cc9900;
	--yg-gold-light: #e9c35b;
	--yg-text: #1e1513;
	--yg-muted: #6f625c;
	--yg-muted-ink: #b8aaa3;
	--yg-line: #e7dccb;
	--yg-line-ink: #3b2b27;
	--yg-white: #ffffff;

	--yg-font-sans: "Neue Haas Grotesk Display Pro", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--yg-font-zh: "Alibaba PuHuiTi", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	--yg-font-brush: "Ma Shan Zheng", "STKaiti", "KaiTi", serif;

	--yg-s-hero: clamp(2.6rem, 7.2vw, 6.4rem);
	--yg-s-h2: clamp(2.1rem, 4.8vw, 4.1rem);
	--yg-s-h3: clamp(1.3rem, 2vw, 1.6rem);
	--yg-s-lead: clamp(1.1rem, 1.6vw, 1.35rem);

	--yg-radius-l: 28px;
	--yg-radius-m: 18px;
	--yg-wrap: 1200px;
	--yg-gutter: 20px;
	--yg-header-h: 68px;
}

/* ============ Base ============ */

.yg-root,
.yg-root *,
.yg-root *::before,
.yg-root *::after { box-sizing: border-box; }

.yg-root {
	font-family: var(--yg-font-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--yg-text);
	-webkit-font-smoothing: antialiased;
	max-width: 100%;
	text-align: left;
}
.yg-root [hidden] { display: none !important; }
.yg-root p { margin: 0; }
.yg-root figure { margin: 0; }
.yg-root ul,
.yg-root ol { margin: 0; padding: 0; list-style: none; }
.yg-root img { max-width: 100%; border: 0; box-shadow: none; }
.yg-root a { text-decoration: none; }
.yg-root :focus-visible { outline: 2px solid var(--yg-gold); outline-offset: 3px; border-radius: 6px; }

.yg-root.yg-section {
	position: relative;
	padding-top: clamp(72px, 10vw, 140px);
	padding-bottom: clamp(72px, 10vw, 140px);
	background-color: var(--yg-paper);
	color: var(--yg-text);
	overflow: hidden;
	overflow: clip; /* recorta los glifos decorativos sin romper position: sticky */
}
.yg-root.yg-section--dark { background-color: var(--yg-ink); color: var(--yg-paper); }
.yg-root.yg-section--cream { background-color: var(--yg-paper-2); }

.yg-root .yg-wrap {
	position: relative;
	width: 100%;
	max-width: var(--yg-wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: max(var(--yg-gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--yg-gutter), env(safe-area-inset-right, 0px));
}

.yg-root .yg-zh { font-family: var(--yg-font-zh); }
.yg-root .yg-brush { font-family: var(--yg-font-brush); font-weight: 400; }
.yg-root .yg-notice { padding: 10px 14px; border: 1px dashed currentColor; border-radius: 10px; font-size: .85rem; opacity: .8; }

/* ============ Tipografía ============ */

.yg-root .yg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .16em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--yg-red);
}
.yg-root .yg-eyebrow::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.yg-root.yg-section--dark .yg-eyebrow { color: var(--yg-gold-light); }

.yg-root .yg-h {
	margin: 0;
	padding: 0;
	font-family: var(--yg-font-sans);
	font-weight: 700;
	font-stretch: 94%;
	letter-spacing: -.035em;
	line-height: 1.02;
	text-transform: none;
	color: inherit;
	text-wrap: balance;
	overflow-wrap: break-word;
}
.yg-root .yg-h2 { font-size: var(--yg-s-h2); }
.yg-root .yg-h3 { font-size: var(--yg-s-h3); letter-spacing: -.02em; line-height: 1.15; }

.yg-root .yg-lead { font-size: var(--yg-s-lead); line-height: 1.5; color: var(--yg-muted); max-width: 60ch; }
.yg-root.yg-section--dark .yg-lead { color: var(--yg-muted-ink); }

.yg-root .yg-grad {
	background: linear-gradient(95deg, var(--yg-gold-light) 0%, var(--yg-gold) 45%, #e0523f 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.yg-root .yg-red { color: var(--yg-red); }

/* ============ Botones y enlaces ============ */

.yg-root .yg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	font: 600 .975rem/1.2 var(--yg-font-sans);
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	box-shadow: none;
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.yg-root .yg-btn:hover { transform: translateY(-1px); }
.yg-root .yg-btn--red,
.yg-root .yg-btn--red:visited { background-color: var(--yg-red); border-color: var(--yg-red); color: var(--yg-white); }
.yg-root .yg-btn--red:hover,
.yg-root .yg-btn--red:focus { background-color: var(--yg-red-deep); border-color: var(--yg-red-deep); color: var(--yg-white); }
.yg-root .yg-btn--ghost,
.yg-root .yg-btn--ghost:visited { background-color: transparent; border-color: currentColor; color: inherit; }
.yg-root.yg-section--dark .yg-btn--ghost { border-color: var(--yg-line-ink); color: var(--yg-paper); }
.yg-root .yg-btn--ghost:hover,
.yg-root.yg-section--dark .yg-btn--ghost:hover { background-color: transparent; border-color: var(--yg-gold-light); color: var(--yg-gold-light); }

.yg-root .yg-link,
.yg-root .yg-link:visited { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--yg-red); }
.yg-root .yg-link:hover { color: var(--yg-red-deep); }
.yg-root .yg-link__icon { display: inline-flex; transition: transform .2s ease; }
.yg-root .yg-link__icon svg { width: .9em; height: .9em; fill: currentColor; }
.yg-root .yg-link:hover .yg-link__icon { transform: translateX(4px); }
.yg-root.yg-section--dark .yg-link { color: var(--yg-gold-light); }

.yg-root .yg-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(22, 14, 13, .62);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--yg-paper);
	font-size: .82rem;
	font-weight: 500;
	line-height: 1.2;
}
.yg-root .yg-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yg-gold-light); }

.yg-root .yg-round {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--yg-line-ink);
	border-radius: 50%;
	background: var(--yg-ink-2);
	color: var(--yg-paper);
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s, border-color .2s, opacity .2s;
}
.yg-root .yg-round:hover,
.yg-root .yg-round:focus { background: var(--yg-ink-3); border-color: var(--yg-gold); color: var(--yg-paper); }
.yg-root .yg-round[disabled] { opacity: .35; cursor: default; }
.yg-root .yg-round svg { width: 18px; height: 18px; }

/* Cabeceras de sección reutilizables */
.yg-root .yg-sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 40px; }
.yg-root .yg-sechead__main { display: grid; gap: 16px; min-width: 0; }
.yg-root .yg-sechead .yg-lead { max-width: 42ch; }
.yg-root .yg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: 44px; }
.yg-root .yg-split__main { display: grid; gap: 18px; min-width: 0; }

/* ============ Header ============ */

.yg-root.yg-header { position: relative; z-index: 100; color: var(--yg-paper); }
.yg-root .yg-header__bar {
	position: relative;
	background: rgba(22, 14, 13, .82);
	-webkit-backdrop-filter: saturate(160%) blur(18px);
	backdrop-filter: saturate(160%) blur(18px);
	border-bottom: 1px solid rgba(254, 252, 246, .08);
}
.yg-root.yg-header--fixed .yg-header__bar { position: fixed; top: 0; left: 0; right: 0; z-index: 999; padding-top: env(safe-area-inset-top, 0px); }
body.admin-bar .yg-root.yg-header--fixed .yg-header__bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .yg-root.yg-header--fixed .yg-header__bar { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .yg-root.yg-header--fixed .yg-header__bar { top: 0; } } /* ahí la barra de admin no es fija */
.yg-root .yg-header__spacer { height: var(--yg-header-h); }
.elementor-editor-active .yg-root.yg-header--fixed .yg-header__bar { position: relative; top: auto; }
.elementor-editor-active .yg-root .yg-header__spacer { display: none; }

.yg-root .yg-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.yg-root .yg-brand,
.yg-root .yg-brand:visited { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--yg-paper); }
.yg-root .yg-brand__logo { display: block; width: auto; height: 34px; max-width: none; flex: 0 0 auto; }
.yg-root .yg-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.yg-root .yg-brand__name { font-size: .98rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yg-root .yg-brand__sub { font-family: var(--yg-font-zh); font-size: .68rem; letter-spacing: .12em; color: var(--yg-muted-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.yg-root .yg-nav { display: flex; align-items: center; gap: 28px; }
.yg-root .yg-menu { display: flex; align-items: center; gap: 28px; }
.yg-root .yg-menu li { position: relative; margin: 0; padding: 0; }
.yg-root .yg-menu a,
.yg-root .yg-menu a:visited { display: block; padding: 6px 0; font-size: .9rem; line-height: 1.3; color: var(--yg-muted-ink); transition: color .2s; }
.yg-root .yg-menu a:hover,
.yg-root .yg-menu .current-menu-item > a,
.yg-root .yg-menu .current-menu-ancestor > a { color: var(--yg-paper); }
.yg-root .yg-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 5;
	min-width: 220px;
	padding: 8px 16px;
	border: 1px solid var(--yg-line-ink);
	border-radius: 14px;
	background: var(--yg-ink);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.yg-root .yg-menu li:hover > .sub-menu,
.yg-root .yg-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.yg-root .yg-menu .sub-menu a { padding: 8px 0; }
.yg-root .yg-nav .yg-btn { min-height: 40px; padding: 8px 18px; font-size: .88rem; }

.yg-root .yg-burger {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--yg-paper);
	cursor: pointer;
	box-shadow: none;
}
.yg-root .yg-burger:hover,
.yg-root .yg-burger:focus { background: rgba(254, 252, 246, .08); color: var(--yg-paper); }
.yg-root .yg-burger__lines { position: relative; display: block; width: 22px; height: 12px; }
.yg-root .yg-burger__lines::before,
.yg-root .yg-burger__lines::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.yg-root .yg-burger__lines::before { top: 0; }
.yg-root .yg-burger__lines::after { top: 10px; }
.yg-root.yg-header.is-open .yg-burger__lines::before { top: 5px; transform: rotate(45deg); }
.yg-root.yg-header.is-open .yg-burger__lines::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
	.yg-root .yg-burger { display: inline-grid; }
	.yg-root .yg-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100vh - var(--yg-header-h));
		overflow-y: auto;
		padding: 8px max(var(--yg-gutter), env(safe-area-inset-right, 0px)) 20px max(var(--yg-gutter), env(safe-area-inset-left, 0px));
		background: var(--yg-ink);
		border-bottom: 1px solid var(--yg-line-ink);
	}
	.yg-root.yg-header.is-open .yg-nav { display: flex; }
	.yg-root .yg-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.yg-root .yg-menu a { padding: 14px 0; border-bottom: 1px solid var(--yg-line-ink); font-size: 1.05rem; }
	.yg-root .yg-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0 16px; border: 0; border-radius: 0; background: transparent; opacity: 1; visibility: visible; transform: none; }
	.yg-root .yg-nav .yg-btn { width: 100%; min-height: 48px; margin-top: 16px; }
}
@media (max-width: 767px) {
	.yg-root .yg-header__inner { min-height: 60px; gap: 12px; }
	.yg-root .yg-brand { gap: 10px; }
	.yg-root .yg-brand__logo { height: 28px; }
	.yg-root .yg-brand__name { font-size: .92rem; }
}

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

.yg-root.yg-hero { padding-top: clamp(64px, 9vw, 120px); padding-bottom: 0; }
.yg-root .yg-hero__bg {
	position: absolute;
	top: -4%;
	right: -6%;
	font-size: clamp(14rem, 34vw, 32rem);
	line-height: .85;
	color: var(--yg-red);
	opacity: .14;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}
.yg-root .yg-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.yg-root .yg-hero__copy { display: grid; gap: 28px; max-width: 900px; min-width: 0; }
.yg-root .yg-hero__title { font-size: var(--yg-s-hero); font-weight: 750; letter-spacing: -.045em; line-height: .98; }
.yg-root .yg-hero__line { display: block; }
.yg-root .yg-hero .yg-lead { max-width: 52ch; }
.yg-root .yg-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.yg-root .yg-hero__vert {
	writing-mode: vertical-rl;
	max-height: 440px;
	padding-left: 18px;
	border-left: 1px solid var(--yg-line-ink);
	font-family: var(--yg-font-zh);
	font-size: 1.05rem;
	letter-spacing: .45em;
	line-height: 2;
	color: var(--yg-muted-ink);
}
.yg-root .yg-hero__vert b { font-weight: 500; color: var(--yg-gold-light); }

.yg-root .yg-hero__media { display: flex; justify-content: center; margin-top: clamp(48px, 7vw, 88px); }
.yg-root .yg-hero__frame {
	--yg-p: 0;
	position: relative;
	width: calc(88% + 12% * var(--yg-p));
	max-width: 100%;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	border-radius: calc(var(--yg-radius-l) * (1 - var(--yg-p)));
	background: var(--yg-ink-2);
}
.yg-root .yg-hero__frame--static { width: 88%; }
.yg-root .yg-hero__img,
.yg-root .yg-hero__video {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--yg-fx, 50%) var(--yg-fy, 40%);
	border-radius: 0;
	transform: scale(calc(1.08 - .08 * var(--yg-p)));
}
.yg-root .yg-hero__chips { position: absolute; left: 20px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

@keyframes yg-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.yg-root .yg-hero__copy > * { animation: yg-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
	.yg-root .yg-hero__copy > :nth-child(2) { animation-delay: .08s; }
	.yg-root .yg-hero__copy > :nth-child(3) { animation-delay: .2s; }
	.yg-root .yg-hero__copy > :nth-child(4) { animation-delay: .3s; }
}
.elementor-editor-active .yg-root .yg-hero__copy > * { animation: none; }

@media (max-width: 767px) {
	.yg-root .yg-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.yg-root .yg-hero__vert { display: none; }
	.yg-root .yg-hero__frame { aspect-ratio: 4 / 5; }
	.yg-root .yg-hero__frame,
	.yg-root .yg-hero__frame--static { width: calc(100% - 2 * var(--yg-gutter)); }
	.yg-root .yg-hero__chips { left: 12px; bottom: 12px; right: 12px; }
	.yg-root .yg-hero__cta .yg-btn { flex: 1 1 auto; }
}

/* ============ Highlights (carrusel) ============ */

.yg-root .yg-carousel__ctrl { display: flex; gap: 10px; }
.yg-root .yg-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(272px, 30vw, 370px);
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 12px;
	padding-left: max(var(--yg-gutter), calc((100% - var(--yg-wrap)) / 2 + var(--yg-gutter)));
	padding-right: max(var(--yg-gutter), calc((100% - var(--yg-wrap)) / 2 + var(--yg-gutter)));
	scroll-padding-left: max(var(--yg-gutter), calc((100% - var(--yg-wrap)) / 2 + var(--yg-gutter)));
}
.yg-root .yg-track::-webkit-scrollbar { display: none; }
.yg-root .yg-hl {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 440px;
	padding: 28px;
	overflow: hidden;
	border: 1px solid var(--yg-line-ink);
	border-radius: var(--yg-radius-l);
	background: var(--yg-ink-2);
	scroll-snap-align: start;
}
.yg-root .yg-hl__tag { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--yg-gold-light); }
.yg-root .yg-hl__title { font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; color: var(--yg-paper); }
.yg-root .yg-hl__text { font-size: .95rem; color: var(--yg-muted-ink); }
.yg-root .yg-hl__art { display: flex; align-items: flex-end; margin-top: auto; }
.yg-root .yg-hl__glyph { font-size: 7.5rem; line-height: .9; color: var(--yg-red); }
.yg-root .yg-hl__glyph--gold { color: var(--yg-gold); }
.yg-root .yg-hl__glyph--light { color: var(--yg-paper); }
.yg-root .yg-hl__big { font-family: var(--yg-font-sans); font-size: 5.6rem; font-weight: 800; font-stretch: 110%; letter-spacing: -.05em; line-height: .9; }
.yg-root .yg-hl--photo { justify-content: flex-end; padding: 0; }
.yg-root .yg-hl--photo .yg-hl__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.yg-root .yg-hl--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 14, 13, 0) 30%, rgba(22, 14, 13, .92) 100%); }
.yg-root .yg-hl__body { position: relative; z-index: 1; display: grid; gap: 10px; padding: 28px; }
.yg-root .yg-hl--accent { background: var(--yg-red); border-color: var(--yg-red); }
.yg-root .yg-hl--accent .yg-hl__tag { color: var(--yg-paper); }
.yg-root .yg-hl--accent .yg-hl__text { color: var(--yg-red-soft); }
.yg-root .yg-hl--accent .yg-hl__glyph { color: var(--yg-gold-light); }
.yg-root .yg-tones { width: 100%; height: auto; }
.yg-root .yg-tones text { font-family: var(--yg-font-sans); font-size: 11px; fill: var(--yg-muted-ink); }
.yg-root .yg-tones .yg-tones__py { font-size: 15px; font-weight: 600; fill: var(--yg-paper); }
.yg-root .yg-tones .yg-tones__hz { font-family: var(--yg-font-zh); font-size: 15px; fill: var(--yg-gold-light); }
.yg-root .yg-tones line { stroke: var(--yg-line-ink); stroke-width: 1; }
.yg-root .yg-tones path { fill: none; stroke: var(--yg-red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) {
	.yg-root .yg-track { grid-auto-columns: 82%; }
	.yg-root .yg-hl { min-height: 400px; padding: 24px; }
	.yg-root .yg-hl__body { padding: 24px; }
}

/* ============ Manifiesto ============ */

.yg-root .yg-manifest__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.yg-root .yg-manifest__head { position: sticky; top: calc(var(--yg-header-h) + 40px); display: grid; gap: 24px; }
.yg-root .yg-manifest__item { display: grid; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--yg-line); }
.yg-root .yg-manifest__item:first-child { border-top: 1px solid var(--yg-line); }
.yg-root .yg-manifest__label { font-size: 1.05rem; font-weight: 700; color: var(--yg-red); }
.yg-root .yg-manifest__text { font-size: 1.35rem; line-height: 1.35; letter-spacing: -.015em; }
@media (max-width: 1024px) {
	.yg-root .yg-manifest__grid { grid-template-columns: minmax(0, 1fr); }
	.yg-root .yg-manifest__head { position: static; }
}
@media (max-width: 767px) { .yg-root .yg-manifest__text { font-size: 1.15rem; } }

/* ============ Cursos ============ */

.yg-root .yg-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.yg-root .yg-course {
	position: relative;
	display: flex;
	flex-direction: column;
	grid-column: span 6;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--yg-line);
	border-radius: var(--yg-radius-l);
	background: var(--yg-paper);
	color: var(--yg-text);
}
.yg-root .yg-course--w4 { grid-column: span 4; }
.yg-root .yg-course--w12 { grid-column: span 12; }
.yg-root .yg-course__img { aspect-ratio: 16 / 10; overflow: hidden; }
.yg-root .yg-course__img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; transition: transform .6s ease; }
.yg-root .yg-course:hover .yg-course__img img { transform: scale(1.04); }
.yg-root .yg-course__body { display: grid; flex: 1; align-content: start; gap: 14px; padding: 28px; }
.yg-root .yg-course__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yg-root .yg-course__for { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--yg-muted); }
.yg-root .yg-seal {
	display: inline-grid;
	place-items: center;
	min-width: 52px;
	height: 52px;
	padding: 0 10px;
	border-radius: 12px;
	background: var(--yg-red);
	color: var(--yg-paper);
	font-family: var(--yg-font-brush);
	font-size: 1.6rem;
	line-height: 1;
}
.yg-root .yg-course__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.yg-root .yg-course__text { color: var(--yg-muted); }
.yg-root .yg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.yg-root .yg-tags li { padding: 6px 12px; border: 1px solid var(--yg-line); border-radius: 999px; background: var(--yg-paper-2); font-size: .8rem; line-height: 1.3; }
.yg-root .yg-course--dark { background: var(--yg-ink); border-color: var(--yg-ink); color: var(--yg-paper); }
.yg-root .yg-course--dark .yg-course__text { color: var(--yg-muted-ink); }
.yg-root .yg-course--dark .yg-seal { background: var(--yg-gold); color: var(--yg-ink); }
.yg-root .yg-course--dark .yg-course__for,
.yg-root .yg-course--dark .yg-link { color: var(--yg-gold-light); }
.yg-root .yg-course--dark .yg-tags li { background: var(--yg-ink-3); border-color: var(--yg-line-ink); }
.yg-root .yg-course--red { background: var(--yg-red); border-color: var(--yg-red); color: var(--yg-paper); }
.yg-root .yg-course--red .yg-course__text,
.yg-root .yg-course--red .yg-course__for { color: var(--yg-red-soft); }
.yg-root .yg-course--red .yg-seal { background: var(--yg-paper); color: var(--yg-red); }
.yg-root .yg-course--red .yg-link { color: var(--yg-paper); }
.yg-root .yg-course--red .yg-tags li { background: rgba(254, 252, 246, .12); border-color: rgba(254, 252, 246, .3); }
@media (max-width: 1024px) { .yg-root .yg-course--w4 { grid-column: span 6; } }
@media (max-width: 767px) {
	.yg-root .yg-course,
	.yg-root .yg-course--w4,
	.yg-root .yg-course--w12 { grid-column: span 12; }
	.yg-root .yg-course__body { padding: 24px; }
}

/* ============ Experiencia ============ */

.yg-root .yg-exp__head { display: grid; justify-items: center; gap: 24px; max-width: 980px; margin: 0 auto; text-align: center; }
.yg-root .yg-exp__title { font-size: clamp(2.4rem, 6vw, 5.2rem); }
.yg-root .yg-exp__copy { max-width: 720px; margin: clamp(28px, 4vw, 44px) auto 0; font-size: var(--yg-s-lead); line-height: 1.55; text-align: center; color: var(--yg-muted-ink); }
.yg-root .yg-exp__copy p + p { margin-top: 1em; }
.yg-root .yg-exp__copy strong,
.yg-root .yg-exp__copy b { font-weight: 600; color: var(--yg-paper); }
.yg-root .yg-exp__media { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; margin-top: clamp(48px, 7vw, 80px); }
.yg-root .yg-exp__fig { position: relative; min-height: 0; overflow: hidden; border-radius: var(--yg-radius-l); }
.yg-root .yg-exp__fig img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.yg-root .yg-exp__fig--tall { aspect-ratio: 4 / 5; }
.yg-root .yg-exp__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-height: 0; }
.yg-root .yg-exp__stack .yg-exp__fig img { position: absolute; inset: 0; }
.yg-root .yg-stats { display: grid; grid-template-columns: repeat(var(--yg-cols, 3), minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--yg-line-ink); }
.yg-root .yg-stat { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 28px 24px 0 0; }
.yg-root .yg-stat + .yg-stat { padding-left: 24px; border-left: 1px solid var(--yg-line-ink); }
.yg-root .yg-stat__value { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 750; font-stretch: 105%; letter-spacing: -.045em; line-height: 1; }
.yg-root .yg-stat__label { max-width: 26ch; font-size: .95rem; color: var(--yg-muted-ink); }
@media (max-width: 767px) {
	.yg-root .yg-exp__media { grid-template-columns: minmax(0, 1fr); }
	.yg-root .yg-exp__fig--tall { aspect-ratio: 4 / 3; }
	.yg-root .yg-exp__stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.yg-root .yg-exp__stack .yg-exp__fig { aspect-ratio: 1; }
	.yg-root .yg-stats { grid-template-columns: minmax(0, 1fr); }
	.yg-root .yg-stat,
	.yg-root .yg-stat + .yg-stat { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--yg-line-ink); }
}

/* ============ Programa ============ */

.yg-root .yg-program__body { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px; align-items: start; }
.yg-root .yg-units { display: grid; gap: 6px; min-width: 0; }
.yg-root .yg-program__panels { min-width: 0; }
.yg-root .yg-unit-btn {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: transparent;
	color: var(--yg-text);
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	white-space: normal;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s, border-color .2s;
}
.yg-root .yg-unit-btn:hover,
.yg-root .yg-unit-btn:focus { background: var(--yg-paper-2); color: var(--yg-text); }
.yg-root .yg-unit-btn[aria-selected="true"] { background: var(--yg-white); border-color: var(--yg-line); box-shadow: 0 10px 30px -18px rgba(22, 14, 13, .35); }
.yg-root .yg-unit-btn__n { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--yg-muted); }
.yg-root .yg-unit-btn[aria-selected="true"] .yg-unit-btn__n { color: var(--yg-red); }
.yg-root .yg-unit-btn__t { font-size: .98rem; font-weight: 600; line-height: 1.25; }
.yg-root .yg-unit-btn__z { font-family: var(--yg-font-zh); font-size: .85rem; color: var(--yg-muted); }
.yg-root .yg-panel { min-width: 0; overflow: hidden; border: 1px solid var(--yg-line); border-radius: var(--yg-radius-l); background: var(--yg-white); }
.yg-root .yg-panel__head { position: relative; display: grid; gap: 6px; padding: 32px; overflow: hidden; background: var(--yg-ink); color: var(--yg-paper); }
.yg-root .yg-panel__kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--yg-gold-light); }
.yg-root .yg-panel__title { position: relative; z-index: 1; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.yg-root .yg-panel__py { position: relative; z-index: 1; color: var(--yg-muted-ink); }
.yg-root .yg-panel__glyph { position: absolute; top: 50%; right: 24px; transform: translateY(-50%); font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1; white-space: nowrap; color: var(--yg-red); opacity: .9; }
.yg-root .yg-lesson { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 24px 32px; border-top: 1px solid var(--yg-line); }
.yg-root .yg-lesson:first-child { border-top: 0; }
.yg-root .yg-lesson__num { padding-top: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yg-red); }
.yg-root .yg-lesson__hz { font-family: var(--yg-font-zh); font-size: 1.5rem; font-weight: 500; line-height: 1.3; }
.yg-root .yg-lesson__py { margin-left: 8px; font-size: .92rem; color: var(--yg-muted); }
.yg-root .yg-lesson__es { margin-top: 2px; font-weight: 600; }
.yg-root .yg-lesson__desc { max-width: 62ch; margin-top: 6px; font-size: .95rem; color: var(--yg-muted); }
@media (max-width: 1024px) {
	.yg-root .yg-program__body { grid-template-columns: minmax(0, 1fr); }
	.yg-root .yg-units { grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
	.yg-root .yg-unit-btn { scroll-snap-align: start; }
	.yg-root .yg-panel__glyph { display: none; }
}
@media (max-width: 767px) {
	.yg-root .yg-lesson { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 22px; }
	.yg-root .yg-panel__head { padding: 26px 22px; }
	.yg-root .yg-lesson__py { display: block; margin-left: 0; }
}

/* ============ Comunidad ============ */

.yg-root .yg-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 190px); grid-auto-flow: dense; gap: 14px; }
.yg-root .yg-gallery__item { position: relative; overflow: hidden; border-radius: var(--yg-radius-m); background: var(--yg-paper-2); }
.yg-root .yg-gallery__item img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; transition: transform .7s ease; }
.yg-root .yg-gallery__item:hover img { transform: scale(1.05); }
.yg-root .yg-gallery__cap { position: absolute; left: 12px; bottom: 12px; right: 12px; }
.yg-root .yg-g--large { grid-column: span 3; grid-row: span 2; }
.yg-root .yg-g--wide { grid-column: span 3; grid-row: span 1; }
.yg-root .yg-g--medium { grid-column: span 2; grid-row: span 1; }
.yg-root .yg-g--small { grid-column: span 1; grid-row: span 1; }
.yg-root .yg-g--square { grid-column: span 2; grid-row: span 2; }
@media (max-width: 767px) {
	.yg-root .yg-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
	.yg-root .yg-g--large { grid-column: span 2; grid-row: span 2; }
	.yg-root .yg-g--wide { grid-column: span 2; grid-row: span 1; }
	.yg-root .yg-g--medium,
	.yg-root .yg-g--small,
	.yg-root .yg-g--square { grid-column: span 1; grid-row: span 1; }
}

/* ============ Valores ============ */

.yg-root.yg-values { background-color: var(--yg-red); color: var(--yg-paper); }
.yg-root.yg-values .yg-eyebrow { color: var(--yg-gold-light); }
.yg-root .yg-values__bg { position: absolute; right: -2%; bottom: -18%; font-size: clamp(16rem, 30vw, 30rem); line-height: 1; color: var(--yg-red-deep); opacity: .55; pointer-events: none; user-select: none; }
.yg-root .yg-values__mission { display: grid; gap: 22px; max-width: 980px; }
.yg-root .yg-values__title { font-size: clamp(1.9rem, 4.2vw, 3.5rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.yg-root .yg-values__title em { font-style: normal; color: var(--yg-gold-light); }
.yg-root .yg-values__grid { display: grid; grid-template-columns: repeat(var(--yg-cols, 3), minmax(0, 1fr)); gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.yg-root .yg-value { display: grid; align-content: start; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(254, 252, 246, .35); }
.yg-root .yg-value__glyph { font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; color: var(--yg-paper); }
.yg-root .yg-value__title { font-size: 1.4rem; }
.yg-root .yg-value__text { max-width: 34ch; color: var(--yg-red-soft); }
@media (max-width: 767px) { .yg-root .yg-values__grid { grid-template-columns: minmax(0, 1fr); } }

/* ============ Becas ============ */

.yg-root.yg-scholar { padding-bottom: 0; }
.yg-root .yg-scholar__card { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); overflow: hidden; border-radius: var(--yg-radius-l); background: var(--yg-ink); color: var(--yg-paper); }
.yg-root .yg-scholar__copy { position: relative; z-index: 1; display: grid; align-content: center; gap: 20px; padding: clamp(32px, 5vw, 64px); }
.yg-root .yg-scholar__title { font-size: clamp(2rem, 4vw, 3.4rem); }
.yg-root .yg-scholar__text { max-width: 46ch; color: var(--yg-muted-ink); }
.yg-root .yg-scholar__art { position: relative; display: grid; place-items: center; min-height: 260px; background: radial-gradient(120% 90% at 70% 40%, #3a2516 0%, var(--yg-ink) 70%); }
.yg-root .yg-scholar__glyph { font-size: clamp(6rem, 13vw, 11rem); line-height: 1; color: var(--yg-gold); text-shadow: 0 0 60px rgba(204, 153, 0, .35); }
.yg-root .yg-scholar__caption { position: absolute; bottom: 22px; left: 16px; right: 16px; font-size: .8rem; letter-spacing: .14em; text-align: center; text-transform: uppercase; color: var(--yg-muted-ink); }
@media (max-width: 767px) {
	.yg-root .yg-scholar__card { grid-template-columns: minmax(0, 1fr); }
	.yg-root .yg-scholar__art { order: -1; min-height: 200px; }
}

/* ============ Pasos ============ */

.yg-root .yg-steps__head { display: grid; gap: 18px; max-width: 720px; margin-bottom: 48px; }
.yg-root .yg-steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.yg-root .yg-step { position: relative; display: grid; align-content: start; gap: 10px; padding: 28px 24px; border: 1px solid var(--yg-line); border-radius: var(--yg-radius-m); background: var(--yg-paper); }
.yg-root .yg-step__num { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--yg-red); }
.yg-root .yg-step__title { font-size: 1.3rem; }
.yg-root .yg-step__text { font-size: .95rem; color: var(--yg-muted); }
.yg-root .yg-step::after { content: ""; position: absolute; top: 38px; right: -14px; width: 10px; height: 10px; border-top: 2px solid var(--yg-gold); border-right: 2px solid var(--yg-gold); transform: rotate(45deg); }
.yg-root .yg-step:last-child::after { display: none; }
@media (max-width: 1024px) {
	.yg-root .yg-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yg-root .yg-step::after { display: none; }
}
@media (max-width: 767px) { .yg-root .yg-steps__list { grid-template-columns: minmax(0, 1fr); } }

/* ============ Contacto ============ */

.yg-root .yg-contact__bg { position: absolute; left: -3%; bottom: -12%; font-size: clamp(14rem, 28vw, 26rem); line-height: 1; color: var(--yg-red); opacity: .12; pointer-events: none; user-select: none; }
.yg-root .yg-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(40px, 6vw, 90px); align-items: center; }
.yg-root .yg-contact__copy { position: relative; z-index: 1; display: grid; gap: 24px; min-width: 0; }
.yg-root .yg-contact__title { font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.yg-root .yg-contact__slogan { font-family: var(--yg-font-zh); font-size: 1.15rem; letter-spacing: .2em; color: var(--yg-gold-light); }
.yg-root .yg-contact__list { margin: 8px 0 0; border-top: 1px solid var(--yg-line-ink); }
.yg-root .yg-contact__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--yg-line-ink); font-size: .95rem; }
.yg-root .yg-contact__label { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--yg-muted-ink); }
.yg-root .yg-contact__label i,
.yg-root .yg-contact__label svg { width: 1em; font-size: 1em; color: var(--yg-gold-light); fill: currentColor; }
.yg-root .yg-contact__value { margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; color: var(--yg-paper); }
.yg-root .yg-contact__value a,
.yg-root .yg-contact__value a:visited { color: var(--yg-paper); }
.yg-root .yg-contact__value a:hover { color: var(--yg-gold-light); }

.yg-root .yg-form { position: relative; z-index: 1; display: grid; gap: 16px; min-width: 0; padding: clamp(24px, 3.5vw, 36px); border-radius: var(--yg-radius-l); background: var(--yg-paper); color: var(--yg-text); }
.yg-root .yg-form__title { font-size: 1.5rem; letter-spacing: -.02em; }
.yg-root .yg-field { display: grid; gap: 6px; }
.yg-root .yg-field label { font-size: .82rem; font-weight: 600; color: var(--yg-muted); }
.yg-root .yg-field input,
.yg-root .yg-field select,
.yg-root .yg-field textarea {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--yg-line);
	border-radius: 12px;
	background: var(--yg-white);
	color: var(--yg-text);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	box-shadow: none;
}
.yg-root .yg-field textarea { min-height: 96px; resize: vertical; }
.yg-root .yg-field input:focus,
.yg-root .yg-field select:focus,
.yg-root .yg-field textarea:focus { outline: 2px solid var(--yg-red); outline-offset: 0; border-color: var(--yg-red); }
.yg-root .yg-form .yg-btn { width: 100%; }
.yg-root .yg-form__note { font-size: .85rem; text-align: center; color: var(--yg-muted); }
.yg-root .yg-form__status { padding: 12px 14px; border: 1px solid var(--yg-line); border-radius: 12px; background: var(--yg-paper-2); font-size: .92rem; }
.yg-root .yg-form__status--ok { border-color: #b7d3b0; background: #eef6ea; }
.yg-root .yg-form__status--error { border-color: #e6b3b0; background: #fbeceb; }
.yg-root .yg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.yg-root .yg-form--shortcode { color: var(--yg-text); }
@media (max-width: 1024px) { .yg-root .yg-contact__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
	.yg-root .yg-contact__item { flex-direction: column; align-items: flex-start; gap: 2px; }
	.yg-root .yg-contact__value { text-align: left; }
}

/* ============ Footer ============ */

.yg-root.yg-footer { padding-top: 64px; padding-bottom: 32px; background-color: var(--yg-ink-2); color: var(--yg-muted-ink); font-size: .92rem; }
.yg-root .yg-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(var(--yg-footer-cols, 3), minmax(0, 1fr)); gap: 40px; }
.yg-root .yg-footer__brand { display: grid; align-content: start; gap: 16px; }
.yg-root .yg-footer__logo { display: block; width: 220px; height: auto; }
.yg-root .yg-footer__title { margin: 0 0 14px; font-family: var(--yg-font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--yg-paper); }
.yg-root .yg-footer__menu { display: grid; gap: 10px; }
.yg-root .yg-footer__menu .sub-menu { display: grid; gap: 8px; margin-top: 8px; padding-left: 12px; }
.yg-root .yg-footer a,
.yg-root .yg-footer a:visited { color: var(--yg-muted-ink); transition: color .2s; }
.yg-root .yg-footer a:hover { color: var(--yg-paper); }
.yg-root .yg-social { display: grid; gap: 10px; }
.yg-root .yg-social a,
.yg-root .yg-social span { display: inline-flex; align-items: center; gap: 10px; }
.yg-root .yg-social i,
.yg-root .yg-social svg { width: 1em; font-size: 1em; fill: currentColor; }
.yg-root .yg-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--yg-line-ink); font-size: .82rem; }
@media (max-width: 1024px) {
	.yg-root .yg-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yg-root .yg-footer__brand { grid-column: span 2; }
}
@media (max-width: 767px) {
	.yg-root .yg-footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.yg-root .yg-footer__brand { grid-column: auto; }
	.yg-root .yg-footer__logo { width: 180px; }
}

/* ============ Secciones de dos columnas (comunidad, programa) ============ */

@media (max-width: 1024px) { .yg-root .yg-split { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 767px) {
	.yg-root .yg-sechead { margin-bottom: 28px; }
	.yg-root .yg-btn { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.yg-root *,
	.yg-root *::before,
	.yg-root *::after { animation: none !important; transition: none !important; }
}
