/* =========================
   1) TOKENS / GLOBAL
========================= */
:root{
    --azul: #74ADDC;
    --verde: #98CD65;
    --magenta: #F65C92;

    --m360-max: 1200px;
    --m360-gutter: 24px;

    --wall2-tile-h: clamp(140px, 14vw, 210px);
}

html,
body{
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#como-funciona,
#produtos-mega360{
    scroll-margin-top: calc(var(--headerH, 80px) + 18px);
}

/* =========================
   2) PAGE LAYOUT
========================= */
.m360-page{
    background:
        radial-gradient(900px 520px at 20% 0%, rgba(255,138,0,.12), transparent 60%),
        radial-gradient(900px 520px at 80% 10%, rgba(255,138,0,.12), transparent 62%),
        linear-gradient(180deg, #fffcf7, #ffffff);
    overflow: visible;
}

.m360-section{
    padding: clamp(40px, 7vw, 92px) 0;
}

/* =========================
   3) HERO
========================= */
.m360-heroWall2{
    padding: clamp(18px, 4vw, 44px) 0 clamp(26px, 5vw, 64px);
}

.m360-wall2Card{
    position: relative;
    min-height: clamp(520px, 62vh, 700px);
    border-radius: 14px;
    overflow: visible;
    isolation: isolate;
}

.m360-wall2Card::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(15,23,42,.05) 1px, transparent 1px) 0 0 / 84px 84px,
        linear-gradient(to bottom, rgba(15,23,42,.05) 1px, transparent 1px) 0 0 / 84px 84px;
    opacity: .3;
    pointer-events: none;
    z-index: 0;
}

/* --- hero grid --- */
.m360-wall2Grid{
    position: absolute;
    inset: 0;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 18px;
    padding: 44px;

    opacity: .7;
   /* filter: blur(1px); */
    pointer-events: none;
}

.m360-wall2Col{
    display: flex;
    flex-direction: column;
    gap: 18px;
    pointer-events: none;
}

.m360-wall2Col--1{
    transform: translateY(-190px);
}
.m360-wall2Col--2{
    transform: translateY(-270px);
}
.m360-wall2Col--3{
    transform: translateY(-200px);
}
.m360-wall2Col--4{
    transform: translateY(-280px);
}
.m360-wall2Col--5{
    transform: translateY(-240px);
}
.m360-wall2Col--6{
    transform: translateY(-280px);
}
.m360-wall2Col--7{
    transform: translateY(-200px);
}
.m360-wall2Col--8{
    transform: translateY(-270px);
}
.m360-wall2Col--9{
    transform: translateY(-190px);
}

.m360-wall2Tile{
    height: var(--wall2-tile-h);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    pointer-events: none;
}

.m360-wall2Tile.is-ghost{
    display: block;
}

.m360-wall2Ghost{
    width: 100%;
    height: 100%;
    display: block;
    background: #fff;
    opacity: .45;
    pointer-events: none;
}

.m360-wall2Tile img,
.m360-wall2Tile > img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.m360-wall2Col .m360-wall2Tile{
    opacity: .92;
}
.m360-wall2Col .m360-wall2Tile:nth-child(2){
    opacity: .82;
}
.m360-wall2Col .m360-wall2Tile:nth-child(3){
    opacity: .72;
}

.m360-wall2Col img{
    transition: filter .4s ease, opacity .4s ease;
    will-change: filter;
}

.m360-wall2Col--1 img,
.m360-wall2Col--9 img{
    opacity: .7;
    filter: blur(2px);
}

.m360-wall2Col--2 img,
.m360-wall2Col--8 img{
    opacity: .8;
    filter: blur(1px);
}

.m360-wall2Col--3 img,
.m360-wall2Col--7 img{
    opacity: .9;
}

.m360-wall2Col--4 img,
.m360-wall2Col--5 img,
.m360-wall2Col--6 img{
    opacity: 1;
}

/* --- hero center --- */
.m360-wall2Center{
    position: absolute;
    inset: 0;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 54px 18px;
    pointer-events: auto;
}

.m360-wall2Kicker{
    font-weight: 900;
    letter-spacing: .12em;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(15,23,42,.55);
}

