/* ============================================
   DISEÑO MODERNO PREMIUM - PARRILLA
   ============================================ */
:root {
    --primary: #c41e3a;
    --primary-light: #e63946;
    --primary-dark: #8b1528;
    --secondary: #f77f00;
    --accent: #fcbf49;
    --dark: #1a1a1a;
    --dark-light: #2d2d2d;
    --light: #f5f5f7;
    --lighter: #ffffff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --success: #06a77d;
    --warning: #f77f00;
    --danger: #d62828;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ============================================
   HEADER MODERNO
   ============================================ */
.site-header {
    background: var(--lighter);
    color: var(--dark);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 2px solid var(--primary);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo a:hover {
    color: var(--primary);
}

.logo a i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-link {
    position: relative;
    font-size: 1.4rem;
    color: var(--dark);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gray-light);
    transition: var(--transition);
}

.cart-link:hover {
    color: var(--lighter);
    background: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--lighter);
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid var(--lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    transform-origin: center;
}

.cart-link.is-bumping .cart-count {
    animation: cartBadgePop 0.5s ease;
}

@keyframes cartBadgePop {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes cartButtonPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(196, 30, 58, 0.15); }
    30% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(196, 30, 58, 0.08); }
    60% { transform: scale(0.98); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(196, 30, 58, 0); }
}

.btn-login, .btn-register {
    min-width: 170px;
    min-height: 46px;
    padding: 0.75rem 1.35rem;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    line-height: 1;
    text-align: center;
}

.btn-login {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: rgba(196, 30, 58, 0.04);
}

.btn-login:hover {
    background: var(--primary);
    color: var(--lighter);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--lighter);
    box-shadow: 0 12px 28px rgba(196, 30, 58, 0.2);
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.user-dropdown {
    position: relative;
    cursor: pointer;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.user-name {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-light);
    font-weight: 600;
    transition: var(--transition);
}

.user-dropdown:hover .user-name,
.user-dropdown:focus-within .user-name,
.user-dropdown.open .user-name {
    background: var(--primary);
    color: var(--lighter);
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: white;
    color: var(--dark);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.user-dropdown:hover .dropdown-content,
.user-dropdown:focus-within .dropdown-content,
.user-dropdown.open .dropdown-content,
.user-dropdown .dropdown-content:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--dark);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background: var(--light);
    border-left-color: var(--primary);
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO BANNER
   ============================================ */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(196, 30, 58, 0.15);
    }
    50% {
        box-shadow: 0 0 28px rgba(196, 30, 58, 0.18);
    }
}

.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 6s ease-in-out infinite;
    box-shadow: inset 0 -80px 120px rgba(0,0,0,0.18);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.2), transparent 44%),
        linear-gradient(120deg, rgba(255,255,255,0.06), transparent 38%, rgba(255,255,255,0.04) 100%);
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.2));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    animation: fadeUp 0.8s ease both;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 0.96;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hero-content p {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.86);
    font-weight: 300;
}

/* ============================================
   BOTONES GENERALES
   ============================================ */
.btn-primary, .btn-secondary, .btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.8rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ee5d4f);
    color: white;
    box-shadow: 0 16px 28px rgba(196, 30, 58, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 22px 32px rgba(196, 30, 58, 0.28);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #ea8d20);
    color: white;
    box-shadow: 0 16px 30px rgba(247, 127, 0, 0.18);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ea8d20, var(--secondary));
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 22px 34px rgba(247, 127, 0, 0.22);
}

/* ============================================
   SECCIONES
   ============================================ */
section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* ============================================
   PROMOCIONES - CORREGIDO
   ============================================ */
.promotions {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border-radius: 12px;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}

.promotion-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 220px;
    max-height: 300px;
    margin: 0 auto;
    width: 100%;
}

.promotion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.promotion-card-media {
    position: absolute;
    inset: 0;
}

.promotion-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.promotion-card:hover .promotion-card-media img {
    transform: scale(1.06);
}

.promotion-card-scrim {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 42%, rgba(0, 0, 0, 0) 68%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%);
}

.promotion-card .promo-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.promotion-card .discount {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: #dc2626;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(220, 38, 38, 0.35);
    white-space: nowrap;
    line-height: 1.3;
}

.promotion-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px 18px;
    color: #fff;
    text-align: left;
}

