/* Yeppo Academy — tokens y componentes base.
   Hex y familias: docs/brand.md (capa --yp-* de yeppo.cl, 12 nov 2026).
   Ojo: Twenty Twenty fija html { font-size: 62.5% }, así que 1rem = 10px.
   Todas las medidas en rem de este tema están pensadas sobre esa base
   (1.6rem = 16px). */

:root {
	--ya-ink: #1a1410;
	--ya-ink-soft: rgba(26, 20, 16, 0.68);
	--ya-accent: #cb466a;
	--ya-accent-hover: #9f2e4c;
	--ya-accent-ring: rgba(203, 70, 106, 0.15);
	--ya-blush: #faeaee;
	--ya-line: #ebd9e0;
	--ya-surface: #ffffff;
	--ya-muted: #464646;
	--ya-deep: #570018;
	--ya-footer: #121212;
	--ya-sand: #f0eae7;
	--ya-search-bg: #f7f7f7;
	--ya-search-line: #e9e9e9;
	--ya-font-display: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
	--ya-font-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ya-radius: 20px;
	--ya-header-h: 6.8rem;
	--ya-measure: 115.2rem;
	color-scheme: light;
}

body.ya-theme {
	margin: 0;
	color: var(--ya-ink);
	background: var(--ya-surface);
	font-family: var(--ya-font-text);
	font-size: 1.6rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

body.ya-theme h1,
body.ya-theme h2,
body.ya-theme h3,
body.ya-theme .entry-title,
body.ya-theme .archive-title {
	font-family: var(--ya-font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

/* Color con especificidad baja: el contenido que trae su propio color
   (por ejemplo un hero oscuro con títulos blancos) debe poder ganarle. */
:where(body.ya-theme) :where(h1, h2, h3, h4, h5, h6) {
	color: var(--ya-ink);
}

body.ya-theme h4,
body.ya-theme h5,
body.ya-theme h6 {
	font-family: var(--ya-font-text);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
}

body.ya-theme a {
	color: var(--ya-accent-hover);
	text-underline-offset: 0.15em;
}

body.ya-theme a:hover {
	color: var(--ya-accent);
}

body.ya-theme :focus-visible {
	outline: 2px solid var(--ya-accent);
	outline-offset: 3px;
}

.ya-skip {
	position: absolute;
	left: 1.6rem;
	top: 0;
	z-index: 1000;
	transform: translateY(-120%);
	background: var(--ya-ink);
	color: #fff;
	padding: 0.96rem 1.6rem;
	border-radius: 999px;
	text-decoration: none;
}

.ya-skip:focus {
	transform: none;
	color: #fff;
}

.ya-announce {
	background: var(--ya-accent);
	color: #fff;
	text-align: center;
	padding: 0.72rem 1.6rem;
}

.ya-announce__text {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ya-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--ya-line);
	backdrop-filter: blur(10px);
}

.ya-header__inner {
	max-width: var(--ya-measure);
	margin: 0 auto;
	padding: 1.2rem 2rem;
	display: flex;
	align-items: center;
	gap: 1.6rem;
}

.ya-logo {
	display: inline-flex;
	align-items: center;
	margin-right: auto;
	text-decoration: none;
}

.ya-logo img,
.ya-logo--custom .custom-logo {
	display: block;
	height: 36px;
	width: auto;
	max-width: 15.2rem;
}

body.ya-theme .ya-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	border: 1px solid var(--ya-line);
	background: var(--ya-surface);
	color: var(--ya-ink);
	border-radius: 999px;
	padding: 0.72rem 1.28rem;
	font: inherit;
	font-weight: 700;
	font-size: 1.4rem;
	cursor: pointer;
}

.ya-nav__toggle-bars {
	width: 1.6rem;
	height: 2px;
	background: currentColor;
	box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.ya-nav {
	display: none;
}

.ya-nav.is-open {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--ya-surface);
	border-bottom: 1px solid var(--ya-line);
	padding: 0.8rem 2rem 2rem;
}

.ya-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.ya-nav__list a {
	display: block;
	padding: 1.12rem 0.32rem;
	color: var(--ya-ink);
	text-decoration: none;
	font-weight: 600;
}

.ya-nav__list a:hover,
.ya-nav__list .current-menu-item > a,
.ya-nav__list .current_page_item > a {
	color: var(--ya-accent);
}

.ya-nav__list .sub-menu {
	list-style: none;
	margin: 0 0 0.8rem;
	padding: 0 0 0 1.2rem;
}

.ya-nav__cta {
	align-self: flex-start;
}

.ya-button,
body.ya-theme .ya-button,
body.ya-theme button,
body.ya-theme input[type="submit"],
body.ya-theme input[type="button"],
body.ya-theme .button,
body.ya-theme .wp-block-button__link,
body.ya-theme .woocommerce a.button,
body.ya-theme .woocommerce button.button,
body.ya-theme .woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.64rem;
	border-radius: 999px;
	border: 1px solid var(--ya-accent);
	background: var(--ya-accent);
	color: #fff;
	font-family: var(--ya-font-text);
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1.2;
	padding: 1.36rem 2.16rem;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ya-button:hover,
body.ya-theme .ya-button:hover,
body.ya-theme button:hover,
body.ya-theme input[type="submit"]:hover,
body.ya-theme .button:hover,
body.ya-theme .wp-block-button__link:hover,
body.ya-theme .woocommerce a.button:hover,
body.ya-theme .woocommerce button.button:hover {
	background: var(--ya-accent-hover);
	border-color: var(--ya-accent-hover);
	color: #fff;
}

.ya-button:disabled,
body.ya-theme button:disabled {
	background: #898989;
	border-color: #898989;
	cursor: not-allowed;
}

.ya-button--secondary,
body.ya-theme .ya-button--secondary,
body.ya-theme .woocommerce a.button.alt,
body.ya-theme .is-style-outline .wp-block-button__link {
	background: var(--ya-surface);
	color: var(--ya-ink);
	border-color: var(--ya-line);
}

.ya-button--secondary:hover,
body.ya-theme .ya-button--secondary:hover,
body.ya-theme .is-style-outline .wp-block-button__link:hover {
	background: var(--ya-blush);
	border-color: var(--ya-accent);
	color: var(--ya-deep);
}

body.ya-theme .ya-button--small {
	padding: 0.88rem 1.52rem;
	font-size: 1.4rem;
}

.ya-card {
	background: var(--ya-surface);
	border: 1px solid var(--ya-line);
	border-radius: var(--ya-radius);
	padding: 2rem;
}

.ya-placeholder {
	border: 1px dashed var(--ya-accent);
	background: var(--ya-blush);
	border-radius: 16px;
	padding: 1.6rem 1.76rem;
	color: var(--ya-deep);
}

.ya-placeholder__flag {
	display: inline-block;
	margin-bottom: 0.56rem;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ya-accent-hover);
}