.m360-logoWrap{
    position: relative;
    display: inline-block;
}

.m360-logo{
    position: relative;
    z-index: 2;
    display: block;
    width: auto;
    height: 350px;
}

.m360-ctaRow{
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 50px;
    pointer-events: auto;
}

.m360-wall2Center .m360-btn,
.m360-wall2Center a.m360-btn,
.m360-wall2Center button.m360-btn{
    border: none;
    box-shadow:
        0 10px 22px rgba(15,23,42,.10),
        0 2px 0 rgba(255,255,255,.55) inset;
    transition: box-shadow .2s ease, transform .2s ease;
}

.m360-wall2Center .m360-btn:hover,
.m360-wall2Center a.m360-btn:hover,
.m360-wall2Center button.m360-btn:hover{
    transform: translateY(-1px);
    box-shadow:
        0 14px 30px rgba(15,23,42,.14),
        0 2px 0 rgba(255,255,255,.60) inset;
}

.m360-wall2Center .m360-btn:active{
    transform: translateY(0);
    box-shadow:
        0 8px 16px rgba(15,23,42,.10),
        0 2px 0 rgba(255,255,255,.50) inset;
}

.m360-wall2Center .m360-btn:focus-visible{
    outline: 3px solid rgba(255,138,0,.35);
    outline-offset: 3px;
}

/* =========================
   4) COMO FUNCIONA
========================= */
.m360-howGrid{
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 100px 0;
}

.m360-howCell{
    min-height: 210px;
    display: flex;
    padding: 20px;
}

