/* Academia Mística · estilos base. Valores solo desde tokens.css (ver DESIGN.md). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--am-bg);
	color: var(--am-text);
	font-family: var(--am-font);
	font-size: var(--am-fs-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--am-accent); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--am-ink); font-stretch: var(--am-stretch-display); font-weight: 800; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--am-focus); outline-offset: 2px; border-radius: 4px; }

.am-sr, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.am-skip {
	position: absolute; left: var(--am-space-4); top: -100px; z-index: 100;
	background: var(--am-primary); color: var(--am-on-primary); padding: var(--am-space-3) var(--am-space-4);
	border-radius: var(--am-radius-sm); font-weight: 700;
}
.am-skip:focus { top: var(--am-space-4); }

.am-container { width: 100%; max-width: calc(var(--am-width) + 2 * var(--am-gutter)); margin: 0 auto; padding: 0 var(--am-gutter); }
.am-stack > * + * { margin-top: var(--am-space-6); }
.am-icon { flex-shrink: 0; }

/* Secciones nocturnas: mismo aspecto en ambos modos */
.am-night {
	--am-ink: #FFFFFF;
	--am-text: #E4E7F2;
	--am-text-2: #C9CFE3;
	--am-muted: #A9B1CC;
	--am-accent: #D4B0E6;
	--am-focus: #D4B0E6;
	--am-line: rgba(255, 255, 255, 0.12);
	background: var(--am-night);
	color: var(--am-text);
}

/* ---------- Botones ---------- */
.am-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--am-space-2);
	min-height: 48px; padding: 0 var(--am-space-5);
	border-radius: var(--am-radius-pill); border: 1px solid transparent;
	font: inherit; font-size: var(--am-fs-sm); font-weight: 800; line-height: 1;
	text-decoration: none; cursor: pointer;
	transition: background-color var(--am-dur) var(--am-ease), border-color var(--am-dur) var(--am-ease), color var(--am-dur) var(--am-ease);
}
.am-btn:hover { text-decoration: none; }
.am-btn--lg { min-height: 56px; padding: 0 var(--am-space-6); font-size: var(--am-fs-base); }
.am-btn--primary { background: var(--am-primary); color: var(--am-on-primary); }
.am-btn--primary:hover { background: var(--am-primary-hover); color: var(--am-on-primary); }
.am-btn--secondary { border-color: var(--am-blue); color: var(--am-blue); background: transparent; }
[data-am-theme="dark"] .am-btn--secondary { border-color: var(--am-line-strong); color: var(--am-ink); }
.am-btn--secondary:hover { background: var(--am-surface-2); }
.am-btn--ghost-night { border-color: rgba(255, 255, 255, 0.28); color: #FFFFFF; background: transparent; }
.am-btn--ghost-night:hover { border-color: #FFFFFF; color: #FFFFFF; }
.am-btn[disabled], .am-btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

.am-link-quiet { color: var(--am-accent); font-weight: 700; font-size: var(--am-fs-sm); text-decoration: none; }
.am-link-quiet:hover { text-decoration: underline; }

.am-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: #E4E7F2; cursor: pointer; padding: 0;
}
.am-icon-btn:hover { border-color: rgba(255, 255, 255, 0.5); }

/* Iconos según el modo */
html[data-am-theme="light"] .am-only-dark, html[data-am-theme="dark"] .am-only-light { display: none; }

/* ---------- Cabecera ---------- */
.am-header { background: var(--am-night); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.admin-bar .am-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .am-header { top: 46px; } }
.am-header__inner { display: flex; align-items: center; gap: var(--am-space-6); min-height: 76px; }
.am-header__logo { display: flex; flex-shrink: 0; }
.am-header__logo img { height: 52px; width: auto; }
.am-header__tools { display: flex; gap: var(--am-space-2); margin-left: auto; }

.am-nav { display: flex; align-items: center; gap: var(--am-space-6); flex: 1; }
.am-nav__list { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: var(--am-space-6); }
.am-nav__list a, .am-nav__link { color: #D7DCEC; text-decoration: none; font-size: var(--am-fs-sm); font-weight: 600; }
.am-nav__list a:hover, .am-nav__link:hover, .am-nav__list .current-menu-item > a { color: #FFFFFF; }
.am-nav__list .sub-menu { display: none; }
.am-nav__actions { display: flex; align-items: center; gap: var(--am-space-4); }
.am-header__menu { display: none; }
.am-menu-close { display: none; }

@media (max-width: 960px) {
	.am-header__menu { display: inline-flex; }
	.am-nav {
		position: fixed; inset: 76px 0 0 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: var(--am-space-6);
		padding: var(--am-space-6) var(--am-gutter);
		background: var(--am-night); overflow-y: auto;
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity var(--am-dur) var(--am-ease), transform var(--am-dur) var(--am-ease), visibility 0s linear var(--am-dur);
	}
	.am-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.am-nav__list { flex-direction: column; margin: 0; gap: var(--am-space-4); }
	.am-nav__list a { font-size: var(--am-fs-lg); }
	.am-nav__actions { flex-direction: column; align-items: stretch; margin-top: auto; }
	.am-nav__actions .am-btn { width: 100%; }
	[data-am-menu][aria-expanded="true"] .am-menu-open { display: none; }
	[data-am-menu][aria-expanded="true"] .am-menu-close { display: inline; }
	body.am-menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.am-hero { position: relative; overflow: hidden; isolation: isolate; }
/* Cielo: estrellas finas y un halo violeta tras las cartas */
.am-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.8) 50%, transparent 51%),
		radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.55) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 44% 30%, rgba(233,201,120,.9) 50%, transparent 51%),
		radial-gradient(1px 1px at 58% 84%, rgba(255,255,255,.6) 50%, transparent 51%),
		radial-gradient(1px 1px at 66% 12%, rgba(255,255,255,.7) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 86% 22%, rgba(233,201,120,.8) 50%, transparent 51%),
		radial-gradient(1px 1px at 92% 64%, rgba(255,255,255,.6) 50%, transparent 51%),
		radial-gradient(1px 1px at 6% 52%, rgba(255,255,255,.5) 50%, transparent 51%),
		radial-gradient(60% 70% at 78% 55%, rgba(155, 78, 170, 0.32), transparent 70%),
		var(--am-night);
}
.am-hero__inner {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center;
	gap: var(--am-space-7); padding-top: var(--am-space-9); padding-bottom: var(--am-space-9); min-height: min(86vh, 820px);
}
.am-hero__kicker { color: var(--am-accent); font-weight: 600; font-size: var(--am-fs-sm); margin-bottom: var(--am-space-4); }
.am-hero__title {
	font-size: var(--am-fs-h1); line-height: 1.02; font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em;
	max-width: 12ch; text-wrap: balance;
}
.am-hero__lead { font-size: var(--am-fs-lg); color: var(--am-text-2); max-width: 46ch; margin-top: var(--am-space-5); }
.am-hero__actions { display: flex; flex-wrap: wrap; gap: var(--am-space-3); margin-top: var(--am-space-6); }
.am-hero__note { margin-top: var(--am-space-4); font-size: var(--am-fs-sm); color: var(--am-muted); }

