/* ===================================
   Estilos para Fondos y Logo
   =================================== */

/* Logo styling */
.navbar-brand svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.navbar-brand:hover svg {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

/* Hero section improvements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Background patterns */
body {
    background-color: #f0f4f8 !important;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(79, 70, 229, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.08) 1px, transparent 1px) !important;
    background-size:
        50px 50px,
        50px 50px,
        10px 10px,
        10px 10px !important;
    background-position: center top !important;
    background-attachment: fixed !important;
}

/* Category section background */
.categories-section {
    background-image: url('../images/background-categories.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.categories-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    z-index: 1;
}

.categories-section>* {
    position: relative;
    z-index: 2;
}

/* Footer with background */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(42, 42, 62, 0.9), rgba(26, 26, 46, 0.95));
    z-index: 1;
}

.footer>* {
    position: relative;
    z-index: 2;
}

/* Smooth transitions for background changes */
html {
    scroll-behavior: smooth;
}

/* Enhanced card shadows with background context */
.card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.card:hover {
    background: rgba(255, 255, 255, 1);
}

/* Product cards with enhanced styling */
.product-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Breadcrumb with subtle background */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Navigation improvements */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dropdown menu enhancements */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
    z-index: 1050 !important;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
}

/* Responsive background adjustments */
@media (max-width: 768px) {
    .categories-section {
        background-attachment: scroll;
    }

    body {
        background-attachment: scroll;
    }
}

/* Animation for floating elements in background */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading animation for images */
.loading-bg {
    animation: float 3s ease-in-out infinite;
}

/* SVG animations */
svg path {
    transition: all 0.3s ease;
}

svg:hover path {
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .navbar-brand svg {
        width: 40px;
        height: 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {

    .navbar,
    .footer,
    .floating-cart {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Floating Icons Animation */
.hero-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    font-size: 4rem;
}

.icon-2 {
    top: 70%;
    left: 10%;
    animation-delay: 1.5s;
    font-size: 2.5rem;
}

.icon-3 {
    top: 40%;
    right: 15%;
    animation-delay: 2.5s;
    font-size: 3.5rem;
}

.icon-4 {
    top: 80%;
    right: 5%;
    animation-delay: 0.5s;
    font-size: 3rem;
}

.icon-5 {
    top: 15%;
    right: 25%;
    animation-delay: 3.5s;
    font-size: 2rem;
}

/* Rotate animation for specific icons */
.icon-2,
.icon-5 {
    animation: float 7s ease-in-out infinite, rotate 20s linear infinite;
}