/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

.txt80pc{
	font-size: 0.6em;
}

.rojo{
	color: red;
}
/* Optimización 2026-11: imágenes con width/height para evitar saltos de diseño (CLS) */
img.h-auto{
	height: auto;
}

iframe.w-100{
	max-width: 100%;
}

/* ----------------------------------------------------------------
	Botón flotante de WhatsApp
-----------------------------------------------------------------*/
#whatsapp-flotante{
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #25D366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

#whatsapp-flotante:hover,
#whatsapp-flotante:focus-visible{
	background-color: #1ebe5b;
	color: #fff;
	transform: scale(1.08);
}

#whatsapp-flotante i{
	line-height: 1;
}

/* Tooltip */
#whatsapp-flotante::before{
	content: attr(data-tooltip);
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	background-color: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	padding: 8px 12px;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Flechita del tooltip */
#whatsapp-flotante::after{
	content: "";
	position: absolute;
	right: calc(100% + 6px);
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px 0 6px 6px;
	border-style: solid;
	border-color: transparent transparent transparent #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s;
}

#whatsapp-flotante:hover::before,
#whatsapp-flotante:focus-visible::before{
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

#whatsapp-flotante:hover::after,
#whatsapp-flotante:focus-visible::after{
	opacity: 1;
	visibility: visible;
}

/* El botón "volver arriba" sube para no quedar debajo del de WhatsApp */
#gotoTop{
	--cnvs-gotoTop-position-botom: 100px;
	--cnvs-gotoTop-position-boxed-bottom: 100px;
	--cnvs-gotoTop-position-boxed-right: 34px;
}

@media (max-width: 575.98px){
	#whatsapp-flotante{
		right: 16px;
		bottom: 16px;
		width: 54px;
		height: 54px;
		font-size: 30px;
	}
	#gotoTop{
		--cnvs-gotoTop-position-boxed-bottom: 84px;
		--cnvs-gotoTop-position-boxed-right: 23px;
	}
}
