/* =========================================================================
   Yen Howell · Academia — estilos del front
   Los colores se controlan desde Ajustes (variables :root inyectadas).
   ========================================================================= */

:root {
	--yha-primary: #7B2D43;
	--yha-secondary: #C98B9E;
	--yha-accent: #C9A227;
	--yha-bg: #FBF6F2;
	--yha-text: #2A2024;
	--yha-radius: 16px;
	--yha-shadow: 0 10px 30px rgba(43, 32, 36, .08);
	--yha-shadow-sm: 0 4px 14px rgba(43, 32, 36, .07);
}

.yha-main { background: var(--yha-bg); color: var(--yha-text); padding: 40px 0 80px; }
.yha-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.yha-container--narrow { max-width: 860px; }

.yha-page,
.yha-main * { box-sizing: border-box; }

/* ---------- Botones ---------- */
.yha-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 600 15px/1 inherit; text-decoration: none; cursor: pointer;
	padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.yha-btn:hover { transform: translateY(-1px); }
.yha-btn--primary { background: var(--yha-primary); color: #fff; box-shadow: var(--yha-shadow-sm); }
.yha-btn--primary:hover { color: #fff; box-shadow: var(--yha-shadow); }
.yha-btn--ghost { background: transparent; color: var(--yha-primary); border-color: var(--yha-primary); }
.yha-btn--ghost:hover { background: var(--yha-primary); color: #fff; }

/* ---------- Grid de tarjetas ---------- */
.yha-grid { display: grid; gap: 26px; }
.yha-grid--1 { grid-template-columns: 1fr; }
.yha-grid--2 { grid-template-columns: repeat(2, 1fr); }
.yha-grid--3 { grid-template-columns: repeat(3, 1fr); }
.yha-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .yha-grid--3, .yha-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .yha-grid { grid-template-columns: 1fr !important; } }

.yha-card {
	background: #fff; border-radius: var(--yha-radius); overflow: hidden;
	box-shadow: var(--yha-shadow-sm); display: flex; flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.yha-card:hover { transform: translateY(-4px); box-shadow: var(--yha-shadow); }
.yha-card__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--yha-secondary), var(--yha-primary)); }
.yha-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yha-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 54px; }
.yha-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.yha-card__title { margin: 0; font-size: 19px; line-height: 1.3; }
.yha-card__title a { color: var(--yha-text); text-decoration: none; }
.yha-card__title a:hover { color: var(--yha-primary); }
.yha-card__excerpt { margin: 0; font-size: 14px; opacity: .75; }
.yha-card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; opacity: .7; }
.yha-card__cta { margin-top: auto; }
.yha-card__progresslabel { font-size: 12px; opacity: .7; }

.yha-badge {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
	background: rgba(255,255,255,.92); color: var(--yha-primary);
	backdrop-filter: blur(4px);
}
.yha-badge--members { background: var(--yha-primary); color: #fff; }
.yha-badge--free { background: var(--yha-accent); color: #2A2024; }

/* ---------- Barra de progreso ---------- */
.yha-progressbar { height: 8px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; }
.yha-progressbar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--yha-secondary), var(--yha-primary)); transition: width .4s ease; }

/* ---------- Curso ---------- */
.yha-course__header { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
@media (max-width: 900px) { .yha-course__header { grid-template-columns: 1fr; } }
.yha-course__title { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 16px; color: var(--yha-primary); }
.yha-course__desc { font-size: 16px; line-height: 1.7; opacity: .9; }
.yha-course__progress { margin-top: 22px; }
.yha-course__progress small { opacity: .7; }
.yha-course__cta-box { margin-top: 22px; padding: 22px; border-radius: var(--yha-radius); background: #fff; box-shadow: var(--yha-shadow-sm); }
.yha-course__video img { width: 100%; border-radius: var(--yha-radius); }

/* ---------- Video responsive ---------- */
.yha-video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--yha-radius); overflow: hidden; background: #000; box-shadow: var(--yha-shadow); }
.yha-video-wrap iframe, .yha-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Temario ---------- */
.yha-curriculum__title { font-size: 24px; margin: 0 0 20px; color: var(--yha-primary); }
.yha-module { background: #fff; border-radius: var(--yha-radius); box-shadow: var(--yha-shadow-sm); margin-bottom: 18px; overflow: hidden; }
.yha-module__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 18px 22px; font-size: 17px; background: rgba(0,0,0,.02); border-bottom: 1px solid rgba(0,0,0,.05); }
.yha-module__title span { font-size: 13px; font-weight: 500; opacity: .6; }
.yha-lessons { list-style: none; margin: 0; padding: 6px 0; }
.yha-lesson-row a, .yha-lesson-row span.yha-lesson-row__wrap, .yha-lesson-row > span { display: flex; align-items: center; gap: 14px; padding: 13px 22px; text-decoration: none; color: var(--yha-text); }
.yha-lesson-row a:hover { background: rgba(0,0,0,.03); color: var(--yha-primary); }
.yha-lesson-row__check { flex: 0 0 28px; height: 28px; width: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,0,0,.06); font-size: 12px; font-weight: 700; }
.yha-lesson-row.is-done .yha-lesson-row__check { background: var(--yha-primary); color: #fff; }
.yha-lesson-row__name { flex: 1; }
.yha-lesson-row.is-locked > span { opacity: .55; }
.yha-lesson-row__lock { opacity: .5; }
.yha-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--yha-accent); color: #2A2024; }

