/* General */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 22px;
}

body {
    margin: 0;
    padding: 0;
    background: #F7F5F0;
    color: #252525;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

/* Encabezado: logo protagonista */
.bienvenida {
    position: relative;
    text-align: center;
    padding: 0 0 18px;
    background: #F7F5F0;
    border-bottom: 1px solid #e8e1d8;
    overflow: hidden;
}

.logo {
    display: block;
    width: 100%;
    max-width: none;
    height: clamp(150px, 22vw, 230px);
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
    background: #06152b;
}

/* El nombre ya aparece dentro del logo; se conserva para accesibilidad */
.bienvenida h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bienvenida p {
    margin: 5px 12px;
    color: #555;
    font-size: 14px;
}

.bienvenida p:first-of-type {
    margin-top: 12px;
    margin-bottom: 2px;
    color: #A90008;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 4vw, 34px);
    font-style: italic;
    font-weight: 700;
    line-height: 1.15;
}

.bienvenida p:last-of-type {
    margin-top: 3px;
    font-size: 14px;
    color: #4a4038;
}

/* Navegación */
.menu-categorias {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    margin: 0 auto 34px;
    padding: 13px max(15px, calc((100% - 1120px) / 2));
    overflow-x: auto;
    background: rgba(247, 245, 240, .96);
    border-bottom: 1px solid #e8e1d8;
    backdrop-filter: blur(8px);
    scrollbar-width: thin;
}

.menu-categorias a {
    flex: 0 0 auto;
    display: inline-block;
    background: #A90008;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 15px;
    border-radius: 999px;
    transition: background-color .2s ease, transform .2s ease;
}

.menu-categorias a:hover {
    background: #780006;
    transform: translateY(-1px);
}

/* Secciones */
.seccion-menu {
    width: min(100% - 34px, 1060px);
    margin: 0 auto 52px;
    padding: 0;
    scroll-margin-top: 82px;
}

.seccion-menu>h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
    color: #252525;
    font-size: clamp(21px, 2.5vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    border: 0;
}

.seccion-menu>h2::before {
    content: "";
    display: block;
    width: 5px;
    height: 29px;
    flex: 0 0 5px;
    border-radius: 5px;
    background: #A90008;
}

/* Imagen integrada de categoría */
.foto-categoria {
    position: relative;
    height: 180px;
    margin: 0 0 20px;
    overflow: hidden;
    border-radius: 17px;
    background: #ddd;
    box-shadow: 0 7px 22px rgba(35, 22, 18, .12);
}

.foto-categoria::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 12, 10, .66) 0%, rgba(18, 12, 10, .22) 55%, rgba(18, 12, 10, .02) 100%);
    pointer-events: none;
}

.foto-categoria::before {
    content: attr(data-titulo);
    position: absolute;
    left: 22px;
    bottom: 17px;
    z-index: 1;
    max-width: 75%;
    color: #fff;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 9px rgba(0, 0, 0, .28);
}

.foto-categoria img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

/* Productos: tarjetas más visibles */
.lista-productos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.producto {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 14px;
    min-height: 100%;
    padding: 18px 18px 17px;
    background: #fff;
    border: 1px solid #eee8e1;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(35, 22, 18, .055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.producto:hover {
    transform: translateY(-2px);
    border-color: #e3c6c3;
    box-shadow: 0 8px 20px rgba(35, 22, 18, .09);
}

.producto-info {
    min-width: 0;
}

.producto-info h3 {
    margin: 0 0 7px;
    color: #252525;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .15px;
}

.producto-info p {
    margin: 0;
    color: #666;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.5;
}

.producto-precio {
    display: inline-block;
    width: auto;
    padding: 6px 9px;
    color: #A90008;
    background: #fff1f0;
    border: 1px solid #f5d9d7;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
    align-self: start;
}