body.ya-theme input[type="text"],
body.ya-theme input[type="email"],
body.ya-theme input[type="url"],
body.ya-theme input[type="password"],
body.ya-theme input[type="search"],
body.ya-theme input[type="number"],
body.ya-theme input[type="tel"],
body.ya-theme select,
body.ya-theme textarea {
	width: 100%;
	max-width: 57.6rem;
	box-sizing: border-box;
	border: 1px solid var(--ya-search-line);
	background: var(--ya-search-bg);
	color: var(--ya-ink);
	border-radius: 999px;
	padding: 1.2rem 1.6rem;
	font: inherit;
}

body.ya-theme textarea {
	border-radius: 16px;
	min-height: 12.8rem;
}

body.ya-theme input:focus,
body.ya-theme select:focus,
body.ya-theme textarea:focus {
	border-color: var(--ya-accent);
	box-shadow: 0 0 0 3px var(--ya-accent-ring);
	outline: none;
	background: #fff;
}

.ya-footer {
	background: var(--ya-footer);
	color: #fff;
	margin-top: 4.8rem;
}

body.ya-theme .ya-footer a,
body.ya-theme .ya-footer a:hover {
	color: #fff;
	text-decoration: none;
}

body.ya-theme .ya-footer a:hover {
	text-decoration: underline;
}

.ya-footer .ya-logo img,
.ya-footer .custom-logo {
	filter: invert(1);
	height: 32px;
}

.ya-footer__inner {
	max-width: var(--ya-measure);
	margin: 0 auto;
	padding: 4rem 2rem 2.4rem;
	display: grid;
	gap: 2.8rem;
}

.ya-footer h2 {
	font-family: var(--ya-font-text);
	font-size: 1.28rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 1.2rem;
	color: #fff;
}

.ya-footer__brand p,
.ya-footer__legal p {
	margin: 1.2rem 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.5rem;
}

.ya-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ya-footer__list li + li {
	margin-top: 0.64rem;
}

.ya-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	max-width: var(--ya-measure);
	margin: 0 auto;
	padding: 1.6rem 2rem 2.4rem;
}

body.ya-theme #site-content {
	padding-top: 2.4rem;
}

body.ya-theme .entry-content > * {
	max-width: 67.2rem;
}

body.ya-theme .alignwide,
body.ya-theme .alignfull {
	max-width: none;
}

