/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --bg-main: #CEE5F2;
    --color-primary: #17255A;
    --color-accent: #F1ABB9;
    --color-white: #ffffff;
    --color-black: #242424;
    --card-bg: #f0f7fb;
    --header-height: 80px;


    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Berkshire Swash', cursive;

}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--color-black);
    overflow-x: hidden;
}

h2 {
    font-family: var(--font-primary);
}


/* ============================= */
/*   INTRO DEL LOGO PARTIDO      */
/* ============================= */
/* --- VARIABLES Y RESET GLOBAL --- */
:root {
    --bg-main: #CEE5F2;
    --color-primary: #17255A;
    --color-accent: #F1ABB9;
    --color-white: #ffffff;
    --color-black: #242424;
    --card-bg: #f0f7fb;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--color-black);
}

.page-wrapper {
    overflow: clip;
}



/* ANIMACIÓN DE PUERTAS CON LOGO */
.menu-intro {
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow: hidden; 
}

/* Las dos "puertas" que se abren */
.menu-split {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--color-primary); /* Color de fondo de las puertas */
    transition: transform 0.8s cubic-bezier(0.83, 0, 0.17, 1);

    /* --- LA MAGIA ESTÁ AQUÍ --- */
    /* 1. Usamos tu logo como imagen de fondo */
    background-image: url('../img/wafflelato01.jpg');
    
    /* 2. Evitamos que se repita */
    background-repeat: no-repeat;
    
    /* 3. Definimos el tamaño exacto que tendrá el logo en pantalla */
    background-size: 200px 200px; /* <- AJUSTA EL TAMAÑO DE TU LOGO AQUÍ */
}

/* La mitad izquierda posiciona el fondo a su derecha (en el centro de la pantalla) */
.menu-split.left { 
    left: 0;
    background-position: right center;
}

/* La mitad derecha posiciona el fondo a su izquierda (en el centro de la pantalla) */
.menu-split.right { 
    right: 0; 
    background-position: left center;
}

/* --- CLASES DE CONTROL (que añade el JS) --- */

/* Cuando se abre, las puertas se deslizan hacia afuera */
.menu-intro.open .left {
    transform: translateX(-100%);
}
.menu-intro.open .right {
    transform: translateX(100%);
}

/* Al final, se oculta todo para mostrar la web */
.menu-intro.hide {
    display: none;
}
/* ESTILOS DE LA ANIMACIÓN */


/* ============================= */
/*   HEADER MENÃš DE NAVEGACIÃ“N   */
/* ============================= */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    box-sizing: border-box;
    overflow: hidden;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}

.category-nav {
    font-family: var(--font-primary);
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    white-space: nowrap;
}
.category-nav::-webkit-scrollbar {
    display: none;
}

.category-list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
    gap: 0.75rem;
}

.category-chip {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background-color: transparent;
    border: 2px solid var(--bg-main);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.95rem;
    text-align: center;
}

.category-chip:hover {
    background-color: #eef5f8;
}

.category-chip.active {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

/* ============================= */
/*   BANNERS DE SECCIÃ“N          */
/* ============================= */
.section-banner {
    position: relative;
    width: 100%;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-banner h2 {
    color: var(--color-white);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 3px;
    background-color: rgba(23, 37, 90, 0.7);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

/* ============================= */
/*   LISTA DE PLATOS             */
/* ============================= */
.dish-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.dish-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dish-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    border-bottom: 1px solid var(--bg-main);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.dish-header h3 {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 700;
}

.price {
    font-size: 1rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-primary);
}

.dish-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* ============================= */
/*   BOTÃ“N SCROLL TOP            */
/* ============================= */
.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
    transform: translateY(20px);
    z-index: 500;
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-top-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
    stroke-width: 3px;
}

/* ============================= */
/*   AJUSTES RESPONSIVE          */
/* ============================= */
@media (min-width: 768px) {
    .main-header {
        padding: 0 2rem;
    }

    .category-list {
        justify-content: flex-end;
    }

    .section-banner {
        min-height: 300px;
    }

    .section-banner h2 {
        font-size: 3rem;
    }

    .dish-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 3rem 2rem;
        gap: 2rem;
    }
    
    .dish-header {
        flex-direction: row;
        align-items: baseline;
    }
    
}


/** **/
/* ============================= */
/*   PÁGINA EN CONSTRUCCIÓN      */
/* ============================= */

.coming-soon {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-main);
    color: var(--color-primary);
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.logo {
    width: 110px;
    height: auto;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    border-radius: 100px;
}

.coming-soon h1 {
    font-family: var(--font-secondary);
    font-size: 1.9rem;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.coming-soon p {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
    color: var(--color-black);
    margin-bottom: 2rem;
}

.btn-menu {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-family: var(--font-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-menu:hover,
.btn-menu:active {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ============================= */
/*   ADAPTACIÓN PARA TABLET Y PC */
/* ============================= */
@media (min-width: 768px) {
    .coming-soon {
        padding: 3rem;
    }

    .logo {
        width: 140px;
        margin-bottom: 1.5rem;
    }

    .coming-soon h1 {
        font-size: 2.5rem;
    }

    .coming-soon p {
        font-size: 1.1rem;
        max-width: 600px;
    }

    .btn-menu {
        font-size: 1rem;
        padding: 1rem 2.5rem;
    }
}

@media (min-width: 1200px) {
    .coming-soon {
        padding: 4rem;
    }

    .coming-soon h1 {
        font-size: 2.8rem;
    }
}