.m360-howCard{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.m360-howEyebrow{
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(15,23,42,.45);
}

.m360-howH3{
    margin: 0 0 8px;
    font-size: 35px;
    color: var(--brand, var(--m360-text));
}

.m360-howP{
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.7;
    color: var(--text);
}

.m360-howP p{
    margin: 0;
}

.m360-howSvgCard{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.m360-howSvg{
    display: block;
    height: auto;
    max-width: 100%;
}

/* =========================
   5) PRODUCT BLOCKS
========================= */
.m360-productBlocks{
    max-width: 1200px;
    margin: 0 auto;
}

.m360-openBlock{
    border-radius: 14px;
    background: var(--m360-surface-soft);
    overflow: visible;
}

.lista-title{
    text-align: center;
    font-size: 35px;
    color: var(--brand);
    font-weight: 700;
}

.m360-openHead{
    padding: 22px 22px 18px;
}

.m360-filtersWrap{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* animal row */
.m360-filterHead{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.m360-petFilter{
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    outline: 0;
    cursor: pointer;
    min-height: 86px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

.m360-petFilter img{
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 20px;
    pointer-events: none;
}

.m360-petFilter--dog{
    background: var(--surface-soft);
    border: 1px solid var(--surface-soft);
    justify-content: center;
}

.m360-petFilter--cat{
    background: var(--surface-soft);
    border: 1px solid var(--surface-soft);
    justify-content: center;

}

.m360-petFilter:hover{
    border: 1px solid var(--brand);
}
.m360-petFilter.is-active{
    background: var(--brandactive);
    border: 1px solid var(--brandactive);
}

.m360-petFilter--dog.is-active{

}

.m360-petFilter--cat.is-active{

}

/* badge row */
.m360-badgeFilterRow{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.m360-badgeFilter{
    appearance: none;
    border: 1px solid var(--surface-soft);
    background: var(--surface-soft);
    border-radius: 14px;
    min-height: 76px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
}

.m360-badgeFilter img{
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.m360-badgeFilter:hover{
    border: 1px solid var(--brand);
}

.m360-badgeFilter.is-active{
    border: 1px solid var(--brandactive);
    background: var(--brandactive);
}


.m360-openBody{
    padding: 0 22px 22px;
}

.m360-accGrid{
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
}

.m360-tile{
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(15,23,42,.08);
    transition: opacity .2s ease, transform .2s ease;
}

.m360-tile img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.m360-tile.is-hidden{
    display: none;
}
/* =========================
   6) REVEAL / JS MOTION
========================= */
.m360-reveal{
    opacity: 1;
    transform: none;
}

.m360-js .m360-reveal{
    opacity: 0;
    transform: translateY(18px);
    transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s ease;
}

.m360-js .m360-reveal.is-in{
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   7) HERO INTRO ANIMATION
========================= */
#m360Hero.is-boot .m360-logo{
    opacity: 0;
    transform: translateY(10px) scale(.985);
}

#m360Hero.is-boot .m360-wall2Grid{
    opacity: 0;
    transform: translateY(6px);
}

#m360Hero.is-boot.is-boot--go .m360-logo{
    animation: m360LogoIn .75s cubic-bezier(.2,.8,.2,1) forwards;
}

#m360Hero.is-boot.is-boot--go .m360-wall2Grid{
    animation: m360GridIn .9s ease forwards;
    animation-delay: .55s;
}

@keyframes m360LogoIn{
    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes m360GridIn{
    to{
        opacity: .7;
        transform: translateY(0);
    }
}

/* =========================
   8) RESPONSIVE
========================= */
@media (max-width: 1200px){
    .m360-accGrid{
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
    .m360-wall2Grid{
        display: none;
    }
}

@media (max-width: 980px){
    .m360-howGrid{
        grid-template-columns: 1fr;
    }

    .m360-howCell{
        min-height: auto;
    }

    .m360-openHead{
        padding: 80px 18px 18px;
    }

    .m360-openBody{
        padding: 0 18px 18px;
    }

    .m360-accGrid{
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .m360-logo{
        height: 260px;
    }
}

@media (max-width: 640px){

    .m360-wall2Grid{
        gap: 10px;
        padding: 20px;
    }

    .m360-wall2Col{
        gap: 10px;
    }

    .m360-logo{
        height: 180px;
    }

    .m360-wall2Center{
        padding: 36px 16px;
    }

    .m360-howH3{
        font-size: 28px;
    }

    .m360-howP{
        font-size: 17px;
    }

    .m360-openHead{
        gap: 10px;
    }

    .m360-openBadge{
        width: 190px;
    }

    .m360-accGrid{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =========================
   9) REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce){
    html,
    body{
        scroll-behavior: auto;
    }

    .m360-js .m360-reveal{
        opacity: 1;
        transform: none;
        transition: none;
    }

    #m360Hero.is-boot .m360-logo,
    #m360Hero.is-boot .m360-wall2Grid{
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .m360-petFilter,
    .m360-wall2Center .m360-btn,
    .m360-wall2Center a.m360-btn,
    .m360-wall2Center button.m360-btn,
    .m360-wall2Col img{
        transition: none !important;
    }
}

@media (max-width: 980px){
    .m360-howGrid{
        grid-template-columns: 1fr;
        gap: 22px 0;
    }

    .m360-howItem--badges{
        grid-column: auto;
    }

    .m360-howCell{
        min-height: auto;
        padding: 12px 16px;
    }
}

.m360-colorList{
    list-style: none;
    padding: 0;
    margin: 14px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 620px;
    text-align: left;
}

.m360-colorList li{
    display: flex;
    align-items: center;
    gap: 10px;
}

.m360-colorPill{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.m360-colorPill--blue{
    background: var(--azul);
}

.m360-colorPill--green{
    background: var(--verde);
}

.m360-colorPill--magenta{
    background: var(--magenta);
}

.m360-howItem--badges{
    grid-column: 1 / -1;
    justify-content: center;
}

.m360-badgeInfoCard{
    align-items: center;
    text-align: center;
}

.m360-badgeRows{
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    max-width: 980px;
}

.m360-badgeRow{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.m360-badgeRow div{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m360-badgeRow img{
    width: 86px;
    height: 86px;
    display: block;
}

.m360-badgeRow strong.m360-colorPill{
    margin-bottom: 4px;
    font-size: 15px;
    color: #fff;
}

.m360-badgeRow span{
    display: block;
    font-size: 20px;
    line-height: 1.45;
    color: var(--text);
}

@media (max-width: 640px){
    .m360-badgeRows{
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .m360-badgeRow img{
        width: 68px;
        height: 68px;
    }

    .m360-badgeRow strong{
        font-size: 19px;
    }

    .m360-badgeRow span{
        font-size: 17px;
    }
}