/* Residencias Candidatos B2C - Custom Styles */

:root {
    scroll-behavior: smooth;
}

.animate-bounce-slow {
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-5%) rotate(-12deg);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0) rotate(-12deg);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Creative Enhancements */
/* Vibrant Mesh Background */
.mesh-gradient {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(36, 64, 207, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(12, 92, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(21, 10, 157, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(36, 64, 207, 0.08) 0px, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
}

.premium-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(21, 10, 157, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 40px 80px -15px rgba(21, 10, 157, 0.12);
    border-color: rgba(36, 64, 207, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(23, 23, 134, 0.05);
}

.floating-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.4;
    animation: float-blob 20s infinite alternate;
}

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.text-gradient {
    background: linear-gradient(135deg, #171786 0%, #2440CF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom selection color */
::selection {
    background-color: #2440CF;
    color: white;
}

/* Form focus glow */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(36, 64, 207, 0.1);
}
/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 25%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 75%
    );
    animation: shimmer 4s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translate(-30%, -30%) rotate(0deg); }
    100% { transform: translate(30%, 30%) rotate(0deg); }
}

.button-shimmer {
    background: linear-gradient(135deg, #2440CF 0%, #150a9d 100%);
    position: relative;
    overflow: hidden;
}

.button-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.button-shimmer:hover::before {
    left: 100%;
}

.floating-element {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
