/* ================================================================
   PALETA TeamKa
   ================================================================ */
:root {
    --grad-1:    #d7c3a8;
    --grad-2:    #566f34;
    --bg:        #050505;
    --text:      #ffffff;
    --text-dark: #000000;
    --neon:      #e6ffb8;
    --card-radius: 20px;
}

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

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.menu-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--grad-1) 0%, var(--grad-2) 100%);
    border-bottom: 2px solid rgba(0,0,0,0.2);
    box-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-wrap img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 50%;
    background: #000;
    border: 2px solid rgba(255,255,255,0.15);
    padding: 4px;
}

.nav-title {
    flex: 1;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-login {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
    white-space: nowrap;
    transition: background .15s;
}
.nav-login:hover { background: rgba(0,0,0,0.12); }

/* ================================================================
   FILTROS
   ================================================================ */
.filter-section {
    padding: 2rem 0 1.5rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.filter-btn {
    background: linear-gradient(135deg, var(--grad-1) 0%, #b89e7e 100%);
    color: var(--text-dark);
    border: 2px solid transparent;
    border-radius: 40px;
    padding: 11px 30px;
    font-size: .88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(215,195,168,0.18);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(215,195,168,0.35);
}

.filter-btn.active {
    border-color: rgba(255,255,255,0.7);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 8px 28px rgba(215,195,168,0.35);
    transform: translateY(-1px);
}

/* ================================================================
   CONTENIDO PRINCIPAL
   ================================================================ */
.menu-main {
    padding-bottom: 4rem;
}

.menu-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: #555;
    font-size: 1.1rem;
    font-style: italic;
}

/* ================================================================
   SECCIÓN DE CATEGORÍA
   ================================================================ */
.menu-section {
    padding: 1.25rem 0 2rem;
}

.menu-section.hidden {
    display: none;
}

.section-heading {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1.25rem;
    padding-left: 6px;
    border-left: 4px solid var(--grad-1);
    padding-left: 14px;
}

/* ================================================================
   GRID DE PRODUCTOS
   ================================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ================================================================
   TARJETA DE PRODUCTO
   ================================================================ */
.product-card {
    background: linear-gradient(145deg, var(--grad-1) 0%, var(--grad-2) 100%);
    border-radius: var(--card-radius);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.65);
}

/* Imagen del producto */
.product-card__img-wrap {
    flex-shrink: 0;
    width: 160px;
    height: 165px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
}

.product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.35;
}

/* Info del producto */
.product-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card__name {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-card__ing-label {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.product-card__ing-list {
    list-style: none;
    flex: 1;
    margin-bottom: 8px;
}

.product-card__ing-list li {
    font-size: .86rem;
    color: var(--text-dark);
    padding: 1px 4px;
    opacity: 0.88;
    line-height: 1.5;
}

.product-card__price {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-dark);
    text-align: right;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.18);
    margin-top: auto;
}

/* ================================================================
   SECCIÓN PROMOCIONES
   ================================================================ */
.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.promo-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(215,195,168,0.2);
    background: rgba(215,195,168,0.06);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
    transition: transform .2s ease;
}
.promo-card:hover { transform: translateY(-4px); }

.promo-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.promo-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-style: italic;
}

/* ================================================================
   FOOTER
   ================================================================ */
.menu-footer {
    background: linear-gradient(90deg, var(--grad-1) 0%, var(--grad-2) 100%);
    color: var(--text-dark);
    text-align: center;
    padding: 18px 0;
    font-size: 1rem;
    border-top: 2px solid rgba(0,0,0,0.15);
}

/* ================================================================
   BOTÓN VOLVER ARRIBA
   ================================================================ */
.btn-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grad-2);
    color: var(--text);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 4px 18px rgba(86,111,52,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .15s ease, background .15s;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-top.visible {
    opacity: 1;
    pointer-events: all;
}

.btn-top:hover {
    background: #3d5025;
    transform: translateY(-3px);
}

/* ================================================================
   RESPONSIVE — TABLET (≤ 900px)
   ================================================================ */
@media (max-width: 900px) {
    .nav-title       { font-size: 1.8rem; }
    .logo-wrap img   { width: 54px; height: 54px; }

    .filter-btn      { padding: 10px 22px; font-size: .82rem; }

    .section-heading { font-size: 1.55rem; }

    .product-card__img-wrap { width: 130px; height: 138px; }
    .product-card__name     { font-size: 1.2rem; }
}

/* ================================================================
   RESPONSIVE — MÓVIL (≤ 640px)
   ================================================================ */
@media (max-width: 640px) {
    .container { width: calc(100% - 24px); }

    .nav-title { font-size: 1.35rem; }
    .logo-wrap img { width: 46px; height: 46px; }
    .nav-login { padding: 7px 12px; font-size: .82rem; }

    .filter-section { padding: 1.4rem 0 1rem; }
    .filter-tabs    { gap: 9px; }
    .filter-btn     { padding: 9px 16px; font-size: .78rem; letter-spacing: .4px; }

    /* 1 columna en móvil */
    .products-grid { grid-template-columns: 1fr; }

    .product-card           { gap: 13px; padding: 13px; }
    .product-card__img-wrap { width: 115px; height: 120px; }
    .product-card__name     { font-size: 1.1rem; }
    .product-card__price    { font-size: 1.05rem; }

    .promo-card img { height: 210px; }

    .section-heading { font-size: 1.3rem; }
}

/* ================================================================
   RESPONSIVE — MÓVIL PEQUEÑO (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
    .container { width: calc(100% - 16px); }

    /* Navbar: título oculto, solo logo + login */
    .nav-title  { display: none; }
    .logo-wrap img { width: 42px; height: 42px; }
    .nav-login  { font-size: .8rem; padding: 7px 11px; }

    .filter-btn { padding: 8px 13px; font-size: .75rem; }

    /* Tarjeta vertical en pantallas muy pequeñas */
    .product-card {
        flex-direction: column;
        align-items: stretch;
    }
    .product-card__img-wrap {
        width: 100%;
        height: 175px;
    }
    .product-card__name  { font-size: 1.15rem; }
    .product-card__price { font-size: 1.1rem; }

    .section-heading { font-size: 1.2rem; }
    .promo-card img  { height: 180px; }

    .btn-top { width: 42px; height: 42px; font-size: 1.3rem; bottom: 16px; right: 16px; }
}
