/*Banner Pizzas Empieza*/
.headingPizzas{
    background: transparent;
    min-height: 20svh;
    width: 100%;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    gap: 1rem;
    cursor: default;
}

.headingPizzas .container{
    display: flex;
    background:
        radial-gradient(circle at 80% 50%, rgba(90, 5, 5, 0.35), transparent 35%),
        linear-gradient(135deg, #8b1111 0%, #c62828 45%, #570303 100%);
    flex-direction: column;
    position: relative;
    padding: 1.2rem;
    overflow: hidden;
    border-radius: 26px;
    height: 20rem;
    box-shadow: 0 12px 30px rgba(120, 20, 20, .25);
    border: 3px solid #f7d37a;
}

.headingPizzas .container::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.08) 25%, transparent 25%);
    background-size: 22px 22px;
    opacity: .35;
    pointer-events: none;
}

.headingPizzas .container img{
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    left: 58%;
    height: 58rem;
    filter: drop-shadow(0 20px 25px rgba(0,0,0,.55));
    z-index: 1;
}

.headingPizzas .container h1,
.headingPizzas .container h2,
.headingPizzas .container p,
.headingPizzas .container .btnCont{
    position: relative;
    z-index: 2;
}

.headingPizzas .container h1{
    font-size: .9rem;
    color: #ffe9a8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08rem;
}

.headingPizzas .container h2{
    color: #fff6dc;
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 900;
    text-shadow: 0 4px 0 #5d0909;
    line-height: .95;
}

.headingPizzas .container p{
    color: #ffe16a;
    font-size: clamp(1.1rem, 1vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
}

.headingPizzas .container p i{
    font-size: clamp(1.5rem, 3vw, 1.7rem);
    color: #fff;
    transform: rotateY(180deg);
}

.headingPizzas .container .btnCont{
    width: 100%;
    margin-top: auto;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.headingPizzas .container .btnCont a{
    padding: .65rem 1.25rem;
    border-radius: 15rem;
    background: #ffd447;
    color: #671010;
    font-weight: 900;
    box-shadow: 0 5px 0 #9c6b00;
    border: 2px solid #fff2b5;
    text-transform: uppercase;
}


/* Botón circular llamada banner */
.headingPizzas .buttonCallBanner {
    cursor: pointer;
    border: none;
    background: #ff9900;
    color: #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: grid;
    place-content: center;

    transition:
        background 300ms,
        transform 200ms;

    font-weight: 500;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;

    padding: 0;
    box-shadow: 0 8px 0 #9c4b00;
    border: 3px solid #fff2b5;
    text-transform: none;
}

.headingPizzas .buttonCallBanner:visited,
.headingPizzas .buttonCallBanner:active,
.headingPizzas .buttonCallBanner:focus {
    color: #fff;
    text-decoration: none;
}

.headingPizzas .buttonCallBanner .button__text {
    position: absolute;
    inset: 0;
    animation: text-rotation 20s linear infinite;
    margin: 0;
    padding: 0;
    color: #fff;
    pointer-events: none;
}

.headingPizzas .buttonCallBanner .button__text > span {
    position: absolute;
    transform: rotate(calc(20deg * var(--index)));
    inset: 8px;
    text-align: center;
    transform-origin: center;
    font-size: clamp(.6rem, 2vw, .8rem);
    font-weight: 800;
}

.headingPizzas .buttonCallBanner .button__circle {
    position: relative;
    width: 40px;
    height: 40px;
    overflow: hidden;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headingPizzas .buttonCallBanner .button__icon {
    color: #575757;
    font-size: 1rem;
    line-height: 1;
}

.headingPizzas .buttonCallBanner .button__icon--copy {
    position: absolute;
    transform: translate(-150%, 150%);
}

.headingPizzas .buttonCallBanner:hover {
    background: #F5CC44;
    transform: scale(1.05);
}

.headingPizzas .buttonCallBanner:hover .button__icon {
    color: #000;
}

.headingPizzas .buttonCallBanner:hover .button__icon:first-child {
    transition: transform 0.3s ease-in-out;
    transform: translate(150%, -150%);
}

.headingPizzas .buttonCallBanner:hover .button__icon--copy {
    transition: transform 0.3s ease-in-out 0.1s;
    transform: translate(0);
}

@keyframes text-rotation {
    to {
        rotate: 360deg;
    }
}

.headingPizzas .links{
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 10svh;
}

.headingPizzas .links a{
    background: #fffdf6;
    border-radius: 16px;
    height: 4.8rem;
    width: 4.3rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    padding: .35rem;
    box-shadow: 0 8px 20px rgba(101, 28, 12, .12);
    border: 2px solid #ffe0a3;
    transition: transform .2s ease, box-shadow .2s ease;
}

.headingPizzas .links a:hover{
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 12px 25px rgba(101, 28, 12, .2);
}

.headingPizzas .links a img{
    width: 90%;
    filter: drop-shadow(0 5px 6px rgba(0,0,0,.15));
}

.headingPizzas .links a p{
    font-size: .62rem;
    margin-top: auto;
    color: #7b1b12;
    font-weight: 800;
}

@media(max-width:1200px){
    .headingPizzas .container{
        height: 13rem;
    }

    .headingPizzas .container img{
        left: 53%;
        height: 25rem;
    }

    .headingPizzas .links{
        justify-content: center;
    }
}
/*Banner Pizzas Termina*/


/*Grid Pizzas Empieza*/

.sectionPizzas {
    padding-top: 3rem;
}

.containerPizzas {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: .7rem;
}

.cardPizza {
    background: rgba(255, 255, 255, .92);
    border: 3px solid rgba(70, 168, 136, 0.2);
    border-radius: 1.5rem;
    padding: .5rem;
    display: grid;
    grid-template-areas:
        "name"
        "image"
        "sizes"
        "description"
        "buttons";
    gap: .5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .380);
    backdrop-filter: blur(8px);
    overflow: hidden;
}


.cardPizza:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, .590);
    border-color: rgba(255, 115, 0, 0.644);
}

