/* Landetxo Gabonak Popup — estilos del popup de campaña.
   Paleta basada en la inspección real de landetxogunea.eus:
   crema #F0EBE5, negro #1B1B1B, terracota de marca #662713, dorado #866D0A.
   El verde (--lgp-button-color) es un acento de campaña, no existe en la
   identidad original, y es ajustable desde los ajustes del plugin. */

.lgp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(27, 27, 27, 0.55);
}

.lgp-overlay[hidden] {
	display: none;
}

html.lgp-scroll-locked,
body.lgp-scroll-locked {
	overflow: hidden !important;
}

.lgp-dialog {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #f0ebe5;
	color: #1b1b1b;
	border-radius: 20px;
	box-shadow: 0 24px 60px -20px rgba(27, 27, 27, 0.45);
	padding: 40px 48px 44px;
	font-family: "Epilogue", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: opacity 200ms ease, transform 200ms ease;
}

.lgp-overlay.lgp-visible .lgp-dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.lgp-dialog {
		transition: none;
	}
}

.lgp-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid rgba(27, 27, 27, 0.25);
	border-radius: 50%;
	color: #1b1b1b;
	cursor: pointer;
	padding: 0;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.lgp-close:hover {
	background: rgba(27, 27, 27, 0.06);
	border-color: rgba(27, 27, 27, 0.4);
}

.lgp-close:focus-visible,
.lgp-cta:focus-visible {
	outline: 3px solid #866d0a;
	outline-offset: 2px;
}

.lgp-content {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lgp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #866d0a;
}

.lgp-star {
	color: #866d0a;
	flex: none;
}

.lgp-headline {
	margin: 0 0 14px;
	font-size: clamp(26px, 4vw, 34px);
	line-height: 1.15;
	font-weight: 500;
	color: #1b1b1b;
	max-width: 26ch;
}

.lgp-body {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.6;
	color: #3a3a3a;
	max-width: 44ch;
	font-family: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lgp-image {
	width: 100%;
	max-width: 420px;
	margin: 0 0 26px;
	border-radius: 14px;
	overflow: hidden;
}

.lgp-image-el {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.lgp-cta-wrap {
	margin-top: 4px;
}

.lgp-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 148px;
	height: 148px;
	border-radius: 50%;
	background: var(--lgp-button-color, #2f4d34);
	color: #ffffff;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	box-shadow: 0 14px 30px -10px rgba(27, 27, 27, 0.4);
	transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.lgp-cta:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 18px 34px -10px rgba(27, 27, 27, 0.45);
}

.lgp-cta:active {
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.lgp-cta {
		transition: none;
	}
	.lgp-cta:hover {
		transform: none;
	}
}

@media (max-width: 600px) {
	.lgp-dialog {
		padding: 32px 22px 34px;
		border-radius: 16px;
	}

	.lgp-cta {
		width: 124px;
		height: 124px;
		font-size: 17px;
	}

	.lgp-headline {
		font-size: 24px;
	}
}

/* Pantallas muy bajas o con texto ampliado: evita recortes, permite scroll interno. */
@media (max-height: 560px) {
	.lgp-dialog {
		max-height: calc(100vh - 16px);
	}
}
