/* =========================================================================
   Research Access Verification — aviso obligatorio antes de entrar al sitio
   ========================================================================= */

.vb-gate {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(15, 23, 42, .85);
	backdrop-filter: blur(6px);
	overflow-y: auto;
}
.vb-gate[hidden] { display: none; }

/* Mientras el aviso está abierto, el sitio de fondo no se desplaza. */
body.vb-gate-open { overflow: hidden; }

.vb-gate__panel {
	width: 100%;
	max-width: 52rem;
	margin: auto;
	padding: 4rem 3.6rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
	text-align: center;
}

.vb-gate__seal {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6.4rem;
	height: 6.4rem;
	margin: 0 auto 2rem;
	color: #fff;
	background: linear-gradient(135deg, #ef4444, #dc2626);
	border-radius: 50%;
}
.vb-gate__seal svg { width: 3.2rem; height: 3.2rem; }

.vb-gate__title { font-size: 2.8rem; line-height: 1.2; margin: 0 0 1rem; }
.vb-gate__subtitle { color: var(--muted); font-size: 1.5rem; margin-bottom: 2.8rem; }

.vb-gate__terms {
	padding: 2.4rem;
	margin-bottom: 2.4rem;
	text-align: left;
	background: #fee2e2;
	border-radius: 12px;
}
.vb-gate__terms-lead { font-family: var(--font-h); font-weight: 600; font-size: 1.6rem; margin-bottom: 1.8rem; }

.vb-gate__check {
	display: flex;
	align-items: flex-start;
	gap: 1.2rem;
	margin-bottom: 1.6rem;
	font-size: 1.5rem;
	line-height: 1.5;
	cursor: pointer;
}
.vb-gate__check:last-child { margin-bottom: 0; }
.vb-gate__check input {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	margin-top: .2rem;
	accent-color: var(--accent);
	cursor: pointer;
}

.vb-gate__legal {
	display: flex;
	align-items: flex-start;
	gap: 1.2rem;
	padding: 1.6rem;
	margin-bottom: 2.8rem;
	text-align: left;
	font-size: 1.4rem;
	line-height: 1.5;
	color: #854d0e;
	background: #fefce8;
	border-left: 4px solid #eab308;
	border-radius: 4px;
}
.vb-gate__legal svg { flex-shrink: 0; width: 2rem; height: 2rem; color: #eab308; }

.vb-gate__btn {
	display: block;
	width: 100%;
	padding: 1.6rem;
	margin-bottom: 1.2rem;
	font-family: var(--font-b);
	font-size: 1.6rem;
	font-weight: 700;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .2s ease, opacity .2s ease;
}
.vb-gate__btn:last-child { margin-bottom: 0; }

.vb-gate__btn--enter { color: #fff; background: var(--accent); }
.vb-gate__btn--enter:hover:not(:disabled) { opacity: .9; }
.vb-gate__btn--enter:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }

.vb-gate__btn--exit { color: #374151; background: #e5e7eb; }
.vb-gate__btn--exit:hover { background: #d1d5db; }

@media (max-width: 600px) {
	.vb-gate { padding: 1.2rem; }
	.vb-gate__panel { padding: 3rem 2rem; }
	.vb-gate__title { font-size: 2.4rem; }
}