@media (min-width: 960px) {
	body.ya-theme .ya-nav__toggle {
		display: none;
	}

	.ya-header__inner {
		gap: 2.4rem;
	}

	.ya-nav,
	.ya-nav.is-open {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 2rem;
		position: static;
		border: 0;
		padding: 0;
		background: transparent;
	}

	.ya-nav__list {
		flex-direction: row;
		align-items: center;
		gap: 0.4rem;
	}

	.ya-nav__list a {
		padding: 0.64rem 1.12rem;
	}

	.ya-nav__list .menu-item-has-children {
		position: relative;
	}

	.ya-nav__list .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 19.2rem;
		margin: 0;
		padding: 0.64rem;
		background: #fff;
		border: 1px solid var(--ya-line);
		border-radius: 16px;
	}

	.ya-nav__list .menu-item-has-children:hover > .sub-menu,
	.ya-nav__list .menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}

	.ya-footer__inner {
		grid-template-columns: 1.4fr repeat(3, 1fr);
		gap: 3.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ya-button,
	body.ya-theme button,
	body.ya-theme a {
		transition: none;
	}
}

/* ------------------------------------------------------------------
   Páginas normales sobre Twenty Twenty: título, ancho y tipografía.
   ------------------------------------------------------------------ */

body.ya-theme.singular .entry-header,
body.ya-theme .archive-header {
	padding: clamp(3.2rem, 6vw, 6.4rem) 2rem clamp(1.6rem, 3vw, 3.2rem);
	background: transparent;
}

body.ya-theme h1.entry-title,
body.ya-theme .archive-title {
	font-size: clamp(3.4rem, 5vw, 5.6rem);
	line-height: 1.08;
	margin: 0;
}

body.ya-theme .post-inner {
	padding-top: 0;
}

body.ya-theme .entry-content {
	font-family: var(--ya-font-text);
	font-size: 1.7rem;
	line-height: 1.7;
	color: var(--ya-ink);
}

body.ya-theme .entry-content p,
body.ya-theme .entry-content li {
	line-height: 1.7;
}

body.ya-theme .entry-content h2 {
	font-size: clamp(2.6rem, 3.4vw, 3.6rem);
}

body.ya-theme .entry-content h3 {
	font-size: clamp(2rem, 2.4vw, 2.4rem);
}

body.ya-theme label,
body.ya-theme legend,
body.ya-theme .woocommerce form .form-row label {
	font-family: var(--ya-font-text);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--ya-ink);
}

body.ya-theme .woocommerce form .form-row .required,
body.ya-theme .required {
	color: var(--ya-accent-hover);
	text-decoration: none;
}

/* ------------------------------------------------------------------
   Inicio. El contenido actual es HTML con estilos propios (hero oscuro,
   tarjetas, galería). Acá se alinea con la marca sin tocar el contenido.
   ------------------------------------------------------------------ */

body.ya-theme.home .entry-header {
	display: none;
}

body.ya-theme.home #site-content {
	padding-top: 0;
}

body.ya-theme.home .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
	max-width: 104rem;
	width: calc(100% - 4rem);
	margin-left: auto;
	margin-right: auto;
}

body.ya-theme.home .academia-hero {
	position: relative;
	margin-top: clamp(2.4rem, 4vw, 4rem);
	margin-bottom: clamp(4.8rem, 7vw, 8rem);
	padding: clamp(5.6rem, 9vw, 11.2rem) clamp(2.4rem, 5vw, 6.4rem);
	border-radius: 2.8rem;
	overflow: hidden;
	isolation: isolate;
	text-align: left;
}

/* Capa de marca sobre la foto que trae el contenido. */
body.ya-theme.home .academia-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(115deg, rgba(26, 20, 16, 0.55) 0%, rgba(87, 0, 24, 0.45) 55%, rgba(87, 0, 24, 0) 100%);
}

body.ya-theme.home .academia-hero h1 {
	margin: 0 0 1.6rem;
	color: #fff;
	font-family: var(--ya-font-display);
	font-size: clamp(4rem, 6.4vw, 7.2rem);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-shadow: none;
	max-width: 14ch;
}

body.ya-theme.home .academia-hero p {
	margin: 0 0 3.2rem;
	max-width: 56rem;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(1.7rem, 1.6vw, 1.9rem);
	line-height: 1.6;
	text-shadow: none;
}

body.ya-theme.home .academia-hero .hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 2.4rem;
	padding: 0.72rem 1.44rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.ya-theme.home .academia-hero .hero-stats {
	justify-content: flex-start;
	gap: clamp(2.4rem, 5vw, 5.6rem);
	margin-top: 0;
	padding-top: 2.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body.ya-theme.home .academia-hero .hero-stat {
	text-align: left;
}

body.ya-theme.home .academia-hero .hero-stat .num {
	color: #fff;
	font-family: var(--ya-font-display);
	font-size: clamp(3.2rem, 4vw, 4.4rem);
	font-weight: 400;
	line-height: 1;
	text-shadow: none;
}

body.ya-theme.home .academia-hero .hero-stat .label {
	display: block;
	margin-top: 0.6rem;
	color: #f6c9d5;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.ya-theme.home .section-title {
	margin: 0 auto 3.2rem;
	text-align: center;
}

body.ya-theme.home .section-title h2 {
	margin: 0 0 0.8rem;
	color: var(--ya-ink);
	font-size: clamp(3rem, 4vw, 4.4rem);
}

body.ya-theme.home .section-title p {
	margin: 0 auto;
	max-width: 52rem;
	color: var(--ya-ink-soft);
	font-size: 1.7rem;
}

body.ya-theme.home .categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
	gap: 1.6rem;
	margin-bottom: clamp(5.6rem, 8vw, 9.6rem);
}

