/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .mainnav__link { padding: 0 13px; font-size: 14.5px; }
    .search { width: 340px; }
    .header__tools { gap: 18px; }
    .tool span { font-size: 14px; }
}

@media (max-width: 991px) {
    :root { --gutter: 18px; }
    .header__inner { grid-template-columns: auto 1fr auto; gap: 14px; }
    .search { width: 100%; max-width: none; justify-self: stretch; }
    .tool--login span, .tool--track span { display: none; }
    .mainnav__list { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
    .mainnav__list::-webkit-scrollbar { display: none; }
    .section__title { font-size: 24px; margin-bottom: 22px; }
    .carousel__cell { flex: 0 0 33.3333%; }
    .footer__cols { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
    .footer__bottomrow { grid-template-columns: 1fr; row-gap: 34px; }
}

@media (max-width: 767px) {
    .topbar { font-size: 11.5px; letter-spacing: .02em; padding: 0 12px; text-align: center; }
    .header__inner {
        height: auto; padding: 12px 15px;
        grid-template-columns: auto 1fr;
        grid-template-areas: "logo tools" "search search";
        row-gap: 12px;
    }
    .header__logo { grid-area: logo; }
    .header__tools { grid-area: tools; }
    .search { grid-area: search; }
    .burger { display: grid; place-items: center; width: 34px; height: 34px; }
    .header__logo img { width: 140px; }
    .header__tools { gap: 10px; margin-right: 0; }
    .tool--cart span:not(.tool__count) { font-size: 0; }
    .tool--cart { gap: 3px; }
    .tool__caret { display: none; }
    .burger svg { width: 24px; height: 24px; }

    .mainnav {
        position: fixed; inset: 0 30% 0 0; background: #fff; z-index: 120;
        transform: translateX(-100%); transition: transform .28s ease;
        overflow-y: auto; border: 0; box-shadow: 0 0 40px rgba(0,0,0,.2);
    }
    .mainnav.is-open { transform: none; }
    .mainnav__list { flex-direction: column; padding: 14px 0; }
    .mainnav__link { height: 46px; font-size: 16px; padding: 0 22px; justify-content: space-between; }
    .submenu {
        position: static; transform: none; opacity: 1; visibility: visible;
        border: 0; box-shadow: none; display: none; padding: 0 0 8px; min-width: 0; background: #fafafa;
    }
    .mainnav__item.is-open .submenu { display: block; transform: none; }

    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .carousel__cell { flex: 0 0 50%; }
    .section__title { font-size: 21px; }
    .hero__arrow { width: 34px; height: 38px; }
    .footer__cols { grid-template-columns: repeat(2, 1fr); }
    .pcard__name { font-size: 14px; }
    .newsletter input { padding-right: 135px; }
    .wa { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

@media (max-width: 479px) {
    .footer__cols { grid-template-columns: 1fr; }
    .carousel__cell { flex: 0 0 100%; }
}

/* Home (EstampaLab) */
@media (max-width: 991px) {
    .hero__inner { padding-left: 60px; padding-right: 60px; gap: 24px; }
    .feature { grid-template-columns: 1fr; }
    .feature img { max-width: 260px; }
}
@media (max-width: 767px) {
    .hero__inner { grid-template-columns: 1fr; padding: 32px 48px 40px; text-align: left; }
    .hero__media { width: min(70%, 260px); justify-self: start; }
    .strip__bar { gap: 8px 20px; font-size: 13px; }
    .feature { padding: 26px; min-height: 0; }
    .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 479px) {
    .hero__inner { padding: 28px 20px 36px; }
    .hero__arrow { top: auto; bottom: 0; }
}

@media (max-width: 767px) { .cat-tile { min-height: 0; padding: 28px 24px 30px; } .cat-tile__title { font-size: 24px; } }
