@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
}

body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.blueprint-bg {
    background-color: #0c1e3d;
    background-image:
        linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.8)),
        url("https://www.transparenttextures.com/patterns/graphy-dark.png");
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

.marble-bg {
    background-image: url('https://www.transparenttextures.com/patterns/marble-white.png');
    background-color: #f8fafc;
}

.btn-premium {
    @apply px-8 py-4 rounded-xl font-bold transition-all duration-300 transform hover:scale-105 active:scale-95 shadow-xl flex items-center justify-center gap-2;
}

.btn-outline {
    @apply border-2 border-white/30 backdrop-blur-md text-white hover:bg-white hover:text-blue-900 hover:border-white;
}

.nav-link {
    @apply text-slate-600 hover:text-blue-600 font-bold transition-all relative py-2;
}

.nav-link-active {
    @apply text-blue-600 after:w-full;
}

.nav-link::after {
    content: '';
    @apply absolute bottom-0 left-0 w-0 h-[3px] bg-blue-600 transition-all duration-300 rounded-full;
}

.nav-link:hover::after {
    @apply w-full;
}

/* Floating WhatsApp Button Premium */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(18, 140, 126, 0.3);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: ripple-whatsapp 2s infinite;
    opacity: 0.5;
}

.whatsapp-float svg,
.whatsapp-float img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(18, 140, 126, 0.5);
}

/* Tooltip/Label that appears on hover */
.whatsapp-float::after {
    content: 'Consultas por WhatsApp';
    position: absolute;
    right: 80px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover::after {
    opacity: 1;
    transform: translateX(0);
}

@keyframes ripple-whatsapp {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

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

@keyframes bounce-whatsapp {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Add a subtle entrance animation */
.whatsapp-float {
    animation: float-whatsapp 3s infinite ease-in-out;
}

@keyframes float-whatsapp {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.02);
    }

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