@charset "UTF-8";
/* CSS Document */

*{
	box-sizing: border-box;
}

body{
	margin: 0;
	font-family: Arial, sans-serif;
	background: #f5f5f5;
	color: #222;
	min-height: 200vh;
}

.demo-wrap{
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px 120px;
}

.demo-card{
	background: #fff;
	border-radius: 18px;
	padding: 30px;
	box-shadow: 0 8px 20px rgba(0,0,0,.06);
	margin-bottom: 30px;
}

h1,h2{
	margin-top: 0;
}

/* =========================
   BOTÓN FIJO / NORMAL
========================= */
.share-fixed-wrapper{
	position: relative;
	display: inline-block;
}

.share-fixed-btn{
	border: none;
	background: #111;
	color: #fff;
	padding: 12px 18px;
	border-radius: 12px;
	cursor: pointer;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	/* box-shadow: 0 8px 18px rgba(0,0,0,.12); */
}

.share-fixed-btn:hover{
	background: #222;
}

.share-fixed-btn svg{
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* =========================
   BOTÓN FLOTANTE
========================= */
.share-floating-wrapper{
	position: fixed;
	right: 8px;
	bottom: 55px;
	z-index: 9999;
}

.share-floating-btn{
	width: 62px;
	height: 62px;
	border: none;
	border-radius: 50%;
	background: #111;
	color: #fff;
	cursor: pointer;
	/* box-shadow: 0 10px 25px rgba(0,0,0,.22); */
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .2s ease, background .2s ease;
}

.share-floating-btn:hover{
	transform: scale(1.05);
	background: #222;
}

.share-floating-btn svg{
	width: 26px;
	height: 26px;
	fill: currentColor;
}

/* =========================
   MENÚS SHARE
========================= */
.share-menu{
	position: absolute;
	width: 280px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 14px 35px rgba(0,0,0,.18);
	padding: 14px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all .22s ease;
	z-index: 10000;
}

.share-menu.active{
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.share-fixed-wrapper .share-menu{
	left: 0;
	top: calc(100% + 10px);
}

.share-floating-wrapper .share-menu{
	right: 0;
	bottom: 78px;
}

.share-title{
	margin: 0 0 12px 0;
	font-size: 14px;
	font-weight: bold;
	color: #333;
}

.share-options{
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.share-option{
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #222;
	background: #f8f8f8;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 12px;
	transition: background .2s ease, transform .2s ease;
}

.share-option:hover{
	background: #efefef;
	transform: translateY(-1px);
}

.share-option-icon{
	width: 42px;
	height: 42px;
	min-width: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.share-option-icon svg{
	width: 22px;
	height: 22px;
}

.share-option-text{
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.share-option-text strong{
	font-size: 14px;
}

.share-option-text span{
	font-size: 12px;
	color: #666;
}

.wa-bg{
	background: rgba(37, 211, 102, .14);
}

.ms-bg{
	background: rgba(0, 132, 255, .14);
}

.mail-bg{
	background: rgba(234, 67, 53, .14);
}

.copy-url-btn{
	width: 100%;
	margin-top: 12px;
	border: none;
	border-radius: 12px;
	padding: 11px 12px;
	background: #111;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
}

.copy-url-btn:hover{
	opacity: .92;
}

/* =========================
   OVERLAY GLOBAL
========================= */
.share-overlay{
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.25);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: all .2s ease;
}

.share-overlay.active{
	opacity: 1;
	visibility: visible;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px){

	.share-floating-wrapper{
		right: 14px;
		bottom: 14px;
	}

	.share-floating-btn{
		width: 58px;
		height: 58px;
	}

	.share-floating-btn svg{
		width: 24px;
		height: 24px;
	}

	.share-menu{
		width: auto;
	}

	.share-floating-wrapper .share-menu,
	.share-fixed-wrapper .share-menu{
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: 84px;
		top: auto;
	}
}