/* Overlay: permite scroll si hiciera falta */
#olipep-bf-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	z-index: 99999;
	overflow-y: auto;
}

/* Popup compacto, alto máximo a pantalla */
#olipep-bf-popup {
	position: relative;
	width: min(820px, 95vw);
	max-height: 90vh;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,0.55);
	background: #000;
}

#olipep-bf-popup-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Layout interior con scroll interno si hace falta */
.olipep-bf-popup-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
	gap: 18px;
	padding: 20px 22px 16px;
	color: #fff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	max-height: 90vh;
	overflow-y: auto;
}

@media (max-width: 768px) {
	.olipep-bf-popup-inner {
		grid-template-columns: 1fr;
		padding: 16px 14px 12px;
		gap: 14px;
		max-height: 90vh;
	}
}

/* Botón de cierre */
.olipep-bf-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
	z-index: 3;
}

.olipep-bf-popup-close:hover {
	transform: scale(1.08);
	opacity: 0.85;
}

/* Cabecera */
.olipep-bf-header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	justify-content: flex-start;
}

.olipep-bf-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #ff0055, #ff7a00);
	color: #fff;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.olipep-bf-logo-wrapper {
	background: rgba(0,0,0,0.45);
	border-radius: 14px;
	padding: 10px 12px;
	border: 1px solid rgba(255,255,255,0.08);
	backdrop-filter: blur(10px);
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.olipep-bf-logo {
	max-width: 260px;
	/*max-height: 60px;*/
	object-fit: contain;
}

/* Caja de contenido */
.olipep-bf-content {
	background: rgba(10,10,10,0.9);
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,0.09);
	padding: 14px 14px 10px;
	backdrop-filter: blur(18px);
	box-shadow: 0 10px 32px rgba(0,0,0,0.5);
}

.olipep-bf-title {
	font-size: clamp(20px, 2vw, 24px);
	line-height: 1.25;
	margin: 0 0 6px;
	font-weight: 800;
}

.olipep-bf-title span {
	color: #ffcc00;
}

.olipep-bf-subtitle {
	margin: 0 0 8px;
	font-size: 13px;
	color: #f3f3f3;
	opacity: 0.9;
}

/* Lista de bullets */
.olipep-bf-list {
	margin: 0 0 10px;
	padding-left: 16px;
	font-size: 12px;
	color: #f5f5f5;
}

.olipep-bf-list li {
	margin-bottom: 3px;
}

/* Formulario compacto */
#olipep-bf-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
    margin-left: auto;
    margin-right: auto;
}

.olipep-bf-form-row {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.olipep-bf-form-row label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #f5f5f5;
}

/* Inputs */
#olipep-bf-form input[type="text"],
#olipep-bf-form input[type="email"],
#olipep-bf-form textarea {
	width: 100%;
	border-radius: 7px;
	border: 1px solid rgba(255,255,255,0.16);
	background: rgba(5,5,5,0.9);
	color: #fff;
	font-size: 12px;
	padding: 7px 9px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

#olipep-bf-form textarea {
	resize: vertical;
	min-height: 60px;
	max-height: 110px;
}

#olipep-bf-form input:focus,
#olipep-bf-form textarea:focus {
	border-color: #ffcc00;
	box-shadow: 0 0 0 1px rgba(255,204,0,0.6);
	background: rgba(0,0,0,0.96);
}

/* Privacidad */
.olipep-bf-privacy-row {
	margin-top: 2px;
}

.olipep-bf-privacy-label {
	display: inline-flex;
	align-items: flex-start;
	gap: 5px;
	font-size: 10px;
	color: #f0f0f0;
}

.olipep-bf-privacy-label input[type="checkbox"] {
	margin-top: 1px;
}

/* Texto legal pequeñito */
.olipep-bf-privacy-text {
	margin-top: 4px;
	font-size: 8.5px;
	line-height: 1.3;
	color: rgba(240,240,240,0.8);
	max-height: 52px;
	overflow-y: auto;
}