/* Mensajes */
.nota-menu {
    margin: 10px 0 16px;
    padding: 11px 14px;
    color: #4c403c;
    background: #fff8f4;
    border-left: 3px solid #A90008;
    border-radius: 0 9px 9px 0;
    font-size: 13.5px;
    line-height: 1.5;
}

.nota-menu strong {
    color: #252525;
    font-weight: 800;
}

/* Subtítulos */
.subtitulo-menu {
    margin: 26px 0 13px;
    color: #252525;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

/* Pizzas */
.nota-pizza {
    margin-top: 20px;
    padding: 19px;
    background: #fff;
    border: 1px solid #eee8e1;
    border-left: 4px solid #A90008;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(35, 22, 18, .05);
}

.nota-pizza h3 {
    margin: 0 0 10px;
    color: #A90008;
    font-size: 17px;
    font-weight: 800;
}

.nota-pizza p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.nota-pizza strong {
    color: #252525;
    font-weight: 800;
}

/* Pie de página */
.pie-pagina {
    margin-top: 55px;
    padding: 30px 15px;
    background: #252525;
    color: #fff;
    text-align: center;
}

.pie-pagina p {
    margin: 5px 0;
    font-size: 14px;
}

/* Tablet y pantallas medianas */
@media (max-width: 760px) {
    .seccion-menu {
        width: min(100% - 30px, 680px);
        margin-bottom: 40px;
    }

    .lista-productos {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .foto-categoria {
        height: 165px;
    }

    .producto {
        padding: 16px;
    }
}

/* Celular */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .bienvenida {
        padding: 0 0 14px;
    }

    .logo {
        height: 118px;
    }

    .bienvenida p {
        font-size: 13px;
    }

    .bienvenida p:first-of-type {
        margin-top: 10px;
        font-size: 27px;
    }

    .bienvenida p:last-of-type {
        font-size: 13px;
    }

    .menu-categorias {
        gap: 7px;
        margin-bottom: 27px;
        padding: 10px 12px;
    }

    .menu-categorias a {
        font-size: 12.5px;
        padding: 8px 13px;
    }

    .seccion-menu {
        width: calc(100% - 28px);
        margin-bottom: 35px;
        scroll-margin-top: 70px;
    }

    .seccion-menu>h2 {
        margin-bottom: 13px;
        font-size: 21px;
    }

    .seccion-menu>h2::before {
        height: 25px;
    }

    .foto-categoria {
        height: 145px;
        margin-bottom: 15px;
        border-radius: 13px;
    }

    .foto-categoria::before {
        left: 16px;
        bottom: 14px;
        font-size: 22px;
    }

    .producto {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 10px;
        padding: 15px 14px;
        border-radius: 12px;
    }

    .producto-info h3 {
        font-size: 14.5px;
    }

    .producto-info p {
        font-size: 13px;
        line-height: 1.45;
    }

    .producto-precio {
        padding: 5px 7px;
        font-size: 13px;
    }

    .nota-menu {
        font-size: 13px;
        padding: 10px 12px;
    }

    .subtitulo-menu {
        font-size: 16.5px;
    }

    .nota-pizza {
        padding: 15px;
    }

    .nota-pizza p {
        font-size: 13px;
    }
}

/* Celulares pequeños */
@media (max-width: 360px) {
    .foto-categoria {
        height: 130px;
    }

    .producto {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 7px;
        padding: 12px;
    }

    .producto-info h3 {
        font-size: 13.5px;
    }

    .producto-precio {
        font-size: 12px;
    }
}

/* Reduce animaciones si el dispositivo lo solicita */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .producto,
    .menu-categorias a {
        transition: none;
    }
}


/* ===== Aplicación fiel de la composición aprobada ===== */
:root {
    --mana-cream: #fff0d8;
    --mana-panel: #fff8eb;
    --mana-red: #b20a12;
    --mana-red-dark: #950008;
    --mana-gold: #e8c98e;
    --mana-ink: #191919;
}

body {
    background: var(--mana-cream);
    color: var(--mana-ink);
}

