/* Estilos personalizados */

/* Hero section */
.hero-bg {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230045b5" fill-opacity="0.1" d="M0,96L48,122.7C96,149,192,203,288,224C384,245,480,235,576,202.7C672,171,768,117,864,101.3C960,85,1056,107,1152,138.7C1248,171,1344,213,1392,234.7L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
}

/* Hover effects */
.card-hover {
    transition: transform 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-4px);
}

/* Rating stars */
.rating-stars {
    color: #FFB800;
}

/* Custom checkboxes */
.custom-checkbox {
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #CBD5E0;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.custom-checkbox:checked {
    background-color: #2563EB;
    border-color: #2563EB;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.8rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px #93C5FD;
}

/* Navigation styles */
.main-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main-nav .menu-item {
    position: relative;
    list-style: none;
}

.main-nav .menu-item a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.main-nav .menu-item a:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.main-nav .menu-item.current-menu-item a {
    color: #2563EB;
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
}

.main-nav .menu-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #2563EB;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.main-nav .menu-item:hover a::after,
.main-nav .menu-item.current-menu-item a::after {
    transform: scaleX(1);
}

/* Mobile menu animation */
#mobile-menu {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-1rem);
    pointer-events: none;
}

/* Loader animation */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #2563EB;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .filters-sidebar.active {
        transform: translateX(0);
    }
}

/* Share button */
.share-button {
    transition: background-color 0.2s ease;
}

.share-button:hover {
    background-color: #1E40AF;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}
