/* ==========================================================================
   Fluffy Bites - Advanced Animations & Effects
   ========================================================================== */

/* Custom Cursor - DESACTIVADO */
.cursor-dot,
.cursor-outline {
    display: none !important;
}

/* Particles Background - DESACTIVADO */
#particles-js {
    display: none !important;
}

/* Coffee Bubbles Animation */
.coffee-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, rgba(111, 78, 55, 0.4), rgba(111, 78, 55, 0.05));
    border-radius: 50%;
    opacity: 0.6;
    animation: rise 15s infinite ease-in;
    box-shadow: 0 0 15px rgba(111, 78, 55, 0.3);
}

.bubble:nth-child(1) {
    width: 60px;
    height: 60px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.bubble:nth-child(2) {
    width: 30px;
    height: 30px;
    left: 25%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.bubble:nth-child(4) {
    width: 35px;
    height: 35px;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 14s;
}

.bubble:nth-child(5) {
    width: 55px;
    height: 55px;
    left: 85%;
    animation-delay: 3s;
    animation-duration: 16s;
}

.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 40%;
    animation-delay: 5s;
    animation-duration: 20s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110vh;
        transform: translateX(100px) scale(0.5);
        opacity: 0;
    }
}

/* Animated Title */
.animate-title {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.title-word {
    display: inline-block;
    opacity: 0;
    animation: wordReveal 0.8s ease forwards;
}

.title-word:nth-child(1) {
    animation-delay: 0.3s;
}

.title-word:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wordReveal {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(-90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Animated Subtitle */
.animate-subtitle {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

/* Animated CTA */
.animate-cta {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(111, 78, 55, 0.2);
    border-radius: var(--border-radius-pill);
    color: var(--color-chocolate);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(111, 78, 55, 0.08);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-btn i {
    margin-right: 8px;
    position: relative;
    z-index: 1;
}

.filter-btn span,
.filter-btn i {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    border-color: var(--color-chocolate);
    background: rgba(111, 78, 55, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.15);
}

.filter-btn.active {
    background: var(--gradient-chocolate);
    border-color: var(--color-chocolate);
    color: white;
    box-shadow: 0 4px 20px rgba(111, 78, 55, 0.3);
}

.filter-btn.active::before {
    width: 300px;
    height: 300px;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-chocolate);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.3);
    animation: pulse 2s infinite;
}

.product-badge.badge-new {
    background: var(--gradient-milk-chocolate);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Product Rating */
.product-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.product-rating i {
    color: #8B4513;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(139, 69, 19, 0.3);
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.product-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    background: var(--gradient-chocolate);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.add-to-favorites {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(111, 78, 55, 0.25);
    background: transparent;
    color: var(--color-chocolate);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-favorites:hover {
    background: var(--gradient-chocolate);
    border-color: var(--color-chocolate);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.3);
}

.add-to-favorites.active {
    background: var(--gradient-chocolate);
    border-color: var(--color-chocolate);
    color: white;
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.3);
}

.add-to-favorites.active i::before {
    content: "\f004";
}

/* Product Particles Effect */
.product-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-particles {
    opacity: 1;
}

/* Enhanced Product Card Animations */
.product-card {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: fadeInScale 0.6s ease backwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 107, 107, 0.1));
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

/* Enhanced Product Image Effects */
.product-image {
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.product-card:hover .product-image::after {
    left: 100%;
}

/* Enhanced Product Link */
.product-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
}

.product-link i {
    transition: transform 0.3s ease;
}

.product-link:hover i {
    transform: translateX(5px);
}

/* Reveal Sections on Scroll */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Parallax Layers */
.parallax-layer {
    transition: transform 0.5s ease-out;
}

/* Scale on Hover */
.scale-hover {
    transition: transform 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* Rotate on Hover */
.rotate-hover {
    transition: transform 0.5s ease;
}

.rotate-hover:hover {
    transform: rotate(5deg);
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Fade In Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Loading Spinner */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--color-background-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px var(--color-primary),
                0 0 40px var(--color-primary),
                0 0 60px var(--color-primary);
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--color-primary),
                    0 0 40px var(--color-primary),
                    0 0 60px var(--color-primary);
    }
    50% {
        box-shadow: 0 0 30px var(--color-primary),
                    0 0 60px var(--color-primary),
                    0 0 90px var(--color-primary);
    }
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(40, end);
}

/* Slide Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Zoom Animations */
@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0);
        opacity: 0;
    }
}

/* Flip Animation */
@keyframes flip {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

.flip-card {
    animation: flip 1s ease-in-out;
}

/* Heart Beat Animation */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(0.9);
    }
    20%, 40% {
        transform: scale(1.1);
    }
}

.heartbeat {
    animation: heartBeat 1.3s ease-in-out infinite;
}

