/* Popups de iniciar sesión, registrarse e inscribirse · estilo del theme nuevo (v1.25) */
.cdh-inscripcion-modal,
.cdh-registro-modal{
	--m-r:var(--cdh-primary,#d71920);--m-r2:var(--cdh-primary-dark,#b41218);--m-ink:var(--cdh-dark,#141414);
	--m-muted:var(--cdh-muted,#6b6b72);--m-bg:var(--cdh-bg,#f6f5f2);--m-line:#e7e5e0;
	--m-fd:var(--cdh-font-display,'Barlow Condensed',sans-serif);--m-fs:var(--cdh-display-style,italic);--m-fw:var(--cdh-display-weight,800);
	font-family:var(--cdh-font-body,Inter,sans-serif);
}
.cdh-inscripcion-modal *,.cdh-registro-modal *{box-sizing:border-box}

/* fondo */
.cdh-inscripcion-modal__backdrop,
.cdh-registro-modal__backdrop{background:rgba(10,10,10,.74);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* tarjeta */
body .cdh-inscripcion-modal__dialog,
body .cdh-registro-modal__dialog,
body #cdh-registro-modal .cdh-registro-modal__dialog,
body .cdh-login-modal .cdh-inscripcion-modal__dialog{
	background:#fff;border:0;border-radius:28px;padding:0;overflow:hidden;
	box-shadow:0 40px 90px rgba(0,0,0,.45);position:relative;
}
/* banda superior roja con icono */
body .cdh-inscripcion-modal__dialog::before,
body .cdh-registro-modal__dialog::before{
	content:"";display:block;height:88px;
	background:radial-gradient(240px 120px at 85% -10%,rgba(255,255,255,.28),transparent 70%),linear-gradient(120deg,var(--m-r),var(--m-r2));
}
body .cdh-inscripcion-modal__dialog::after,
body .cdh-registro-modal__dialog::after{
	content:"\1F6B4";position:absolute;left:28px;top:56px;width:64px;height:64px;border-radius:50%;
	background:#fff;border:4px solid #fff;box-shadow:0 10px 26px rgba(0,0,0,.28);
	display:grid;place-items:center;font-size:1.7rem;line-height:1;z-index:3;
}
body #cdh-registro-modal .cdh-registro-modal__dialog::after{content:"\1F44B"}
body #cdh-ciclo-login-modal .cdh-inscripcion-modal__dialog::after,
body .cdh-login-modal .cdh-inscripcion-modal__dialog::after{content:"\1F511"}

/* contenido */
body #cdh-inscripcion-modal .cdh-inscripcion-modal__content,
body #cdh-registro-modal .cdh-registro-modal__content,
body .cdh-login-modal .cdh-inscripcion-modal__content{
	padding:46px 28px 28px;max-height:calc(100vh - 48px - 88px);overflow-y:auto;width:100%;
}
.cdh-inscripcion-modal__content h3,
.cdh-registro-modal__content h3,
body #cdh-registro-modal .cdh-registro-modal__content h3{
	font-family:var(--m-fd);font-style:var(--m-fs);font-weight:var(--m-fw);text-transform:uppercase;
	font-size:clamp(1.9rem,5vw,2.4rem);line-height:1;letter-spacing:.5px;color:var(--m-ink);margin:0 0 10px;
}
.cdh-inscripcion-modal__text,
.cdh-registro-modal__text,
body #cdh-registro-modal .cdh-registro-modal__text{color:var(--m-muted);font-size:.95rem;line-height:1.55;margin:0 0 20px}
.cdh-inscripcion-modal__text strong,.cdh-registro-modal__text strong{color:var(--m-ink)}

/* campos */
.cdh-inscripcion-form,.cdh-registro-form{display:grid;gap:12px}
.cdh-inscripcion-form__label,
.cdh-registro-form__label,
body #cdh-registro-modal .cdh-registro-form__label{
	display:block;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--m-ink);margin:0 0 6px;
}
.cdh-inscripcion-form__input,
.cdh-registro-form__input,
body #cdh-registro-modal .cdh-registro-form__input,
.cdh-login-modal input[type="email"],
.cdh-login-modal input[type="text"],
.cdh-login-modal input[type="password"],
.cdh-password-field__input{
	width:100%;min-height:50px;padding:13px 16px;border:1px solid var(--m-line);border-radius:14px;background:var(--m-bg);
	font:600 1rem var(--cdh-font-body,Inter,sans-serif);color:var(--m-ink);box-shadow:none;transition:.15s;
}
.cdh-inscripcion-form__input:focus,
.cdh-registro-form__input:focus,
body #cdh-registro-modal .cdh-registro-form__input:focus,
.cdh-login-modal input:focus{
	outline:0;border-color:var(--m-r);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--cdh-primary,#d71920) 14%,transparent);
}
.cdh-registro-form__hint,body #cdh-registro-modal .cdh-registro-form__hint{font-size:.78rem;color:var(--m-muted);margin-top:6px}
.cdh-registro-form__grid,body #cdh-registro-modal .cdh-registro-form__grid{gap:14px}

