/* Layout Principal - Pin Pollo */
.layout-pin-pollo {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.sidebar-categorias {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.sidebar-categorias .list-group-item {
    border: none;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-categorias .list-group-item:hover {
    background-color: #f8f9fa;
    color: #e3101b;
}

.main-productos {
    flex-grow: 1;
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Tarjetas de Producto Generales */
.product-card-pin-pollo {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-pin-pollo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-img-wrapper {
    width: 100%;
}

.product-img-wrapper img,
.object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tarjetas de Subcategorías (Vista Intermedia) */
.subcat-card {
    height: 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.subcat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.subcat-overlay {
    backdrop-filter: blur(4px);
}

/* Cabecera Principal */
.pin-pollo-header {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box input {
    border: 1px solid #ddd;
    padding-left: 2.5rem;
}

/* Botones y Pestañas */
.btn-outline-danger:hover,
.btn-danger {
    background-color: #e3101b;
    border-color: #e3101b;
    color: #ffffff;
}

.carrito-flotante {
    position: fixed
}

.carrito-flotante em {
    position: absolute;
    right: 58px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #2fa66b;
    color: #fff;
    font-size: .75rem;
    font-style: normal;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transform: translateX(8px);
    transition: opacity .15s, transform .15s
}

.carrito-flotante em.visible {
    opacity: 1;
    transform: translateX(0)
}

.carrito-agregado {
    animation: carrito-vibra .5s ease-in-out 2
}

@keyframes carrito-vibra {

    0%,
    100% {
        transform: translateX(0) rotate(0)
    }

    25% {
        transform: translateX(-4px) rotate(-8deg)
    }

    75% {
        transform: translateX(4px) rotate(8deg)
    }
}

.carrito-item-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px
}

.carrito-item-imagen {
    width: 100%;
    height: 115px;
    border-radius: 9px;
    object-fit: cover;
    order: 2
}

.carrito-item-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    order: 1
}

.carrito-descripcion {
    margin: 8px 0
}

.carrito-descripcion summary {
    color: #8d2923;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700
}

.carrito-descripcion p {
    margin: 5px 0 0;
    color: #718096;
    font-size: .8rem;
    line-height: 1.35
}

.cliente-products-page {
    position: relative
}

.cliente-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.cliente-product-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(29, 19, 12, .1);
    transition: transform .2s ease
}

.cliente-product-card:hover {
    transform: translateY(-3px)
}

.cliente-product-card>img {
    width: 100%;
    height: 210px;
    object-fit: cover
}

.cliente-product-body {
    padding: 16px
}

.cliente-product-body h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 850
}

.cliente-product-body p {
    min-height: 40px;
    margin: 0 0 15px;
    color: #718096;
    font-size: .88rem
}

.cliente-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.cliente-product-bottom strong {
    font-size: 1.1rem
}

.btn-agregar-producto,
.btn-confirmar-pedido {
    border: 0;
    border-radius: 9px;
    background: #b52f27;
    color: #fff;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer
}

.btn-agregar-producto:hover,
.btn-confirmar-pedido:hover {
    background: #8d211c
}

.cliente-subtabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 24px
}

.cliente-subtabs a {
    padding: 9px 16px;
    border-radius: 99px;
    border: 1px solid #eaded8;
    color: #8d2923;
    text-decoration: none;
    font-weight: 750
}

.cliente-subtabs a.active,
.cliente-subtabs a:hover {
    background: #b52f27;
    color: #fff
}

.carrito-flotante {
    position: fixed;
    z-index: 40;
    top: 82px;
    right: 24px;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: #e51e2a;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px #450b0b44;
    cursor: pointer
}

.carrito-flotante span {
    position: absolute;
    right: -4px;
    top: -5px;
    min-width: 22px;
    height: 22px;
    padding: 2px 5px;
    border-radius: 99px;
    background: #fff;
    color: #e51e2a;
    font-size: .75rem;
    font-weight: 900
}

.panel-carrito {
    position: fixed;
    z-index: 60;
    top: 0;
    right: 0;
    width: min(410px, 92vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -10px 0 30px #1a0b0b30;
    transform: translateX(105%);
    transition: transform .25s ease
}

.panel-carrito.abierto {
    transform: translateX(0)
}

.panel-carrito-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 22px;
    border-bottom: 1px solid #eee4de;
    background: #fffaf7
}

.panel-carrito-header h2 {
    margin: 3px 0 0;
    font-size: 1.6rem
}

.panel-carrito-header button {
    border: 0;
    background: none;
    color: #8d2923;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer
}

.items-carrito {
    flex: 1;
    overflow-y: auto;
    padding: 18px
}

.carrito-vacio {
    padding: 30px 8px;
    text-align: center;
    color: #718096
}

.carrito-item {
    padding: 14px 0;
    border-bottom: 1px solid #eee4de
}

.carrito-item-info {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.carrito-item-info strong {
    font-size: .92rem
}

.carrito-item-info small {
    white-space: nowrap;
    color: #a52d25;
    font-weight: 800
}

.carrito-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0
}

.carrito-item-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid #e3d5cf;
    border-radius: 7px;
    background: #fff;
    color: #a52d25;
    font-weight: 900;
    cursor: pointer
}

.carrito-item-controls .carrito-eliminar {
    margin-left: auto;
    border-color: #f0c8c4;
    color: #d8322b
}

.carrito-observacion {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #eee4de;
    border-radius: 7px;
    font-size: .82rem
}

.panel-carrito-footer {
    padding: 18px 22px;
    border-top: 1px solid #eee4de;
    background: #fffaf7
}

.carrito-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.15rem
}