/* El momento memorable: tres arcanos abiertos en abanico */
.am-hero__deck { position: relative; height: clamp(360px, 46vw, 600px); }
.am-hero__card {
	position: absolute; top: 50%; left: 50%; width: clamp(170px, 20vw, 290px); height: auto;
	border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(217, 180, 90, 0.25);
	transform-origin: 50% 110%;
	animation: am-deal 900ms var(--am-ease) both;
}
.am-hero__card--center { transform: translate(-50%, -50%); z-index: 3; animation-delay: 360ms; }
.am-hero__card--left { transform: translate(-50%, -50%) rotate(-14deg) translateX(-34%); z-index: 1; animation-delay: 120ms; }
.am-hero__card--right { transform: translate(-50%, -50%) rotate(14deg) translateX(34%); z-index: 2; animation-delay: 240ms; }
@keyframes am-deal { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .am-hero__card { animation: none; } }

@media (max-width: 860px) {
	.am-hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: var(--am-space-8); padding-bottom: var(--am-space-8); gap: var(--am-space-6); }
	.am-hero__deck { height: 340px; order: -1; }
	.am-hero__card { width: 160px; }
}

/* ---------- Secciones ---------- */
.am-section { padding: var(--am-section) 0; }
.am-section--tint { background: var(--am-surface); }
.am-section__head { max-width: var(--am-width-text); margin-bottom: var(--am-space-7); }
.am-section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--am-space-4); }
.am-section__title { font-size: var(--am-fs-h2); line-height: 1.1; text-wrap: balance; }
.am-section__lead { font-size: var(--am-fs-lg); color: var(--am-text-2); margin-top: var(--am-space-4); max-width: 60ch; }
.am-empty { padding: var(--am-space-6); border: 1px dashed var(--am-line-strong); border-radius: var(--am-radius-md); color: var(--am-muted); }

/* Escuelas: lista editorial, no tarjetas iguales */
.am-schools { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--am-line); }
.am-schools__item { border-bottom: 1px solid var(--am-line); }
.am-schools__link {
	display: grid; grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.6fr) auto auto; align-items: center;
	gap: var(--am-space-6); padding: var(--am-space-6) 0; text-decoration: none; color: inherit;
	transition: padding var(--am-dur) var(--am-ease), color var(--am-dur) var(--am-ease);
}
.am-schools__link:hover { text-decoration: none; padding-left: var(--am-space-3); }
.am-schools__name { font-size: var(--am-fs-h3); font-weight: 800; font-stretch: var(--am-stretch-display); color: var(--am-ink); line-height: 1.15; }
.am-schools__desc { color: var(--am-text-2); }
.am-schools__count { color: var(--am-muted); font-size: var(--am-fs-sm); white-space: nowrap; }
.am-schools__arrow { color: var(--am-accent); }
@media (max-width: 760px) {
	.am-schools__link { grid-template-columns: 1fr auto; gap: var(--am-space-2) var(--am-space-4); }
	.am-schools__desc { grid-column: 1 / -1; grid-row: 2; }
	.am-schools__count { grid-row: 3; }
	.am-schools__arrow { grid-row: 1; grid-column: 2; }
}

/* ---------- Tarjetas de curso ---------- */
.am-grid { display: grid; gap: var(--am-space-5); }
.am-grid--courses { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.am-card {
	display: flex; flex-direction: column; background: var(--am-bg); border: 1px solid var(--am-line);
	border-radius: var(--am-radius-md); overflow: hidden;
	transition: border-color var(--am-dur) var(--am-ease);
}
.am-card:hover { border-color: var(--am-line-strong); }
.am-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--am-blue), var(--am-primary)); }
.am-card__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.am-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.am-card__placeholder img { opacity: 0.85; }
.am-card__body { display: flex; flex-direction: column; gap: var(--am-space-2); padding: var(--am-space-5); }
.am-card__school { font-size: var(--am-fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--am-accent); }
.am-card__title { font-size: var(--am-fs-h4); line-height: 1.25; font-stretch: 105%; }
.am-card__title a { color: inherit; text-decoration: none; }
.am-card__title a:hover { color: var(--am-accent); }
.am-card__meta { display: flex; flex-wrap: wrap; gap: var(--am-space-4); color: var(--am-muted); font-size: var(--am-fs-sm); margin-top: var(--am-space-1); }
.am-card__meta span, .am-course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.am-badge {
	position: absolute; top: var(--am-space-3); left: var(--am-space-3);
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--am-radius-pill);
	background: rgba(14, 21, 48, 0.86); color: #FFFFFF; font-size: var(--am-fs-xs); font-weight: 700;
}
.am-badge--key { background: var(--am-gold); color: var(--am-night); }