/* Scrollbar discreto */
.olipep-bf-privacy-text::-webkit-scrollbar {
	width: 3px;
}
.olipep-bf-privacy-text::-webkit-scrollbar-track {
	background: transparent;
}
.olipep-bf-privacy-text::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.25);
	border-radius: 999px;
}

/* Botón principal */
.olipep-bf-form-actions {
	margin-top: 4px;
	display: flex;
	justify-content: flex-start;
}

.olipep-bf-btn {
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #ffcc00, #ff7a00);
	color: #000;
	padding: 8px 18px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	cursor: pointer;
	box-shadow: 0 7px 20px rgba(0,0,0,0.6);
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
	white-space: normal;
	text-align: center;
}

.olipep-bf-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 9px 24px rgba(0,0,0,0.7);
	filter: brightness(1.05);
}

.olipep-bf-btn:active {
	transform: translateY(0);
	box-shadow: 0 5px 16px rgba(0,0,0,0.6);
}

/* Mensajes */
.olipep-bf-form-message {
	margin-top: 4px;
	font-size: 11px;
	min-height: 16px;
}

.olipep-bf-form-message.error {
	color: #ff8ba7;
}

.olipep-bf-form-message.success {
	color: #a4ffb2;
}

/* ================================
 * Solapa lateral derecha (texto girado)
 * ================================ */
.olipep-bf-reopen {
	position: fixed;
	right: 22px;                               /* pegada al borde derecho */
	top: 50%;
	transform: translateY(-50%) rotate(-90deg);
	transform-origin: right center;
	z-index: 99998;
	display: none;                          /* el JS la pondrá en flex */
	cursor: pointer;
}

/* Mantengo tu diseño de botón, solo girado */
.olipep-bf-reopen-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 22px 8px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ffcc00, #ff7a00);
	box-shadow: 0 10px 24px rgba(0,0,0,0.65);
	color: #000;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	animation: olipep-bf-reopen-pulse 2s ease-in-out infinite;
}

.olipep-bf-reopen-percent {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #000;
	color: #ffcc00;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.olipep-bf-reopen-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.olipep-bf-reopen-text strong {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.olipep-bf-reopen-text span {
	font-size: 10px;
}

/* Animación de la solapa */
@keyframes olipep-bf-reopen-pulse {
	0%   { transform: translateY(0); box-shadow: 0 10px 24px rgba(0,0,0,0.65); }
	50%  { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.75); }
	100% { transform: translateY(0); box-shadow: 0 10px 24px rgba(0,0,0,0.65); }
}

/* Ajustes extra en móvil */
@media (max-width: 480px) {
	#olipep-bf-popup {
		max-height: 90vh;
	}

	.olipep-bf-title {
		font-size: 18px;
	}

	.olipep-bf-subtitle {
		font-size: 12px;
	}

	.olipep-bf-list {
		font-size: 11px;
	}

	#olipep-bf-form input[type="text"],
	#olipep-bf-form input[type="email"],
	#olipep-bf-form textarea {
		font-size: 11px;
		padding: 6px 8px;
	}

	/* En móvil la solapa baja a la esquina para que no moleste */
	.olipep-bf-reopen {
		right: 4px;
		top: auto;
		bottom: 16px;
		transform: none;
	}

	.olipep-bf-reopen-pill {
		padding: 7px 10px 7px 9px;
	}

	.olipep-bf-reopen-percent {
		width: 28px;
		height: 28px;
		font-size: 11px;
	}

	.olipep-bf-reopen-text strong {
		font-size: 10px;
	}

	.olipep-bf-reopen-text span {
		font-size: 9px;
	}
}
/* Overlay: permite scroll si hiciera falta */
#olipep-bf-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	z-index: 99999;
	overflow-y: auto;
}

