.cdh-ciclo-message {
	margin-top: 10px;
	font-size: 14px;
	
}


#cdh-ciclo-login-modal.is-open,
#cdh-registro-modal.is-open,
#cdh-inscripcion-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

#cdh-ciclo-login-modal .cdh-modal__content,
#cdh-registro-modal .cdh-registro-modal__content,
#cdh-inscripcion-modal .cdh-inscripcion-modal__content {
	width: min(100%, 520px);
	max-height: calc(100vh - 48px);
	height: auto;
	min-height: 0;
	margin: 0 !important;
	overflow-y: auto;
}

.cdh-user-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.cdh-user-nav__action,
.cdh-user-nav__logout,
.cdh-user-nav__trigger {
	appearance: none;
	border: 0;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.cdh-user-nav__action:hover,
.cdh-user-nav__logout:hover,
.cdh-user-nav__trigger:hover {
	opacity: .92;
	transform: translateY(-1px);
}

.cdh-user-nav--guest .cdh-user-nav__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	font-weight: 700;
}

.cdh-user-nav__action--login {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255,255,255,.5);
}

.cdh-user-nav__action--register {
	background: #c51317;
	color: #fff;
}

.cdh-user-nav--logged {
	justify-content: flex-end;
}

.cdh-user-nav__trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 5px 12px 5px 6px;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	color: #fff;
	font-weight: 700;
}

.cdh-user-nav__avatar-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255,255,255,.16);
	box-shadow: 0 0 0 2px rgba(255,255,255,.16);
}

.cdh-user-nav__avatar,
.cdh-user-nav__avatar-fallback {
	display: block;
	width: 100%;
	height: 100%;
}

.cdh-user-nav__avatar {
	object-fit: cover;
}

.cdh-user-nav__avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,.88);
}

.cdh-user-nav__avatar-fallback svg {
	display: block;
	width: 22px;
	height: 22px;
}

.cdh-user-nav__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	color: rgba(255,255,255,.82);
}

.cdh-user-nav__chevron svg {
	display: block;
	width: 100%;
	height: 100%;
}
.cdh-user-nav__name {
	line-height: 1;
}


body.cdh-user-menu-open {
	overflow: hidden;
}

.cdh-user-menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s ease;
}

.cdh-user-menu-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.cdh-user-menu-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(150, 0, 0, .86);
	backdrop-filter: blur(5px);
}

.cdh-user-menu-overlay__panel {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	padding: 40px 24px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 1280px;
	margin: 0 auto;
}

.cdh-user-menu__header {
	position: relative;
	margin-bottom: 30px;
	padding-right: 72px;
}

.cdh-user-menu__eyebrow {
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(255,255,255,.7);
	margin-bottom: 12px;
}

.cdh-user-menu__title {
	margin: 0;
	font-size: clamp(30px, 6vw, 68px);
	line-height: .95;
	color: #fff;
}

