/* NetStudio Demo Popup */
.nsdp {
	--nsdp-primary: #56634e;
	--nsdp-accent: #b99d75;
	--nsdp-text: #1d211b;
	--nsdp-muted: #5f625c;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: inherit;
}
.nsdp[hidden] { display: none; }
html.nsdp-lock { overflow: hidden; }

.nsdp *, .nsdp *::before, .nsdp *::after { box-sizing: border-box; }

.nsdp__overlay {
	position: absolute;
	inset: 0;
	background: rgba(14, 17, 13, 0.72);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.nsdp__dialog {
	position: relative;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	width: min(880px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: translateY(24px) scale(0.98);
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nsdp.is-open .nsdp__overlay { opacity: 1; }
.nsdp.is-open .nsdp__dialog { opacity: 1; transform: none; }

/* Botón cerrar */
.nsdp__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #222;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, background 0.2s ease;
}
.nsdp__close:hover { transform: rotate(90deg); background: #fff; }
.nsdp__close:focus-visible { outline: 2px solid var(--nsdp-accent); outline-offset: 2px; }

/* Contenido */
.nsdp__content { padding: 46px 44px 34px; }

.nsdp__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--nsdp-accent);
	color: var(--nsdp-primary);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
}
.nsdp__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--nsdp-accent);
	animation: nsdp-pulse 1.8s ease-in-out infinite;
}
@keyframes nsdp-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.35; transform: scale(0.75); }
}

.nsdp__title {
	margin: 20px 0 14px;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--nsdp-text);
	letter-spacing: normal;
	text-transform: none;
}

.nsdp__msg p {
	margin: 0 0 12px;
	color: var(--nsdp-muted);
	font-size: 15.5px;
	line-height: 1.65;
}

.nsdp__benefits {
	list-style: none;
	margin: 18px 0 26px;
	padding: 0;
}
.nsdp__benefits li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 9px;
	padding: 0;
	color: var(--nsdp-text);
	font-size: 15px;
	line-height: 1.45;
}
.nsdp__benefits svg { flex: none; margin-top: 1px; color: var(--nsdp-accent); }

/* Botones */
.nsdp__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.nsdp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: 1.2;
	cursor: pointer;
	transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nsdp__btn:hover { transform: translateY(-1px); }
.nsdp__btn:focus-visible { outline: 2px solid var(--nsdp-accent); outline-offset: 2px; }

.nsdp__btn--primary { background: var(--nsdp-primary); color: #fff !important; }
.nsdp__btn--primary:hover { filter: brightness(0.9); }

.nsdp__btn--wa { background: #25d366; color: #fff !important; }
.nsdp__btn--wa:hover { filter: brightness(0.93); }

.nsdp__btn--ghost { background: transparent; border-color: #d8d5cd; color: #333 !important; }
.nsdp__btn--ghost:hover { border-color: var(--nsdp-accent); background: #faf8f4; }

.nsdp__brand {
	margin: 28px 0 0;
	padding-top: 16px;
	border-top: 1px solid #ecebe7;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #8a8c86;
}
.nsdp__brand a { color: var(--nsdp-primary); text-decoration: none; font-weight: 600; }
.nsdp__brand a:hover { color: var(--nsdp-accent); }

/* Panel lateral */
.nsdp__media {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	min-height: 100%;
	padding: 36px 32px;
	background: linear-gradient(160deg, var(--nsdp-primary) 0%, #262d22 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	container-type: inline-size; /* para que «Demo» se ajuste al ancho del panel */
}
.nsdp__media.has-img::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 24, 18, 0.15) 0%, rgba(20, 24, 18, 0.75) 100%);
}
.nsdp__frame {
	position: absolute;
	inset: 16px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	pointer-events: none;
}
.nsdp__watermark {
	position: absolute;
	top: 26px;
	left: 0;
	right: 0;
	text-align: center;
	white-space: nowrap;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 84px;
	font-size: min(110px, 34cqw); /* centrada y sin salirse del panel, sea cual sea su ancho */
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff;
	opacity: 0.12;
	pointer-events: none;
}
.nsdp__media.has-img .nsdp__watermark { opacity: 0.22; }
.nsdp__caption {
	position: relative;
	z-index: 1;
	max-width: 240px;
	padding-left: 14px;
	border-left: 2px solid var(--nsdp-accent);
	font-family: "Playfair Display", Georgia, serif;
	font-size: 22px;
	line-height: 1.3;
}

/* Móvil */
@media (max-width: 720px) {
	.nsdp__dialog { grid-template-columns: 1fr; }
	.nsdp__media {
		order: -1;
		min-height: 130px;
		align-items: center;
		padding: 24px 26px;
	}
	.nsdp__frame { inset: 10px; }
	.nsdp__watermark { top: auto; bottom: -14px; left: auto; right: 14px; text-align: right; font-size: 84px; }
	.nsdp__caption { font-size: 18px; max-width: 70%; }
	.nsdp__content { padding: 26px 22px 22px; }
	.nsdp__title { margin-top: 16px; }
	.nsdp__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.nsdp__overlay, .nsdp__dialog, .nsdp__close, .nsdp__btn { transition: none; }
	.nsdp__dot { animation: none; }
}