/* Logo: imagen completa a todo el ancho, sin recorte ni deformación */
.bienvenida {
    padding: 0 0 18px;
    overflow: visible;
    background: var(--mana-cream);
    border: 0;
    text-align: center;
}

.bienvenida .logo {
    display: block;
    width: 100%;
    max-width: none;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    background: #06152b;
}

/* Mantiene el H1 para accesibilidad, pero no duplica el nombre que ya está en el logo */
.bienvenida h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Panel crema de bienvenida, unido visualmente a la parte baja del logo */
.panel-bienvenida {
    position: relative;
    width: min(calc(100% - 34px), 1160px);
    margin: -30px auto 16px;
    padding: 38px 24px 18px;
    border: 2px solid var(--mana-gold);
    border-radius: 28px;
    background: var(--mana-panel);
    box-shadow: 0 5px 0 rgba(180, 130, 55, .12), 0 8px 18px rgba(83, 47, 8, .08);
    z-index: 2;
}

.gorro-chef {
    position: absolute;
    top: -25px;
    left: 50%;
    width: 54px;
    height: 48px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    background: var(--mana-panel);
    border-radius: 50%;
}

.gorro-chef svg {
    display: block;
    width: 48px;
    height: 42px;
}

.panel-bienvenida .texto-bienvenida {
    margin: 0;
    color: var(--mana-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5.2vw, 72px);
    font-style: italic;
    font-weight: 700;
    line-height: 1.05;
    text-shadow: 0 1px 0 #fff, 0 2px 1px rgba(90, 0, 0, .12);
}

.panel-bienvenida .descripcion-bienvenida {
    margin: 5px auto 0;
    max-width: 760px;
    color: #1e1b18;
    font-size: clamp(16px, 2vw, 26px);
    font-weight: 600;
    line-height: 1.25;
}

.panel-bienvenida::before,
.panel-bienvenida::after {
    content: "";
    position: absolute;
    top: 50%;
    width: clamp(38px, 10vw, 120px);
    height: 5px;
    border-radius: 50%;
    background: var(--mana-red);
    opacity: .9;
}

.panel-bienvenida::before {
    left: 3%;
    transform: rotate(12deg);
    box-shadow: 0 -18px 0 -1px var(--mana-red), 0 18px 0 -1px var(--mana-red);
}

.panel-bienvenida::after {
    right: 3%;
    transform: rotate(-12deg);
    box-shadow: 0 -18px 0 -1px var(--mana-red), 0 18px 0 -1px var(--mana-red);
}

/* Categorías en tarjetas con icono rojo */
.menu-categorias {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0 auto 32px;
    padding: 0 16px 14px;
    overflow-x: auto;
    background: var(--mana-cream);
    border: 0;
    backdrop-filter: none;
    scrollbar-width: thin;
}

.menu-categorias .categoria-link {
    flex: 0 0 112px;
    min-height: 98px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 9px 6px 8px;
    border: 1px solid #f0dfbf;
    border-radius: 17px;
    background: #fff8eb;
    color: #211d18;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: 0 4px 0 rgba(152, 101, 24, .13), 0 6px 10px rgba(75, 46, 8, .07);
    transition: transform .18s ease, background-color .18s ease;
}

.menu-categorias .categoria-link:hover {
    background: #fff0d8;
    transform: translateY(-2px);
}