.carrito-total strong {
    color: #a52d25
}

.panel-carrito-footer textarea {
    width: 100%;
    min-height: 70px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #eaded8;
    border-radius: 8px;
    resize: vertical
}

.btn-confirmar-pedido {
    width: 100%;
    padding: 13px
}

.carrito-fondo {
    position: fixed;
    z-index: 50;
    inset: 0;
    background: #18090966;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease
}

.carrito-fondo.visible {
    opacity: 1;
    pointer-events: auto
}

@media(max-width:760px) {
    .cliente-products-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:500px) {
    .cliente-products-grid {
        grid-template-columns: 1fr
    }

    .carrito-flotante {
        top: 74px;
        right: 15px
    }
}

/* Carta pública: mosaico visual inspirado en una carta de pollería. */
.cliente-menu {
    width: min(1220px, calc(100% - 28px));
    margin: 0 auto;
    padding: 26px 0 70px;
    color: #172033
}

.cliente-menu-header {
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center; 
    padding: 28px 5vw;
    margin-bottom: 24px;
    background: linear-gradient(120deg, #3b3939, #9b3c16);
    color: #fff;
    font-style: italic;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    
    border-radius: 0;
    box-shadow: none;
}

.cliente-menu-header h1 {
    margin: 6px 0 4px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900
}

.cliente-menu-header p {
    margin: 0;
    color: #ffe8df
}

.cliente-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 800;
    opacity: .78
}

.cliente-fire {
    font-size: 4rem;
    filter: drop-shadow(0 5px 8px #2b080855)
}

.cliente-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 190px;
    gap: 14px
}

.cliente-category-card {
    position: relative;
    display: block;
    min-height: 190px;
    overflow: hidden;
    border-radius: 13px;
    background: #32100d;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(20, 12, 8, .18);
    transition: transform .2s ease, box-shadow .2s ease
}

.cliente-category-card:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(20, 12, 8, .26)
}

.cliente-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease
}

.cliente-category-card:hover img {
    transform: scale(1.06)
}

.cliente-category-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 8, 6, .9), rgba(17, 8, 6, .04) 68%)
}

.cliente-category-overlay {
    position: absolute;
    z-index: 1;
    left: 16px;
    right: 16px;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.cliente-category-overlay strong {
    font-size: 1.08rem;
    text-transform: uppercase;
    color: #fff
}

.cliente-category-overlay small {
    font-size: .8rem;
    color: #fff;
    opacity: .86
}

.cliente-category-card:first-child {
    grid-row: span 2
}

.cliente-category-card:nth-child(2) {
    grid-column: span 2
}

.cliente-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.cliente-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #a52d25;
    text-decoration: none;
    font-weight: 750
}

.cliente-section-heading {
    margin: 10px 0 24px
}

.cliente-section-heading h1,
.cliente-products-title {
    margin: 5px 0;
    color: #172033;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 900;
    text-transform: uppercase
}

.cliente-section-heading p {
    color: #718096
}

.cliente-products-title {
    text-align: center;
    margin-bottom: 26px
}

.cliente-ocupada {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px;
    border: 1px solid #f0d0cb;
    border-radius: 15px;
    background: #fff5f3;
    color: #8e2923
}

.cliente-ocupada strong {
    font-size: 1.2rem
}

.cliente-ocupada span {
    color: #6c757d
}

@media(max-width:900px) {
    .cliente-category-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .cliente-category-card:first-child {
        grid-row: span 1
    }

    .cliente-category-card:nth-child(2) {
        grid-column: span 1
    }

    .cliente-subcategory-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:560px) {
    .cliente-menu-header {
        padding: 22px 20px
    }

    .cliente-fire {
        font-size: 2.5rem
    }

    .cliente-category-grid,
    .cliente-subcategory-grid {
        grid-template-columns: 1fr
    }

    .cliente-category-card:first-child {
        grid-row: span 1
    }
}