.cdh-user-menu__close {
	position: absolute;
	top: 0;
	right: 0;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.cdh-user-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.cdh-user-menu__list li {
	margin: 0;
	padding: 0;
}

.cdh-user-menu__list a {
	display: inline-block;
	color: #fff;
	text-decoration: none;
	font-size: clamp(28px, 4vw, 54px);
	font-weight: 800;
	line-height: 1.02;
}

.cdh-user-menu__list a span {
	border-bottom: 2px solid transparent;
	transition: border-color .2s ease, opacity .2s ease;
}

.cdh-user-menu__list a:hover span,
.cdh-user-menu__list a:focus span {
	border-color: rgba(255,255,255,.9);
}

@media (max-width: 767px) {
	.cdh-user-nav {
		gap: 10px;
	}

	.cdh-user-nav__trigger,
	.cdh-user-nav--guest .cdh-user-nav__action {
		width: 100%;
		justify-content: center;
	}

	.cdh-user-menu-overlay__panel {
		padding: 28px 20px 24px;
		justify-content: flex-start;
	}

	.cdh-user-menu__header {
		margin-bottom: 26px;
		padding-right: 64px;
	}

	.cdh-user-menu__list {
		gap: 18px;
	}
}

#cdh-registro-modal .cdh-registro-modal__content { max-height: calc(100vh - 72px); }

/* Front coordinador - toma de asistencia */
.cdh-asistencia {
	max-width: 880px;
	margin: 34px auto;
	padding: 0 16px;
}
.cdh-asistencia__head {
	background: #fff;
	border-radius: 24px;
	padding: 24px;
	box-shadow: 0 16px 42px rgba(0,0,0,.08);
	border: 1px solid rgba(0,0,0,.06);
	margin-bottom: 18px;
}
.cdh-asistencia__eyebrow {
	display: inline-flex;
	background: #d71920;
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 6px 10px;
	margin-bottom: 8px;
}
.cdh-asistencia__head h2 {
	margin: 4px 0 8px;
	font-size: clamp(26px, 4vw, 40px);
	line-height: 1.05;
}
.cdh-asistencia__head p {
	margin: 0;
	color: #555;
}
.cdh-asistencia__back {
	display: inline-flex;
	margin-bottom: 12px;
	font-weight: 800;
	text-decoration: none;
	color: #d71920;
}
.cdh-asistencia__empty,
.cdh-asistencia__locked {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	border-radius: 16px;
	padding: 14px 16px;
	font-weight: 700;
}
.cdh-asistencia__salidas {
	display: grid;
	gap: 12px;
}
.cdh-asistencia__salida {
	display: grid;
	gap: 4px;
	background: #fff;
	border: 1px solid rgba(0,0,0,.07);
	border-radius: 18px;
	padding: 17px 18px;
	text-decoration: none;
	color: #111;
	box-shadow: 0 10px 26px rgba(0,0,0,.06);
}
.cdh-asistencia__salida:hover {
	transform: translateY(-1px);
	color: #111;
}
.cdh-asistencia__salida strong {
	font-size: 18px;
}
.cdh-asistencia__salida small,
.cdh-asistencia__salida span:not(.cdh-asistencia__salida-status) {
	color: #555;
}
.cdh-asistencia__salida-status {
	justify-self: start;
	border-radius: 999px;
	padding: 5px 9px;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.cdh-asistencia__salida-status.is-open {
	background: #fef3c7;
	color: #92400e;
}
.cdh-asistencia__salida-status.is-final {
	background: #dcfce7;
	color: #166534;
}
.cdh-asistencia__counter {
	position: sticky;
	top: 8px;
	z-index: 2;
	background: #151515;
	color: #fff;
	border-radius: 999px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	margin-bottom: 12px;
	box-shadow: 0 12px 25px rgba(0,0,0,.18);
}
.cdh-asistencia__list {
	display: grid;
	gap: 10px;
}
.cdh-asistencia__participant {
	width: 100%;
	border: 0;
	border-radius: 18px;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #f3f4f6;
	color: #111;
	font-weight: 800;
	text-align: left;
	box-shadow: 0 8px 18px rgba(0,0,0,.05);
}
.cdh-asistencia__participant:not(:disabled) {
	cursor: pointer;
}
.cdh-asistencia__participant.is-presente {
	background: #16a34a;
	color: #fff;
}
.cdh-asistencia__participant.is-ausente {
	background: #dc2626;
	color: #fff;
}
.cdh-asistencia__participant.is-pendiente {
	background: #f3f4f6;
	color: #111;
}
.cdh-asistencia__participant-state {
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .05em;
	white-space: nowrap;
}
.cdh-asistencia__submit-wrap {
	margin-top: 18px;
	background: #fff;
	border-radius: 20px;
	padding: 18px;
	box-shadow: 0 12px 30px rgba(0,0,0,.07);
}
.cdh-asistencia__submit {
	width: 100%;
	border: 0;
	border-radius: 999px;
	background: #d71920;
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	padding: 15px 18px;
	cursor: pointer;
}
.cdh-asistencia__submit:disabled {
	opacity: .65;
	cursor: not-allowed;
}
.cdh-asistencia__note {
	font-size: 13px;
	color: #666;
	margin: 10px 0 0;
	text-align: center;
}
.cdh-asistencia__message {
	margin-top: 10px;
	font-weight: 800;
	text-align: center;
}
.cdh-asistencia__message.is-error { color: #b91c1c; }
.cdh-asistencia__message.is-success { color: #166534; }
.cdh-asistencia__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #d71920;
	color: #fff;
	border-radius: 999px;
	padding: 12px 18px;
	font-weight: 900;
	text-decoration: none;
}
@media (max-width: 640px) {
	.cdh-asistencia { margin: 20px auto; padding: 0 12px; }
	.cdh-asistencia__head { padding: 18px; border-radius: 20px; }
	.cdh-asistencia__participant { padding: 15px 14px; border-radius: 16px; }
	.cdh-asistencia__participant-name { font-size: 16px; }
}

/* Mi cuenta + historial */
.cdh-mi-cuenta {
	max-width: 960px;
	margin: 40px auto;
	padding: 0 16px;
}

.cdh-mi-cuenta__card,
.cdh-mi-cuenta__section {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.cdh-mi-cuenta__card {
	padding: 28px;
	display: flex;
	gap: 28px;
	align-items: center;
}

.cdh-mi-cuenta__avatar img,
.cdh-mi-cuenta__avatar-fallback {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #d71920;
	color: #fff;
	font-size: 36px;
	font-weight: 900;
}

.cdh-mi-cuenta__label {
	display: inline-block;
	background: #d71920;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 6px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}

.cdh-mi-cuenta__name {
	margin: 0 0 12px;
	font-size: 30px;
	line-height: 1.1;
}

.cdh-mi-cuenta__data p {
	margin: 4px 0;
	color: #333;
}

.cdh-mi-cuenta__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.cdh-mi-cuenta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 11px 18px;
	background: #d71920;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}

.cdh-mi-cuenta__btn:hover,
.cdh-mi-cuenta__btn:focus {
	color: #fff;
	transform: translateY(-1px);
}

.cdh-mi-cuenta__btn--dark {
	background: #151515;
}

.cdh-mi-cuenta__section {
	margin-top: 22px;
	padding: 22px 26px;
}

.cdh-mi-cuenta__section h3 {
	margin: 0 0 8px;
}

.cdh-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.cdh-stats-grid div {
	background: #f5f5f5;
	border-radius: 16px;
	padding: 16px 12px;
	text-align: center;
}

.cdh-stats-grid strong {
	display: block;
	font-size: 24px;
	line-height: 1.1;
	font-weight: 900;
}

.cdh-stats-grid span {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #666;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.cdh-mi-cuenta__history {
	margin-top: 18px;
}

.cdh-mi-cuenta__history h4 {
	margin: 0 0 10px;
}

.cdh-mi-cuenta__history-item {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.cdh-mi-cuenta__history-item span {
	color: #666;
	font-size: 13px;
	white-space: nowrap;
}

.cdh-mi-cuenta__inscripciones {
	display: grid;
	gap: 14px;
	margin-top: 16px;
}

.cdh-mi-cuenta__inscripcion {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: center;
	padding: 16px 18px;
	border-radius: 18px;
	background: #fafafa;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.cdh-mi-cuenta__inscripcion.is-past {
	opacity: .65;
}

.cdh-mi-cuenta__inscripcion h4 {
	margin: 7px 0 6px;
	font-size: 18px;
	line-height: 1.25;
}

.cdh-mi-cuenta__inscripcion p {
	margin: 2px 0;
	color: #444;
	font-size: 14px;
}

.cdh-mi-cuenta__inscripcion-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 5px 9px;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.cdh-mi-cuenta__inscripcion-badge.is-confirmed {
	background: #dcfce7;
	color: #166534;
}

.cdh-mi-cuenta__inscripcion-badge.is-waiting {
	background: #fef3c7;
	color: #92400e;
}

.cdh-mi-cuenta__btn--small {
	padding: 8px 13px;
	font-size: 13px;
	white-space: nowrap;
}

.cdh-mi-cuenta--guest {
	background: #fff;
	border-radius: 20px;
	padding: 28px;
	text-align: center;
}

@media (max-width: 680px) {
	.cdh-mi-cuenta__card {
		flex-direction: column;
		text-align: center;
		padding: 24px 18px;
	}

	.cdh-mi-cuenta__actions {
		justify-content: center;
	}

	.cdh-mi-cuenta__name {
		font-size: 24px;
	}

	.cdh-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cdh-mi-cuenta__history-item,
	.cdh-mi-cuenta__inscripcion {
		flex-direction: column;
		align-items: flex-start;
	}

	.cdh-mi-cuenta__history-item span {
		white-space: normal;
	}

	.cdh-mi-cuenta__inscripcion-actions,
	.cdh-mi-cuenta__btn--small {
		width: 100%;
	}
}
