html { scroll-behavior: smooth; }

/* Header azul de marca (el logo es blanco, por eso el fondo es de color) */
.site-header {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.site-header.scrolled {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    box-shadow: 0 8px 30px -8px rgba(37, 99, 235, 0.45);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gradient-bg {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

.section-animate {
    animation: fadeInUp 0.8s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #60a5fa;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Floating WhatsApp button (estilo Joinchat) */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    background-color: #25D366;
    color: #ffffff;
    box-shadow: 0 6px 20px -4px rgba(37, 211, 102, 0.6);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.08);
    box-shadow: 0 10px 28px -6px rgba(18, 140, 126, 0.6);
}
.whatsapp-float-icon {
    width: 34px;
    height: 34px;
    position: relative;
    z-index: 1;
}
/* Pulso animado detrás del botón */
.whatsapp-float-pulse {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: #25D366;
    opacity: 0.55;
    z-index: 0;
    animation: whatsappPulse 2s ease-out infinite;
}
@keyframes whatsappPulse {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 640px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
    .whatsapp-float-icon {
        width: 30px;
        height: 30px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float-pulse { animation: none; }
}