/* ---------- Banda de inicio gratis ---------- */
.am-start__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--am-space-6); }

/* ---------- Cabeceras de página y contenido ---------- */
.am-page-head { padding: var(--am-space-8) 0; }
.am-page-head--tall { padding: var(--am-space-9) 0; }
.am-page-head__title { font-size: var(--am-fs-h1); line-height: 1.05; max-width: 20ch; text-wrap: balance; }
.am-page-head__meta { color: var(--am-accent); font-weight: 600; font-size: var(--am-fs-sm); margin-bottom: var(--am-space-3); }
.am-page-head .am-btn { margin-top: var(--am-space-6); }
.am-course-meta { display: flex; flex-wrap: wrap; gap: var(--am-space-5); margin-top: var(--am-space-5); color: var(--am-text-2); }

.am-prose > * { max-width: var(--am-width-text); }
.am-prose > .alignwide { max-width: var(--am-width); }
.am-prose > .alignfull { max-width: none; }
.am-prose > * + * { margin-top: 1.1em; }
.am-prose h2 { font-size: var(--am-fs-h3); margin-top: 1.8em; }
.am-prose h3 { font-size: var(--am-fs-h4); margin-top: 1.6em; }
.am-prose ul, .am-prose ol { padding-left: 1.2em; }
.am-prose blockquote { margin-left: 0; padding-left: var(--am-space-5); border-left: 3px solid var(--am-primary); color: var(--am-text-2); }
.am-prose__cover img { border-radius: var(--am-radius-lg); }
.am-outcomes { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--am-space-3) var(--am-space-6); }
.am-outcomes li { position: relative; padding-left: 26px; }
.am-outcomes li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--am-primary); }

.am-entry { padding-bottom: var(--am-space-6); border-bottom: 1px solid var(--am-line); }
.am-entry__title { font-size: var(--am-fs-h3); }
.am-entry__title a { color: inherit; text-decoration: none; }
.am-entry__meta { color: var(--am-muted); font-size: var(--am-fs-sm); margin-top: var(--am-space-2); }
.am-entry__excerpt { margin-top: var(--am-space-3); color: var(--am-text-2); max-width: var(--am-measure); }

.nav-links { display: flex; gap: var(--am-space-2); margin-top: var(--am-space-7); }
.page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--am-radius-sm); border: 1px solid var(--am-line); text-decoration: none; color: var(--am-text); }
.page-numbers.current { background: var(--am-primary); border-color: var(--am-primary); color: var(--am-on-primary); }

/* ---------- Pie ---------- */
.am-footer { background: var(--am-night); color: #C9CFE3; padding-top: var(--am-space-8); }
.am-footer a { color: #D7DCEC; text-decoration: none; }
.am-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.am-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--am-space-7); }
.am-footer__brand img { height: 52px; width: auto; }
.am-footer__brand p { margin-top: var(--am-space-4); max-width: 34ch; color: #A9B1CC; font-size: var(--am-fs-sm); }
.am-footer__title { font-size: var(--am-fs-sm); color: #FFFFFF; font-stretch: 100%; font-weight: 700; margin-bottom: var(--am-space-4); }
.am-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--am-space-2); font-size: var(--am-fs-sm); }
.am-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: var(--am-space-8); padding-top: var(--am-space-5); padding-bottom: var(--am-space-5); font-size: var(--am-fs-xs); color: #8E97B6; }
@media (max-width: 760px) { .am-footer__grid { grid-template-columns: 1fr; gap: var(--am-space-6); } }

/* ---------- Temario en la página del curso ---------- */
.am-syllabus { margin-top: var(--am-space-7); }
.am-syllabus__sum { color: var(--am-muted); font-size: var(--am-fs-sm); margin: var(--am-space-2) 0 var(--am-space-5); }
.am-syllabus__module { border: 1px solid var(--am-line); border-radius: var(--am-radius-md); margin-top: var(--am-space-3); background: var(--am-bg); }
.am-syllabus__module summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--am-space-2) var(--am-space-4); padding: var(--am-space-4) var(--am-space-5); cursor: pointer; list-style: none; }
.am-syllabus__module summary::-webkit-details-marker { display: none; }
.am-syllabus__module summary::after { content: "+"; margin-left: auto; color: var(--am-accent); font-weight: 700; }
.am-syllabus__module[open] summary::after { content: "–"; }
.am-syllabus__num { color: var(--am-accent); font-weight: 700; font-size: var(--am-fs-sm); }
.am-syllabus__title { font-weight: 700; color: var(--am-ink); }
.am-syllabus__count { color: var(--am-muted); font-size: var(--am-fs-sm); }
.am-syllabus__lessons { list-style: none; margin: 0; padding: 0 var(--am-space-5) var(--am-space-4) !important; }
.am-syllabus__lessons li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--am-space-2) var(--am-space-4); padding: var(--am-space-3) 0; border-top: 1px solid var(--am-line); }
.am-syllabus__lesson { flex: 1 1 240px; }
.am-syllabus__free { font-size: var(--am-fs-xs); font-weight: 700; color: var(--am-success); }
.am-syllabus__dur { color: var(--am-muted); font-size: var(--am-fs-sm); }

