.mv-catalogo,
.mv-catalogo * {
    box-sizing: border-box;
}

.mv-catalogo {
    --mv-accent: #f47f72;
    --mv-accent-strong: #d9574d;
    --mv-ink: #202020;
    --mv-muted: #646464;
    --mv-line: #ded9d3;
    --mv-surface: #ffffff;
    --mv-soft: #f8faf7;
    --mv-shadow: 0 18px 44px rgba(28, 31, 29, 0.14);
    color: var(--mv-ink);
    font-family: inherit;
    margin: 0 auto;
    max-width: min(1180px, 100%);
    overflow-x: hidden;
    width: 100%;
}

.mv-catalogo__header {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 14px;
}

.mv-catalogo__heading {
    min-width: 0;
}

.mv-catalogo__eyebrow {
    color: var(--mv-accent-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.mv-catalogo__title {
    color: var(--mv-ink);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

.mv-catalogo__actions,
.mv-catalogo__toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mv-catalogo__toolbar {
    justify-content: center;
    margin: 0 0 12px;
}

.mv-catalogo__icon-button,
.mv-catalogo__nav-button,
.mv-catalogo__stage-button,
.mv-catalogo__text-button,
.mv-catalogo__thumb {
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    appearance: none;
    background: var(--mv-surface);
    border: 1px solid var(--mv-line);
    border-radius: 8px;
    color: var(--mv-ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.mv-catalogo__icon-button,
.mv-catalogo__nav-button {
    height: 42px;
    min-width: 42px;
    padding: 0 12px;
}

.mv-catalogo__nav-button span,
.mv-catalogo__stage-button span {
    display: block;
    font-size: 30px;
    line-height: 0.8;
    transform: translateY(-1px);
}

.mv-catalogo__icon-button {
    font-weight: 800;
}

.mv-catalogo__text-button {
    font-size: 14px;
    font-weight: 800;
    min-height: 42px;
    padding: 0 14px;
}

.mv-catalogo__text-button--accent {
    background: var(--mv-accent);
    border-color: var(--mv-accent);
    color: #ffffff;
}

.mv-catalogo__icon-button:hover,
.mv-catalogo__nav-button:hover,
.mv-catalogo__stage-button:hover,
.mv-catalogo__text-button:hover,
.mv-catalogo__thumb:hover {
    border-color: var(--mv-accent);
    transform: translateY(-1px);
}

.mv-catalogo__text-button--accent:hover {
    background: var(--mv-accent-strong);
    border-color: var(--mv-accent-strong);
}

.mv-catalogo__icon-button:focus-visible,
.mv-catalogo__nav-button:focus-visible,
.mv-catalogo__stage-button:focus-visible,
.mv-catalogo__text-button:focus-visible,
.mv-catalogo__thumb:focus-visible,
.mv-catalogo__stage:focus-visible {
    outline: 3px solid rgba(244, 127, 114, 0.36);
    outline-offset: 2px;
}

.mv-catalogo__icon-button:disabled,
.mv-catalogo__nav-button:disabled,
.mv-catalogo__stage-button:disabled {
    cursor: not-allowed;
    opacity: 0.36;
    transform: none;
}

.mv-catalogo__counter {
    color: var(--mv-muted);
    font-size: 14px;
    font-weight: 700;
    min-width: 128px;
    text-align: center;
}

.mv-catalogo__stage {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    display: flex;
    height: min(88vh, 940px);
    height: min(88dvh, 940px);
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    padding: 4px;
    position: relative;
    scroll-behavior: smooth;
    touch-action: pan-y pinch-zoom;
}

.mv-catalogo__book {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
    max-width: min(100%, 62vh, 760px);
    max-width: min(100%, 62dvh, 760px);
    perspective: 1800px;
    transition: max-width 180ms ease;
    width: 100%;
}

.mv-catalogo[data-layout="spread"] .mv-catalogo__book {
    grid-template-columns: minmax(0, 1fr);
    max-width: min(100%, 62vh, 760px);
    max-width: min(100%, 62dvh, 760px);
}

.mv-catalogo__page {
    aspect-ratio: 1414 / 2000;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: var(--mv-shadow);
    display: block;
    margin: 0;
    overflow: hidden;
    position: relative;
    transform-origin: center;
}

.mv-catalogo__page[hidden] {
    display: none;
}

.mv-catalogo__page img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.mv-catalogo__page::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0));
    content: "";
    inset: 0 auto 0 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 14px;
}

.mv-catalogo[data-layout="spread"] .mv-catalogo__page--right::after {
    opacity: 0;
}

.mv-catalogo__stage-button {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(222, 217, 211, 0.92);
    box-shadow: 0 8px 22px rgba(28, 31, 29, 0.16);
    height: 46px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    z-index: 3;
}

.mv-catalogo__stage-button:hover {
    transform: translateY(calc(-50% - 1px));
}

.mv-catalogo__stage-button--prev {
    left: 12px;
}

.mv-catalogo__stage-button--next {
    right: 12px;
}

.mv-catalogo__whatsapp {
    align-items: center;
    background: #25d366;
    border: 1px solid #1fb957;
    border-radius: 8px;
    bottom: 18px;
    box-shadow: 0 10px 26px rgba(28, 31, 29, 0.18);
    color: #ffffff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 42px;
    padding: 0 16px;
    position: absolute;
    right: 18px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
    z-index: 4;
}

.mv-catalogo__whatsapp:hover,
.mv-catalogo__whatsapp:focus {
    background: #1fb957;
    border-color: #169447;
    color: #ffffff;
    transform: translateY(-1px);
}

.mv-catalogo__thumbs {
    display: flex;
    gap: 8px;
    margin: 12px 0 0;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}

.mv-catalogo__thumb {
    aspect-ratio: 1414 / 2000;
    flex: 0 0 64px;
    overflow: hidden;
    padding: 0;
}

.mv-catalogo__thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mv-catalogo__thumb.is-active {
    border-color: var(--mv-accent);
    box-shadow: 0 0 0 3px rgba(244, 127, 114, 0.24);
}

.mv-catalogo.is-zoomed .mv-catalogo__book {
    max-width: min(100%, 62vh, 760px);
    max-width: min(100%, 62dvh, 760px);
    width: 100%;
}

.mv-catalogo.is-zoomed[data-layout="spread"] .mv-catalogo__book {
    width: 100%;
}

.mv-catalogo.is-turning-next .mv-catalogo__page {
    animation: mvCatalogTurnNext 220ms ease both;
}

.mv-catalogo.is-turning-prev .mv-catalogo__page {
    animation: mvCatalogTurnPrev 220ms ease both;
}

.mv-catalogo__noscript {
    display: grid;
    gap: 16px;
    margin: 16px 0 0;
}

.mv-catalogo__noscript img {
    height: auto;
    max-width: 100%;
}

@keyframes mvCatalogTurnNext {
    from {
        opacity: 0.68;
        transform: translateX(12px) rotateY(-4deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes mvCatalogTurnPrev {
    from {
        opacity: 0.68;
        transform: translateX(-12px) rotateY(4deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@media (max-width: 720px) {
    .mv-catalogo {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .mv-catalogo__header {
        align-items: stretch;
        flex-direction: column;
    }

    .mv-catalogo__actions {
        justify-content: flex-start;
    }

    .mv-catalogo__stage {
        height: min(82vh, 760px);
        height: min(82dvh, 760px);
        justify-content: flex-start;
        min-height: 0;
        max-width: 100% !important;
        overflow: hidden;
        padding: 2px 0;
        width: 100% !important;
    }

    .mv-catalogo__book,
    .mv-catalogo[data-layout="spread"] .mv-catalogo__book {
        left: min(50%, 50vw);
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: min(calc(100vw - 12px), 58vh) !important;
        max-width: min(calc(100vw - 12px), 58dvh) !important;
        position: relative;
        transform: translateX(-50%);
        width: 100% !important;
    }

    .mv-catalogo__page {
        width: 100% !important;
    }

    .mv-catalogo__page img {
        height: 100% !important;
        object-fit: contain !important;
        width: 100% !important;
    }

    .mv-catalogo__stage-button {
        height: 40px;
        width: 40px;
    }

    .mv-catalogo__stage-button--prev {
        left: 6px;
    }

    .mv-catalogo__stage-button--next {
        right: 6px;
    }

    .mv-catalogo__whatsapp {
        bottom: 10px;
        min-height: 40px;
        padding: 0 13px;
        right: 10px;
    }

    .mv-catalogo__thumb {
        flex-basis: 56px;
    }

    .mv-catalogo.is-zoomed .mv-catalogo__book {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mv-catalogo *,
    .mv-catalogo::before,
    .mv-catalogo::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
