﻿/* ---------- Botón flotante de WhatsApp (izquierda) ---------- */
.float {
	position: fixed;
	width: 60px;
	height: 60px;
	bottom: 40px;
	right: 40px; /* ← izquierda en lugar de derecha */
	background-color: #25d366;
	color: #FFF;
	border-radius: 50px;
	text-align: center;
	font-size: 30px;
	box-shadow: 2px 2px 3px #999;
	z-index: 100;
}

	.float:hover {
		text-decoration: none;
		color: #25d366;
		background-color: #fff;
	}

.my-float {
	margin-top: 16px;
}

/* ---------- Botones adicionales (junto a WhatsApp) ---------- */
.Btc,
.Btni {
	width: 105px;
	height: 32px;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-shadow: 2px 2px 3px #000;
	border: 10px;
	border-radius: 20px;
	cursor: pointer;
	background: #25d366;
	background-image: linear-gradient(to top left, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2) 30%, rgba(0, 0, 0, 0));
	box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6), inset -2px -2px 3px rgba(0, 0, 0, .6);
	position: fixed;
	bottom: 40px;
	right: 110px; /* ← junto a WhatsApp */
	z-index: 100;
}

	.Btc:hover {
		color: #dcf8c6;
	}

.Btni {
	background: #9dbfe6;
}

	.Btni:hover {
		color: #9dbfe6;
	}
	/*style back to top*/
:root {
	--primary: #87B638;
	--primary-dark: #6a9429;
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Botón Back to Top - Posición izquierda */
.back-to-top {
	position: fixed;
	bottom: 30px;
	left: 30px; /* Cambiado de right a left */
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: var(--shadow-lg);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
}

	/* Estado visible (cuando se hace scroll) */
	.back-to-top.show {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	/* Icono */
	.back-to-top i {
		font-size: 1.5rem;
		transition: transform 0.3s ease;
	}

	/* Hover effects */
	.back-to-top:hover {
		transform: translateY(-5px);
		box-shadow: var(--shadow-xl);
		background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
	}

		.back-to-top:hover i {
			transform: translateY(-3px);
		}

	/* Active/Click */
	.back-to-top:active {
		transform: translateY(-2px) scale(0.95);
	}

/* Si tienes WhatsApp a la derecha, este queda a la izquierda */
/* Ejemplo de posición WhatsApp (para referencia):
        .whatsapp-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 999;
        }
        */

/* Responsive */
@media (max-width: 768px) {
	.back-to-top {
		bottom: 20px;
		left: 20px;
		width: 45px;
		height: 45px;
	}

		.back-to-top i {
			font-size: 1.25rem;
		}
}

/* Animación de entrada */
@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: translateY(20px) scale(0.8);
	}

	50% {
		transform: translateY(-5px) scale(1.05);
	}

	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.back-to-top.show {
	animation: bounceIn 0.4s ease forwards;
}

/* Tooltip opcional */
.back-to-top::before {
	content: 'Volver arriba';
	position: absolute;
	left: 70px;
	background: var(--text-dark);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-10px);
	transition: all 0.3s ease;
	pointer-events: none;
}

.back-to-top:hover::before {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

@media (max-width: 768px) {
	.back-to-top::before {
		display: none;
	}
}
