/* ===========================================================
   LOCURA MENU
   style.css
   Section 1
   =========================================================== */


/* ===========================================================
   RESET
   =========================================================== */

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

[hidden]{
    display:none !important;
}

html{

    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;

}

body{

    min-height:100vh;

    font-family:"Outfit",sans-serif;

    background:#111111;

    color:#ffffff;

    overflow-x:hidden;

    text-rendering:optimizeLegibility;

    -webkit-font-smoothing:antialiased;

}

img{

    display:block;

    max-width:100%;

}

button{

    border:none;

    background:none;

    cursor:pointer;

    font:inherit;

}

a{

    color:inherit;

    text-decoration:none;

}

ul{

    list-style:none;

}



/* ===========================================================
   VARIABLES
   =========================================================== */

:root{

    --background:#111111;

    --surface:#1a1a1a;

    --surface-hover:#242424;

    --border:#2b2b2b;

    --text:#ffffff;

    --text-secondary:#a2a2a2;

    --bronze:#B08D57;

    --bronze-light:#d4b27d;

    --danger:#8b4a4a;

    --radius:18px;

    --radius-small:12px;

    --shadow:

        0 6px 24px rgba(0,0,0,.25);

    --transition:.20s ease;

    --max-width:760px;

}



/* ===========================================================
   UTILIDADES
   =========================================================== */

.hidden{

    display:none !important;

}

.container{

    width:min(100%,var(--max-width));

    margin:auto;

    padding-inline:20px;

}



/* ===========================================================
   BODY
   =========================================================== */

body{

    background:
        radial-gradient(ellipse 140% 55% at 50% -5%, #1c1812 0%, #111111 60%);

}



/* ===========================================================
   LANDING
   =========================================================== */

.landing{

    min-height:100vh;

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:32px;

    overflow:hidden;

}

.landing::before{

    content:'';

    position:absolute;

    top:50%;

    left:50%;

    transform:translate(-50%,-65%);

    width:680px;

    height:680px;

    background:radial-gradient(circle,rgba(176,141,87,.07) 0%,transparent 68%);

    pointer-events:none;

}

.landing-content{

    width:100%;

    max-width:420px;

    display:flex;

    flex-direction:column;

    align-items:center;

    text-align:center;

}

.landing-logo{

    width:280px;

    margin-bottom:36px;

}

.landing h1{

    font-size:clamp(2.2rem,8vw,3.2rem);

    font-weight:700;

    letter-spacing:.20rem;

    margin-bottom:8px;

}

.landing p{

    color:var(--text-secondary);

    font-size:1rem;

    margin-bottom:42px;

}



/* ===========================================================
   BOTÓN PRINCIPAL
   =========================================================== */

#enterMenuBtn{

    width:100%;

    height:56px;

    border-radius:999px;

    background:transparent;

    border:1.5px solid var(--bronze);

    color:var(--bronze);

    font-size:.88rem;

    font-weight:600;

    letter-spacing:.14em;

    text-transform:uppercase;

    transition:var(--transition);

}

#enterMenuBtn:hover{

    background:var(--bronze);

    color:#ffffff;

    box-shadow:0 0 28px rgba(176,141,87,.25);

    transform:translateY(-2px);

}

#enterMenuBtn:active{

    transform:scale(.98);

}



/* ===========================================================
   APP
   =========================================================== */

#app{

    min-height:100vh;

}



/* ===========================================================
   HEADER
   =========================================================== */

.header{

    position:sticky;

    top:0;

    z-index:100;

    display:flex;

    align-items:center;

    gap:16px;

    padding-left: 22px;

    background:rgba(14,12,10,.97);

    backdrop-filter:blur(16px);

    border-bottom:1px solid rgba(176,141,87,.15);

    transition:

        padding .25s ease,

        gap .25s ease;

}

.header-logo{

    width:230px;

    height:auto;

    object-fit:contain;

    flex-shrink:0;

    transition:width .25s ease;

}

.header h2{

    font-size:1.15rem;

    font-weight:700;

    letter-spacing:.10rem;

    margin-bottom:2px;

}

.header span{

    display:block;

    color:var(--text-secondary);

    font-size:.82rem;

}



/* ===========================================================
   HEADER COMPACTO
   (se activa desde JS)
   =========================================================== */

.header.compact{

    padding:8px 20px 8px 18px;

}

.header.compact .header-logo{

    width:130px;

}

.header.compact h2{

    font-size:1rem;

}

.header.compact span{

    font-size:.75rem;

}



/* ===========================================================
   SEPARACIÓN INFERIOR
   =========================================================== */

main{

    padding-bottom:90px;

}
/* ===========================================================
   CATEGORY TABS
   =========================================================== */

