:root {
    --rojo: #fe050b;
    --rojo-oscuro: #c40008;
    --tinta: #24180f;
    --crema: #f6edd8;
    --papel: #f3e4c4;
    --linea: rgba(36, 24, 15, 0.16);
    --blanco: #fff;
    --sombra: 0 12px 40px rgba(36, 24, 15, 0.12);
    --ancho: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--tinta);
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--crema);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; font-size: 16px; }
body { overflow-x: clip; }
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.portada {
    background: var(--rojo);
    color: var(--blanco);
    min-height: 100vh;
    min-height: 100dvh;
}
.bienvenida {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(120px, 1fr) auto auto auto;
    justify-items: center;
    align-items: center;
    text-align: center;
    padding: calc(6vh + env(safe-area-inset-top)) 7vw calc(4vh + env(safe-area-inset-bottom));
}
.bienvenida__kicker {
    margin: 0;
    font-size: clamp(1.1rem, 2.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.bienvenida__logo {
    width: min(72vw, 420px);
    align-self: center;
}
.bienvenida__wa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2vh;
}
.bienvenida__wa svg { width: 54px; height: 54px; }
.bienvenida__extra {
    display: flex;
    gap: 1.2rem;
    margin: 0 0 3vh;
    font-size: 0.92rem;
}
.bienvenida__extra a {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.bienvenida__menus {
    width: min(920px, 100%);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}
.bienvenida__menus a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.05;
}
.bienvenida__menus svg { width: 74px; height: 74px; }

.barra {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: calc(0.7rem + env(safe-area-inset-top)) 4vw 0.7rem;
    background: var(--rojo);
    color: #fff;
}
.barra__logo img { width: 92px; height: auto; }
.barra__nav { display: flex; gap: 1rem; align-items: center; margin-left: auto; }
.barra__nav a { text-decoration: none; font-weight: 700; }
.barra__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.barra__carrito {
    background: #fff;
    color: var(--rojo);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
}
.barra__burger { display: none; margin-left: auto; background: transparent; color: #fff; border: 1px solid #fff; border-radius: 999px; padding: 0.35rem 0.8rem; }

.carta { padding: 1.5rem 4vw 6.5rem; }
.carta__cabeza, .rubro, .aviso-cocina { max-width: 860px; margin-left: auto; margin-right: auto; }
.carta__cabeza h1, .hoja h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 0.95; margin: 0.2rem 0 0.6rem; }
.kicker { letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--rojo); margin: 0; }
.buscar input, .formulario input, .formulario select, .formulario textarea {
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--linea);
    border-radius: 12px;
    background: #fff;
    color: var(--tinta);
}
.anclas {
    max-width: 860px;
    margin: 1rem auto;
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
}
.anclas a {
    flex: 0 0 auto;
    text-decoration: none;
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 700;
}
.rubro { margin-top: 1.6rem; }
.rubro h2 {
    margin: 0;
    color: #fff;
    background: var(--rojo);
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    letter-spacing: 0.04em;
}
.rubro__nota { color: #5c4636; }
.platos { list-style: none; margin: 0; padding: 0; }
.plato {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 0.8rem;
    padding: 0.9rem 0;
    border-bottom: 1px dashed var(--linea);
    background: transparent;
}
.plato:not(:has(img)) { grid-template-columns: 1fr; }
.plato img { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; }
.plato h3 { margin: 0; font-size: 1.02rem; }
.plato p { margin: 0.25rem 0 0; color: #5d4a3b; }
.plato__cuerpo { min-width: 0; }
.plato__fila { display: flex; justify-content: space-between; gap: 0.6rem 1rem; align-items: baseline; flex-wrap: wrap; }
.plato__fila strong { white-space: nowrap; }
.plato h3 { overflow-wrap: anywhere; }
.plato.oculto { display: none; }
.btn-mas, .btn, .barra__burger {
    cursor: pointer;
}
.btn-mas {
    margin-top: 0.55rem;
    border: 0;
    background: var(--rojo);
    color: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 800;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--rojo);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    min-height: 48px;
    font-weight: 800;
    touch-action: manipulation;
}
.btn:disabled { opacity: 0.55; }
.aviso-cocina { color: #5d4a3b; }
.carrito-barra {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    align-items: center;
    background: var(--tinta);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    font-weight: 800;
    box-shadow: var(--sombra);
    z-index: 30;
}

.hoja { max-width: var(--ancho); margin: 0 auto; padding: 1.6rem 4vw calc(6.5rem + env(safe-area-inset-bottom)); }
.hoja--ancha { max-width: 1040px; }
.lead { font-size: 1.08rem; }
.formulario { display: grid; gap: 0.85rem; margin-top: 1rem; min-width: 0; }
.formulario label { font-weight: 700; display: grid; }
.formulario input, .formulario select, .formulario textarea { max-width: 100%; min-width: 0; min-height: 48px; }
.formulario .btn { width: 100%; }
.formulario textarea { min-height: 90px; resize: vertical; }
.alerta { background: #fff; border-left: 4px solid var(--rojo); padding: 0.8rem 1rem; }
.cupo, .sena, .ayuda { color: #5d4a3b; }
.cupo.alerta { color: var(--tinta); }
.resumen-reserva {
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin: 1rem 0;
}
.resumen-reserva p { margin: 0.25rem 0; }
.linea-pedido { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--linea); }
.qty { display: inline-flex; gap: 0.4rem; align-items: center; }
.qty button { border: 0; background: var(--tinta); color: #fff; border-radius: 999px; width: 1.7rem; height: 1.7rem; cursor: pointer; }

.plano {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1.2rem 0;
}
.zona {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.15rem;
    padding: 0.9rem;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    min-height: 90px;
    background: #8c3b2a;
}
.zona strong { font-size: 1.15rem; }
.zona span { opacity: 0.92; }
.zona--salon { background: var(--rojo); min-height: 220px; }
.zona--patio { background: #2f6b45; min-height: 220px; }
.datos-plano { padding-left: 1.1rem; }

.ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; margin: 1.2rem 0 1.6rem; }
.ficha div { background: #fff; border-radius: 14px; padding: 0.85rem 1rem; }
.ficha dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rojo); font-weight: 800; }
.ficha dd { margin: 0.25rem 0 0; }
.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; }
.galeria figure { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; }
.galeria img { width: 100%; height: 190px; object-fit: cover; }
.galeria figcaption { padding: 0.6rem 0.75rem 0.8rem; font-size: 0.92rem; }

.pie {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1rem;
    padding: 2rem 4vw 6rem;
    background: var(--rojo);
    color: #fff;
}
.pie a { color: #fff; }
.pie__marca img { width: 120px; }
.wa-fijo {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1fa855;
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 25;
    box-shadow: var(--sombra);
}
.wa-fijo svg { width: 32px; height: 32px; }
.carta ~ .wa-fijo, .carrito-barra ~ .wa-fijo { bottom: 5.2rem; }

.tabla { width: 100%; border-collapse: collapse; background: #fff; }
.tabla th, .tabla td { text-align: left; padding: 0.55rem; border-bottom: 1px solid var(--linea); vertical-align: top; font-size: 0.92rem; }
.tabla form { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.mini { border: 0; background: var(--tinta); color: #fff; border-radius: 999px; padding: 0.25rem 0.55rem; cursor: pointer; }

.barra--admin { justify-content: space-between; }
.barra--admin form { margin: 0; }
.mini--claro { background: #fff; color: var(--tinta); }
.btn--chico { padding: 0.55rem 0.85rem; }
.btn--linea { background: transparent; color: var(--rojo); border: 2px solid var(--rojo); }
.solapas {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    margin: 1rem 0;
    padding-bottom: 0.2rem;
}
.solapas a {
    flex: 0 0 auto;
    text-decoration: none;
    background: #fff;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-weight: 800;
}
.solapas a[aria-current="page"] { background: var(--rojo); color: #fff; }
.solapas--suave { margin-top: 0; }
.tarjetas { display: grid; gap: 0.8rem; }
.tarjeta {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
}
.tarjeta h2 { margin: 0.2rem 0 0.4rem; font-size: 1.25rem; }
.tarjeta p, .tarjeta ul { margin: 0.25rem 0; }
.tarjeta__tope, .tarjeta__acciones {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}
.tarjeta__acciones { margin-top: 0.7rem; }
.tarjeta__acciones form { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tarjeta__mp { color: #5d4a3b; font-size: 0.92rem; }
.estado {
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    background: #efe6d4;
}
.estado--confirmada, .estado--pagada { background: #d8f3df; }
.estado--pendiente_pago, .estado--pendiente, .estado--recibida { background: #fff1c9; }
.estado--cancelada { background: #f8d4d4; }
.ok { background: #e7f6ea; border-left: 4px solid #1f7a3a; padding: 0.8rem 1rem; }
.nota-ads { background: #fff; border-radius: 14px; padding: 0.8rem 1rem; }
.nota-ads ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.panel .btn { margin-right: 0.4rem; }

@media (max-width: 800px) {
    .barra__burger { display: inline-block; min-height: 44px; }
    .barra__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 50;
        flex-direction: column;
        align-items: stretch;
        background: #c40008;
        padding: 0.4rem 4vw calc(1rem + env(safe-area-inset-bottom));
        max-height: calc(100dvh - 4.5rem);
        overflow-y: auto;
    }
    .barra__nav.abierto { display: flex; }
    .barra__nav a { display: flex; align-items: center; min-height: 48px; padding: 0.35rem 0; }
    .barra__carrito { justify-content: center; }
    .wa-fijo { bottom: calc(1rem + env(safe-area-inset-bottom)); right: calc(1rem + env(safe-area-inset-right)); }
    .carrito-barra {
        left: 1rem;
        right: 4.8rem;
        width: auto;
        transform: none;
        justify-content: center;
        bottom: calc(1rem + env(safe-area-inset-bottom));
        min-height: 48px;
    }
    .carta ~ .wa-fijo { bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .pie { grid-template-columns: 1fr; padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
    .plano { grid-template-columns: 1fr; }
    .plato { grid-template-columns: 88px 1fr; }
    .plato img { width: 88px; height: 72px; }
    .mini { min-height: 44px; padding: 0.45rem 0.8rem; }
    .hoja .btn { width: 100%; }
}
@media (max-width: 520px) {
    .plato, .plato:not(:has(img)) { grid-template-columns: 1fr; }
    .plato img { width: 100%; height: 180px; }
    .bienvenida__menus svg { width: 56px; height: 56px; }
    .bienvenida__extra { flex-wrap: wrap; justify-content: center; }
    .bienvenida { padding-left: 5vw; padding-right: 5vw; }
    .bienvenida__kicker { letter-spacing: 0.12em; }
}
@media (max-height: 740px) {
    .bienvenida { padding-top: calc(2vh + env(safe-area-inset-top)); }
    .bienvenida__logo { width: min(46vw, 220px); }
    .bienvenida__menus svg { width: 48px; height: 48px; }
    .bienvenida__wa { margin-bottom: 0; }
    .bienvenida__wa svg { width: 40px; height: 40px; }
    .bienvenida__extra { margin-bottom: 1vh; }
}
.inicio { background: var(--crema); }
.hero { background: #1a100c; }
.hero img {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}
.hero__pie {
    margin: 0;
    padding: 0.75rem 4vw;
    background: var(--rojo);
    color: #fff;
    text-align: center;
    font-weight: 700;
}
.accesos {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 4vw 0.2rem;
    max-width: 920px;
    margin: 0 auto;
}
.acceso {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    background: var(--rojo);
}
.acceso strong { font-size: 1.15rem; }
.acceso span, .acceso small { display: block; opacity: 0.92; font-weight: 600; }
.acceso--pedido { background: var(--tinta); }
.acceso--wa {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    background: #1fa855;
}
.acceso--wa svg { width: 36px; height: 36px; flex: 0 0 auto; }
.muro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1rem 4vw 0.4rem;
    max-width: 980px;
    margin: 0 auto;
}
.muro figure {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #1a100c;
}
.muro img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 720px) {
    .accesos { grid-template-columns: 1fr 1fr 1fr; }
    .muro { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .plano { grid-template-columns: 1fr 1fr; }
    .zona--salon, .zona--patio { min-height: 320px; }
}

.precio-fila {
    display: grid;
    grid-template-columns: 1fr 7.5rem;
    gap: 0.6rem;
    align-items: center;
    background: #fff;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--linea);
}
.precio-fila strong { display: block; }
.precio-fila a { font-size: 0.85rem; }
.precio-fila small {
    display: block;
    font-weight: 600;
    color: #5d4a3b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.precio-caja { display: flex; align-items: center; gap: 0.2rem; font-weight: 800; }
.precio-caja input { width: 100%; min-height: 48px; text-align: right; }
.guardar-fijo {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    background: var(--crema);
    padding: 0.8rem 0 calc(0.8rem + env(safe-area-inset-bottom));
}
.qr-caja {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    margin: 0 0 1rem;
}
.qr-caja img { width: 160px; height: auto; }
.hoja-qr {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #fff;
    text-align: center;
    padding: 1.5rem;
}
.hoja-qr main { max-width: 420px; }
.hoja-qr__logo { width: 180px; margin: 0 auto 0.6rem; }
.hoja-qr__codigo { width: min(78vw, 320px); margin: 0.4rem auto; }
.hoja-qr__url { word-break: break-all; color: #5d4a3b; }
@media print {
    .no-imprimir { display: none; }
    .hoja-qr { padding: 0; }
}
@media (max-width: 560px) {
    .qr-caja { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
.formulario .check-linea {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.formulario .check-linea input {
    width: 1.4rem;
    height: 1.4rem;
    min-height: 0;
}
.elegir-cat {
    border: 0;
    margin: 0.2rem 0 0.8rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.elegir-cat legend {
    font-weight: 800;
    padding: 0;
    margin-bottom: 0.45rem;
    width: 100%;
}
.formulario .elegir-cat label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: auto;
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    min-height: 44px;
}
.formulario .elegir-cat input {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 0;
    margin: 0;
}

@media (min-width: 900px) {
    .bienvenida__menus a:hover,
    .bienvenida__wa:hover,
    .btn:hover,
    .btn-mas:hover { transform: translateY(-1px); }
}
