.portada {
    overflow: hidden;
}

.motion-preview[hidden] {
    display: none;
}

.motion-preview {
    position: absolute;
    z-index: 902;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: rgba(0, 38, 55, .94);
    color: #fff;
    text-align: center;
    font: 400 14px/1.4 Lato, sans-serif;
}

.motion-preview__label {
    display: block;
    margin-bottom: 10px;
    color: #b6dce0;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.motion-preview__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.motion-preview button {
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 24px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.motion-preview button:hover {
    background: rgba(255, 255, 255, .12);
}

.motion-preview button[aria-pressed="true"] {
    background: #b6e6e9;
    color: #00344a;
}

.motion-preview button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.motion-preview__description {
    max-width: 390px;
    margin: 10px auto 0;
    font-size: 12px;
    color: #d1e2e8;
}

.motion-preview__compare {
    display: inline-block;
    margin-top: 10px;
    color: #b6e6e9;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Keep the existing scroll link above the comparison controls. */
.portada:has(.motion-preview:not([hidden])) .btn-scroll {
    bottom: 200px;
}

@media (max-width: 540px) {
    .motion-preview {
        bottom: 16px;
        padding: 12px;
    }

    .motion-preview button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .portada:has(.motion-preview:not([hidden])) .btn-scroll {
        bottom: 240px;
    }
}