body.ya-theme.home .category-card {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto 1fr;
	column-gap: 1.6rem;
	align-items: start;
	padding: 2.4rem;
	border: 1px solid var(--ya-line);
	border-radius: 2rem;
	background: #fff;
	box-shadow: none;
	text-align: left;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.ya-theme.home .category-card:hover {
	transform: translateY(-2px);
	border-color: #e3b9c6;
	box-shadow: 0 1.2rem 3.2rem -1.6rem rgba(87, 0, 24, 0.28);
}

body.ya-theme.home .category-card .icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 5.2rem;
	height: 5.2rem;
	margin: 0;
	border-radius: 1.6rem;
	background: var(--ya-blush);
	font-size: 2.4rem;
	line-height: 1;
}

body.ya-theme.home .category-card h3 {
	margin: 0.2rem 0 0.6rem;
	color: var(--ya-ink);
	font-size: 2.1rem;
}

body.ya-theme.home .category-card p {
	margin: 0;
	color: var(--ya-ink-soft);
	font-size: 1.5rem;
	line-height: 1.55;
}

body.ya-theme.home .gallery-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	grid-template-rows: repeat(2, minmax(18rem, 1fr));
	gap: 1.6rem;
	margin-bottom: clamp(5.6rem, 8vw, 9.6rem);
}

body.ya-theme.home .gallery-item {
	border-radius: 2rem;
	overflow: hidden;
	box-shadow: none;
	background: var(--ya-sand);
}

body.ya-theme.home .gallery-item:first-child {
	grid-row: span 2;
}

body.ya-theme.home .gallery-item img {
	width: 100%;
	height: 100%;
	min-height: 18rem;
	object-fit: cover;
}

body.ya-theme.home .brand-footer,
body.ya-theme.home .cta-section {
	box-sizing: border-box;
	margin: 0 auto 2.4rem;
	padding: clamp(3.2rem, 5vw, 5.6rem) clamp(2.4rem, 5vw, 6.4rem);
	border-radius: 2.8rem;
	text-align: center;
}

body.ya-theme.home .brand-footer {
	background: var(--ya-sand);
}

body.ya-theme.home .brand-footer img {
	width: 8.8rem !important;
	height: 8.8rem !important;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 1.6rem !important;
}

body.ya-theme.home .brand-footer p {
	margin: 0 auto;
	max-width: 60rem;
	color: var(--ya-ink);
	font-family: var(--ya-font-display);
	font-size: clamp(2rem, 2.4vw, 2.6rem);
	line-height: 1.35;
}

body.ya-theme.home .cta-section {
	margin-bottom: 0;
	background: var(--ya-deep);
}

body.ya-theme.home .cta-section h2 {
	margin: 0 0 1.2rem;
	color: #fff;
	font-size: clamp(2.8rem, 3.6vw, 4rem);
}

body.ya-theme.home .cta-section p {
	margin: 0 auto;
	max-width: 56rem;
	color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 767px) {
	body.ya-theme.home .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
		width: calc(100% - 3.2rem);
	}

	body.ya-theme.home .academia-hero {
		border-radius: 2rem;
	}

	body.ya-theme.home .academia-hero .hero-stats {
		flex-direction: row;
		gap: 2.4rem;
	}

	body.ya-theme.home .gallery-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}

	body.ya-theme.home .gallery-item:first-child {
		grid-column: span 2;
		grid-row: auto;
	}

	body.ya-theme.home .gallery-item img {
		min-height: 14rem;
		max-height: 22rem;
	}
}

/* ------------------------------------------------------------------
   WooCommerce: tienda, producto, carrito y cuenta.
   ------------------------------------------------------------------ */

body.ya-theme .woocommerce-breadcrumb {
	font-size: 1.3rem;
	color: var(--ya-ink-soft);
}

body.ya-theme ul.products li.product {
	text-align: left;
}

body.ya-theme ul.products li.product a img {
	border-radius: 1.6rem;
	background: var(--ya-blush);
	border: 1px solid var(--ya-line);
	aspect-ratio: 1;
	object-fit: contain;
	padding: 1.6rem;
	box-sizing: border-box;
}

