/* ===================================
   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-attachment: fixed;
    background-size: auto;
}

/* 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) {
    .hero-section {
        min-height: 50vh;
    }
    
    .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;
    }
}