.tabs-wrapper{

    position:sticky;

    top:89px;

    z-index:90;

    background:rgba(14,12,10,.97);

    backdrop-filter:blur(16px);

    border-bottom:1px solid rgba(176,141,87,.1);

    /* mascara de degradado en el borde derecho */

    -webkit-mask-image:linear-gradient(
        to right,
        black 0%,
        black 78%,
        transparent 100%
    );

    mask-image:linear-gradient(
        to right,
        black 0%,
        black 78%,
        transparent 100%
    );

}

.category-tabs{

    display:flex;

    gap:12px;

    overflow-x:auto;

    overflow-y:hidden;

    /* padding-right reducido para que el ultimo tab quede cortado */

    padding:14px 48px 14px 18px;

    scrollbar-width:none;

}

.category-tabs::-webkit-scrollbar{

    display:none;

}

.category-tab{

    flex-shrink:0;

    display:flex;

    align-items:center;

    gap:8px;

    padding:12px 18px;

    border-radius:999px;

    background:var(--surface);

    color:var(--text-secondary);

    border:1px solid transparent;

    transition:var(--transition);

    white-space:nowrap;

}

.category-tab:hover{

    background:var(--surface-hover);

    color:var(--text);

}

.category-tab.active{

    background:linear-gradient(135deg,var(--bronze) 0%,#c8a468 100%);

    color:#fff;

    border-color:transparent;

    box-shadow:0 4px 18px rgba(176,141,87,.28);

}

.category-icon{

    width:20px;

    height:20px;

    object-fit:contain;

    flex-shrink:0;

}

.category-title{

    font-size:.9rem;

    font-weight:600;

}


/* ===========================================================
   MENU CONTAINER
   =========================================================== */

.menu-container{

    width:100%;

    max-width:760px;

    margin:0 auto;

    padding:22px;

}


/* ===========================================================
   CATEGORY SECTION ANIMATION
   =========================================================== */

@keyframes fadeSlideIn{

    from{ opacity:0; transform:translateY(10px); }

    to{ opacity:1; transform:translateY(0); }

}

.category-section:not([hidden]){

    animation:fadeSlideIn .3s ease;

}


/* ===========================================================
   CATEGORY TITLE
   =========================================================== */

.category-heading{

    margin-bottom:28px;

    padding-bottom:16px;

    border-bottom:1px solid rgba(255,255,255,.05);

}

.category-heading h2{

    font-size:1.6rem;

    letter-spacing:.06em;

    position:relative;

    display:inline-block;

    padding-bottom:10px;

}

.category-heading h2::after{

    content:'';

    position:absolute;

    bottom:0;

    left:0;

    width:24px;

    height:2px;

    background:var(--bronze);

    border-radius:1px;

}

.category-heading p{

    color:var(--text-secondary);

    font-size:.95rem;

    margin-top:6px;

}


/* ===========================================================
   PRODUCT GRID
   =========================================================== */

.products{

    display:grid;

    gap:18px;

}


/* ===========================================================
   CARD
   =========================================================== */

.menu-card{

    display:flex;

    gap:16px;

    padding:16px;

    background:linear-gradient(145deg,#1e1d1b 0%,#181716 100%);

    border:1px solid rgba(255,255,255,.06);

    border-radius:var(--radius);

    transition:transform var(--transition), box-shadow var(--transition);

}

.menu-card:hover{

    transform:translateY(-2px);

    box-shadow:0 10px 36px rgba(0,0,0,.45);

}

.card-image{

    width:92px;

    height:92px;

    object-fit:cover;

    border-radius:14px;

    background:#2b2b2b;

    flex-shrink:0;

}


/* ===========================================================
   CARD WITHOUT IMAGE
   =========================================================== */

.menu-card.no-image .card-image{

    display:none;

}

.menu-card.no-image .card-image-wrapper{

    display:none;

}

.menu-card.no-image{

    padding:18px 18px 18px 20px;

    border-left:2px solid var(--bronze);

}


/* ===========================================================
   CARD CONTENT
   =========================================================== */

.card-content{

    flex:1;

    min-width:0;

}

.card-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:12px;

    margin-bottom:8px;

}

.card-name{

    font-size:1.05rem;

    font-weight:600;

    line-height:1.25;

}

.card-price{

    color:var(--bronze);

    font-weight:700;

    white-space:nowrap;

    background:rgba(176,141,87,.1);

    border:1px solid rgba(176,141,87,.2);

    padding:2px 10px;

    border-radius:999px;

    font-size:.9rem;

    flex-shrink:0;

}

.card-description{

    color:var(--text-secondary);

    font-size:.92rem;

    line-height:1.5;

}

.card-portion{

    color:var(--text-secondary);

    font-size:.82rem;

    margin-top:6px;

    font-style:italic;

}


/* ===========================================================
   SIZES
   =========================================================== */

.card-sizes{

    margin-top:14px;

    display:flex;

    flex-direction:column;

    gap:8px;

}

.size-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding-top:8px;

    border-top:1px dashed var(--border);

}