.menu-categorias .categoria-link:first-child {
    color: #fff;
    background: linear-gradient(145deg, #d91b22, #a90008);
    border-color: #c72b2e;
}

.icono-categoria {
    display: block;
    width: 38px;
    height: 38px;
    fill: none;
    stroke: var(--mana-red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-categorias .categoria-link:first-child .icono-categoria {
    stroke: #fff;
}

.categoria-link span {
    display: block;
}

/* Título de cada sección: icono, texto y línea roja horizontal */
.seccion-menu {
    width: min(calc(100% - 38px), 1160px);
    margin: 0 auto 44px;
    scroll-margin-top: 118px;
}

.seccion-menu>h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 15px;
    color: #171717;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.15;
}

.seccion-menu>h2::before {
    content: "♜";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    background: none;
    color: var(--mana-red);
    font-size: 34px;
    border-radius: 0;
}

.seccion-menu>h2::after {
    content: "";
    display: block;
    flex: 1 1 auto;
    min-width: 20px;
    height: 4px;
    margin-left: 4px;
    border-radius: 99px;
    background: var(--mana-red);
}

/* Foto de categoría: banner horizontal con título integrado */
.foto-categoria {
    position: relative;
    height: clamp(150px, 16vw, 205px);
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: 24px;
    background: #d9c5a6;
    box-shadow: none;
}

.foto-categoria::after {
    background: linear-gradient(90deg, rgba(12, 10, 8, .68) 0%, rgba(12, 10, 8, .22) 50%, rgba(12, 10, 8, 0) 100%);
}

.foto-categoria::before {
    left: 28px;
    bottom: 27px;
    max-width: 75%;
    font-size: clamp(23px, 3.5vw, 40px);
    font-weight: 800;
}

.foto-categoria img {
    object-fit: cover;
    object-position: center;
}

/* Producto: tarjeta crema clara, precio en cápsula roja suave */
.lista-productos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.producto {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    min-height: 76px;
    padding: 14px 16px;
    background: #fff9ef;
    border: 1px solid #f0dfbf;
    border-radius: 20px;
    box-shadow: 0 4px 0 rgba(152, 101, 24, .10), 0 5px 12px rgba(75, 46, 8, .06);
    transition: none;
}

.producto:hover {
    transform: none;
    border-color: #f0dfbf;
    box-shadow: 0 4px 0 rgba(152, 101, 24, .10), 0 5px 12px rgba(75, 46, 8, .06);
}

.producto-info h3 {
    margin: 0 0 3px;
    color: #171717;
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 800;
    line-height: 1.25;
}

.producto-info p {
    margin: 0;
    color: #3d3934;
    font-size: clamp(12px, 1.1vw, 15px);
    line-height: 1.35;
}

.producto-precio {
    padding: 6px 12px;
    color: #b20a12;
    background: #ffe0d7;
    border: 0;
    border-radius: 999px;
    font-size: clamp(15px, 1.5vw, 21px);
    font-weight: 900;
    text-align: center;
}

/* Notas y apartados complementarios en la misma paleta */
.nota-menu,
.nota-pizza {
    background: #fff8eb;
    border-color: #f0dfbf;
    color: #3d3934;
    box-shadow: 0 4px 10px rgba(75, 46, 8, .05);
}

.nota-menu {
    border-left: 4px solid var(--mana-red);
}

.nota-pizza {
    border-left: 5px solid var(--mana-red);
    border-radius: 18px;
}

.subtitulo-menu {
    color: #171717;
}

/* Tablet y móvil */
@media (max-width: 760px) {
    .panel-bienvenida {
        width: calc(100% - 24px);
        margin-top: -22px;
        padding: 34px 15px 15px;
        border-radius: 22px;
    }

    .panel-bienvenida .texto-bienvenida {
        font-size: clamp(34px, 8vw, 52px);
    }

    .panel-bienvenida .descripcion-bienvenida {
        font-size: clamp(14px, 3.5vw, 19px);
    }

    .panel-bienvenida::before,
    .panel-bienvenida::after {
        width: 30px;
        height: 3px;
        box-shadow: 0 -10px 0 -1px var(--mana-red), 0 10px 0 -1px var(--mana-red);
    }

    .menu-categorias {
        gap: 7px;
        padding: 0 10px 12px;
        margin-bottom: 25px;
    }

    .menu-categorias .categoria-link {
        flex-basis: 92px;
        min-height: 83px;
        font-size: 11.5px;
        border-radius: 14px;
    }

    .icono-categoria {
        width: 31px;
        height: 31px;
    }

    .seccion-menu {
        width: calc(100% - 24px);
        margin-bottom: 34px;
        scroll-margin-top: 100px;
    }

    .seccion-menu>h2 {
        font-size: clamp(22px, 5vw, 30px);
        gap: 8px;
    }

    .seccion-menu>h2::before {
        font-size: 27px;
    }

    .foto-categoria {
        height: 145px;
        border-radius: 17px;
    }

    .foto-categoria::before {
        left: 17px;
        bottom: 18px;
        font-size: 23px;
    }

    .lista-productos {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .producto {
        min-height: 70px;
        padding: 13px 14px;
        border-radius: 16px;
    }

    .producto-info h3 {
        font-size: 14px;
    }

    .producto-info p {
        font-size: 12.5px;
    }

    .producto-precio {
        font-size: 15px;
        padding: 6px 9px;
    }
}

@media (max-width: 420px) {
    .panel-bienvenida {
        padding-left: 10px;
        padding-right: 10px;
    }

    .panel-bienvenida .texto-bienvenida {
        font-size: 33px;
    }

    .panel-bienvenida .descripcion-bienvenida {
        font-size: 13.5px;
    }

    .salto-bienvenida {
        display: none;
    }

    .menu-categorias .categoria-link {
        flex-basis: 82px;
        min-height: 78px;
        padding: 7px 4px;
        font-size: 10.5px;
    }

    .icono-categoria {
        width: 28px;
        height: 28px;
    }

    .seccion-menu>h2::after {
        min-width: 12px;
    }
}

.seccion-menu>h2::before {
    content: none;
}

.titulo-icono {
    display: inline-flex;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
}

.titulo-icono svg {
    display: block;
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--mana-red);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.titulo-texto {
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .titulo-icono {
        width: 28px;
        height: 28px;
    }

    .titulo-icono svg {
        width: 27px;
        height: 27px;
    }
}

/* Ajustes finales */
.bienvenida .logo {
    width: min(100%, 1160px);
    max-width: 1160px;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

/* Categoría seleccionada */
.menu-categorias .categoria-link.activa {
    color: #fff;
    background: linear-gradient(145deg, #d91b22, #a90008);
    border-color: #c72b2e;
}

.menu-categorias .categoria-link.activa .icono-categoria {
    stroke: #fff;
}

/* Las demás categorías mantienen el estilo claro */
.menu-categorias .categoria-link:not(.activa) {
    color: #211d18;
    background: #fff8eb;
    border-color: #f0dfbf;
}

.menu-categorias .categoria-link:not(.activa) .icono-categoria {
    stroke: var(--mana-red);
}

/* Tamaño del logo en pantallas pequeñas */
@media (max-width: 760px) {
    .bienvenida .logo {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .bienvenida .logo {
        width: 100%;
        max-width: 100%;
    }
}

/* Categorías centradas */
.menu-categorias {
    justify-content: center;
}

/* Categoría activa */
.menu-categorias a.activa {
    background: linear-gradient(145deg, #d91b22, #a90008);
    color: #fff;
    border-color: #c72b2e;
}

/* Icono activo */
.menu-categorias a.activa svg {
    stroke: #fff;
}

/* Categorías en celular */
@media (max-width: 760px) {
    .menu-categorias {
        justify-content: flex-start;
    }

    .menu-categorias a {
        flex-shrink: 0;
    }
}

/* Categoría activa */
.menu-categorias .categoria-link.activa {
    color: #fff;
    background: linear-gradient(145deg, #d91b22, #a90008);
    border-color: #c72b2e;
}

.menu-categorias .categoria-link.activa .icono-categoria {
    stroke: #fff;
}

/* Primera categoría cuando no está activa */
.menu-categorias .categoria-link:first-child:not(.activa) {
    color: #211d18;
    background: #fff8eb;
    border-color: #f0dfbf;
}

.menu-categorias .categoria-link:not(.activa) .icono-categoria {
    stroke: var(--mana-red);
}

/* Evita que el menú se desplace verticalmente */
.menu-categorias {
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
}