/* ---------- Entrada al curso ---------- */
.am-course-entry { display: flex; flex-wrap: wrap; align-items: center; gap: var(--am-space-5); margin-top: var(--am-space-6); }
.am-course-entry__pct { display: inline-flex; align-items: center; gap: var(--am-space-3); color: var(--am-text-2); font-size: var(--am-fs-sm); }
.am-course-entry__bar { width: 140px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.am-course-entry__bar > span { display: block; height: 100%; background: linear-gradient(90deg, #C99BE0, var(--am-primary)); }

/* =====================================================================
   Sprint 6 · páginas públicas
   ===================================================================== */

/* ---------- Utilidades ---------- */
.am-kicker { font-size: var(--am-fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--am-accent); margin-bottom: var(--am-space-2); font-stretch: 100%; }
.am-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--am-primary)); margin-right: 8px; flex-shrink: 0; vertical-align: 1px; }
.am-btn--block { display: flex; width: 100%; }
.am-btn--light { background: #FFFFFF; color: var(--am-night); }
.am-btn--light:hover { background: #F3EEF8; color: var(--am-night); }
.am-narrow { max-width: calc(860px + 2 * var(--am-gutter)); }
.am-page-head--center { text-align: center; }
.am-page-head--center .am-page-head__title, .am-page-head--center .am-section__lead { margin-left: auto; margin-right: auto; }
.am-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.am-section__head--center .am-section__lead { margin-left: auto; margin-right: auto; }
.am-bar { display: block; height: 6px; border-radius: 3px; background: var(--am-line-strong); overflow: hidden; }
.am-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #C99BE0, var(--am-primary)); }

.am-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--am-radius-pill); border: 1px solid rgba(255, 255, 255, 0.28); color: #FFFFFF; font-size: var(--am-fs-xs); font-weight: 700; text-decoration: none; }
.am-tag--school { background: var(--school, var(--am-primary)); border-color: transparent; color: var(--am-night); }
.am-tag--key { background: var(--am-gold); border-color: transparent; color: var(--am-night); }
a.am-tag--link:hover { border-color: #FFFFFF; text-decoration: none; }
.am-chips-row { display: flex; flex-wrap: wrap; gap: var(--am-space-2); margin-bottom: var(--am-space-4); }

/* Cabecera: carrito y submenú */
.am-cart-btn { position: relative; }
.am-cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--am-primary); color: #FFFFFF; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.am-cart-count[hidden] { display: none; }
@media (min-width: 961px) {
	.am-nav__list > li { position: relative; }
	.am-nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: 0.7; }
	.am-nav__list .sub-menu { display: block; position: absolute; top: calc(100% + 14px); left: -16px; min-width: 260px; margin: 0; padding: var(--am-space-2); list-style: none; background: #FFFFFF; border-radius: var(--am-radius-md); box-shadow: var(--am-shadow-float); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity var(--am-dur) var(--am-ease), transform var(--am-dur) var(--am-ease), visibility 0s linear var(--am-dur); }
	.am-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
	.am-nav__list li:hover > .sub-menu, .am-nav__list li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.am-nav__list .sub-menu a { display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; color: #1B2550; }
	.am-nav__list .sub-menu a:hover { background: #F3EEF8; color: #0E1530; }
}
@media (max-width: 960px) {
	.am-nav__list .sub-menu { display: grid; gap: var(--am-space-3); list-style: none; margin: var(--am-space-3) 0 0; padding-left: var(--am-space-4); }
	.am-nav__list .sub-menu a { font-size: var(--am-fs-base); display: flex; align-items: center; }
}

/* Escuelas en la portada: color de cada una */
.am-schools__mark { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--school, var(--am-primary)); margin-right: 12px; vertical-align: 4px; }
.am-schools__link:hover .am-schools__name { color: var(--am-accent); }

/* Tarjetas de curso: color y precio */
.am-card { border-top: 3px solid var(--school, var(--am-line)); }
.am-card__school { display: flex; align-items: center; }
.am-card__body { flex: 1; }
.am-card__price { margin-top: auto; padding-top: var(--am-space-3); font-weight: 800; color: var(--am-ink); font-size: var(--am-fs-base); }
.am-card__price del { color: var(--am-muted); font-weight: 600; margin-right: 6px; font-size: var(--am-fs-sm); }
.am-card__price ins { text-decoration: none; }
.am-card__price--free { color: var(--am-success); }
.am-card__price--owned { color: var(--am-accent); font-size: var(--am-fs-sm); }
@media (max-width: 640px) {
	.am-scroller { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--am-space-3); margin-right: calc(-1 * var(--am-gutter)); padding-right: var(--am-gutter); }
	.am-scroller > * { scroll-snap-align: start; }
}

/* ---------- Página de curso ---------- */
.am-ch { position: relative; overflow: hidden; isolation: isolate; }
.am-ch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 85% 20%, color-mix(in srgb, var(--school, var(--am-primary)) 30%, transparent), transparent 70%), var(--am-night); }
.am-ch__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--am-space-7); align-items: center; padding-top: var(--am-space-7); padding-bottom: var(--am-space-8); }
.am-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--am-fs-xs); color: var(--am-muted); margin-bottom: var(--am-space-5); }
.am-crumbs a { color: var(--am-text-2); text-decoration: none; }
.am-crumbs a:hover { color: #FFFFFF; text-decoration: underline; }
.am-crumbs [aria-current] { color: #FFFFFF; }
.am-ch__title { font-size: var(--am-fs-h1); line-height: 1.04; text-wrap: balance; }
.am-ch__lead { font-size: var(--am-fs-lg); color: var(--am-text-2); margin-top: var(--am-space-4); max-width: 56ch; }
.am-facts { display: flex; flex-wrap: wrap; gap: var(--am-space-4) var(--am-space-6); margin: var(--am-space-6) 0 0; }
.am-facts > div { display: flex; flex-direction: column; }
.am-facts dt { font-size: var(--am-fs-xs); color: var(--am-muted); }
.am-facts dd { margin: 2px 0 0; font-weight: 700; color: #FFFFFF; font-size: var(--am-fs-sm); }
.am-facts__who { flex-direction: row !important; align-items: center; gap: var(--am-space-3); }
.am-facts__avatar { border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); }
.am-ch__cover img, .am-video { border-radius: var(--am-radius-lg); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
.am-ch__cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.am-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid rgba(255, 255, 255, 0.14); overflow: hidden; cursor: pointer; background: linear-gradient(135deg, #23306A, var(--am-primary)); color: #FFFFFF; font: inherit; }
.am-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.am-video__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--am-primary); box-shadow: 0 0 0 12px rgba(155, 78, 170, 0.3); transition: transform var(--am-dur) var(--am-ease); }
.am-video:hover .am-video__play { transform: scale(1.06); }
.am-video__label { position: absolute; left: var(--am-space-5); bottom: var(--am-space-4); font-weight: 700; font-size: var(--am-fs-sm); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.am-video--on { cursor: auto; }
.am-video--on iframe, .am-video--on video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .am-ch__inner { grid-template-columns: 1fr; gap: var(--am-space-6); padding-bottom: var(--am-space-7); } }

.am-anchors { position: sticky; top: 76px; z-index: 30; background: var(--am-bg); border-bottom: 1px solid var(--am-line); }
.admin-bar .am-anchors { top: 108px; }
.am-anchors .am-container { display: flex; gap: var(--am-space-5); overflow-x: auto; scrollbar-width: none; }
.am-anchors a { flex-shrink: 0; padding: var(--am-space-4) 2px; color: var(--am-text-2); font-weight: 600; font-size: var(--am-fs-sm); text-decoration: none; border-bottom: 2px solid transparent; }
.am-anchors a:hover, .am-anchors a[aria-current] { color: var(--am-ink); border-bottom-color: var(--am-primary); }

.am-course { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--am-space-8); padding-top: var(--am-space-8); padding-bottom: var(--am-space-9); align-items: start; }
.am-course__aside { position: sticky; top: 140px; }
.am-csec { scroll-margin-top: 140px; }
.am-csec + .am-csec { margin-top: var(--am-space-8); }
.am-csec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--am-space-3); }
.am-csec__title { font-size: var(--am-fs-h3); line-height: 1.15; margin-bottom: var(--am-space-5); }
.am-csec__head .am-csec__title { margin-bottom: var(--am-space-3); }
.am-csec__lead { color: var(--am-text-2); margin: calc(-1 * var(--am-space-3)) 0 var(--am-space-5); }
.am-csec__meta { color: var(--am-muted); font-size: var(--am-fs-sm); }
.am-course__prose { margin-top: var(--am-space-6); }
.am-goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--am-space-3); }
.am-goals li { display: flex; gap: var(--am-space-3); align-items: flex-start; padding: var(--am-space-4); border-radius: var(--am-radius-md); background: var(--am-surface-2); color: var(--am-text); line-height: 1.45; }
.am-goals__icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--am-primary); color: #FFFFFF; }
.am-track { list-style: none; margin: 0; padding: var(--am-space-6) var(--am-space-5); border-radius: var(--am-radius-lg); display: flex; overflow-x: auto; }
.am-track__step { position: relative; flex: 1 0 120px; display: flex; flex-direction: column; align-items: center; gap: var(--am-space-3); text-align: center; padding: 0 var(--am-space-2); }
.am-track__step::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: linear-gradient(90deg, rgba(212, 176, 230, 0.6), rgba(212, 176, 230, 0.25)); }
.am-track__step:first-child::before { display: none; }
.am-track__node { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #D4B0E6; color: #FFFFFF; font-weight: 800; font-size: 13px; background: var(--am-night); }
.am-track__step--goal .am-track__node { border-color: var(--am-gold); color: var(--am-gold); }
.am-track__label { font-size: var(--am-fs-xs); color: var(--am-text-2); font-weight: 600; line-height: 1.35; }
.am-syllabus__lesson { color: var(--am-text); }
a.am-syllabus__lesson { color: var(--am-ink); font-weight: 600; }
.am-syllabus__free { display: inline-flex; align-items: center; gap: 5px; }
.am-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--am-space-4); }
.am-listcard { padding: var(--am-space-5); border: 1px solid var(--am-line); border-radius: var(--am-radius-md); }
.am-listcard__title { font-size: var(--am-fs-lg); margin-bottom: var(--am-space-3); }
.am-listcard ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--am-space-2); color: var(--am-text-2); }
.am-teacher { display: flex; gap: var(--am-space-5); align-items: center; padding: var(--am-space-6); border-radius: var(--am-radius-lg); background: var(--am-surface-2); }
.am-teacher__avatar { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--am-primary); flex-shrink: 0; }
.am-teacher__name { font-size: var(--am-fs-h4); }
.am-teacher__bio { color: var(--am-text-2); margin-top: var(--am-space-2); }
.am-teacher__more { margin-top: var(--am-space-3); font-size: var(--am-fs-sm); color: var(--am-muted); }
.am-teacher__more a { font-weight: 700; }
@media (max-width: 560px) { .am-teacher { flex-direction: column; align-items: flex-start; } }
.am-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--am-space-5); padding: var(--am-space-6); border-radius: var(--am-radius-lg); }
.am-strip > div { flex: 1 1 320px; }
.am-strip__title { font-size: var(--am-fs-h4); }
.am-strip__text { color: var(--am-text-2); margin-top: var(--am-space-2); }
@media (max-width: 1000px) {
	.am-course { grid-template-columns: 1fr; gap: var(--am-space-7); }
	.am-course__aside { position: static; order: -1; }
	.am-goals { grid-template-columns: 1fr; }
}

