/**
 * Home Page Styles
 * Extracted from inline <style> tags for better performance and maintainability
 * NO BUILD REQUIRED - Loads directly in browser
 * Updated: 2025-11-02 - Hover effect fixed, responsive animations
 */

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Floating images animations - Desktop */
@keyframes floatImage1 {
    0%, 100% { transform: translate(0, 0) rotate(5deg); }
    50% { transform: translate(-15px, -25px) rotate(-5deg); }
}

@keyframes floatImage2 {
    0%, 100% { transform: translate(0, 0) rotate(-8deg); }
    50% { transform: translate(20px, -30px) rotate(8deg); }
}

@keyframes floatImage3 {
    0%, 100% { transform: translate(0, 0) rotate(3deg); }
    50% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes floatImage4 {
    0%, 100% { transform: translate(0, 0) rotate(-5deg); }
    50% { transform: translate(15px, -20px) rotate(5deg); }
}

@keyframes floatImage5 {
    0%, 100% { transform: translate(0, 0) rotate(7deg); }
    50% { transform: translate(-10px, -15px) rotate(-7deg); }
}

@keyframes floatImage6 {
    0%, 100% { transform: translate(0, 0) rotate(-4deg); }
    50% { transform: translate(18px, 25px) rotate(4deg); }
}

/* Animation utility classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Floating image cards */
.floating-image {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.floating-image:hover {
    opacity: 1;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

.floating-image:hover img {
    filter: blur(0px) brightness(1) !important;
}

/* Lock icon centered on floating images */
.floating-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.85);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: opacity 0.3s ease;
}

.floating-lock svg {
    width: 100%;
    height: 100%;
}

/* Toggle closed/open lock on hover */
.floating-lock .lock-closed {
    display: block;
}
.floating-lock .lock-open {
    display: none;
}
.floating-image:hover .floating-lock .lock-closed {
    display: none;
}
.floating-image:hover .floating-lock .lock-open {
    display: block;
}
/* On mobile: toggle on tap via :active */
.floating-image:active .floating-lock .lock-closed {
    display: none;
}
.floating-image:active .floating-lock .lock-open {
    display: block;
}
.floating-image:active img {
    filter: blur(0px) brightness(1) !important;
}

.floating-image-mobile .floating-lock {
    width: 20px;
    height: 20px;
}

.floating-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6.1px) brightness(1) !important;
    transition: filter 0.3s ease;
}

/* Menos blur en móvil */
.floating-image-mobile img {
    filter: blur(5.1px) brightness(1) !important;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stat counter */
.stat-counter {
    font-variant-numeric: tabular-nums;
}

/* Mobile responsive animations */
@media (max-width: 768px) {
    /* Gentle mobile-only animations - minimal movement to prevent overlap */
    @keyframes floatMobile1 {
        0%, 100% { transform: rotate(3deg) translate(0, 0); }
        50% { transform: rotate(-2deg) translate(3px, -5px); }
    }
    @keyframes floatMobile2 {
        0%, 100% { transform: rotate(-3deg) translate(0, 0); }
        50% { transform: rotate(2deg) translate(-3px, -4px); }
    }
    @keyframes floatMobile3 {
        0%, 100% { transform: rotate(2deg) translate(0, 0); }
        50% { transform: rotate(-2deg) translate(4px, 3px); }
    }
    @keyframes floatMobile4 {
        0%, 100% { transform: rotate(-2deg) translate(0, 0); }
        50% { transform: rotate(3deg) translate(-4px, -3px); }
    }

    /* Apply gentle animations to mobile floating images */
    .floating-image-mobile:nth-child(1) {
        animation: floatMobile1 6s ease-in-out infinite !important;
    }
    .floating-image-mobile:nth-child(2) {
        animation: floatMobile2 7s ease-in-out infinite !important;
    }
    .floating-image-mobile:nth-child(3) {
        animation: floatMobile3 8s ease-in-out infinite !important;
    }
    .floating-image-mobile:nth-child(4) {
        animation: floatMobile4 6.5s ease-in-out infinite !important;
    }

    .floating-image {
        opacity: 0.95 !important;
    }
}
