/* =========================================================
    LAYOUT GENERAL
========================================================= */


/* =========================================================
    HERO BASE
========================================================= */

.hero {
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.hero * {
    position: relative;
    z-index: 2;
}

.logo {
    display: block;
    margin: 0 auto 18px;
    object-fit: cover;
    background: var(--color-superficie);
    transition: .35s;
}

.hero h1 {
    margin-bottom: 10px;
}

.hero p {
    opacity: .95;
}


/* =========================================================
    CATEGORÃAS BASE
========================================================= */

.categorias {
    display: flex;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    scroll-padding-left: 20px;
    transition: .3s;
}

.categorias button {
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: .3s;
    font-weight: 600;
}

.categorias button:hover {
    transform: translateY(-2px);
}


/* =========================================================
    PRODUCTOS BASE
========================================================= */

.productos {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 25px;
    background-color: var(--color-menu);
    overflow: hidden;
}

.productos::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--imagen-superficie);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .08;
}

.productos > * {
    position: relative;
    z-index: 1;
}

.tema-la-daga .productos::before {
    display: none;
}


/* =========================================================
    FOOTER BASE
========================================================= */

.footer {
    grid-column: 1 / -1;
    position: relative;
    margin-top: 0;
    padding: 70px 20px;
    color: white;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        var(--color-superficie);
    background-size: cover;
    background-position: center;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.footer h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
}

.footer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.footer-item span {
    font-size: 1.3rem;
}

.footer-redes {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-redes a {
    text-decoration: none;
    color: white;
    padding: 12px 22px;
    border-radius: 50px;
    background: var(--color-principal);
    transition: .3s;
    font-weight: bold;
}

.footer-redes a:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}


/* =========================================================
    BOTÃ“N WHATSAPP BASE
========================================================= */

.whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    z-index: 999;
    transition: .3s;
    background: var(--color-principal);
}

.whatsapp:hover {
    transform: translateY(-4px);
}


/* =========================================================
    CARRITO DE PEDIDO
========================================================= */

.btn-agregar-carrito { margin-top: 12px; border: none; border-radius: 999px; padding: 10px 16px; background: var(--color-principal); color: white; font-weight: bold; cursor: pointer; }
.producto-opciones-label { display: grid; gap: 6px; margin-top: 12px; font-size: .86rem; font-weight: 700; color: var(--color-texto, #222); }
.producto-opciones-select { width: 100%; border: 1px solid rgba(0,0,0,.16); border-radius: 10px; padding: 9px 10px; font: inherit; color: var(--color-texto, #222); background: rgba(255,255,255,.86); }
.producto-opciones-select:focus { outline: 2px solid var(--color-principal); outline-offset: 2px; }
.producto-opciones-select.campo-error { border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(185,28,28,.16); }
.carrito-panel { position: fixed; right: 20px; bottom: 86px; width: min(360px, calc(100vw - 40px)); max-height: min(520px, calc(100vh - 130px)); overflow: auto; background: var(--color-superficie, #fff); color: var(--color-texto, #222); border: 1px solid rgba(0,0,0,.12); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.22); padding: 16px; z-index: 1000; display: none; }
.carrito-panel.carrito-visible { display: block; }
.carrito-header, .carrito-item, .carrito-controles { display: flex; align-items: center; }
.carrito-header, .carrito-item { justify-content: space-between; gap: 12px; }
.carrito-header { margin-bottom: 12px; }
.carrito-header button, .carrito-controles button { border: none; background: #efefef; color: #222; border-radius: 999px; cursor: pointer; font-weight: bold; }
.carrito-header button { width: 32px; height: 32px; font-size: 1.25rem; }
.carrito-lista { display: grid; gap: 10px; }
.carrito-item { padding: 10px 0; border-top: 1px solid rgba(0,0,0,.08); }
.carrito-item strong, .carrito-item span { display: block; }
.carrito-item span { margin-top: 4px; opacity: .72; font-size: .92rem; }
.carrito-item small { display: block; margin-top: 3px; color: var(--color-principal); font-size: .82rem; font-weight: 700; }
.carrito-controles { gap: 8px; flex: 0 0 auto; }
.carrito-controles button { width: 30px; height: 30px; }
.carrito-datos { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
.carrito-datos label, .carrito-nota-label { font-size: .84rem; font-weight: 700; }
.carrito-input { width: 100%; border: 1px solid rgba(0,0,0,.14); border-radius: 10px; padding: 9px 10px; font: inherit; color: inherit; background: rgba(255,255,255,.72); }
.carrito-input:focus { outline: 2px solid var(--color-principal); outline-offset: 2px; }
.carrito-nota-label { display: block; margin-top: 10px; margin-bottom: 6px; }
.carrito-nota { width: 100%; min-height: 76px; resize: vertical; border: 1px solid rgba(0,0,0,.14); border-radius: 12px; padding: 10px 12px; font: inherit; color: inherit; background: rgba(255,255,255,.72); }
.carrito-nota:focus { outline: 2px solid var(--color-principal); outline-offset: 2px; }
.carrito-resumen { margin-top: 12px; font-weight: bold; text-align: right; }
.carrito-enviar { display: block; margin-top: 14px; text-align: center; padding: 12px 16px; border-radius: 999px; background: var(--color-principal); color: white; text-decoration: none; font-weight: bold; }
.carrito-enviar.deshabilitado { opacity: .45; pointer-events: none; }
.carrito-vacio { color: inherit; opacity: .75; }
.whatsapp.carrito-con-items { box-shadow: 0 10px 24px rgba(0,0,0,.24); }


@keyframes carritoPulso {
    0% { transform: scale(1); }
    45% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.whatsapp.carrito-pulso {
    animation: carritoPulso .42s ease;
}



.developer-credit {
    margin-top: 28px;
    font-size: .78rem;
    opacity: .62;
}

.developer-credit a {
    color: inherit;
    text-decoration: none;
}

.developer-credit a:hover {
    opacity: 1;
    text-decoration: underline;
}


