:root {
    --primary-color: #f5a623;   /* Appetizing warm yellow/orange */
    --primary-dark: #d48f1e;
    --background-color: #fafafa;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #777777;
    --border-color: #ededed;
    --accent-red: #e74c3c;
    --success-green: #2ecc71;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.br-mobile {
    display: none;
}

@media (max-width: 768px) {
    .br-mobile {
        display: inline;
    }
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Promo Bar */
.promo-bar {
    animation: barShimmer 8s linear infinite;
    background-size: 200% 100%;
}

@keyframes barShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.promo-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

@media (max-width: 768px) {
    .promo-bar {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    .promo-bar svg {
        width: 16px;
        height: 16px;
    }
}

/* Header */
.main-header {
    background: #111; /* Negro premium */
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.34rem;
    font-weight: 800;
    color: #fff; /* Logo blanco */
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}
.logo img {
    max-height: 55px;
    transition: max-height 0.3s;
}

@media (max-width: 768px) {
    .logo img {
        max-height: 42px;
    }
}
.logo span {
    color: var(--primary-color);
}

/* Minimum Order Badge */
.min-order-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.min-order-main {
    color: #ffc107;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.min-order-sub {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .promo-bar {
        font-size: 0.72rem;
        padding: 6px 8px;
    }
    .min-order-badge {
        padding: 5px 12px;
        width: 100%;
        max-width: 260px;
        margin: 0.4rem 0;
        border-radius: 10px;
    }
    .min-order-main {
        font-size: 0.85rem;
    }
    .min-order-sub {
        font-size: 0.65rem;
    }
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: #fff; /* Ícono blanco */
    transition: transform 0.2s;
}
.cart-icon:hover {
    transform: scale(1.1);
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
    border: 2px solid #111; /* Contorno oscuro */
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('../img/hero-banner.jpg') center/cover;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Menu Grid */
.menu-section {
    padding: 2rem 5% 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-main);
}
}
.category-block {
    margin-bottom: 1.5rem;
}
.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 12px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.product-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-name {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}
.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}
.product-btm-wrap {
    margin-top: auto;
}
.product-options {
    margin-bottom: 1.5rem;
    width: 100%;
}
.product-options label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.product-variant-select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.product-variant-select:focus {
    border-color: var(--primary-color);
}
.product-btm {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}
.btn-add {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: var(--font-body);
}
.btn-add:hover {
    background: var(--primary-dark);
}
.btn-add:active {
    transform: scale(0.95);
}

/* Float Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    right: 0;
}
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
}
.cart-overlay.show {
    display: block;
}
.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
}
.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.cart-empty {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
}
.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-name {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}
.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-btn {
    background: #f0f0f0;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.btn-checkout {
    display: block;
    width: 100%;
    background: var(--text-main);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-checkout:hover {
    background: black;
}

/* Hero Section Slider Fix */
.slider-container {
    height: 630px; /* 350px + 80% */
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover; /* Ancho completo sin repetir */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.slide.active {
    opacity: 1;
}
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Badges */
.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-immediate {
    background: #00d2ff;
    color: white;
}
.badge-out-of-stock {
    background: #ccc;
    color: #666;
}

.product-img-wrapper {
    position: relative;
    height: 200px;
}
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .hero h1, .slide h1 {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 4px;
    }
    .hero p, .slide p {
        font-size: 0.82rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    .hero, .slider-container {
        height: auto;
        min-height: 380px;
    }
    .hero-content {
        padding: 15px 12px 10px 12px;
    }
    .delivery-badge {
        margin-top: 0.4rem !important;
        padding: 4px 10px !important;
        font-size: 0.8rem !important;
    }
    .delivery-badge + p {
        font-size: 0.8rem !important;
        margin-top: 0.3rem !important;
    }
}

/* Stock CTA Styles */
.stock-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    width: 100%;
    position: relative;
}
.stock-cta::before {
    content: '';
    display: block;
    width: 180px; /* Width of the button approximately */
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin: 0 auto 0.8rem auto;
}
.stock-cta p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}
.btn-stock-today {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Outfit';
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.2s;
}
.btn-stock-today:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .stock-cta {
        margin-top: 0.6rem;
        padding-top: 0.4rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .stock-cta::before {
        display: none; /* Removed the line to gain space */
    }
    .stock-cta p {
        font-size: 0.82rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
        opacity: 0.9;
    }
    .btn-stock-today {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
        box-sizing: border-box;
        text-align: center;
        border-radius: 12px; /* Less round, more like a button-plate */
    }
    .category-title {
        background: linear-gradient(90deg, rgba(245, 166, 35, 0.15) 0%, rgba(255,255,255,1) 100%);
        padding: 14px 15px;
        border-left: 8px solid var(--primary-color);
        font-size: 1.2rem;
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 800;
        color: #333;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    .cart-footer {
        padding: 1.5rem 1.5rem 80px 1.5rem !important; /* Salir más arriba para evitar barras */
    }
    .btn-checkout {
        padding: 1.2rem !important;
    }
}