.promotion-card-info h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: capitalize;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promotion-card-info p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ============================================
   PRODUCTOS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0.97));
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(17, 17, 17, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(17, 17, 17, 0.04);
    animation: fadeUp 0.9s ease both;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 28px 48px rgba(17, 17, 17, 0.14);
    border-color: rgba(196, 30, 58, 0.14);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.35s ease;
    transform-origin: center;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.agotado {
    background: var(--danger);
}

.badge.poco {
    background: var(--warning);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.product-card,
.promotion-card,
.schedule-item,
.stat-pill {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.98);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    will-change: transform, opacity;
}

.product-card.visible,
.promotion-card.visible,
.schedule-item.visible,
.stat-pill.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.menu-catalog .product-card {
    opacity: 0;
    transform: translateY(42px) scale(0.97);
    transition-delay: calc(var(--delay, 0) * 70ms);
}

.menu-catalog .product-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.product-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--dark);
}

.product-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category {
    display: inline-block;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    padding: 0.3rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
}

.product-price-block {
    margin: 1rem 0;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.product-price-original {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 0.98rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    background: rgba(6, 167, 125, 0.12);
    color: var(--success);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.discount-badge.small {
    min-width: auto;
    padding: 0.14rem 0.45rem;
    font-size: 0.68rem;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.btn-add-to-cart {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    flex: 1;
    min-height: 54px;
    padding: 0.9rem 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart.is-adding {
    animation: cartButtonPulse 0.55s ease;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.btn-add-to-cart:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
    .btn-add-to-cart.is-adding,
    .cart-link.is-bumping .cart-count {
        animation: none;
    }
}

.stock-info {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--gray-light);
}

.menu-page {
    background: linear-gradient(180deg, #fff8f4 0%, #fff 38%, #fff 100%);
}

.menu-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.menu-hero__content {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.94), rgba(113, 19, 33, 0.92), rgba(72, 26, 24, 0.9));
    color: #fff;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(122, 20, 29, 0.24);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}

.menu-hero__content::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.eyebrow--dark {
    background: rgba(196, 30, 58, 0.08);
    border-color: rgba(196, 30, 58, 0.15);
    color: var(--primary);
}

.menu-hero__content h1 {
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    max-width: 520px;
}

.menu-hero__content p {
    max-width: 600px;
    color: rgba(255,255,255,0.82);
    font-size: 1.08rem;
    margin-bottom: 1.75rem;
}

.menu-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.menu-hero__stats {
    display: grid;
    gap: 1rem;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 20px;
    padding: 1.2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    color: var(--dark);
    font-weight: 600;
    animation: floatUp 4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 28px rgba(17, 17, 17, 0.08);
}

.stat-pill i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffe5d6, #ffdeb0);
    color: var(--primary);
    font-size: 1.2rem;
}

.menu-catalog {
    padding-top: 1rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin-bottom: 0.75rem;
}

/* ---------- Buscador del menú ---------- */
.menu-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    padding: 0.5rem 0.5rem 0.5rem 1.1rem;
    background: var(--lighter);
    border: 1.5px solid var(--gray-light);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.menu-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.menu-search__icon {
    color: var(--gray);
    font-size: 0.9rem;
}

.menu-search__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    padding: 0.5rem 0;
    min-width: 0;
}

.menu-search__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--light);
    color: var(--gray);
    text-decoration: none;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.menu-search__clear:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.menu-search__btn {
    padding: 0.6rem 1.3rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--lighter);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.menu-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.menu-search__results-count {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .menu-search {
        margin-left: 1rem;
        margin-right: 1rem;
        padding-left: 0.9rem;
    }

    .menu-search__btn {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.filter-btn {
    padding: 0.7rem 1.3rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--dark);
    animation: fadeUp 0.6s ease both;
    backdrop-filter: blur(8px);
}

.filter-btn:hover {
    border-color: rgba(196, 30, 58, 0.35);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(196, 30, 58, 0.08);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(196, 30, 58, 0.25);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.availability {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.availability.available {
    background: rgba(6, 167, 125, 0.08);
    color: var(--success);
}

.availability.low {
    background: rgba(247, 127, 0, 0.12);
    color: var(--warning);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 1px dashed rgba(0,0,0,0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--gray);
}

@media (max-width: 900px) {
    .menu-hero {
        grid-template-columns: 1fr;
        padding-top: 2.5rem;
    }

    .menu-hero__content {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .menu-hero__actions {
        flex-direction: column;
    }

    .menu-hero__actions a {
        width: 100%;
    }

    .category-filters {
        border-radius: 20px;
    }
}

/* ============================================
   AUTENTICACIÓN Y CARRITO - CORREGIDO
   ============================================ */
.auth-page,
.cart-page {
    background: linear-gradient(180deg, #fff8f4 0%, #fff 100%);
    padding: 4rem 2rem;
}

.auth-container,
.cart-summary,
.cart-item,
.empty-cart {
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

.auth-container {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    padding: 2.25rem;
}

.auth-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--dark);
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.92rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 14px;
    background: #fff;
    transition: var(--transition);
    font: inherit;
    color: var(--dark);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(196, 30, 58, 0.45);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.08);
}

.auth-container .btn-primary,
.auth-container form .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-size: 1rem;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-error {
    background: rgba(214, 40, 40, 0.08);
    color: var(--danger);
    border: 1px solid rgba(214, 40, 40, 0.18);
}

.alert-success {
    background: rgba(6, 167, 125, 0.08);
    color: var(--success);
    border: 1px solid rgba(6, 167, 125, 0.18);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
    font-weight: 600;
}

.auth-link a {
    color: var(--primary);
    font-weight: 700;
}

.cart-page section {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   CARRITO - CORRECCIÓN COMPLETA
   ============================================ */
.cart-container {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 22px;
    padding: 1rem 1.25rem;
    transition: var(--transition);
    width: 100%;
}

.item-image-box {
    width: 88px;
    height: 88px;
    min-width: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f8f8;
    border: 1px solid rgba(17, 17, 17, 0.04);
    flex-shrink: 0;
}

.item-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    flex: 1;
    padding: 0 0.5rem;
}

.item-details h3 {
    font-size: 1rem;
    margin: 0 0 0.2rem 0;
    color: var(--dark);
    font-weight: 700;
}

.item-unit {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 600;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-qty {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: var(--gray-light);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 700;
}

.btn-qty:hover {
    background: rgba(196, 30, 58, 0.08);
    color: var(--primary);
}

.btn-remove {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(214, 40, 40, 0.08);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-remove:hover {
    background: var(--danger);
    color: #fff;
}

.item-quantity {
    min-width: 28px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
}

.cart-summary {
    background: linear-gradient(135deg, #1d1d1d, #2d2d2d);
    color: #fff;
    border-radius: 26px;
    padding: 2rem;
    position: sticky;
    top: 90px;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.summary-row.total {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.2rem;
}

.cart-actions {
    margin-top: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.btn-checkout,
.btn-clear {
    width: 100%;
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-clear {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.08);
}

.empty-cart {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 3rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.empty-cart i {
    color: var(--primary);
    margin-bottom: 1rem;
}

.empty-cart h2 {
    margin-bottom: 0.75rem;
}

.empty-cart p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE - CARRITO Y OFERTAS
   ============================================ */
@media (max-width: 900px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.8rem;
    }

    .item-image-box {
        width: 100%;
        height: 200px;
        min-width: unset;
        border-radius: 12px;
    }

    .item-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .item-info {
        align-items: center;
        text-align: center;
        padding: 0;
        width: 100%;
    }

    .item-details h3 {
        font-size: 1.1rem;
    }

    .item-price {
        font-size: 1.2rem;
    }

    .item-actions {
        width: 100%;
        justify-content: center;
        gap: 0.8rem;
        margin-left: 0;
        padding-top: 0.5rem;
        border-top: 1px solid var(--gray-light);
    }

    .btn-qty,
    .btn-remove {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .item-quantity {
        font-size: 1.1rem;
        min-width: 32px;
    }

    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 500px;
    }

    .promotion-card {
        aspect-ratio: 16 / 10;
        min-height: 180px;
        max-height: 240px;
        border-radius: 14px;
    }

    .promotion-card .promo-tag {
        font-size: 0.6rem;
        padding: 3px 10px;
        top: 10px;
        left: 10px;
    }

    .promotion-card .discount {
        font-size: 0.7rem;
        padding: 4px 12px;
        top: 10px;
        right: 10px;
    }

    .promotion-card-info h3 {
        font-size: 1rem;
    }

    .promotion-card-info p {
        font-size: 0.78rem;
        -webkit-line-clamp: 1;
    }

    .admin-metrics-grid,
    .admin-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: 1rem 0.5rem;
    }

    .cart-page section {
        padding: 0 0.25rem;
    }

    .cart-item {
        padding: 0.75rem;
        border-radius: 14px;
        gap: 0.6rem;
    }

    .item-image-box {
        height: 160px;
        border-radius: 10px;
    }

    .item-details h3 {
        font-size: 0.95rem;
    }

    .item-price {
        font-size: 1rem;
    }

    .item-unit {
        font-size: 0.7rem;
    }

    .item-actions {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .btn-qty,
    .btn-remove {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .item-quantity {
        font-size: 0.95rem;
        min-width: 28px;
    }

    .cart-summary {
        padding: 1rem;
        border-radius: 16px;
        margin-top: 0.5rem;
    }

    .cart-summary h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .summary-row {
        font-size: 0.82rem;
        margin-bottom: 0.6rem;
    }

    .summary-row.total {
        font-size: 1.05rem;
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }

    .cart-actions .btn-checkout,
    .cart-actions .btn-clear {
        padding: 0.7rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .empty-cart {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }

    .empty-cart h2 {
        font-size: 1.2rem;
    }

    .empty-cart p {
        font-size: 0.85rem;
    }

    .promotions-grid {
        gap: 0.8rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .promotion-card {
        aspect-ratio: 16 / 9;
        min-height: 150px;
        max-height: 200px;
        border-radius: 12px;
    }

    .promotion-card .promo-tag {
        font-size: 0.5rem;
        padding: 2px 8px;
        top: 8px;
        left: 8px;
        border-radius: 14px;
    }

    .promotion-card .discount {
        font-size: 0.6rem;
        padding: 3px 10px;
        top: 8px;
        right: 8px;
        border-radius: 14px;
    }

    .promotion-card-info {
        padding: 10px 12px;
    }

    .promotion-card-info h3 {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

    .promotion-card-info p {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }

    .auth-page,
    .cart-page {
        padding: 2.5rem 1rem;
    }

    .auth-container,
    .empty-cart {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 360px) {
    .cart-item {
        padding: 0.6rem;
    }

    .item-image-box {
        height: 130px;
    }

    .item-details h3 {
        font-size: 0.85rem;
    }

    .item-price {
        font-size: 0.9rem;
    }

    .btn-qty,
    .btn-remove {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .item-quantity {
        font-size: 0.85rem;
        min-width: 24px;
    }

    .promotion-card {
        min-height: 130px;
        max-height: 170px;
    }

    .promotion-card .promo-tag {
        font-size: 0.45rem;
        padding: 2px 6px;
        top: 6px;
        left: 6px;
    }

    .promotion-card .discount {
        font-size: 0.5rem;
        padding: 2px 8px;
        top: 6px;
        right: 6px;
    }

    .promotion-card-info h3 {
        font-size: 0.75rem;
    }

    .promotion-card-info p {
        font-size: 0.6rem;
    }
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-page {
    background: linear-gradient(180deg, #fff8f4 0%, #fff 100%);
    padding: 4rem 2rem;
}

.admin-shell {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-header h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--dark);
}

.admin-identity-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(196, 30, 58, 0.12);
    box-shadow: 0 16px 30px rgba(17, 17, 17, 0.08);
    animation: adminFadeSlide 0.7s ease;
}

.admin-profile-shell {
    position: relative;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.18), rgba(255, 165, 88, 0.22));
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04);
}

.admin-profile-photo {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 26px rgba(196, 30, 58, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: adminFloat 3.2s ease-in-out infinite;
}

.admin-profile-photo.has-photo {
    background-color: #f4f1ee;
}

.admin-profile-photo.fallback {
    background: linear-gradient(135deg, #1d1d1d 0%, #c41e3a 30%, #f59e0b 100%);
}

.admin-profile-initials {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 8px 16px rgba(17, 17, 17, 0.2);
    transition: opacity 0.2s ease;
}

.admin-profile-photo.has-photo .admin-profile-initials {
    opacity: 0;
}

.admin-profile-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.admin-profile-label {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(196, 30, 58, 0.09);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-profile-copy h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: var(--dark);
}

.admin-profile-copy p {
    margin: 0;
    color: var(--gray);
    line-height: 1.5;
}

.admin-profile-photo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px rgba(196, 30, 58, 0.26);
}

@keyframes adminFadeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes adminFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.05);
    box-shadow: 0 16px 32px rgba(17, 17, 17, 0.05);
    transition: var(--transition);
}

.admin-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(17, 17, 17, 0.08);
}

.metric-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
    flex-shrink: 0;
}

.metric-sales .metric-icon { background: linear-gradient(135deg, #f97316, #fbbf24); }
.metric-pending .metric-icon { background: linear-gradient(135deg, #f59e0b, #fcd34d); }
.metric-unconfirmed .metric-icon { background: linear-gradient(135deg, #25d366, #128c7e); }
.metric-preparing .metric-icon { background: linear-gradient(135deg, #ef4444, #fb7185); }

/* ===== Historial de ventas (dashboard) ===== */
.sales-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sales-history-header h2 {
    margin: 0;
}

.sales-history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sales-tab {
    border: 1.5px solid var(--gray-light);
    background: #fff;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.sales-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sales-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.sales-day-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 16px;
}

.sales-day-picker label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.sales-day-picker input[type="date"] {
    border: 1.5px solid var(--gray-light);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background: #fff;
}

.sales-day-result {
    font-size: 0.95rem;
    color: var(--dark);
}

.sales-day-result strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.sales-chart-wrap {
    padding-top: 0.5rem;
}

.sales-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    height: 220px;
    padding: 0 0.25rem;
    overflow-x: auto;
}

.sales-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1 0 28px;
    min-width: 28px;
    height: 100%;
}

.sales-bar-value {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
    white-space: nowrap;
}

.sales-bar-fill {
    width: 100%;
    max-width: 34px;
    background: linear-gradient(180deg, #fbbf24, #f97316);
    border-radius: 8px 8px 0 0;
    transition: height 0.4s ease;
    min-height: 3px;
}

.sales-bar-label {
    margin-top: 0.5rem;
    font-size: 0.68rem;
    color: var(--gray);
    text-align: center;
    white-space: nowrap;
}

.sales-chart-empty {
    text-align: center;
    color: var(--gray);
    padding: 2rem 0;
}

@media (max-width: 600px) {
    .sales-history-tabs {
        width: 100%;
    }
    .sales-tab {
        flex: 1;
        text-align: center;
    }
}

.metric-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-label {
    color: var(--gray);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-value {
    color: var(--dark);
    font-size: 1.9rem;
    line-height: 1;
}

.metric-content small {
    color: var(--gray);
    font-size: 0.76rem;
    font-weight: 600;
}

.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 120px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--dark);
    background: linear-gradient(180deg, #fff7f5 0%, #fff 100%);
    border: 1px solid rgba(196, 30, 58, 0.08);
    box-shadow: 0 14px 26px rgba(17, 17, 17, 0.04);
    transition: var(--transition);
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admin-quick-card::after {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.admin-quick-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.admin-quick-card:hover,
.admin-quick-card.active {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08), rgba(255, 255, 255, 0.96));
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(196, 30, 58, 0.08);
    border-color: rgba(196, 30, 58, 0.2);
}

.admin-quick-card.active::after,
.admin-quick-card:hover::after {
    opacity: 1;
}

.admin-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.05);
    border-radius: 26px;
    box-shadow: 0 18px 38px rgba(17, 17, 17, 0.06);
    padding: 1.75rem;
}

.admin-home-image-panel {
    margin-bottom: 2rem;
}

.admin-home-upload-form {
    display: grid;
    gap: 1.25rem;
}

.admin-home-preview {
    width: 100%;
    min-height: 180px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: linear-gradient(135deg, #f9f4f1, #f1eced);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-home-preview img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.admin-home-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: var(--gray);
    font-weight: 700;
}

.admin-home-preview-empty i {
    font-size: 2rem;
    color: var(--primary);
}

.admin-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.admin-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
}

.admin-upload-label i {
    color: var(--primary);
}

.admin-upload-file-row {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.admin-upload-controls input[type="file"] {
    width: 100%;
    border: 1px dashed rgba(17, 17, 17, 0.2);
    background: #fff;
    border-radius: 14px;
    padding: 0.85rem 1rem;
}

.admin-upload-file-name {
    color: var(--gray);
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.admin-card h2,
.admin-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.admin-form,
.category-list,
.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-field label {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: #fff;
    font: inherit;
    color: var(--dark);
}

.admin-field textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    outline: none;
    border-color: rgba(196, 30, 58, 0.45);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.08);
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(196, 30, 58, 0.14);
}

.admin-button.secondary {
    background: rgba(196, 30, 58, 0.06);
    color: var(--primary);
    border: 1px solid rgba(196, 30, 58, 0.14);
    box-shadow: none;
}

.admin-button.danger {
    background: rgba(214, 40, 40, 0.08);
    border: 1px solid rgba(214, 40, 40, 0.15);
    color: var(--danger);
    box-shadow: none;
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-menu-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.menu-delete-form {
    margin: 0;
}

.product-edit-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

.product-edit-modal.open {
    display: flex;
}

.product-edit-panel {
    position: relative;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: rgba(17, 17, 17, 0.05);
    color: var(--dark);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.detail-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-product img,
.order-item-row img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(17, 17, 17, 0.07);
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.order-item-row div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.category-list-item,
.product-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 16px;
    background: #fff;
    padding: 0.9rem 1rem;
}

.category-list-item strong,
.product-item strong {
    color: var(--dark);
}

.product-item {
    align-items: flex-start;
    flex-direction: column;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.inline-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.tag {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    background: rgba(196, 30, 58, 0.08);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .admin-page {
        padding: 2.5rem 1rem;
    }

    .admin-form-row {
        grid-template-columns: 1fr;
    }

    .admin-header {
        align-items: flex-start;
    }
}

/* ============================================
   HORARIOS
   ============================================ */
.schedule-section {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border-radius: 12px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 700px;
    margin: 2rem auto;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.schedule-item .day {
    font-weight: 700;
    color: var(--dark);
}

.schedule-item .hours {
    color: var(--secondary);
    font-weight: 600;
}

.schedule-item .hours.closed {
    color: var(--danger);
}

.delivery-info {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(247, 127, 0, 0.1));
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.delivery-info i {
    color: var(--primary);
    margin-right: 0.8rem;
    font-size: 1.3rem;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

/* ============================================
   FOOTER - ACTUALIZADO
   ============================================ */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 3.5rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    color: #bbb;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-section ul li i {
    color: var(--secondary);
    width: 20px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
    font-size: 0.9rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   CHECKOUT Y CONFIRMACIÓN
   ============================================ */
.checkout-page,
.confirmation-page {
    background: var(--light);
    min-height: 70vh;
    padding: 3rem 0 5rem;
}

.checkout-page section,
.confirmation-page section {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.checkout-page h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    background: var(--lighter);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-md);
}

.form-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-light);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    background: var(--light);
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--lighter);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--gray-light);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    background: var(--light);
}

.radio-group label:hover {
    border-color: var(--primary-light);
    background: var(--lighter);
}

.radio-group input[type="radio"] {
    accent-color: var(--primary);
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-group label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(196, 30, 58, 0.06);
    color: var(--primary-dark);
}

.order-summary {
    background: var(--dark);
    border: none;
}

.order-summary h3 {
    color: var(--lighter);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.summary-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0.6rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.summary-row.total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.btn-place-order {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lighter);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-place-order:active {
    transform: translateY(0);
}

.confirmation-container {
    background: var(--lighter);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
}

.success-icon {
    font-size: 3.5rem;
    color: var(--success);
    margin-bottom: 1rem;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.confirmation-container h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.order-number {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.order-number strong {
    color: var(--dark);
}

.order-status {
    margin-bottom: 1.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-badge.pending {
    background: rgba(247, 127, 0, 0.12);
    color: #b35900;
}

.status-badge.confirmed {
    background: rgba(6, 167, 125, 0.12);
    color: var(--success);
}

.order-details {
    text-align: left;
    background: var(--light);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-details h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.9rem;
    color: var(--dark);
}

.detail-product {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.detail-product img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.detail-product span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.detail-row.total {
    margin-top: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--gray-light);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

.detail-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--gray-light);
    font-size: 0.88rem;
    color: var(--gray);
}

.detail-info p {
    margin-bottom: 0.4rem;
}

.detail-info strong {
    color: var(--dark);
}

.payment-proof-box {
    display: block;
}

.payment-proof-thumb {
    display: block;
    max-width: 100%;
    width: 100%;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    margin-top: 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--gray-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: zoom-in;
}

@media (max-width: 480px) {
    .payment-proof-thumb {
        max-height: 280px;
    }
}

.whatsapp-notice {
    background: rgba(247, 127, 0, 0.1);
    color: #b35900;
    border: 1px solid rgba(247, 127, 0, 0.25);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: left;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--lighter);
    background: linear-gradient(135deg, #25d366, #1da851);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.confirmation-actions .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--light);
    border: 1.5px solid var(--gray-light);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.confirmation-actions .btn-secondary:hover {
    background: var(--gray-light);
}

@media (max-width: 640px) {
    .checkout-page section,
    .confirmation-page section {
        padding: 0 1rem;
    }

    .form-section,
    .confirmation-container {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .detail-product img {
        width: 30px;
        height: 30px;
    }
}

/* ============================================
   ADMIN — Gestión de pedidos
   ============================================ */
.order-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.order-filter-tabs a {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--lighter);
    border: 1.5px solid var(--gray-light);
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.order-filter-tabs a:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.order-filter-tabs a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--lighter);
}

.status-badge.status-pending {
    background: rgba(247, 127, 0, 0.12);
    color: #b35900;
}

.status-badge.status-confirmed {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.status-badge.status-preparing {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.status-badge.status-ready {
    background: rgba(6, 167, 125, 0.12);
    color: var(--success);
}

.status-badge.status-delivered {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.status-badge.status-cancelled {
    background: rgba(214, 40, 40, 0.12);
    color: var(--danger);
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.mini-badge.confirmed,
.mini-badge.attended {
    background: rgba(6, 167, 125, 0.12);
    color: var(--success);
}

.mini-badge.unconfirmed {
    background: rgba(247, 127, 0, 0.12);
    color: #b35900;
}

.mini-badge.not-attended {
    color: var(--gray);
}

.order-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.orders-table-card {
    padding: 0;
    overflow: hidden;
}

.orders-table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.orders-table th {
    text-align: left;
    padding: 1rem 1.25rem;
    background: var(--light);
    color: var(--gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    border-bottom: 2px solid var(--gray-light);
}

.orders-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--gray-light);
    color: var(--dark);
    vertical-align: middle;
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.orders-table tbody tr:hover {
    background: var(--light);
}

.orders-table .order-time {
    display: block;
    color: var(--gray);
    font-size: 0.78rem;
}

.admin-button.small {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.order-detail-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
}

.order-detail-totals {
    max-width: 320px;
    margin-left: auto;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--gray-light);
}

.order-detail-totals .summary-row {
    color: var(--gray);
}

.order-detail-totals .summary-row.total {
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 700;
    border-top: 1px solid var(--gray-light);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .orders-table thead {
        display: none;
    }

    .orders-table, .orders-table tbody, .orders-table tr, .orders-table td {
        display: block;
        width: 100%;
    }

    .orders-table tr {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--gray-light);
    }

    .orders-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0;
        border-bottom: none;
        text-align: right;
    }

    .orders-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--gray);
        font-size: 0.75rem;
        text-transform: uppercase;
        text-align: left;
    }

    .orders-table td[data-label=""]::before {
        content: none;
    }

    .admin-metrics-grid,
    .admin-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================
   RESPONSIVE - HEADER
   ============================================ */
@media (max-width: 1024px) {
    section {
        padding: 3rem 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .logo a {
        font-size: 1.4rem;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
        gap: 0.5rem;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
        order: 2;
    }

    .header-actions {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr 1fr;
    }

    section h2 {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
        gap: 0.8rem;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .logo a i {
        font-size: 1.5rem;
    }

    .hero-banner {
        padding: 4rem 1rem;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-add-to-cart {
        width: 100%;
    }

    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-filters {
        padding: 1rem;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   NOTIFICACIONES (flash-message)
   ============================================ */
.flash-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lighter);
    box-shadow: var(--shadow-lg);
    max-width: min(90vw, 420px);
    text-align: center;
    animation: flashIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flash-message.success {
    background: linear-gradient(135deg, var(--success), #048c68);
}

.flash-message.error {
    background: linear-gradient(135deg, var(--danger), var(--primary-dark));
}

.flash-message.fade-out {
    animation: flashOut 0.5s ease forwards;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes flashOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

@media (max-width: 480px) {
    .flash-message {
        top: 12px;
        padding: 0.75rem 1.1rem;
        font-size: 0.85rem;
    }
}