.imagePizza {
    grid-area: image;
    width: 100%;
    object-fit: contain;
    border-radius: 1.15rem;
    border: .2rem solid #fff;
    filter: drop-shadow(0 3px 8px rgba(0,0,0, .180));
    cursor: pointer;
}

.namePizza {
    grid-area: name;
    font-size: clamp(1rem, 2vw, 1.55rem);
    font-weight:bolder;
    color: #222;
    line-height: 1.1;
    text-align: center;
}

.descriptionPizza {
    grid-area: description;
    font-size: .95rem;
    line-height: 1.45;
    color: #333;
    text-align: center;
    background: #f0f0f0;
    padding: .5rem;
    border-radius: 1rem;
}

.sizesContainerPizzas {
    grid-area: sizes;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
    gap: .2rem;
}

.sizesContainerPizzas p {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.275);
    border: 1px solid #ececec;
    background: #ffffff;
    border-radius: .85rem;
    padding: .2rem;
    font-size: clamp(.6rem, 2vw, .7rem);
    font-weight: 300;
    color: #5e5e5e;
    text-align: center;
}

.sizesContainerPizzas span{
    display: block;
    color: #ff9900;
    font-weight:800;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.075);
    border-radius: .5rem;
    padding: .2rem;
}

.sizesContainerPizzas span strong{
    font-size: .8rem;
    color: #666;
    font-weight: 300;
}


.sizesContainerPizzas i {
    font-style: normal;
}

.btnsContainerPizza {
    grid-area: buttons;
    display: flex;
    gap: .5rem;
    margin-top: auto;
}

.btnSharePizza,
.callGrid {
    flex: 1;
    padding: .3rem .9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}

.btnSharePizza {
    background: #fff;
    color: #3a3a3a;
    border: 1px solid #333;
}

.callGrid {
    background: #ff9900;
    color: #fff;
}

.btnSharePizza:hover {
    background: #4b4b4b;
    color: #fff;
}

.callGrid:hover {
    filter: brightness(1.07);
}




.previewImageModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.previewImageModal.active {
    opacity: 1;
    pointer-events: auto;
}

.previewImageBox {
    position: relative;
    width: min(92vw, 900px);
    max-height: 90svh;
    padding: 1.25rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    transform: scale(.94);
    transition: transform .25s ease;
}

.previewImageModal.active .previewImageBox {
    transform: scale(1);
}

.previewImageContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.previewImageBig {
    width: 100%;
    max-height: 72svh;
    object-fit: contain;
    border-radius: 1.15rem;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .22));
}

.previewImageTitle {
    margin: 0;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
    color: #111;
}

.closePreviewImage {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: transform .2s ease, background .2s ease;
    z-index: 20;
}

.closePreviewImage:hover {
    transform: scale(1.08);
    background: #000;
}

html.stopScroll,
body.stopScroll {
    overflow: auto;
    height: 100%;
}

html.stopScroll.active,
body.stopScroll.active{
    overflow: hidden;
}

@media (max-width: 768px) {
    .previewImageModal {
        padding: 1rem;
    }

    .previewImageBox {
        width: 96vw;
        padding: .85rem;
        border-radius: 1.2rem;
    }

    .previewImageBig {
        max-height: 70svh;
    }

    .closePreviewImage {
        top: .5rem;
        right: .5rem;
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1.15rem;
    }
}


@media(max-width:1200px){
    .containerPizzas{
        grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    }
}


/* Móvil */
@media (max-width: 500px) {
    .sectionPizzas {
        padding-inline: 1rem;
        padding-top: 5rem;
    }

    .containerPizzas {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

    .cardPizza {
        padding: 1.1rem;
        grid-template-areas:
        "image"
        "name"
        "sizes"
        "description"
        "buttons";
    }

    .imagePizza {
        aspect-ratio: 4 / 3;
    }

    .namePizza {
        font-size: 1.35rem;
    }

    .sizesContainerPizzas {
        grid-template-columns: 1fr;
    }

    .sizesContainerPizzas p {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: .65rem .75rem;
    }

    .sizesContainerPizzas span {
        display: inline;
        margin-top: 0;
    }


    .btnSharePizza,
    .callGrid {
        width: 100%;
    }
}

/* Buscador local de pizzas */
.cardPizza.searchHidden {
    display: none;
}

.containerPizzas.searchEmptyGrid {
    display: none;
}

.searchNotFound {
    width: calc(100% - 2rem);
    max-width: 900px;
    margin: 2rem auto;
    min-height: 18rem;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border-radius: 24px;
    background: #fffdf6;
    border: 2px solid #ffe0a3;
    box-shadow: 0 10px 25px rgba(101, 28, 12, .12);
}

.searchNotFound.active {
    display: flex;
}

.searchNotFound p {
    color: #7b1b12;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
}

.searchNotFound strong {
    color: #c62828;
    font-weight: 900;
}
/*Grid Pizzas Empieza*/