body.ya-theme ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--ya-font-display);
	font-size: 2.1rem;
	font-weight: 400;
	line-height: 1.2;
}

body.ya-theme .woocommerce .price,
body.ya-theme .woocommerce-Price-amount {
	font-family: var(--ya-font-text);
	font-weight: 700;
	color: var(--ya-ink);
}

body.ya-theme ul.products li.product .price {
	font-size: 1.6rem;
}

body.ya-theme div.product .product_title {
	font-size: clamp(3.2rem, 4.4vw, 5.2rem);
	line-height: 1.05;
}

body.ya-theme div.product p.price {
	font-size: 2.4rem;
	margin: 1.6rem 0;
}

body.ya-theme div.product .woocommerce-product-details__short-description {
	font-size: 1.6rem;
	line-height: 1.65;
	color: var(--ya-ink-soft);
}

body.ya-theme div.product div.images img {
	border-radius: 2rem;
	background: var(--ya-blush);
}

body.ya-theme .woocommerce-tabs ul.tabs li a {
	font-family: var(--ya-font-text);
	font-weight: 700;
	color: var(--ya-ink-soft);
}

body.ya-theme .woocommerce-tabs ul.tabs li.active a {
	color: var(--ya-accent-hover);
}

body.ya-theme .woocommerce-info,
body.ya-theme .woocommerce-message,
body.ya-theme .woocommerce-error,
body.ya-theme .cart-empty {
	border: 1px solid var(--ya-line);
	border-left: 4px solid var(--ya-accent);
	border-radius: 1.6rem;
	background: var(--ya-blush);
	color: var(--ya-deep);
	font-family: var(--ya-font-text);
	font-size: 1.6rem;
}

body.ya-theme .woocommerce-info::before,
body.ya-theme .woocommerce-message::before {
	color: var(--ya-accent);
}

body.ya-theme .woocommerce .col2-set .col-1,
body.ya-theme .woocommerce .col2-set .col-2,
body.ya-theme .woocommerce form.login,
body.ya-theme .woocommerce form.register {
	box-sizing: border-box;
}

body.ya-theme .woocommerce form.login,
body.ya-theme .woocommerce form.register {
	margin: 0;
	padding: clamp(2.4rem, 3vw, 3.2rem);
	border: 1px solid var(--ya-line);
	border-radius: 2rem;
	background: #fff;
}

body.ya-theme .woocommerce #customer_login h2 {
	font-size: clamp(2.6rem, 3vw, 3.2rem);
	margin: 0 0 1.6rem;
}

body.ya-theme .woocommerce form .form-row input.input-text {
	max-width: none;
}

body.ya-theme .woocommerce form .show-password-input {
	top: 50%;
	transform: translateY(-50%);
	right: 1.2rem;
}

body.ya-theme .woocommerce-privacy-policy-text,
body.ya-theme .woocommerce form.register > p:not(.form-row) {
	font-size: 1.4rem;
	line-height: 1.6;
	color: var(--ya-ink-soft);
}

body.ya-theme .woocommerce-LostPassword {
	font-size: 1.4rem;
}

/* Ajustes finos: títulos de UI en sans y listas del pie sin sangría. */
body.ya-theme .ya-footer h2 {
	font-family: var(--ya-font-text);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.6);
}

body.ya-theme .ya-footer__list {
	margin: 0;
	padding: 0;
}

body.ya-theme .ya-footer__list li {
	margin-left: 0;
}

body.ya-theme .woocommerce-products-header__title,
body.ya-theme .woocommerce .page-title {
	font-weight: 400;
}

body.ya-theme ul.products li.product a img {
	background: #fff;
	padding: 0.8rem;
}

@media (max-width: 599px) {
	.ya-announce__text {
		font-size: 1.2rem;
	}
}


/* ============================================================
   Ajustes de accesibilidad y legibilidad (sin cambiar la línea gráfica).
   Llegaron directo a main; sus rem se pasaron a la base de 10px (×1.6).
   - Objetivos táctiles mínimos 44px en móvil
   - Piso de legibilidad: 12-13px para textos pequeños
   - Sin desbordes horizontales
   ============================================================ */

.ya-announce__text {
	font-size: max(1.2rem, 12px);
}