/* ---------- Reproductor ---------- */
.yha-player__back { display: inline-block; margin-bottom: 16px; color: var(--yha-primary); text-decoration: none; font-weight: 600; }
.yha-player__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 24px 0; flex-wrap: wrap; }
.yha-player__title { font-size: 26px; margin: 0; color: var(--yha-primary); }
.yha-player__notes { background: #fff; border-radius: var(--yha-radius); padding: 24px; box-shadow: var(--yha-shadow-sm); line-height: 1.7; margin-bottom: 24px; }
.yha-player__resources { background: #fff; border-radius: var(--yha-radius); padding: 20px 24px; box-shadow: var(--yha-shadow-sm); margin-bottom: 24px; }
.yha-player__resources h4 { margin: 0 0 10px; }
.yha-player__resources ul { margin: 0; padding-left: 18px; }
.yha-player__nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.yha-complete.is-done { background: var(--yha-accent); color: #2A2024; border-color: var(--yha-accent); }

/* ---------- Muro de acceso ---------- */
.yha-wall { text-align: center; background: #fff; border-radius: var(--yha-radius); padding: 48px 28px; box-shadow: var(--yha-shadow-sm); }
.yha-wall__icon { font-size: 42px; }
.yha-wall__title { font-size: 24px; color: var(--yha-primary); margin: 14px 0 8px; }
.yha-wall__text { opacity: .8; max-width: 460px; margin: 0 auto 22px; }
.yha-wall__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Panel de alumna ---------- */
.yha-dash__header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.yha-dash__header h1 { font-size: clamp(24px, 4vw, 36px); margin: 0; color: var(--yha-primary); }
.yha-dash__sub { margin: 6px 0 0; opacity: .7; }
.yha-dash__title { font-size: 20px; margin: 0 0 18px; }
.yha-dash__empty { background: #fff; border-radius: var(--yha-radius); padding: 40px; text-align: center; box-shadow: var(--yha-shadow-sm); }
.yha-progress-summary { background: #fff; padding: 18px 22px; border-radius: var(--yha-radius); box-shadow: var(--yha-shadow-sm); }
.yha-progress-summary strong { color: var(--yha-primary); font-size: 22px; }

/* ---------- Auth ---------- */
.yha-auth { max-width: 460px; margin: 0 auto; display: grid; gap: 26px; }
.yha-auth--two { max-width: 920px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .yha-auth--two { grid-template-columns: 1fr; } }
.yha-auth__card { background: #fff; border-radius: var(--yha-radius); padding: 30px; box-shadow: var(--yha-shadow-sm); }
.yha-auth__card h2 { margin: 0 0 18px; color: var(--yha-primary); }
.yha-form { display: flex; flex-direction: column; gap: 14px; }
.yha-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.yha-form input[type=text], .yha-form input[type=email], .yha-form input[type=password] {
	padding: 12px 14px; border: 1.5px solid rgba(0,0,0,.12); border-radius: 12px; font-size: 15px; font-weight: 400;
}
.yha-form input:focus { outline: none; border-color: var(--yha-primary); }
.yha-form__inline { flex-direction: row !important; align-items: center; font-weight: 400; }
.yha-form__link { font-size: 13px; color: var(--yha-primary); text-decoration: none; }

/* ---------- Avisos ---------- */
.yha-notice { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.yha-notice--error { background: #fdecec; color: #9b2226; }
.yha-notice--success { background: #eaf6ec; color: #1b5e20; }

.yha-empty { text-align: center; opacity: .7; padding: 40px 0; }
.yha-archive__header { text-align: center; margin-bottom: 40px; }
.yha-archive__title { font-size: clamp(30px, 5vw, 48px); color: var(--yha-primary); margin: 0 0 10px; }
.yha-archive__tagline { font-size: 18px; opacity: .8; max-width: 620px; margin: 0 auto; }