/* Tarjeta de compra */
.am-buycard { display: flex; flex-direction: column; gap: var(--am-space-3); padding: var(--am-space-6); border-radius: var(--am-radius-lg); border: 1px solid var(--am-line); background: var(--am-bg); box-shadow: var(--am-shadow-float); }
.am-buycard__price { font-size: 2.5rem; font-weight: 800; font-stretch: var(--am-stretch-display); color: var(--am-ink); line-height: 1.1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.am-buycard__price del { font-size: var(--am-fs-lg); color: var(--am-muted); font-weight: 600; }
.am-buycard__price ins { text-decoration: none; }

.am-buycard__price .am-buycard__per { font-size: var(--am-fs-sm); font-weight: 500; color: var(--am-muted); font-stretch: 100%; }
.am-buycard__member { font-size: var(--am-fs-sm); color: var(--am-success); font-weight: 700; margin-top: calc(-1 * var(--am-space-2)); }
.am-buycard__state { font-weight: 800; color: var(--am-ink); font-size: var(--am-fs-lg); }
.am-buycard__state--warn { color: var(--am-warning); }
.am-buycard__progress { display: flex; flex-direction: column; gap: 6px; font-size: var(--am-fs-sm); color: var(--am-text-2); }
.am-buycard__note { font-size: var(--am-fs-sm); color: var(--am-text-2); }
.am-buycard__link { align-self: center; font-size: var(--am-fs-sm); font-weight: 700; }
.am-buycard__alt { margin-top: var(--am-space-2); padding: var(--am-space-4); border-radius: var(--am-radius-md); background: var(--am-surface-2); display: flex; flex-direction: column; gap: var(--am-space-3); font-size: var(--am-fs-sm); color: var(--am-text-2); }
.am-buycard__alt strong { color: var(--am-ink); }
.am-buycard__or { text-align: center; font-size: var(--am-fs-xs); }
.am-buycard__includes { padding-top: var(--am-space-4); border-top: 1px solid var(--am-line); margin-top: var(--am-space-2); }
.am-buycard__label { font-weight: 800; color: var(--am-ink); font-size: var(--am-fs-sm); margin-bottom: var(--am-space-2); }
.am-buycard__includes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--am-fs-sm); color: var(--am-text-2); }
.am-buycard__includes li { display: flex; gap: 8px; align-items: flex-start; }
.am-buycard__includes .am-icon { color: var(--am-primary); margin-top: 3px; }
.am-buycard__fine { font-size: var(--am-fs-xs); color: var(--am-muted); text-align: center; }

