/* ===========================================================================
 * Bitácora Cursos — estética de la marca (coral + teal + crema)
 * Pensada para verse igual que bitacoramentalcare.com:
 *  - fondo cálido, tarjetas muy redondeadas con relieve suave
 *  - botones coral tipo píldora
 *  - títulos y acentos en teal
 *  - hereda la tipografía del tema
 * ========================================================================= */

.bmc-wrap {
	/* Paleta EXACTA de la landing bitacoramentalcare.com */
	--bmc-primary: #F08268;         /* coral (acciones) */
	--bmc-primary-dark: #E16A50;
	--bmc-secondary: #1F6E6B;       /* teal (títulos/acentos) */
	--bmc-secondary-dark: #155350;
	--bmc-peach: #FBE7D5;
	--bmc-cream: #FFF7EF;           /* crema del fondo */
	--bmc-cream-2: #FDEFE2;         /* peach-soft */
	--bmc-card: #ffffff;
	--bmc-ink: #2B2B2B;
	--bmc-muted: #6c6760;
	--bmc-border: #f3e0d0;
	--bmc-radius: 22px;

	max-width: 960px;
	margin: 0 auto;
	padding: 1.25rem;
	font-family: 'Nunito', system-ui, -apple-system, sans-serif;
	color: var(--bmc-ink);
	line-height: 1.65;
}

.bmc-wrap h1, .bmc-wrap h2, .bmc-wrap h3, .bmc-wrap h4 {
	font-family: 'Fredoka', 'Nunito', sans-serif;
	font-weight: 600;
	color: var(--bmc-secondary);
	line-height: 1.15;
}

/* ---- Hero / portada ---- */
.bmc-hero {
	text-align: center;
	background: linear-gradient(160deg, var(--bmc-cream), var(--bmc-cream-2));
	border-radius: var(--bmc-radius);
	padding: 2.6rem 1.5rem;
	margin-bottom: 2rem;
}
.bmc-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: .6rem; }
.bmc-intro { opacity: .85; font-size: 1.08rem; max-width: 640px; margin: 0 auto; color: var(--bmc-ink); }