/* Popup compacto, alto máximo a pantalla */
#olipep-bf-popup {
	position: relative;
	width: min(820px, 95vw);
	max-height: 90vh;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,0.55);
	background: #000;
}

#olipep-bf-popup-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Layout interior con scroll interno si hace falta */
.olipep-bf-popup-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
	gap: 16px;
	padding: 18px 20px 14px;
	color: #fff;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	max-height: 90vh;
	overflow-y: auto;
}

@media (max-width: 768px) {
	.olipep-bf-popup-inner {
		grid-template-columns: 1fr;
		padding: 14px 12px 10px;
		gap: 12px;
		max-height: 90vh;
	}
}

/* Botón de cierre */
.olipep-bf-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
	z-index: 3;
}

.olipep-bf-popup-close:hover {
	transform: scale(1.08);
	opacity: 0.85;
}

/* Cabecera */
.olipep-bf-header {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
	justify-content: flex-start;
}

.olipep-bf-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #ff0055, #ff7a00);
	color: #fff;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.olipep-bf-logo-wrapper {
	background: rgba(0,0,0,0.45);
	border-radius: 14px;
	padding: 8px 10px;
	border: 1px solid rgba(255,255,255,0.08);
	backdrop-filter: blur(10px);
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.olipep-bf-logo {
	max-width: 260px;
	/*max-height: 60px;*/
	object-fit: contain;
}

/* Caja de contenido */
.olipep-bf-content {
	background: rgba(10,10,10,0.9);
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,0.09);
	padding: 12px 12px 10px;
	backdrop-filter: blur(18px);
	box-shadow: 0 10px 32px rgba(0,0,0,0.5);
}

.olipep-bf-title {
	font-size: clamp(20px, 2vw, 24px);
	line-height: 1.25;
	margin: 0 0 4px;
	font-weight: 800;
}

.olipep-bf-title span {
	color: #ffcc00;
}

.olipep-bf-subtitle {
	margin: 0 0 8px;
	font-size: 13px;
	color: #f3f3f3;
	opacity: 0.9;
}

/* (ya no usamos lista, pero lo dejo por si acaso) */
.olipep-bf-list {
	margin: 0 0 8px;
	padding-left: 16px;
	font-size: 12px;
	color: #f5f5f5;
}
.olipep-bf-list li {
	margin-bottom: 2px;
}

/* Formulario más compacto */
#olipep-bf-form {
	display: flex;
	flex-direction: column;
	gap: 4px;
        margin-left: auto;
    margin-right: auto;
}

.olipep-bf-form-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.olipep-bf-form-row label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #f5f5f5;
}

/* Inputs: fondo oscuro y texto bien visible, forzando contra estilos del theme */
#olipep-bf-form input[type="text"],
#olipep-bf-form input[type="email"],
#olipep-bf-form textarea {
	width: 100%;
	border-radius: 7px;
	border: 1px solid rgba(255,255,255,0.18) !important;
	background: rgba(5,5,5,0.96) !important;
	color: #ffffff !important;
	font-size: 12px;
	padding: 6px 9px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	caret-color: #ffcc00;
	box-shadow: none !important;
}

#olipep-bf-form input::placeholder,
#olipep-bf-form textarea::placeholder {
	color: rgba(220,220,220,0.8);
}

#olipep-bf-form textarea {
	resize: vertical;
	min-height: 60px;
	max-height: 110px;
}

#olipep-bf-form input:focus,
#olipep-bf-form textarea:focus {
	border-color: #ffcc00 !important;
	box-shadow: 0 0 0 1px rgba(255,204,0,0.6) !important;
	background: #000000 !important;
}

/* Privacidad */
.olipep-bf-privacy-row {
	margin-top: 2px;
}

.olipep-bf-privacy-label {
	display: inline-flex;
	align-items: flex-start;
	gap: 5px;
	font-size: 10px;
	color: #f0f0f0;
}

.olipep-bf-privacy-label input[type="checkbox"] {
	margin-top: 1px;
}