.am-buybar { display: none; }
@media (max-width: 1000px) {
	.am-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: var(--am-space-4); padding: var(--am-space-3) var(--am-gutter) calc(var(--am-space-3) + env(safe-area-inset-bottom)); background: var(--am-night); color: #FFFFFF; box-shadow: 0 -10px 30px rgba(14, 21, 48, 0.25); transform: translateY(110%); transition: transform var(--am-dur) var(--am-ease); }
	.am-buybar.is-visible { transform: none; }
	.am-buybar__price { display: flex; flex-direction: column; min-width: 0; }
	.am-buybar__price strong { font-size: var(--am-fs-lg); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.am-buybar__price span { font-size: var(--am-fs-xs); color: #A9B1CC; }
	.am-buybar .am-btn { flex-shrink: 0; }
	body:has(.am-buybar.is-visible) .am-footer__legal { padding-bottom: 96px; }
}

/* ---------- Catálogo ---------- */
.am-section--catalog { padding-top: var(--am-space-7); }
.am-filters { display: flex; flex-direction: column; gap: var(--am-space-4); margin-bottom: var(--am-space-6); }
.am-filters__chips { display: flex; gap: var(--am-space-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.am-chip { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--am-space-4); border-radius: var(--am-radius-pill); border: 1px solid var(--am-line-strong); color: var(--am-text-2); font-weight: 600; font-size: var(--am-fs-sm); text-decoration: none; background: var(--am-bg); }
.am-chip:hover { border-color: var(--am-primary); color: var(--am-ink); text-decoration: none; }
.am-chip[aria-current="true"] { background: var(--am-night); border-color: var(--am-night); color: #FFFFFF; }
.am-filters__row { display: flex; flex-wrap: wrap; gap: var(--am-space-3); }
.am-filters__search { flex: 1 1 260px; display: flex; align-items: center; gap: var(--am-space-2); min-height: 48px; padding: 0 var(--am-space-4); border: 1px solid var(--am-line-strong); border-radius: var(--am-radius-pill); color: var(--am-muted); background: var(--am-bg); }
.am-filters__search:focus-within { border-color: var(--am-primary); outline: 2px solid var(--am-focus); outline-offset: 1px; }
.am-filters__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--am-text); outline: none; }
.am-select select { min-height: 48px; padding: 0 40px 0 var(--am-space-4); border: 1px solid var(--am-line-strong); border-radius: var(--am-radius-pill); background: var(--am-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6385' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--am-text); font: inherit; font-size: var(--am-fs-sm); appearance: none; cursor: pointer; }
.am-results-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--am-space-4); margin-bottom: var(--am-space-5); }
.am-results-count { color: var(--am-muted); font-size: var(--am-fs-sm); }
.am-empty .am-link-quiet { display: inline-block; margin-top: var(--am-space-3); }

/* ---------- Escuelas ---------- */
.am-school-head { position: relative; overflow: hidden; isolation: isolate; padding: var(--am-space-7) 0 var(--am-space-8); }
.am-school-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 90% at 90% 10%, color-mix(in srgb, var(--school) 38%, transparent), transparent 70%), var(--am-night); }
.am-school-head__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr); gap: var(--am-space-7); align-items: end; }
.am-school-head__mark { width: 56px; height: 6px; border-radius: 3px; background: var(--school); margin-bottom: var(--am-space-4); }
.am-school-head__tagline { font-size: var(--am-fs-h4); font-weight: 700; color: #FFFFFF; margin-top: var(--am-space-3); font-stretch: 105%; }
.am-school-head__count { margin-top: var(--am-space-5); color: var(--am-muted); font-size: var(--am-fs-sm); }
.am-schoolplan { padding: var(--am-space-6); border-radius: var(--am-radius-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-direction: column; gap: var(--am-space-3); }
.am-schoolplan__kicker { font-size: var(--am-fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--school); filter: brightness(1.3); }
.am-schoolplan__price { font-size: 2.25rem; font-weight: 800; color: #FFFFFF; font-stretch: var(--am-stretch-display); line-height: 1.1; }
.am-schoolplan__price .am-per { font-size: var(--am-fs-sm); font-weight: 500; color: var(--am-muted); font-stretch: 100%; }
.am-schoolplan__text { color: var(--am-text-2); font-size: var(--am-fs-sm); }
.am-schoolplan__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--am-space-4); margin-top: var(--am-space-2); }
.am-schoolplan__or { font-size: var(--am-fs-xs); color: var(--am-muted); }
@media (max-width: 860px) { .am-school-head__inner { grid-template-columns: 1fr; } }
.am-school-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--am-space-4); }
.am-school-card { position: relative; display: flex; flex-direction: column; gap: var(--am-space-3); min-height: 240px; padding: var(--am-space-6); border-radius: var(--am-radius-lg); background: var(--am-night); color: #C9CFE3; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform var(--am-dur) var(--am-ease); }
.am-school-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--school) 45%, transparent), transparent 70%); }
.am-school-card:hover { transform: translateY(-3px); text-decoration: none; color: #E4E7F2; }
.am-school-card__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--school); }
.am-school-card__name { font-size: var(--am-fs-h4); font-weight: 800; color: #FFFFFF; font-stretch: var(--am-stretch-display); line-height: 1.2; }
.am-school-card__text { font-size: var(--am-fs-sm); flex: 1; }
.am-school-card__foot { display: flex; justify-content: space-between; gap: var(--am-space-3); font-size: var(--am-fs-xs); color: #A9B1CC; padding-top: var(--am-space-3); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.am-school-card__price { color: #FFFFFF; font-weight: 700; }

/* ---------- Senderos ---------- */
.am-paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--am-space-5); }
.am-pathcard { display: flex; flex-direction: column; border: 1px solid var(--am-line); border-radius: var(--am-radius-md); overflow: hidden; background: var(--am-bg); }
.am-pathcard__media { position: relative; display: block; aspect-ratio: 16 / 8; background: linear-gradient(120deg, var(--am-night), var(--am-blue) 60%, var(--am-primary)); }
.am-pathcard__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.am-pathcard__dots { position: absolute; left: var(--am-space-5); right: var(--am-space-5); bottom: var(--am-space-4); display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.am-pathcard__dots li { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 2px solid #FFFFFF; flex-shrink: 0; }
.am-pathcard__dots li + li::before { content: ""; position: absolute; right: calc(100% + 2px); top: 50%; width: 26px; height: 2px; translate: 0 -50%; background: rgba(255, 255, 255, 0.6); }
.am-pathcard__body { display: flex; flex-direction: column; gap: var(--am-space-2); padding: var(--am-space-5); flex: 1; }
.am-pathcard__pieces { font-size: var(--am-fs-sm); color: var(--am-text-2); }
.am-pathcard__price { margin-top: auto; padding-top: var(--am-space-3); display: flex; gap: var(--am-space-3); align-items: baseline; }
.am-pathcard__price strong { font-size: var(--am-fs-lg); color: var(--am-ink); }
.am-pathcard__price del { color: var(--am-muted); font-size: var(--am-fs-sm); }
.am-path-head__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr); gap: var(--am-space-7); align-items: end; }
@media (max-width: 860px) { .am-path-head__inner { grid-template-columns: 1fr; } }
.am-pathbuy { padding: var(--am-space-6); border-radius: var(--am-radius-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-direction: column; gap: var(--am-space-3); }
.am-pathbuy__price { font-size: 2.5rem; font-weight: 800; color: #FFFFFF; font-stretch: var(--am-stretch-display); line-height: 1.1; }
.am-pathbuy__state { font-size: var(--am-fs-lg); font-weight: 800; color: #FFFFFF; }
.am-pathbuy__note { color: var(--am-text-2); font-size: var(--am-fs-sm); }
.am-pathbuy__fine { color: var(--am-muted); font-size: var(--am-fs-xs); text-align: center; }
.am-path { max-width: calc(860px + 2 * var(--am-gutter)); }
.am-path__list { list-style: none; margin: 0; padding: 0; }
.am-path__step { position: relative; display: flex; gap: var(--am-space-5); align-items: flex-start; padding-bottom: var(--am-space-6); }
.am-path__step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--am-line-strong); }
.am-path__step:last-child::before { display: none; }
.am-path__node { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--c, var(--am-primary)); background: var(--am-bg); font-weight: 800; color: var(--am-ink); }
.am-path__step.is-owned .am-path__node { background: var(--c, var(--am-primary)); color: #FFFFFF; }
.am-path__step--goal .am-path__node { border-color: var(--am-gold); color: var(--am-gold); }
.am-path__body { flex: 1; min-width: 0; padding-top: 4px; }
.am-path__meta { font-size: var(--am-fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--am-muted); }
.am-path__title { font-size: var(--am-fs-h4); margin-top: 2px; }
.am-path__title a { color: inherit; text-decoration: none; }
.am-path__title a:hover { color: var(--am-accent); }
.am-path__text { color: var(--am-text-2); margin-top: var(--am-space-2); font-size: var(--am-fs-sm); }
.am-path__prose { margin-top: var(--am-space-6); }

/* ---------- Planes ---------- */
.am-plans-table { display: flex; flex-direction: column; gap: var(--am-space-6); }
.am-period { align-self: center; display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--am-radius-pill); background: var(--am-bg); border: 1px solid var(--am-line-strong); }
.am-period button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--am-space-5); border: 0; border-radius: var(--am-radius-pill); background: transparent; color: var(--am-text-2); font: inherit; font-weight: 700; font-size: var(--am-fs-sm); cursor: pointer; }
.am-period button[aria-pressed="true"] { background: var(--am-night); color: #FFFFFF; }
.am-period__save { padding: 2px 8px; border-radius: var(--am-radius-pill); background: var(--am-gold); color: var(--am-night); font-size: var(--am-fs-xs); }
.am-plan-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--am-space-4); align-items: stretch; }
.am-plan-col { display: flex; flex-direction: column; gap: var(--am-space-3); padding: var(--am-space-6); border-radius: var(--am-radius-lg); border: 1px solid var(--am-line); background: var(--am-bg); }
.am-plan-col--featured { background: var(--am-night); border-color: var(--am-night); color: #C9CFE3; box-shadow: 0 30px 60px rgba(14, 21, 48, 0.25); --am-ink: #FFFFFF; --am-accent: #D4B0E6; --am-text-2: #C9CFE3; }
.am-plan-col__kicker { font-size: var(--am-fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--am-accent); }
.am-plan-col__name { font-size: var(--am-fs-h3); }
.am-plan-col__price { font-size: 2.25rem; font-weight: 800; color: var(--am-ink); font-stretch: var(--am-stretch-display); line-height: 1.1; }
.am-plan-col__price .am-per { font-size: var(--am-fs-sm); font-weight: 500; color: var(--am-text-2); font-stretch: 100%; }
.am-plan-col__price .subscription-details { display: none; }
.am-plan-col__text { color: var(--am-text-2); flex: 1; }
.am-plan-col .am-btn { margin-top: var(--am-space-3); }
.am-plan-col--featured .am-btn--primary { background: #FFFFFF; color: var(--am-night); }
.am-plan-col--featured .am-btn--primary:hover { background: #F3EEF8; }
.am-compare { overflow-x: auto; border: 1px solid var(--am-line); border-radius: var(--am-radius-lg); background: var(--am-bg); }
.am-compare table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--am-fs-sm); }
.am-compare th, .am-compare td { padding: var(--am-space-3) var(--am-space-5); border-bottom: 1px solid var(--am-line); text-align: center; }
.am-compare thead th { color: var(--am-ink); font-weight: 800; background: var(--am-surface); }
.am-compare thead th:last-child { color: var(--am-accent); }
.am-compare tbody th { text-align: left; font-weight: 600; color: var(--am-text); }
.am-compare tr:last-child > * { border-bottom: 0; }
.am-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--am-success) 16%, transparent); color: var(--am-success); }
.am-no { color: var(--am-muted); }
.am-plans-note { text-align: center; color: var(--am-muted); font-size: var(--am-fs-sm); }

