/* Estilos Premium v2 - FerreWeb & Tailwind Integrations */
:root {
    /* Paleta de Colores HSL - Modern Indigo & Deep Deep Navy */
    --h: 243;
    --s: 75%;

    --primary: hsl(var(--h), var(--s), 59%);
    --primary-dark: hsl(var(--h), var(--s), 45%);
    --primary-light: hsl(var(--h), var(--s), 95%);
    --accent: hsl(150, 80%, 40%);
    --background: hsl(220, 20%, 97%);
    --surface: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --text-main: hsl(220, 40%, 15%);
    --text-muted: hsl(220, 15%, 45%);

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@layer utilities {
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  .no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar Legacy Adjustments */
.navbar {
    background: var(--glass) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-main) !important;
}

.search-group input:focus {
    box-shadow: none !important;
}

/* Fix Tailwind CSS conflict with Bootstrap navbar in Header */
.navbar-collapse.collapse {
    visibility: visible !important;
}

.navbar-collapse.collapse:not(.show) {
    display: none !important;
}

/* Glassmorphism search box for Tailwind */
.glass-search {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

@media (prefers-color-scheme: dark) {
    .glass-search {
        background: rgba(30, 41, 59, 0.85); /* slate-800 opacity */
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Ensure autofill colors work well in dark mode */
    input:-webkit-autofill,
    input:-webkit-autofill:hover, 
    input:-webkit-autofill:focus, 
    input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 30px #0f172a inset !important; /* slate-900 */
        -webkit-text-fill-color: white !important;
    }
}

/* Animations for grid entering */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(20px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

.bounce-icon {
    display: inline-block;
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Skeletons */
.skeleton-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 15px;
    height: 100%;
}
.skeleton-img {
    height: 200px;
    background: #eee;
    border-radius: var(--radius-md);
    animation: skeleton-pulse 1.5s infinite;
}
.skeleton-line {
    height: 12px;
    background: #eee;
    border-radius: 6px;
    margin-top: 10px;
    animation: skeleton-pulse 1.5s infinite;
}

@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Footer Modern (Legacy Class) */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 60px 0 30px;
}