/* ---- Botones ---- */
.bmc-btn {
	display: inline-block;
	padding: .8rem 1.6rem;
	border-radius: 999px;
	background: #fff;
	color: var(--bmc-secondary);
	text-decoration: none;
	font: inherit;
	font-weight: 700;
	border: 2px solid var(--bmc-secondary);
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.bmc-btn:hover { transform: translateY(-2px); }
.bmc-btn-primary {
	background: var(--bmc-primary);
	color: #fff;
	border-color: var(--bmc-primary);
	box-shadow: 0 8px 20px rgba(233, 138, 110, .35);
}
.bmc-btn-primary:hover { background: var(--bmc-primary-dark); border-color: var(--bmc-primary-dark); color: #fff; box-shadow: 0 12px 26px rgba(233, 138, 110, .45); }

/* ---- Caja de compra ---- */
.bmc-buy {
	margin: 2rem auto;
	padding: 2.4rem 1.6rem;
	border-radius: var(--bmc-radius);
	background: linear-gradient(160deg, var(--bmc-cream), var(--bmc-cream-2));
	text-align: center;
}
.bmc-buy h2 { font-size: 1.8rem; }
.bmc-price { font-size: 2.2rem; font-weight: 800; margin: .4rem 0 1.3rem; color: var(--bmc-primary); }

/* ---- Cabecera del panel del alumno ---- */
.bmc-panel-head h2 { font-size: 1.9rem; margin-bottom: .2rem; }
.bmc-panel-sub { opacity: .8; margin-top: .1rem; }
.bmc-panel-progress { margin: 1.2rem 0 2rem; }
.bmc-pp-bar { height: 14px; background: var(--bmc-cream-2); border-radius: 999px; overflow: hidden; }
.bmc-pp-fill { height: 100%; background: linear-gradient(90deg, var(--bmc-secondary), var(--bmc-primary)); border-radius: 999px; transition: width .6s ease; }
.bmc-pp-label { font-size: .9rem; margin-top: .5rem; font-weight: 700; color: var(--bmc-secondary); }

/* ---- Lista de cursos ---- */
.bmc-panel h2, .bmc-panel h3 { margin-top: 0; }
.bmc-course-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.bmc-course-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.15rem 1.3rem;
	border-radius: var(--bmc-radius);
	margin-bottom: .9rem;
	background: var(--bmc-card);
	border: 1px solid var(--bmc-border);
	box-shadow: 0 6px 18px rgba(44, 59, 56, .05);
	transition: transform .12s ease, box-shadow .12s ease;
}
.bmc-course-item:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(44, 59, 56, .09); }
.bmc-course-item.bmc-state-locked { opacity: .6; box-shadow: none; background: var(--bmc-cream); }
.bmc-course-index {
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--bmc-secondary); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 1.1rem; flex: 0 0 44px;
}
.bmc-state-completed .bmc-course-index { background: var(--bmc-primary); }
.bmc-state-locked .bmc-course-index { background: #cbb8ab; }
.bmc-course-title { flex: 1; font-weight: 700; color: var(--bmc-secondary); font-size: 1.08rem; }
.bmc-course-item .bmc-btn { margin-left: auto; padding: .55rem 1.2rem; }

.bmc-badge {
	font-size: .72rem;
	padding: .28rem .8rem;
	border-radius: 999px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.bmc-badge-completed { background: var(--bmc-secondary); color: #fff; }
.bmc-badge-available { background: var(--bmc-primary); color: #fff; }
.bmc-badge-locked { background: var(--bmc-cream-2); color: #9a8577; }
.bmc-lock { font-size: 1.2rem; }

/* ---- Citas del panel ---- */
.bmc-appts { margin-top: 2rem; }
.bmc-appt-list { list-style: none; padding: 0; }
.bmc-appt-list li {
	padding: .9rem 1.1rem; background: var(--bmc-cream);
	border-radius: 14px; margin-bottom: .6rem;
}

/* ---- Tarjetas de cursos (panel) ---- */
.bmc-course-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; margin: 1.2rem 0; }
.bmc-course-card { display: block; background: var(--bmc-card); border: 1px solid var(--bmc-border); border-radius: var(--bmc-radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 6px 18px rgba(44,59,56,.06); transition: transform .12s ease, box-shadow .12s ease; }
.bmc-course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(44,59,56,.12); }
.bmc-cc-thumb img { width: 100%; height: 150px; object-fit: cover; display: block; }
.bmc-cc-body { padding: 1.1rem 1.2rem 1.3rem; }
.bmc-cc-body h3 { margin: 0 0 .7rem; font-size: 1.2rem; }
.bmc-cc-meta { display: block; margin-top: .5rem; font-size: .85rem; font-weight: 700; color: var(--bmc-secondary); }

.bmc-modules-title { font-size: 1.5rem; margin: 2rem 0 1rem; }
.bmc-breadcrumb { font-size: .85rem; color: var(--bmc-muted); margin-bottom: .6rem; }
.bmc-breadcrumb a { color: var(--bmc-secondary); text-decoration: none; font-weight: 600; }

/* Insignias de cita en el panel */
.bmc-badge-pending { background: var(--bmc-cream-2); color: var(--bmc-primary-dark); }
.bmc-badge-confirmed { background: var(--bmc-secondary); color: #fff; }

/* ---- Vídeos y materiales ---- */
.bmc-videos { margin-bottom: 1.4rem; }
.bmc-video-title { font-size: 1.05rem; margin: 1rem 0 .5rem; color: var(--bmc-secondary); }
.bmc-materials { background: var(--bmc-cream); border: 1px solid var(--bmc-border); border-radius: var(--bmc-radius); padding: 1.1rem 1.3rem; margin: 1.2rem 0; }
.bmc-materials h4 { margin: 0 0 .6rem; }
.bmc-pdf-list { list-style: none; padding: 0; margin: 0; }
.bmc-pdf-list li { margin: .35rem 0; }
.bmc-pdf-list a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--bmc-ink); font-weight: 600; }
.bmc-pdf-list a:hover { color: var(--bmc-primary); }
.bmc-pdf-ico { background: var(--bmc-primary); color: #fff; font-size: .7rem; font-weight: 800; padding: .18rem .5rem; border-radius: 6px; letter-spacing: .04em; }

/* ---- Sesiones grupales ---- */
.bmc-sessions { display: flex; flex-direction: column; gap: .7rem; margin: 1rem 0 1.3rem; }
.bmc-session {
	display: flex; align-items: center; gap: .8rem;
	padding: .9rem 1.1rem; border: 1.5px solid var(--bmc-border); border-radius: 14px;
	background: #fff; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.bmc-session:hover { border-color: var(--bmc-primary); }
.bmc-session input { accent-color: var(--bmc-primary); width: 18px; height: 18px; }
.bmc-session-date { flex: 1; font-weight: 700; color: var(--bmc-secondary); text-transform: capitalize; }
.bmc-session-plazas { font-size: .82rem; font-weight: 700; color: var(--bmc-primary); background: var(--bmc-cream-2); padding: .25rem .7rem; border-radius: 999px; }
.bmc-session.is-full { opacity: .55; cursor: not-allowed; }
.bmc-session.is-full .bmc-session-plazas { color: #b04a4a; background: #f6e5e5; }

/* ---- Lista de vídeos con desbloqueo secuencial ---- */
.bmc-video-list { margin-bottom: 1.6rem; }
.bmc-vlist-title { margin: 0 0 .3rem; }
.bmc-vlist-help { margin: 0 0 1rem; font-size: .9rem; opacity: .75; }
.bmc-vitem {
	display: flex; align-items: center; gap: .9rem;
	padding: .9rem 1.1rem; margin-bottom: .7rem;
	background: var(--bmc-card); border: 1px solid var(--bmc-border);
	border-radius: 16px; box-shadow: 0 4px 14px rgba(44,59,56,.05);
}
.bmc-vitem.bmc-v-locked { opacity: .55; background: var(--bmc-cream); box-shadow: none; }
.bmc-vnum {
	flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; color: #fff; background: var(--bmc-secondary);
}
.bmc-v-done .bmc-vnum { background: var(--bmc-primary); }
.bmc-v-locked .bmc-vnum { background: #cbb8ab; }
.bmc-vtitle { flex: 1; font-weight: 700; color: var(--bmc-secondary); }
.bmc-vitem .bmc-btn { margin-left: auto; padding: .5rem 1.1rem; }
.bmc-vstate { margin-left: auto; font-weight: 800; color: var(--bmc-primary); font-size: .85rem; }
.bmc-vlock { margin-left: auto; font-size: 1.2rem; }
.bmc-vplay-again { margin-left: .5rem; background: transparent; border: 1px solid var(--bmc-border); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; color: var(--bmc-secondary); font-size: 1.1rem; }
.bmc-vplay-again:hover { background: var(--bmc-cream-2); }

/* Pop-up del vídeo */
.bmc-vmodal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 4vh 16px; }
.bmc-vmodal.open { display: flex; }
.bmc-vmodal-overlay { position: fixed; inset: 0; background: rgba(31,110,107,.55); backdrop-filter: blur(4px); }
.bmc-vmodal-box { position: relative; z-index: 1; width: 100%; max-width: 900px; background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.bmc-vmodal-close { position: absolute; top: -6px; right: 6px; z-index: 3; background: transparent; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.bmc-vplayer-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.bmc-vplayer-wrap iframe, .bmc-vplayer-wrap video, .bmc-vplayer-wrap > div { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.bmc-vmodal-note { margin: 0; padding: .7rem 1rem; background: #fff; color: var(--bmc-secondary); font-weight: 700; font-size: .9rem; text-align: center; }
/* El cursor personalizado de la landing no debe ocultarse en el pop-up */
.bmc-vmodal, .bmc-vmodal * { cursor: auto !important; }
.bmc-vmodal-close, .bmc-vmodal-overlay { cursor: pointer !important; }

/* ---- Vídeo del módulo ---- */
.bmc-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 1.4rem;
	border-radius: var(--bmc-radius);
	overflow: hidden;
	background: #000;
	box-shadow: 0 8px 24px rgba(44, 59, 56, .12);
}
.bmc-video iframe,
.bmc-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.bmc-empty-content { text-align: center; opacity: .6; padding: 1.5rem; }

/* ---- Vista de un módulo ---- */
.bmc-course-content {
	background: var(--bmc-card);
	border: 1px solid var(--bmc-border);
	border-radius: var(--bmc-radius);
	padding: 1.8rem;
	box-shadow: 0 6px 18px rgba(44, 59, 56, .05);
}
.bmc-module-footer { margin-top: 2.2rem; }
.bmc-module-footer > h3 { font-size: 1.5rem; text-align: center; margin-bottom: 1.2rem; }
.bmc-block {
	padding: 1.5rem;
	border-radius: var(--bmc-radius);
	margin-bottom: 1.2rem;
	background: var(--bmc-cream);
	border: 1px solid var(--bmc-border);
}
.bmc-block h4 { margin-top: 0; font-size: 1.15rem; }
.bmc-block textarea,
.bmc-block select,
.bmc-login input[type=text],
.bmc-login input[type=password] {
	width: 100%;
	padding: .85rem 1rem;
	border: 1px solid var(--bmc-border);
	border-radius: 12px;
	font: inherit;
	background: #fff;
	color: var(--bmc-ink);
	box-sizing: border-box;
}
.bmc-block textarea:focus,
.bmc-block select:focus { outline: 2px solid var(--bmc-primary); border-color: var(--bmc-primary); }
.bmc-done { color: var(--bmc-secondary); font-weight: 700; }
.bmc-muted { opacity: .6; }

/* ---- Avisos ---- */
.bmc-notice {
	padding: 1rem 1.2rem;
	border-radius: 14px;
	margin-bottom: 1.3rem;
	font-weight: 700;
}
.bmc-notice-ok { background: var(--bmc-secondary); color: #fff; }
.bmc-notice-error { background: #f7ddd4; color: #b4553a; }

.bmc-success { color: var(--bmc-secondary); font-weight: 800; }
.bmc-next {
	margin-top: 1.8rem;
	padding: 1.8rem;
	background: linear-gradient(160deg, var(--bmc-cream), var(--bmc-cream-2));
	border-radius: var(--bmc-radius);
	text-align: center;
}
.bmc-next p { font-size: 1.05rem; }
.bmc-locked-msg {
	text-align: center;
	padding: 3rem 1.5rem;
	background: var(--bmc-cream);
	border-radius: var(--bmc-radius);
}

/* ---- Login ---- */
.bmc-login { text-align: center; }
.bmc-login form { max-width: 400px; margin: 1rem auto; text-align: left; background: var(--bmc-cream); padding: 1.8rem; border-radius: var(--bmc-radius); }
.bmc-login .login-username,
.bmc-login .login-password { margin-bottom: 1rem; }
.bmc-login .login-submit .button,
.bmc-login .button {
	width: 100%;
	background: var(--bmc-primary) !important;
	border-color: var(--bmc-primary) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: .7rem !important;
	font-weight: 700 !important;
}

.bmc-logout, .bmc-back, .bmc-login-link { margin-top: 1.8rem; }
.bmc-back a, .bmc-login-link a, .bmc-lost a { color: var(--bmc-secondary); font-weight: 600; }