/* ---------- Preguntas frecuentes ---------- */
.am-faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--am-space-7); align-items: start; }
@media (max-width: 860px) { .am-faq-wrap { grid-template-columns: 1fr; gap: 0; } }
.am-faq { display: flex; flex-direction: column; gap: var(--am-space-3); }
.am-faq__item { border: 1px solid var(--am-line); border-radius: var(--am-radius-md); background: var(--am-bg); }
.am-faq__item summary { display: flex; justify-content: space-between; gap: var(--am-space-4); padding: var(--am-space-4) var(--am-space-5); font-weight: 700; color: var(--am-ink); cursor: pointer; list-style: none; }
.am-faq__item summary::-webkit-details-marker { display: none; }
.am-faq__sign { position: relative; flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px; }
.am-faq__sign::before, .am-faq__sign::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 1px; background: var(--am-accent); transition: transform var(--am-dur) var(--am-ease); }
.am-faq__sign::after { transform: rotate(90deg); }
.am-faq__item[open] .am-faq__sign::after { transform: rotate(0); }
.am-faq__item[open] { border-color: color-mix(in srgb, var(--am-primary) 45%, var(--am-line)); }
.am-faq__a { padding: 0 var(--am-space-5) var(--am-space-5); color: var(--am-text-2); }