/* Texto legal pequeñito */
.olipep-bf-privacy-text {
	margin-top: 3px;
	font-size: 8.5px;
	line-height: 1.3;
	color: rgba(240,240,240,0.8);
	max-height: 52px;
	overflow-y: auto;
}

/* Scrollbar discreto */
.olipep-bf-privacy-text::-webkit-scrollbar {
	width: 3px;
}
.olipep-bf-privacy-text::-webkit-scrollbar-track {
	background: transparent;
}
.olipep-bf-privacy-text::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.25);
	border-radius: 999px;
}

/* Botón principal */
.olipep-bf-form-actions {
	margin-top: 6px;
	display: flex;
	justify-content: flex-start;
}

.olipep-bf-btn {
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #ffcc00, #ff7a00);
	color: #000;
	padding: 8px 18px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	cursor: pointer;
	box-shadow: 0 7px 20px rgba(0,0,0,0.6);
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
	white-space: normal;
	text-align: center;
}

.olipep-bf-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 9px 24px rgba(0,0,0,0.7);
	filter: brightness(1.05);
}

.olipep-bf-btn:active {
	transform: translateY(0);
	box-shadow: 0 5px 16px rgba(0,0,0,0.6);
}

/* Mensajes */
.olipep-bf-form-message {
	margin-top: 4px;
	font-size: 11px;
	min-height: 16px;
}

.olipep-bf-form-message.error {
	color: #ff8ba7;
}

.olipep-bf-form-message.success {
	color: #a4ffb2;
}

/* ================================
 * Solapa lateral derecha (texto girado)
 * ================================ */
.olipep-bf-reopen {
	position: fixed;
	right: 22px;
	top: 50%;
	transform: translateY(-50%) rotate(-90deg);
	transform-origin: right center;
	z-index: 99998;
	display: none; /* el JS la pone a flex */
	cursor: pointer;
}

/* Botón de la solapa, usando tu diseño */
.olipep-bf-reopen-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 22px 8px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ffcc00, #ff7a00);
	box-shadow: 0 10px 24px rgba(0,0,0,0.65);
	color: #000;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	animation: olipep-bf-reopen-pulse 2s ease-in-out infinite;
}

.olipep-bf-reopen-percent {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #000;
	color: #ffcc00;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.olipep-bf-reopen-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.olipep-bf-reopen-text strong {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.olipep-bf-reopen-text span {
	font-size: 10px;
}

/* Animación de la solapa */
@keyframes olipep-bf-reopen-pulse {
	0%   { transform: translateY(0); box-shadow: 0 10px 24px rgba(0,0,0,0.65); }
	50%  { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.75); }
	100% { transform: translateY(0); box-shadow: 0 10px 24px rgba(0,0,0,0.65); }
}

/* Ajustes extra en móvil */
@media (max-width: 480px) {
	#olipep-bf-popup {
		max-height: 90vh;
	}

	.olipep-bf-title {
		font-size: 18px;
	}

	.olipep-bf-subtitle {
		font-size: 12px;
	}

	.olipep-bf-list {
		font-size: 11px;
	}

	#olipep-bf-form input[type="text"],
	#olipep-bf-form input[type="email"],
	#olipep-bf-form textarea {
		font-size: 11px;
		padding: 5px 8px;
	}

	/* En móvil la solapa baja a la esquina para que no moleste */
	.olipep-bf-reopen {
		right: 4px;
		top: auto;
		bottom: 90px;
		transform: none;
        z-index: 99999999;
	}

	.olipep-bf-reopen-pill {
		padding: 7px 10px 7px 9px;
	}

	.olipep-bf-reopen-percent {
		width: 28px;
		height: 28px;
		font-size: 11px;
	}

	.olipep-bf-reopen-text strong {
		font-size: 10px;
	}

	.olipep-bf-reopen-text span {
		font-size: 9px;
	}
}
.olipep-bf-form-row {
    margin-top: -20px;
}