/* Variables globales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/sushi-banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Navegación de categorías */
.category-nav {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-pills .nav-link {
    color: var(--text-color);
    margin: 0 0.5rem;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

/* Tarjetas de menú */
.menu-item {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item .card-img-top {
    height: 200px;
    object-fit: cover;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Carrito flotante */
.cart-floating {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-floating.active {
    right: 0;
}

.cart-header {
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background-color: white;
}

.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #34495e;
    border-color: #34495e;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-floating {
        width: 100%;
        right: -100%;
    }

    .category-nav .nav-link {
        margin: 0.2rem;
        padding: 0.5rem 1rem;
    }

    /* Mejorar tablas en móvil */
    .table-responsive {
        border: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Cards más compactos en móvil */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Botones de ancho completo en móvil */
    .btn-block-mobile {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Reducir padding en hero section */
    .hero-section {
        padding: 2rem 0;
    }

    /* Footer más compacto */
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .cart-floating {
        width: 350px;
    }
}

/* Animaciones suaves */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms ease-in;
}

/* Transiciones suaves globales */
button, .btn, .card, .nav-link {
    transition: all 0.3s ease;
}

/* Animación para botones en hover */
.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animaciones de fade para elementos */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* Animación para states vacíos */
.empty-state {
    animation: fadeIn 0.5s ease;
}

/* Focus states mejorados para accesibilidad */
button:focus,
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mejora de contraste para accesibilidad */
.text-muted {
    color: #6c757d !important;
}

/* Loading spinner personalizado */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Badge del carrito */
.badge {
    position: relative;
    top: -8px;
    right: -8px;
}