@media (max-width: 959px) {
	.ya-nav__toggle {
		min-height: 44px;
		padding: 0.96rem 1.6rem;
	}

	.ya-button,
	.ya-button--small,
	body.ya-theme button,
	body.ya-theme input[type="submit"] {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.ya-nav__list a,
	.ya-nav__list .menu-item > a {
		min-height: 44px;
		display: flex;
		align-items: center;
	}

	.ya-footer__list a {
		min-height: 40px;
		display: inline-flex;
		align-items: center;
		padding: 0.32rem 0;
	}

	.ya-course-card__link {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	.page-numbers {
		min-width: 40px;
		min-height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	body.ya-theme p,
	body.ya-theme li {
		font-size: max(1.3rem, 13px);
	}

	body.ya-theme small,
	body.ya-theme .label {
		font-size: max(1.2rem, 12px);
	}

	#wpadminbar .display-name {
		display: none;
	}
}


/* Segunda pasada: especificidad para etiquetas y paginación */
@media (max-width: 959px) {
	body.ya-theme .label,
	body.ya-theme .ya-course-card .label,
	body.ya-theme .ya-course-card__meta {
		font-size: 12px !important;
	}

	.page-numbers,
	.page-numbers.current {
		min-width: 40px !important;
		min-height: 40px !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
	}
}

@media (min-width: 960px) {
	.ya-nav__list a {
		padding: 0.96rem 1.2rem;
	}

	.ya-button--small {
		min-height: 36px;
		display: inline-flex;
		align-items: center;
	}
}


/* Tercera pasada: curso, lección y footer */
.ya-footer h2,
.ya-footer h3,
.ya-footer .widget-title {
	color: #fff !important;
	font-size: 1.3rem;
}

.ya-progress__title {
	font-size: 1.2rem !important;
	letter-spacing: 0.06em;
}

.ya-kicker {
	font-size: 1.2rem !important;
}

body.ya-theme .ya-nav__link {
	font-size: 1.5rem !important;
}

/* Sensei: botones y navegación con tamaño táctil */
body.ya-theme .send-message-button,
body.ya-theme .sensei-lms-course-navigation-lesson__link,
body.ya-theme .sensei-course-theme__prev-next-lesson-text {
	font-size: 1.4rem !important;
}

body.ya-theme .send-message-button {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.6rem;
}

body.ya-theme .sensei-lms-course-navigation-lesson__link {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	padding: 0.64rem 0;
}

@media (max-width: 959px) {
	body.ya-theme .sensei-course-theme__sidebar-toggle {
		min-width: 40px !important;
		min-height: 44px !important;
	}

	body.ya-theme .sensei-lms-course-navigation-lesson__link {
		min-height: 44px !important;
	}
}


/* Cuarta pasada: tamaños en px para que valgan igual con y sin la base 62.5% de Twenty Twenty. */
body.ya-theme .ya-nav__link { font-size: 15px !important; }
body.ya-theme .ya-kicker { font-size: 12px !important; }
body.ya-theme .ya-progress__title { font-size: 12px !important; letter-spacing: 0.06em; }
body.ya-theme .ya-progress__note { font-size: 13px !important; }
body.ya-theme .ya-footer h2,
body.ya-theme .ya-footer h3,
body.ya-theme .ya-footer .widget-title { font-size: 13px !important; color: #fff !important; }
body.ya-theme .ya-footer__brand p,
body.ya-theme .ya-footer__legal p,
body.ya-theme .ya-footer__list a { font-size: 13px !important; }
body.ya-theme .send-message-button { font-size: 14px !important; }
body.ya-theme .sensei-lms-course-navigation-lesson__link { font-size: 14px !important; }
body.ya-theme .ya-nav__toggle-label { font-size: 12px !important; }


/* Quinta pasada: contenido Sensei y targets restantes */
body.ya-theme .sensei-course-theme__description,
body.ya-theme .sensei-course-theme__excerpt,
body.ya-theme .course-description {
	font-size: 15px !important;
	line-height: 1.6;
}

body.ya-theme .sensei-course-theme__header a,
body.ya-theme .sensei-course-theme__header button {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	padding: 0.56rem 0;
}

body.ya-theme .ya-nav__list a {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
}

body.ya-theme .ya-button--small,
body.ya-theme .ya-nav__cta {
	min-height: 40px;
}

/* Los links inline del contenido quedan inline (excepción WCAG 2.5.8) */
body.ya-theme .sensei-lesson-content a,
body.ya-theme .entry-content a {
	text-underline-offset: 2px;
}


/* Ajuste final: toggle lateral de Sensei con ancho táctil */
body.ya-theme .sensei-course-theme__sidebar-toggle {
	min-width: 40px !important;
	min-height: 40px !important;
}


/* ------------------------------------------------------------------
   Mi cuenta (WooCommerce) con sesión iniciada.
   ------------------------------------------------------------------ */
body.ya-theme.woocommerce-account .entry-content > .woocommerce {
	display: grid !important; /* Un plugin la pasa a flex. */
	grid-template-columns: minmax(0, 1fr);
	gap: 2.4rem;
	max-width: 104rem !important; /* Twenty Twenty limita .entry-content > * con un selector muy específico. */
	width: calc(100% - 4rem) !important;
	margin: 0 auto;
}

/* Los clearfix de Woo (::before/::after) serían celdas de la grilla. */
body.ya-theme.woocommerce-account .entry-content > .woocommerce::before,
body.ya-theme.woocommerce-account .entry-content > .woocommerce::after {
	display: none;
}

body.ya-theme.woocommerce-account .woocommerce-MyAccount-navigation,
body.ya-theme.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	margin: 0;
}

body.ya-theme .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0.8rem;
	list-style: none;
	border: 1px solid var(--ya-line);
	border-radius: 2rem;
	background: #fff;
}

body.ya-theme .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}

