/**
 * Estudio Ideas - Protección de Contenido
 * Estilos del modal de protección (frontend).
 * @version 3.9
 */

html.eipc-no-select,
html.eipc-no-select body {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.eipc-overlay {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: rgba(0, 0, 0, var(--eipc-bg-opacity, 0.55)) !important;
	-webkit-backdrop-filter: blur(6px) !important;
	backdrop-filter: blur(6px) !important;
	padding: 20px !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.eipc-overlay[hidden] {
	display: none !important;
}

.eipc-modal {
	position: relative !important;
	width: 100% !important;
	max-width: var(--eipc-modal-width, 420px) !important;
	background: var(--eipc-color-bg, #fff) !important;
	color: var(--eipc-color-text, #1d1d1f) !important;
	border: 1px solid var(--eipc-color-border, #e5e5e7) !important;
	border-radius: var(--eipc-border-radius, 18px) !important;
	box-shadow: var(--eipc-shadow, 0 20px 60px rgba(0, 0, 0, .25)) !important;
	padding: 32px 28px 24px !important;
	text-align: center !important;
	font-family: var(--eipc-font-family, inherit) !important;
	font-size: var(--eipc-font-size, 16px) !important;
	box-sizing: border-box !important;
	margin: 0 !important;
}

.eipc-modal__logo {
	max-height: 48px !important;
	margin-bottom: 16px !important;
	display: block !important;
	width: auto !important;
}

.eipc-modal__title {
	margin: 0 0 12px !important;
	font-size: 1.25em !important;
	font-weight: 600 !important;
	color: var(--eipc-color-title, #1d1d1f) !important;
	padding: 0 !important;
}

.eipc-modal__text {
	margin: 0 0 20px !important;
	line-height: 1.5 !important;
	opacity: .85 !important;
	padding: 0 !important;
}

.eipc-modal__link {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-block !important;
	background: transparent !important;
	border: 1.5px solid var(--eipc-color-button, #e6007e) !important;
	border-radius: calc(var(--eipc-border-radius, 18px) / 2.2) !important;
	color: var(--eipc-color-button, #e6007e) !important;
	font-family: inherit !important;
	font-size: .9em !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
	text-decoration: none !important;
	padding: 9px 20px !important;
	margin: 4px 0 0 !important;
	transition: background-color .15s ease, color .15s ease !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.eipc-modal__link:hover,
.eipc-modal__link:focus-visible {
	background: var(--eipc-color-button, #e6007e);
	color: #fff;
}

.eipc-modal__close {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	z-index: 10 !important;
	width: 32px !important;
	height: 32px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: none !important;
	border: none !important;
	border-radius: 50% !important;
	font-family: inherit !important;
	font-size: 24px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	color: var(--eipc-color-text, #1d1d1f) !important;
	opacity: .5 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.eipc-modal__close:hover,
.eipc-modal__close:focus-visible {
	opacity: 1;
	background: rgba(127, 127, 127, .12);
}

.eipc-modal__footer {
	margin-top: 22px !important;
	padding-top: 14px !important;
	border-top: 1px solid var(--eipc-color-border, #e5e5e7) !important;
	font-size: .8em !important;
	opacity: .6 !important;
}

.eipc-modal__footer a {
	color: inherit;
}

.eipc-view {
	transition: opacity .16s ease, transform .16s ease !important;
	opacity: 1 !important;
	transform: scale(1) !important;
}

.eipc-view--leaving {
	opacity: 0 !important;
	transform: scale(.96) !important;
}

.eipc-auth-form {
	margin-top: 16px !important;
	width: 100% !important;
	max-width: var(--eipc-auth-width, 280px) !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 8px !important;
	background: var(--eipc-auth-bg, #f5f5f7) !important;
	color: var(--eipc-auth-text, #1d1d1f) !important;
	border: none !important;
	border-radius: var(--eipc-auth-radius, 14px) !important;
	box-shadow: var(--eipc-auth-shadow, none) !important;
	font-family: var(--eipc-auth-font, inherit) !important;
	font-size: var(--eipc-auth-size, 15px) !important;
	padding: 18px 16px !important;
	box-sizing: border-box !important;
}

.eipc-auth-form[hidden] {
	display: none !important;
}

.eipc-auth-form__label {
	font-size: .85em !important;
	color: var(--eipc-color-title, inherit) !important;
	opacity: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.eipc-auth-form__digits {
	display: flex !important;
	gap: 8px !important;
	justify-content: center !important;
}

.eipc-auth-form__digit {
	width: 44px !important;
	height: 52px !important;
	text-align: center !important;
	font-size: 1.3em !important;
	padding: 0 !important;
	border-radius: 10px !important;
	border: 1.5px solid var(--eipc-auth-border, #e5e5e7) !important;
	font-family: inherit !important;
	background: rgba(127, 127, 127, .08) !important;
	color: var(--eipc-auth-text, #1d1d1f) !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	transition: border-color .15s ease, box-shadow .15s ease !important;
}

.eipc-auth-form__digit:focus {
	outline: none !important;
	border-color: var(--eipc-auth-accent, #e6007e) !important;
	box-shadow: 0 0 0 3px rgba(230, 0, 126, .18) !important;
}

.eipc-auth-form__button {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-block !important;
	margin-top: 4px !important;
	background: var(--eipc-auth-accent, #e6007e) !important;
	color: #fff !important;
	border: none !important;
	border-radius: calc(var(--eipc-auth-radius, 14px) / 1.8) !important;
	padding: 9px 20px !important;
	font-family: inherit !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: transform .15s ease, opacity .15s ease !important;
	box-sizing: border-box !important;
	text-shadow: none !important;
}

.eipc-auth-form__button:hover {
	opacity: .9;
	transform: translateY(-1px);
}

.eipc-auth-form__error {
	color: #d10054 !important;
	font-size: .85em !important;
	margin: 4px 0 0 !important;
	padding: 0 !important;
}

.eipc-auth-form__error[hidden] {
	display: none !important;
}

/* Ocultar Turnstile de Cloudflare dentro del modal (no crítico) */
#eipc-modal-overlay .cf-turnstile,
#eipc-modal-overlay [data-cf-beacon],
#eipc-auth-form .cf-turnstile,
.eipc-modal .cf-turnstile {
	display: none !important;
}

/* Efectos de entrada — aplicados directamente sobre la caja que los usa (modal o caja de autorización) */
.eipc-anim-fade {
	animation: eipc-fx-fade .22s ease-out;
}

.eipc-anim-scale {
	animation: eipc-fx-scale .18s ease-out;
}

.eipc-anim-slide-up {
	animation: eipc-fx-slide-up .22s ease-out;
}

.eipc-anim-slide-down {
	animation: eipc-fx-slide-down .22s ease-out;
}

.eipc-anim-slide-left {
	animation: eipc-fx-slide-left .22s ease-out;
}

.eipc-anim-slide-right {
	animation: eipc-fx-slide-right .22s ease-out;
}

.eipc-anim-bounce {
	animation: eipc-fx-bounce .5s cubic-bezier(.28, .84, .42, 1);
}

.eipc-anim-flip {
	animation: eipc-fx-flip .45s ease-out;
	transform-style: preserve-3d;
}

.eipc-anim-rotate {
	animation: eipc-fx-rotate .35s ease-out;
}

.eipc-anim-zoom {
	animation: eipc-fx-zoom .3s ease-out;
}

.eipc-anim-blur {
	animation: eipc-fx-blur .3s ease-out;
}

.eipc-anim-swing {
	animation: eipc-fx-swing .5s ease-out;
	transform-origin: top center;
}

.eipc-anim-pop {
	animation: eipc-fx-pop .4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes eipc-fx-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes eipc-fx-scale {
	from { opacity: 0; transform: scale(.92); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes eipc-fx-slide-up {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes eipc-fx-slide-down {
	from { opacity: 0; transform: translateY(-24px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes eipc-fx-slide-left {
	from { opacity: 0; transform: translateX(40px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes eipc-fx-slide-right {
	from { opacity: 0; transform: translateX(-40px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes eipc-fx-bounce {
	0%   { opacity: 0; transform: scale(.3); }
	50%  { opacity: 1; transform: scale(1.05); }
	70%  { transform: scale(.95); }
	100% { transform: scale(1); }
}

@keyframes eipc-fx-flip {
	from { opacity: 0; transform: rotateX(90deg); }
	to   { opacity: 1; transform: rotateX(0); }
}

@keyframes eipc-fx-rotate {
	from { opacity: 0; transform: rotate(-8deg) scale(.9); }
	to   { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes eipc-fx-zoom {
	from { opacity: 0; transform: scale(1.3); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes eipc-fx-blur {
	from { opacity: 0; filter: blur(8px); }
	to   { opacity: 1; filter: blur(0); }
}

@keyframes eipc-fx-swing {
	0%   { opacity: 0; transform: rotate(-10deg); }
	50%  { transform: rotate(5deg); }
	100% { opacity: 1; transform: rotate(0); }
}

@keyframes eipc-fx-pop {
	from { opacity: 0; transform: scale(.6); }
	to   { opacity: 1; transform: scale(1); }
}

/* Modo oscuro automático */
@media (prefers-color-scheme: dark) {
	.eipc-modal {
		background: #1c1c1e;
		color: #f5f5f7;
		border-color: #3a3a3c;
	}

	.eipc-modal__footer {
		border-top-color: #3a3a3c;
	}
}

@media (max-width: 480px) {
	.eipc-modal {
		padding: 26px 20px 18px !important;
		font-size: 15px !important;
	}
}