.size-name{

    color:var(--text-secondary);

    font-size:.9rem;

}

.size-price{

    color:var(--bronze);

    font-weight:600;

}


/* ===========================================================
   UNAVAILABLE
   =========================================================== */

.menu-card.unavailable{

    opacity:.55;

}

.menu-card.unavailable .card-image{

    filter:grayscale(100%);

}

.card-unavailable{

    display:none;

    margin-top:12px;

    color:#d88484;

    font-size:.82rem;

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:.05em;

}

.menu-card.unavailable .card-unavailable{

    display:block;

}


/* ===========================================================
   FEATURED
   =========================================================== */

.menu-card.featured{

    background:linear-gradient(145deg,#201e18 0%,#181510 100%);

}

.menu-card.featured::before{

    display:none;

}


/* ===========================================================
   SCROLL TOP BUTTON
   =========================================================== */

.scroll-top{

    position:fixed;

    right:22px;

    bottom:22px;

    width:52px;

    height:52px;

    border-radius:50%;

    background:var(--bronze);

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:1.25rem;

    box-shadow:var(--shadow);

    opacity:0;

    visibility:hidden;

    transform:translateY(12px);

    transition:var(--transition);

    z-index:500;

}

.scroll-top.visible{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.scroll-top:hover{

    background:var(--bronze-light);

}


/* ===========================================================
   EMPTY CATEGORY
   =========================================================== */

.empty-category{

    padding:40px 20px;

    text-align:center;

    color:var(--text-secondary);

}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

/* Tablet */

@media (min-width: 768px){

    .landing{

        padding:64px;

    }

    .landing-logo{

        width:380px;

    }

    .landing h1{

        font-size:3.6rem;

    }

    #enterMenuBtn{

        min-width:260px;

    }

    .menu-container{

        max-width:720px;

        padding:32px;

    }

    .card-image{

        width:110px;

        height:110px;

    }

}


/* Desktop */

@media (min-width:1024px){

    body{

        font-size:16px;

    }

    .menu-container{

        max-width:720px;

    }

}


/* ===========================================================
   ACCESSIBILITY
   =========================================================== */

button:focus-visible{

    outline:2px solid var(--bronze);

    outline-offset:3px;

}

.category-tab:focus-visible{

    outline:2px solid var(--bronze);

    outline-offset:3px;

}

.menu-card:focus-within{

    outline:none;

}


/* ===========================================================
   SELECTION
   =========================================================== */

::selection{

    background:var(--bronze);

    color:white;

}


/* ===========================================================
   SCROLLBAR
   =========================================================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:#3a3a3a;

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:#555;

}


/* Firefox */

*{

    scrollbar-width:thin;

    scrollbar-color:#444 #111;

}


/* ===========================================================
   IMAGES
   =========================================================== */

.card-image{

    aspect-ratio:1;

    background:#252525;

}

.card-image[src=""]{

    display:none;

}


/* ===========================================================
   STATES
   =========================================================== */

.loading{

    text-align:center;

    color:var(--text-secondary);

    padding:60px 20px;

}

.error{

    text-align:center;

    color:#d88484;

    padding:60px 20px;

}

.empty-category{

    color:var(--text-secondary);

    text-align:center;

    padding:60px 20px;

}


/* ===========================================================
   UTILITIES
   =========================================================== */

.text-center{

    text-align:center;

}

.mt-1{

    margin-top:8px;

}

.mt-2{

    margin-top:16px;

}

.mt-3{

    margin-top:24px;

}

.mb-1{

    margin-bottom:8px;

}

.mb-2{

    margin-bottom:16px;

}

.mb-3{

    margin-bottom:24px;

}


/* ===========================================================
   REDUCED MOTION
   =========================================================== */

@media (prefers-reduced-motion: reduce){

    *{

        animation:none !important;

        transition:none !important;

        scroll-behavior:auto !important;

    }

}


/* ===========================================================
   LANDSCAPE PHONES
   =========================================================== */

@media (max-height:600px){

    .landing{

        padding:24px;

    }

    .landing-logo{

        width:120px;

        margin-bottom:16px;

    }

    .landing h1{

        font-size:2rem;

    }

    .landing p{

        margin-bottom:24px;

    }

}


/* ===========================================================
   PRINT
   =========================================================== */

@media print{

    body{

        background:white;

        color:black;

    }

    .landing{

        display:none;

    }

    .scroll-top{

        display:none;

    }

}