body.ya-theme .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 1rem 1.6rem;
	border-radius: 1.2rem;
	color: var(--ya-ink);
	font-family: var(--ya-font-text);
	font-size: 1.5rem;
	font-weight: 600;
	text-decoration: none !important;
}

body.ya-theme .woocommerce-MyAccount-navigation li a:hover {
	background: var(--ya-blush);
	color: var(--ya-deep);
}

body.ya-theme .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--ya-ink);
	color: #fff;
}

body.ya-theme .woocommerce-MyAccount-content {
	padding: clamp(2.4rem, 3vw, 3.2rem);
	border: 1px solid var(--ya-line);
	border-radius: 2rem;
	background: #fff;
	font-family: var(--ya-font-text);
	font-size: 1.6rem;
	line-height: 1.65;
	color: var(--ya-ink);
}

body.ya-theme .woocommerce-MyAccount-content p {
	font-family: var(--ya-font-text);
	font-size: 1.6rem;
}

body.ya-theme .woocommerce-MyAccount-content h2,
body.ya-theme .woocommerce-MyAccount-content h3,
body.ya-theme .woocommerce-MyAccount-content legend {
	font-family: var(--ya-font-display);
	font-weight: 400;
	font-size: 2.4rem;
}

body.ya-theme .woocommerce-MyAccount-content fieldset {
	margin: 2.4rem 0 0;
	padding: 2rem;
	border: 1px solid var(--ya-line);
	border-radius: 1.6rem;
}

body.ya-theme .woocommerce-MyAccount-content em {
	color: var(--ya-ink-soft);
	font-size: 1.4rem;
}

body.ya-theme .woocommerce-MyAccount-content .woocommerce-Address {
	padding: 2rem;
	border: 1px solid var(--ya-line);
	border-radius: 1.6rem;
}

body.ya-theme .woocommerce-MyAccount-content .woocommerce-Address-title h2,
body.ya-theme .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	font-size: 2rem;
}

body.ya-theme .woocommerce-MyAccount-content address {
	font-style: normal;
	color: var(--ya-ink-soft);
}

body.ya-theme .woocommerce table.shop_table {
	border: 1px solid var(--ya-line);
	border-radius: 1.6rem;
	border-collapse: separate;
	overflow: hidden;
	font-family: var(--ya-font-text);
	font-size: 1.5rem;
}

body.ya-theme .woocommerce table.shop_table th {
	background: var(--ya-blush);
	color: var(--ya-deep);
	font-weight: 700;
}

body.ya-theme .woocommerce table.shop_table th,
body.ya-theme .woocommerce table.shop_table td {
	border-color: var(--ya-line);
	padding: 1.2rem 1.6rem;
}

@media (min-width: 960px) {
	body.ya-theme.woocommerce-account .entry-content > .woocommerce {
		grid-template-columns: 24rem minmax(0, 1fr);
		align-items: start;
	}

	body.ya-theme .woocommerce-MyAccount-navigation ul {
		flex-direction: column;
	}

	body.ya-theme.woocommerce-account .woocommerce-MyAccount-navigation {
		position: sticky;
		top: 9.6rem;
	}
}


/* ------------------------------------------------------------------
   Mis cursos (bloque Learner Courses de Sensei). Va acá porque
   sensei.css solo se carga en curso, lección y quiz.
   ------------------------------------------------------------------ */
body.ya-theme .entry-content > .wp-block-sensei-lms-learner-courses,
body.ya-theme .entry-content > .wp-block-sensei-lms-button-learner-messages {
	max-width: 96rem !important;
	width: calc(100% - 4rem) !important;
}

body.ya-theme #sensei-user-courses .entry-actions,
body.ya-theme #sensei-user-courses .entry-actions form,
body.ya-theme #sensei-user-courses .entry-actions p {
	margin: 0;
	padding: 0;
}

body.ya-theme .wp-block-sensei-lms-button-learner-messages {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1.6rem;
}

body.ya-theme .wp-block-sensei-lms-button-learner-messages .wp-block-button__link {
	padding: 0.96rem 1.76rem;
	font-size: 1.4rem;
	background: #fff;
	color: var(--ya-ink);
	border: 1px solid var(--ya-line);
}

body.ya-theme #user-course-status-toggle {
	display: inline-flex;
	gap: 0.4rem;
	margin: 0 0 2.4rem;
	padding: 0.4rem;
	border: 1px solid var(--ya-line);
	border-radius: 999px;
	background: #fff;
}