/* botón principal */
body .cdh-modal__cta,
body #cdh-registro-modal .cdh-modal__cta,
body #cdh-registro-modal .cdh-registro-form__submit{
	width:100%;min-height:54px;padding:15px 24px;border:0;border-radius:99px;background:var(--m-r);color:#fff;
	font:800 .88rem var(--cdh-font-body,Inter,sans-serif);letter-spacing:.05em;text-transform:uppercase;
	box-shadow:0 14px 28px color-mix(in srgb,var(--cdh-primary,#d71920) 32%,transparent);transition:.15s;margin-top:6px;
}
body .cdh-modal__cta:hover,
body #cdh-registro-modal .cdh-registro-form__submit:hover{background:var(--m-r2);transform:translateY(-1px);box-shadow:0 18px 32px color-mix(in srgb,var(--cdh-primary,#d71920) 38%,transparent)}
body .cdh-modal__cta[disabled]{opacity:.6;cursor:wait;transform:none}

/* código de 6 dígitos */
.cdh-code-inputs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:6px 0 14px}
.cdh-code-input{
	width:100%;height:62px;border:1px solid var(--m-line);border-radius:14px;background:var(--m-bg);
	font:700 2rem var(--m-fd);font-style:var(--m-fs);text-align:center;color:var(--m-ink);padding:0;box-shadow:none;
}
.cdh-code-input:focus{border-color:var(--m-r);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--cdh-primary,#d71920) 14%,transparent);transform:none}

/* enlaces secundarios */
.cdh-inscripcion-modal__links,.cdh-login-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.cdh-inscripcion-modal__links a,.cdh-login-links a{
	display:inline-flex;align-items:center;border:1px solid var(--m-line);background:#fff;color:var(--m-ink);
	border-radius:99px;padding:8px 14px;font-weight:700;font-size:.8rem;text-decoration:none;transition:.15s;
}
.cdh-inscripcion-modal__links a:hover,.cdh-login-links a:hover{border-color:var(--m-ink);color:var(--m-ink)}

/* cerrar */
body .cdh-inscripcion-modal__close,
body .cdh-registro-modal__close{
	position:absolute;top:16px;right:16px;z-index:5;width:40px;height:40px;border-radius:50%;border:0;
	background:rgba(255,255,255,.22);color:#fff;font-size:1.5rem;line-height:1;display:grid;place-items:center;padding:0;cursor:pointer;transition:.15s;
}
body .cdh-inscripcion-modal__close:hover,body .cdh-registro-modal__close:hover{background:rgba(255,255,255,.4)}

/* mensajes */
.cdh-ciclo-message,.cdh-code-inline-message{border-radius:14px;padding:12px 14px;font-size:.88rem;font-weight:600}
.cdh-ciclo-message.is-success{background:#e3f4ea;color:#1d7a43}
.cdh-ciclo-message.is-error{background:#fde4e2;color:#b41218}

/* pantalla final */
.cdh-inscripcion-final-state{text-align:center}
.cdh-inscripcion-final-state__icon{box-shadow:0 12px 26px rgba(0,0,0,.14)}
.cdh-inscripcion-final-state__title{font-family:var(--m-fd);font-style:var(--m-fs);font-weight:var(--m-fw);text-transform:uppercase;font-size:2rem;line-height:1;letter-spacing:.5px;color:var(--m-ink)}
.cdh-inscripcion-final-state__text{color:var(--m-muted)}

/* foto de perfil del registro */
.cdh-registro-profile-image__placeholder{background:var(--m-bg);color:var(--m-muted);border:1px dashed var(--m-line)}

@media(max-width:680px){
	body .cdh-inscripcion-modal__dialog,
	body .cdh-registro-modal__dialog,
	body #cdh-registro-modal .cdh-registro-modal__dialog,
	body .cdh-login-modal .cdh-inscripcion-modal__dialog{border-radius:22px;width:100%;max-width:100%}
	body .cdh-inscripcion-modal__dialog::before,body .cdh-registro-modal__dialog::before{height:72px}
	body .cdh-inscripcion-modal__dialog::after,body .cdh-registro-modal__dialog::after{left:20px;top:44px;width:58px;height:58px;font-size:1.5rem}
	body #cdh-inscripcion-modal .cdh-inscripcion-modal__content,
	body #cdh-registro-modal .cdh-registro-modal__content,
	body .cdh-login-modal .cdh-inscripcion-modal__content{padding:42px 20px 22px;max-height:calc(100vh - 24px - 72px)}
	.cdh-code-inputs{gap:6px}
	.cdh-code-input{height:54px;font-size:1.7rem;border-radius:12px}
}

/* cerrar en el popup de iniciar sesión (tiene reglas propias más específicas) */
body .cdh-login-modal .cdh-inscripcion-modal__close{
	top:16px;right:16px;background:rgba(255,255,255,.22);color:#fff;width:40px;height:40px;border-radius:50%;font-size:1.5rem;line-height:1;
}
body .cdh-login-modal .cdh-inscripcion-modal__close:hover{background:rgba(255,255,255,.4)}


/* registro: nombre y apellido + email en una fila, teléfono y fecha, y contraseña */
.cdh-registro-form__field[hidden]{display:none}
#cdh-registro-modal .cdh-registro-form__hint.is-error{color:#b41218;font-weight:700}
#cdh-registro-modal .cdh-registro-form__hint.is-ok{color:#1d7a43;font-weight:700}

/* "Crear cuenta": gris hasta que el formulario está completo; recién ahí se pone rojo */
#cdh-registro-modal .cdh-registro-form__submit:disabled{background:#c8c7c2;color:#fff;box-shadow:none;cursor:not-allowed;opacity:1;transform:none}
#cdh-registro-modal .cdh-registro-form__submit:disabled:hover{background:#c8c7c2;box-shadow:none;transform:none}

/* editar cuenta: el email se muestra pero no se puede cambiar (registro-email-bloqueado) */
body #cdh-registro-modal #cdh-registro-email[readonly]{background:#ecebe7;color:var(--m-muted);cursor:not-allowed;border-style:dashed;box-shadow:none}

/* Registro compacto (v1.69.2): tipografía y cajas más chicas para que el formulario entre sin scroll */
body #cdh-registro-modal .cdh-registro-modal__dialog::before{height:56px}
body #cdh-registro-modal .cdh-registro-modal__dialog::after{left:22px;top:30px;width:50px;height:50px;font-size:1.3rem}
body #cdh-registro-modal .cdh-registro-modal__close{top:10px;right:12px;width:34px;height:34px;font-size:1.25rem}
body #cdh-registro-modal .cdh-registro-modal__content{padding:30px 24px 18px;max-height:calc(100vh - 24px - 56px);max-height:calc(100dvh - 24px - 56px)}
body #cdh-registro-modal .cdh-registro-modal__content h3{font-size:clamp(1.5rem,4vw,1.8rem);margin:0 0 4px}
body #cdh-registro-modal .cdh-registro-modal__text{font-size:.8rem;line-height:1.4;margin:0 0 12px}
body #cdh-registro-modal .cdh-registro-form{gap:8px}
body #cdh-registro-modal .cdh-registro-form__grid{gap:9px 12px}
body #cdh-registro-modal .cdh-registro-form__label{font-size:.62rem;letter-spacing:.1em;margin:0 0 3px}
body #cdh-registro-modal .cdh-registro-form__input{min-height:38px;padding:8px 12px;border-radius:11px;font-size:.85rem}
body #cdh-registro-modal .cdh-registro-form__input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--cdh-primary,#d71920) 14%,transparent)}
body #cdh-registro-modal .cdh-registro-form__hint{font-size:.68rem;margin-top:0;line-height:1.3}
body #cdh-registro-modal .cdh-registro-tyc{padding:8px 10px;gap:10px;border-radius:12px}
body #cdh-registro-modal .cdh-registro-tyc__btn{min-height:34px;padding:6px 14px;font-size:.68rem}
body #cdh-registro-modal .cdh-registro-tyc__txt{font-size:.7rem;line-height:1.3;flex-basis:140px}
body #cdh-registro-modal .cdh-registro-form__submit{min-height:44px;padding:11px 20px;font-size:.78rem;margin-top:2px}
body #cdh-registro-modal .cdh-ciclo-message{padding:8px 12px;font-size:.78rem;border-radius:11px}
@media(max-width:680px){
	body #cdh-registro-modal .cdh-registro-modal__dialog::before{height:48px}
	body #cdh-registro-modal .cdh-registro-modal__dialog::after{left:16px;top:24px;width:44px;height:44px}
	body #cdh-registro-modal .cdh-registro-modal__content{padding:28px 16px 16px;max-height:calc(100vh - 16px - 48px);max-height:calc(100dvh - 16px - 48px)}
}

/* Iniciar sesión, recuperar contraseña, código y nueva contraseña compactos (v1.69.9) */
body #cdh-ciclo-login-modal .cdh-inscripcion-modal__dialog::before{height:56px}
body #cdh-ciclo-login-modal .cdh-inscripcion-modal__dialog::after{left:22px;top:30px;width:50px;height:50px;font-size:1.3rem}
body #cdh-ciclo-login-modal .cdh-inscripcion-modal__close{top:10px;right:12px;width:34px;height:34px;font-size:1.25rem}
body #cdh-ciclo-login-modal .cdh-inscripcion-modal__content{padding:30px 24px 18px;max-height:calc(100vh - 24px - 56px);max-height:calc(100dvh - 24px - 56px)}
body #cdh-ciclo-login-modal .cdh-inscripcion-modal__content h3{font-size:clamp(1.5rem,4vw,1.8rem);margin:0 0 4px}
body #cdh-ciclo-login-modal .cdh-inscripcion-modal__text{font-size:.8rem;line-height:1.4;margin:0 0 12px}
body #cdh-ciclo-login-modal .cdh-inscripcion-form{gap:6px}
body #cdh-ciclo-login-modal .cdh-inscripcion-form__label{font-size:.62rem;letter-spacing:.1em;margin:4px 0 2px}
body #cdh-ciclo-login-modal input[type="email"],
body #cdh-ciclo-login-modal input[type="text"],
body #cdh-ciclo-login-modal input[type="password"],
body #cdh-ciclo-login-modal .cdh-inscripcion-form__input,
body #cdh-ciclo-login-modal .cdh-password-field__input{min-height:38px;height:auto;padding:8px 12px;border-radius:11px;font-size:.85rem}
body #cdh-ciclo-login-modal .cdh-password-field__input{padding-right:42px}
body #cdh-ciclo-login-modal input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--cdh-primary,#d71920) 14%,transparent)}
body #cdh-ciclo-login-modal .cdh-password-toggle{width:30px;height:30px;min-height:0;padding:0}
body #cdh-ciclo-login-modal .cdh-password-toggle svg{width:18px;height:18px}
body #cdh-ciclo-login-modal .cdh-modal__cta,
body #cdh-ciclo-login-modal .cdh-inscripcion-form__submit{min-height:44px;padding:11px 20px;font-size:.78rem;margin-top:6px}
body #cdh-ciclo-login-modal .cdh-ciclo-message,
body #cdh-ciclo-login-modal .cdh-code-inline-message{padding:8px 12px;font-size:.78rem;border-radius:11px}
body #cdh-ciclo-login-modal .cdh-ciclo-message:empty{display:none}
body #cdh-ciclo-login-modal .cdh-login-help{margin-top:6px}
body #cdh-ciclo-login-modal .cdh-login-help a{font-size:.78rem}
body #cdh-ciclo-login-modal .cdh-login-links{margin-top:10px;gap:6px}
body #cdh-ciclo-login-modal .cdh-login-links a{padding:6px 12px;font-size:.72rem}
body #cdh-ciclo-login-modal .cdh-code-inputs{gap:8px;margin:2px 0 8px}
body #cdh-ciclo-login-modal .cdh-code-input{height:46px;font-size:1.5rem;border-radius:11px}
body #cdh-ciclo-login-modal .cdh-login-password-note{font-size:.7rem;line-height:1.35;margin-top:8px}
@media(max-width:680px){
	body #cdh-ciclo-login-modal .cdh-inscripcion-modal__dialog::before{height:48px}
	body #cdh-ciclo-login-modal .cdh-inscripcion-modal__dialog::after{left:16px;top:24px;width:44px;height:44px}
	body #cdh-ciclo-login-modal .cdh-inscripcion-modal__content{padding:28px 16px 16px;max-height:calc(100vh - 16px - 48px);max-height:calc(100dvh - 16px - 48px)}
	body #cdh-ciclo-login-modal .cdh-code-inputs{gap:5px}
	body #cdh-ciclo-login-modal .cdh-code-input{height:42px;font-size:1.3rem}
}

/* Ojito de la contraseña: cerrado por defecto (clave oculta); abierto al presionarlo (clave visible) */
.cdh-password-toggle .cdh-password-toggle__icon--show{display:none}
.cdh-password-toggle .cdh-password-toggle__icon--hide{display:inline-flex}
.cdh-password-toggle.is-visible .cdh-password-toggle__icon--show{display:inline-flex}
.cdh-password-toggle.is-visible .cdh-password-toggle__icon--hide{display:none}
body #cdh-registro-modal .cdh-password-field{position:relative}
body #cdh-registro-modal .cdh-password-field__input,
body #cdh-registro-modal .cdh-password-field .cdh-registro-form__input{padding-right:42px}
body #cdh-registro-modal .cdh-password-toggle{width:30px;height:30px;min-height:0;padding:0;margin:0;right:8px;background:transparent;box-shadow:none}
body #cdh-registro-modal .cdh-password-toggle svg{width:18px;height:18px}

/* Popup "Inscribirte a la salida" (email) y código recibido compactos (v1.69.21) */
body #cdh-inscripcion-modal .cdh-inscripcion-modal__dialog::before{height:56px}
body #cdh-inscripcion-modal .cdh-inscripcion-modal__dialog::after{left:22px;top:30px;width:50px;height:50px;font-size:1.3rem}
body #cdh-inscripcion-modal .cdh-inscripcion-modal__close{top:10px;right:12px;width:34px;height:34px;font-size:1.25rem}
body #cdh-inscripcion-modal .cdh-inscripcion-modal__content{padding:30px 24px 18px;max-height:calc(100vh - 24px - 56px);max-height:calc(100dvh - 24px - 56px)}
body #cdh-inscripcion-modal .cdh-inscripcion-modal__content h3{font-size:clamp(1.5rem,4vw,1.8rem);margin:0 0 4px}
body #cdh-inscripcion-modal .cdh-inscripcion-modal__text{font-size:.8rem;line-height:1.4;margin:0 0 12px}
body #cdh-inscripcion-modal .cdh-inscripcion-form{gap:6px}
body #cdh-inscripcion-modal .cdh-inscripcion-form__label{font-size:.62rem;letter-spacing:.1em;margin:4px 0 2px}
body #cdh-inscripcion-modal input[type="email"],
body #cdh-inscripcion-modal input[type="text"],
body #cdh-inscripcion-modal .cdh-inscripcion-form__input{min-height:38px;height:auto;padding:8px 12px;border-radius:11px;font-size:.85rem}
body #cdh-inscripcion-modal input:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--cdh-primary,#d71920) 14%,transparent)}
body #cdh-inscripcion-modal .cdh-modal__cta,
body #cdh-inscripcion-modal .cdh-inscripcion-form__submit{min-height:44px;padding:11px 20px;font-size:.78rem;margin-top:6px}
body #cdh-inscripcion-modal .cdh-ciclo-message,
body #cdh-inscripcion-modal .cdh-code-inline-message{padding:8px 12px;font-size:.78rem;border-radius:11px}
body #cdh-inscripcion-modal .cdh-ciclo-message:empty{display:none}
body #cdh-inscripcion-modal .cdh-inscripcion-modal__links{margin-top:10px;gap:6px}
body #cdh-inscripcion-modal .cdh-inscripcion-modal__links a{padding:6px 12px;font-size:.72rem}
body #cdh-inscripcion-modal .cdh-code-inputs{gap:8px;margin:2px 0 8px}
body #cdh-inscripcion-modal .cdh-code-input{height:46px;font-size:1.5rem;border-radius:11px}
@media(max-width:680px){
	body #cdh-inscripcion-modal .cdh-inscripcion-modal__dialog::before{height:48px}
	body #cdh-inscripcion-modal .cdh-inscripcion-modal__dialog::after{left:16px;top:24px;width:44px;height:44px}
	body #cdh-inscripcion-modal .cdh-inscripcion-modal__content{padding:28px 16px 16px;max-height:calc(100vh - 16px - 48px);max-height:calc(100dvh - 16px - 48px)}
	body #cdh-inscripcion-modal .cdh-code-inputs{gap:5px}
	body #cdh-inscripcion-modal .cdh-code-input{height:42px;font-size:1.3rem}
}

/* Editar cuenta compacto: foto de perfil, apodo y contraseña (v1.70.3) */
body #cdh-registro-modal .cdh-registro-profile-image{gap:10px}
body #cdh-registro-modal .cdh-registro-profile-image__preview-wrap{width:46px;height:46px}
body #cdh-registro-modal .cdh-registro-profile-image__placeholder{font-size:.6rem}
body #cdh-registro-modal .cdh-registro-profile-image input[type="file"]{font-size:.72rem;min-height:34px;padding:5px 8px;flex:1 1 150px;min-width:0}
body #cdh-registro-modal .cdh-registro-form__field--profile-image .cdh-registro-form__hint{font-size:.66rem;line-height:1.3;margin-top:3px}
body #cdh-registro-modal #cdh-registro-apodo-field .cdh-registro-form__input{min-height:38px}