/* ---------- Portada: tienda y blog ---------- */
.am-grid--products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.am-prod { display: flex; flex-direction: column; gap: var(--am-space-2); }
.am-prod__media { display: block; aspect-ratio: 1; border-radius: var(--am-radius-md); overflow: hidden; background: var(--am-surface); }
.am-prod__media img { width: 100%; height: 100%; object-fit: cover; }
.am-prod__title { font-size: var(--am-fs-base); margin-top: var(--am-space-2); font-stretch: 100%; }
.am-prod__title a { color: inherit; text-decoration: none; }
.am-prod__price { font-weight: 800; color: var(--am-ink); display: flex; flex-direction: column; }
.am-prod__price del { color: var(--am-muted); font-weight: 600; }
.am-prod__price ins { text-decoration: none; }
.am-prod__member { font-size: var(--am-fs-xs); color: var(--am-success); font-weight: 700; }
.am-prod .am-btn { align-self: flex-start; margin-top: var(--am-space-2); }
.am-prod .added_to_cart { font-size: var(--am-fs-sm); font-weight: 700; }
.am-grid--posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--am-space-6); }
.am-post__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--am-radius-md); overflow: hidden; margin-bottom: var(--am-space-4); }
.am-post__media img { width: 100%; height: 100%; object-fit: cover; }
.am-post__meta { font-size: var(--am-fs-xs); color: var(--am-muted); }
.am-post__title { font-size: var(--am-fs-h4); line-height: 1.25; margin-top: var(--am-space-2); font-stretch: 105%; }
.am-post__title a { color: inherit; text-decoration: none; }
.am-post__title a:hover { color: var(--am-accent); }
.am-post__excerpt { color: var(--am-text-2); margin-top: var(--am-space-2); font-size: var(--am-fs-sm); }

/* =====================================================================
   Sprint 7 · login social y avisos
   ===================================================================== */
.mlms-social { display: grid; gap: var(--am-space-3); }
.mlms-social__btn { display: flex; align-items: center; justify-content: center; gap: var(--am-space-3); min-height: 52px; padding: 0 var(--am-space-5); border-radius: var(--am-radius-pill); border: 1px solid var(--am-line-strong); background: var(--am-bg); color: var(--am-ink); font-weight: 700; font-size: var(--am-fs-sm); text-decoration: none; transition: border-color var(--am-dur) var(--am-ease), background-color var(--am-dur) var(--am-ease); }
.mlms-social__btn:hover { border-color: var(--am-ink); text-decoration: none; background: var(--am-surface); }
.mlms-social__terms { font-size: var(--am-fs-xs); color: var(--am-muted); text-align: center; margin-top: var(--am-space-2); }
.am-checkout-social { margin-bottom: var(--am-space-5); padding-bottom: var(--am-space-5); border-bottom: 1px solid var(--am-line); }
.am-checkout-social .mlms-social { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