body.ya-theme #user-course-status-toggle a {
	padding: 0.72rem 1.6rem;
	border: 0;
	border-radius: 999px;
	color: var(--ya-ink-soft);
	font-size: 1.4rem;
	font-weight: 700;
	text-decoration: none;
}

body.ya-theme #user-course-status-toggle a.active {
	background: var(--ya-ink);
	color: #fff;
}

body.ya-theme #sensei-user-courses .course-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 36rem), 1fr));
	gap: 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ya-theme #sensei-user-courses .course-container > li.course {
	display: flex;
	margin: 0;
	padding: 2.4rem;
	border: 1px solid var(--ya-line);
	border-radius: 2rem;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.ya-theme #sensei-user-courses .course-container > li.course:hover {
	border-color: #e3b9c6;
	box-shadow: 0 1.2rem 3.2rem -1.6rem rgba(87, 0, 24, 0.28);
}

body.ya-theme #sensei-user-courses .course-content,
body.ya-theme #sensei-user-courses .course-content .entry,
body.ya-theme #sensei-user-courses .wp-block-sensei-lms-learner-courses__courses-list__details {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

body.ya-theme #sensei-user-courses .course-title {
	margin: 0 0 0.8rem;
	font-size: 2.2rem;
	line-height: 1.2;
}

body.ya-theme #sensei-user-courses .course-title a {
	color: var(--ya-ink);
	text-decoration: none;
}

body.ya-theme #sensei-user-courses li.course:hover .course-title a {
	color: var(--ya-accent-hover);
}

body.ya-theme #sensei-user-courses .entry p,
body.ya-theme #sensei-user-courses .course-excerpt {
	margin: 0 0 1.6rem;
	color: var(--ya-ink-soft);
	font-size: 1.5rem !important;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.ya-theme #sensei-user-courses .sensei-block-wrapper {
	margin-top: auto;
}

body.ya-theme .sensei-progress-bar__label {
	margin-bottom: 0.8rem;
	color: var(--ya-ink-soft);
	font-size: 1.3rem;
	font-weight: 600;
}

body.ya-theme .sensei-progress-bar__bar {
	height: 0.8rem !important;
	border-radius: 999px !important;
	background: var(--ya-blush) !important;
	overflow: hidden;
}

body.ya-theme .sensei-progress-bar__progress {
	height: 100% !important;
	border-radius: 999px !important;
	background: var(--ya-accent) !important;
}

body.ya-theme #sensei-user-courses .sensei-results-links:empty,
body.ya-theme #sensei-user-courses .entry-actions:not(:has(a, button, input[type="submit"])) {
	display: none;
}



body.ya-theme .woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
	gap: 1.6rem;
	margin-top: 1.6rem;
}

body.ya-theme .woocommerce-MyAccount-content .woocommerce-Addresses::before,
body.ya-theme .woocommerce-MyAccount-content .woocommerce-Addresses::after,
body.ya-theme .woocommerce-MyAccount-content .woocommerce-Address-title::before,
body.ya-theme .woocommerce-MyAccount-content .woocommerce-Address-title::after {
	display: none;
}

body.ya-theme .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
}

body.ya-theme .woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1.2rem;
}

body.ya-theme .woocommerce-MyAccount-content .woocommerce-Address-title h2,
body.ya-theme .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	margin: 0;
}

body.ya-theme .woocommerce-MyAccount-content .woocommerce-Address-title a {
	font-size: 1.4rem;
	font-weight: 700;
}


body.ya-theme .woocommerce table.shop_table tbody th,
body.ya-theme .woocommerce table.shop_table tbody tr:nth-child(2n) td,
body.ya-theme .woocommerce table.shop_table tbody tr:nth-child(2n) th {
	background: #fff;
	color: var(--ya-ink);
}

body.ya-theme .woocommerce table.shop_table tbody tr + tr td,
body.ya-theme .woocommerce table.shop_table tbody tr + tr th {
	border-top: 1px solid var(--ya-line);
}

body.ya-theme .woocommerce table.shop_table .button,
body.ya-theme .woocommerce-MyAccount-content .woocommerce-button {
	min-height: 0;
	padding: 0.72rem 1.44rem;
	font-size: 1.4rem;
	white-space: nowrap;
}
/* Botón Comprar ahora — producto Academia */
body.ya-theme .ya-buy-now {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-left: 0.75rem;
	padding: 0.75rem 1.5rem;
	background: var(--ya-accent);
	color: #fff;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}
body.ya-theme .ya-buy-now:hover {
	background: var(--ya-accent-hover);
	color: #fff;
}
@media (max-width: 640px) {
	body.ya-theme .ya-buy-now { margin-left: 0; margin-top: 0.75rem; width: 100%; }
}
